WO2019023976A1 - 一种业务数据处理方法、客户端、服务端及系统 - Google Patents

一种业务数据处理方法、客户端、服务端及系统 Download PDF

Info

Publication number
WO2019023976A1
WO2019023976A1 PCT/CN2017/095609 CN2017095609W WO2019023976A1 WO 2019023976 A1 WO2019023976 A1 WO 2019023976A1 CN 2017095609 W CN2017095609 W CN 2017095609W WO 2019023976 A1 WO2019023976 A1 WO 2019023976A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
server
network request
version information
service data
Prior art date
Application number
PCT/CN2017/095609
Other languages
English (en)
French (fr)
Inventor
彭江明
Original Assignee
福建联迪商用设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Priority to CN201780000797.7A priority Critical patent/CN107637052A/zh
Priority to PCT/CN2017/095609 priority patent/WO2019023976A1/zh
Publication of WO2019023976A1 publication Critical patent/WO2019023976A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present invention relates to the field of data processing, and in particular, to a service data processing method, a client, a server, and a system.
  • the server processes corresponding business operations according to network requests (eg, HTTP requests and HTTPS requests) sent by the POS, including transactions, check card balances, settlement operations, and synchronous transaction keys.
  • network requests eg, HTTP requests and HTTPS requests
  • the POS machine needs to obtain the card number and password, and encapsulate the card number and password into the BODY domain of the network transmission protocol; send a network request to the server through the POS machine, so that the server obtains the BODY domain carried by the network transmission protocol.
  • the business data that is, the card number and the password, and perform a transaction operation according to the business data, and feed back the result of the transaction operation to the POS machine.
  • the POS machine needs to provide the card number, password and random code to the server.
  • one server can handle network requests sent by multiple POS machines, and multiple POS machines connected to the server may adopt different service processing rules. To save the cost of redeploying POS machines, each server needs to be compatible with multiple versions of business operations.
  • the patent document with the application number of 200710073135.0 provides a method and apparatus for implementing compatibility between new and old versions of the system.
  • the method includes the following steps: a. After the system B receives the data stream D sent by the system A, the system B The adaptation module parses the data stream D into a formatted data stream D' according to the data dictionary set of the system A ; b.
  • the adapter module of the system B belongs to the data dictionary set of the system B itself.
  • the data stream D' resolves to a data stream that it can recognize.
  • the data adaptation during the version upgrade process is independent of the specific data flow, so that the old and new versions can coexist, and the old and new versions can be converted to each other.
  • the method for implementing the new and old versions of the system needs to first acquire the number of system A.
  • the dictionary after the data stream is parsed twice, the corresponding service operation can be performed according to the parsed data stream, causing the response time of the user to send the service data through the system A to the system A feedback data processing result, especially In the case of network request concurrency, the response time of the client is greatly extended, which affects the user experience.
  • other systems that perform data interaction through the client and the server to achieve the corresponding functions have the same problem.
  • the technical problem to be solved by the present invention is: How to shorten the response time of the client performing business operations in the implementation of the server compatible with multi-version business operations.
  • the technical problem to be solved by the present invention is: How to shorten the response time of the client performing business operations in the implementation of the server compatible with multi-version business operations.
  • the present invention provides a service data processing method, including:
  • the present invention provides a client, including:
  • a first obtaining module configured to obtain version information of a service operation and service data corresponding to the service operation
  • a generating module configured to generate a network request according to the version information and the service data
  • a first sending module configured to send the network request to a server
  • the second obtaining module is configured to obtain a processing result that the server performs data processing on the service data in the network request according to the version information in the network request.
  • the present invention also provides a service data processing method, including: [0020] invoking business logic corresponding to the service operation version information in the network request;
  • the present invention also provides a server, including:
  • a calling module configured to invoke a business logic corresponding to the service operation version information in the network request
  • a processing module configured to process, according to the service logic, service data in the network request, to obtain a processing result
  • the second sending module is configured to send the processing result to the client.
  • the present invention further provides a service data processing method, including:
  • the client obtains version information of the service operation and service data corresponding to the service operation
  • the client generates a network request according to the version information and the service data
  • the client sends the network request to the server
  • the server invokes a service logic corresponding to the version information in the network request
  • the server processes the service data according to the service logic, and obtains a processing result
  • the server sends the processing result to the client.
  • the present invention further provides a service data processing system, including:
  • a first obtaining module configured to obtain, by the client, version information of the service operation and service data corresponding to the service operation
  • a generating module configured to generate, by the client, a network request according to the version information and the service data
  • a first sending module configured to send, by the client, the network request to the server
  • a calling module configured to: invoke, by the server, a service logic corresponding to version information in the network request;
  • a processing module configured to process, by the server, the service data according to the service logic, to obtain a processing result
  • the second sending module is configured to send, by the server, the processing result to the client.
  • the beneficial effects of the present invention are: by adding the version information of the service operation in the network request, so that the server can quickly identify the version information of the service operation requested by different clients, and according to the version information. Calling the corresponding business logic to process the service data carried in the network request, compared with the prior art, shortening the server to identify the service data corresponding to the different versions of the business operations submitted by the client, thereby implementing the server compatible processing.
  • the peers of the version's business operations effectively reduce the response time of the client's business operations.
  • FIG. 1 is a flow chart of a specific implementation manner of a service data processing method according to the present invention.
  • FIG. 2 is a flow chart of a specific implementation manner of a service data processing method according to the present invention.
  • FIG. 3 is a flow chart of a specific implementation manner of a service data processing method according to another embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a specific implementation manner of a client according to the present invention.
  • FIG. 5 is a structural block diagram of a specific implementation manner of a server according to the present invention.
  • FIG. 6 is a structural block diagram of a specific implementation manner of a service data processing system according to the present invention.
  • FIG. 7 is a further structural block diagram of a specific implementation manner of a client according to the present invention.
  • FIG. 8 is a further structural block diagram of a specific implementation manner of a server according to the present invention.
  • FIG. 9 is a schematic diagram of deployment of a client and a server provided by the present invention.
  • FIG. 10 is a further structural block diagram of a specific implementation manner of a service data processing system according to the present invention.
  • [0054] 1, the client; 11, the first acquisition module; 12, the generation module; 121, the first addition unit; 122, the second addition unit; 13, the first transmission module; 14, the second acquisition module; Updating module; 21, calling module; 22, processing module; 221, verification unit; 222, execution unit; 223, setting unit; 23, second sending module; 24, third obtaining module;
  • the present invention provides a service data processing method, including:
  • the method further includes:
  • the information contained in the request header of the network request can be directly and conveniently obtained.
  • the data in the request body needs to be parsed according to a specific data structure. Therefore, placing the version information in the request header facilitates the server to quickly identify the version information of the business operation requested by the current client.
  • the present invention further provides a service data processing method, including:
  • processing the service data in the network request according to the service logic, and obtaining a processing result specifically:
  • the service data includes a service type and a service parameter
  • the method further includes:
  • the information contained in the request header of the network request can be directly and conveniently obtained.
  • the data in the request body needs to be parsed according to a specific data structure. Therefore, placing the version information in the request header is advantageous for enabling the server to quickly identify the version information of the business operation requested by the current client, thereby parsing the data in the request body according to the specific data structure, and shortening the server identification corresponding to the different version of the business operation.
  • the daytime of business data is advantageous for enabling the server to quickly identify the version information of the business operation requested by the current client, thereby parsing the data in the request body according to the specific data structure, and shortening the server identification corresponding to the different version of the business operation.
  • the present invention further provides a service data processing method, including:
  • the client obtains version information of the service operation and service data corresponding to the service operation;
  • the client generates a network request according to the version information and the service data
  • the client sends the network request to the server
  • the server invokes a service logic corresponding to the version information in the network request
  • the server processes the service data according to the service logic, and obtains a processing result
  • the server sends the processing result to the client.
  • the method further includes:
  • the client updates the version of the business operation.
  • the client generates a network request according to the version information and the service data, specifically: [0094] the client adds the version information to the request header of the network request;
  • the client adds the service data to the request body of the network request.
  • the server processes the service data according to the service logic, and obtains a processing result, which is specifically:
  • the service data includes a service type and a service parameter
  • the server verifies the legality of the service parameter according to the service type, and obtains a verification result;
  • the result of the certificate includes the legality of the business parameters and the invalidity of the business parameters;
  • the server processes the service parameter according to the service logic, and obtains a corresponding processing result; otherwise:
  • the server sets the processing result as a service parameter error.
  • the method further includes:
  • the server obtains the version information from a request header of the network request
  • the server identifies the data in the request body of the network request according to the version information, and obtains the service data.
  • the present invention provides a client 1, including:
  • the first obtaining module 11 is configured to obtain version information of a service operation and service data corresponding to the service operation.
  • the generating module 12 is configured to generate a network request according to the version information and the service data.
  • the first sending module 13 is configured to send the network request to the server
  • the second obtaining module 14 is configured to obtain a processing result that the server performs data processing on the service data in the network request according to the version information in the network request.
  • the method further includes:
  • the update module 15 is configured to update the version of the business operation.
  • the generating module 12 includes:
  • a first adding unit 121 configured to add the version information to the request header of the network request
  • the second adding unit 122 is configured to add the service data to the request body of the network request.
  • the present invention further provides a server 2, including:
  • the calling module 21 is configured to invoke the service logic corresponding to the service operation version information in the network request;
  • the processing module 22 is configured to process the service data in the network request according to the service logic, and obtain the processing Result
  • the second sending module 23 is configured to send the processing result to the client.
  • the processing module 22 includes: [0121] the service data includes a service type and a service parameter;
  • the verification unit 221 is configured to verify the validity of the service parameter according to the service type, and obtain a verification result; the verification result includes that the service parameter is legal and the service parameter is invalid;
  • the execution unit 222 is configured to: if the verification result is that the service parameter is legal, obtain the corresponding processing result according to the service logic processing the service parameter;
  • the setting unit 223 is configured to: if the verification result is that the service parameter is invalid, set the processing result to a service parameter error.
  • the method further includes:
  • the third obtaining module 24 is configured to obtain the service operation version information from the request header of the network request.
  • the identification module 25 is configured to identify data in the request body of the network request according to the service operation version information, to obtain the service data.
  • the present invention further provides a service data processing system, including:
  • the first obtaining module 11 is configured to acquire, by the client 1, version information of the service operation and service data corresponding to the service operation;
  • a generating module 12 configured to be used by the client 1 to generate a network request according to the version information and the service data;
  • the first sending module 13, is used by the client 1 to send the network request to the server 2;
  • the calling module 21 is configured to: the server 2 invokes a service logic corresponding to the version information in the network request.
  • the processing module 22 is configured to: the server 2 processes the service data according to the service logic, and obtains a processing result;
  • the second sending module 23 is configured to send, by the server 2, the processing result to the client 1.
  • the method further includes:
  • the update module 15 is for the client 1 to update the version of the business operation.
  • the generating module 12 includes:
  • the first adding unit 121 is configured to: add, by the client, the version information to the request header of the network request;
  • the second adding unit 122 is configured to: the client 1 adds the service data to the request body of the network request. [0141] Further, the processing module 22 includes:
  • the service data includes a service type and a service parameter
  • the verification unit 221 is configured to be used by the server 2 to verify the validity of the service parameter according to the service type, and obtain a verification result; the verification result includes that the service parameter is legal and the service parameter is invalid;
  • the executing unit 222 is configured to: if the verification result is that the service parameter is legal, the server 2 processes the service parameter according to the service logic, and obtains a corresponding processing result;
  • the setting unit 223 is configured to: if the verification result is that the service parameter is invalid, the server 2 sets the processing result to a service parameter error.
  • the method further includes:
  • the third obtaining module 24 is configured to be used by the server 2 to obtain the version information from a request header of the network request.
  • the identification module 25 is configured to identify, by the server 2, the data in the request body of the network request according to the version information, to obtain the service data.
  • Embodiment 1 of the present invention is:
  • This embodiment provides a service data processing method, including:
  • Embodiment 2 of the present invention is:
  • the embodiment provides a client 1, including:
  • an update module 15 for updating a version of the service operation the first obtaining module 11 acquiring a service operation The version information and the service data corresponding to the service operation; the generating module 12 generates a network request according to the version information and the service data; wherein the generating module 12 includes a first adding unit 121 and a second adding unit 122; The first adding unit 121 adds the version information to the request header of the network request; the second adding unit 122 adds the service data to the request body of the network request; and the first sending module 13 sends the network request to the service.
  • the second obtaining module 14 obtains a processing result of performing data processing on the service data in the network request by the server according to the version information in the network request.
  • Embodiment 3 of the present invention is:
  • This embodiment provides a service data processing method, including:
  • the service data includes a service type and a service parameter.
  • S42 Verify the validity of the service parameter according to the service type, and obtain a verification result; the verification result includes the legality of the service parameter and the service parameter being invalid;
  • Embodiment 4 of the present invention is:
  • the embodiment provides a server 2, including:
  • the third obtaining module 24 acquires the service operation version information from the request header of the network request; [0178] the identification module 25 identifies the data in the request body of the network request according to the service operation version information, Obtaining the business data;
  • the calling module 21 invokes the business logic corresponding to the service operation version information in the network request; [0180] The processing module 22 processes the service data in the network request according to the service logic, and obtains a processing result.
  • the processing module 22 includes a verification unit 221, an execution unit 222, and a setting unit 223.
  • the service data includes a service type and a service parameter.
  • the verification unit 221 verifies the legality of the service parameter according to the service type. And the verification result includes: the service parameter is legal and the service parameter is invalid; the execution unit 222, if the verification result is that the service parameter is legal, processing the service parameter according to the service logic to obtain a corresponding processing result; If the verification result is that the service parameter is invalid, the unit 223 sets the processing result to be a service parameter error.
  • the second sending module 23 sends the processing result to the client.
  • Embodiment 5 of the present invention is:
  • This embodiment provides a service data processing method, including:
  • the client obtains version information of the service operation and service data corresponding to the service operation.
  • the client generates a network request according to the version information and the service data; specifically:
  • the HEAD field of the TTP request for example, the version number of the client service operation is TMS_Ver.00.01, and the client adds the version number to the HTTP by httpGet.addHeader("tms Version", "TMS_Ver.00.01") after sending the HTTP request.
  • the specific service data is placed in the BODY domain, where the service data includes the service type and other service parameters.
  • the server obtains the version information from a request header of the network request.
  • the server obtains the version information TMS_Ver.00.01 in the HTTP request header by using HttpserletRequest.getHeader("tms Version"); [0196] S6.
  • the server identifies the data in the request body of the network request according to the version information, and obtains the service data.
  • the key value pair is obtained from the BODY field of the HTTP request;
  • the KEY in the key value pair represents the name of the service parameter, and the VALUE in the key value pair represents the service parameter. Value; for example, a key-value pair is ⁇ username", "Zhangshan” >;
  • the server invokes a service logic corresponding to version information in the network request.
  • the server stores the service logic corresponding to the service operation with different version information, and can quickly locate and invoke the adapted service logic according to the version information; for example, the server stores two different version definitions.
  • the business logic of polling the business operation wherein, the business logic 1 corresponding to the version information TMS_Ver.00.01 is required to provide the client serial number by the client, and the business logic 2 corresponding to the version information TMS_Ver.00.02 is required to be provided by the client.
  • Two business parameters of the terminal serial number and the client model Obviously, if the service parameters and business logic are not adapted, the operation error occurs; therefore, when the server recognizes that the service operation version of the client is TMS_Ver.00.01, the server invokes the service.
  • Logic 1 processes the service parameters carried in the HTTP request;
  • the server processes the service data according to the service logic, and obtains a processing result; specifically:
  • the service data includes a service type and a service parameter.
  • the server verifies the validity of the service parameter according to the service type, and obtains a verification result.
  • the verification result includes that the service parameter is legal and the service parameter is invalid.
  • the server processes the service parameter according to the service logic, and obtains a corresponding processing result; otherwise, the server sets the processing result as a service parameter error;
  • Embodiment 6 of the present invention is:
  • this embodiment provides a service data processing system, including a client 1 and a server 2; [0209] wherein, as shown in FIG. 9, a plurality of clients 1 are connected to one server 2;
  • the client 1 includes a first obtaining module 11, a generating module 12, a first sending module 13, and an updating module 15;
  • the generating module 12 includes a first adding unit 121 and a second adding unit 122;
  • the server 2 includes a calling module 21, a processing module 22, a second sending module 23, a third obtaining module 24, and an identifying module 25;
  • the processing module 22 includes a verification unit 221, an execution unit 222, and a setting unit 223.
  • the present invention provides a service data processing method and system, by adding version information of a service operation to a network request, so that the server can quickly identify version information of a service operation requested by different clients. And invoking the corresponding service logic to process the service data carried in the network request according to the version information, compared with the prior art, shortening the server to identify the service data corresponding to the different versions of the service operations submitted by the client, thereby implementing
  • the server is compatible with the peers of multi-version business operations, effectively reducing the response time of the client performing business operations.
  • the client updates the version of the service operation, there is no need to create a new server to support the new version of the service operation, and there is no need to redeploy the connection relationship between the client and the server, thereby improving the convenience of updating the service operation.
  • the information contained in the request header of the network request can be directly and conveniently obtained.
  • the data in the request body needs to be parsed according to a specific data structure.
  • placing the version information in the request header is advantageous for enabling the server to quickly identify the version information of the business operation requested by the current client, thereby parsing the data in the request body according to the specific data structure, and shortening the server identification corresponding to the different version of the business operation.
  • the daytime of business data is advantageous for enabling the server to quickly identify the version information of the business operation requested by the current client, thereby parsing the data in the request body according to the specific data structure, and shortening the server identification corresponding to the different version of the business operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明涉及数据处理领域,尤其涉及一种业务数据处理方法、客户端、服务端及系统。本发明通过在网络请求中添加业务操作的版本信息,使得服务器可快速识别出不同客户端所请求的业务操作的版本信息,并根据版本信息调用对应的业务逻辑来处理网络请求中携带的业务数据,与现有技术相比,缩短了服务器识别客户端提交的不同版本业务操作对应的业务数据的时间,从而在实现服务器可兼容处理多版本的业务操作的同时,有效缩短客户端执行业务操作的响应时间。

Description

说明书 发明名称:一种业务数据处理方法、 客户端、 服务端及系统 技术领域
[0001] 本发明涉及数据处理领域, 尤其涉及一种业务数据处理方法、 客户端、 服务端 及系统。
背景技术
[0002] 服务器根据 POS机发送的网络请求 (如, HTTP请求和 HTTPS请求) 处理对应 的业务操作, 包括交易、 査询卡余额、 结算操作、 同步交易密钥等。 如, 为了 完成交易操作, POS机需获取卡号和密码, 并将卡号和密码封装至网络传输协议 的 BODY域; 通过 POS机向服务器发送网络请求, 使得服务器获取到网络传输协 议的 BODY域所携带的业务数据, 即卡号和密码, 并根据所述业务数据执行交易 操作, 将交易操作的结果反馈至 POS机。 但是, 为了适应市场的需求, 需不断更 新或扩充 POS机的功能。 如, 为了提高交易过程的安全性, 除了验证卡号和密码 是否匹配, 还需验证用户提供的随机码是否与服务器下发至用户终端的随机码 相同。 因此, 为了完成交易操作, POS机需同吋向服务器提供卡号、 密码和随机 码。
[0003] 通常, 一台服务器可处理多台 POS机发送的网络请求, 与该服务器相连的多台 POS机可能采用的是不同的业务处理规则。 为了节省重新部署 POS机的成本, 每 一台服务器需可兼容处理多版本的业务操作。
[0004] 申请号为 200710073135.0的专利文献提供一种实现系统新旧版本兼容的方法及 装置, 所述的方法包括如下的步骤: a、 系统 B接收系统 A发送的数据流 D后, 所 述系统 B的适配模块根据系统 A的数据字典集将所述的数据流 D解析成格式化的 数据流 D' ; b、 所述的系统 B的适配器模块根据所述系统 B自身的数据字典集将所 属的数据流 D'解析为自身可以识别的数据流。 实现了版本升级过程中数据适配 与具体的数据流无关, 使得新旧版本可以共存, 并且新旧版本之间可以互相转 换。
[0005] 但是, 上述专利文献提供的实现系统新旧版本兼容的方法需先获取系统 A的数 据字典, 并对数据流进行两次解析后, 才可根据解析得到的数据流执行对应的 业务操作, 造成用户通过系统 A发出业务数据至系统 A反馈数据处理结果的响应 吋间长, 尤其是在网络请求并发的情况下极大程度上延长了客户端的响应吋间 , 影响用户体验。 同理, 除 POS机与服务器进行数据交互以完成业务操作的场景 夕卜, 其它通过客户端与服务器进行数据交互从而实现对应功能的系统存在相同 的问题。
技术问题
[0006] 本发明所要解决的技术问题是: 在实现服务器可兼容处理多版本的业务操作的 同吋, 如何缩短客户端执行业务操作的响应吋间。
问题的解决方案
技术解决方案
[0007] 本发明所要解决的技术问题是: 在实现服务器可兼容处理多版本的业务操作的 同吋, 如何缩短客户端执行业务操作的响应吋间。
[0008] 为了解决上述技术问题, 本发明采用的技术方案为:
[0009] 本发明提供一种业务数据处理方法, 包括:
[0010] 获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0011] 根据所述版本信息和所述业务数据生成网络请求;
[0012] 发送所述网络请求至服务端;
[0013] 获取服务端根据所述网络请求中的版本信息对所述网络请求中的业务数据进行 数据处理的处理结果。
[0014] 本发明提供一种客户端, 包括:
[0015] 第一获取模块, 用于获取业务操作的版本信息和与所述业务操作对应的业务数 据;
[0016] 生成模块, 用于根据所述版本信息和所述业务数据生成网络请求;
[0017] 第一发送模块, 用于发送所述网络请求至服务端;
[0018] 第二获取模块, 用于获取服务端根据所述网络请求中的版本信息对所述网络请 求中的业务数据进行数据处理的处理结果。
[0019] 本发明还提供一种业务数据处理方法, 包括: [0020] 调用与网络请求中的业务操作版本信息对应的业务逻辑;
[0021] 根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果;
[0022] 发送所述处理结果至客户端。
[0023] 本发明还提供一种服务端, 包括:
[0024] 调用模块, 用于调用与网络请求中的业务操作版本信息对应的业务逻辑;
[0025] 处理模块, 用于根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理 结果;
[0026] 第二发送模块, 用于发送所述处理结果至客户端。
[0027]
[0028] 本发明另提供一种业务数据处理方法, 包括:
[0029] 客户端获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0030] 客户端根据所述版本信息和所述业务数据生成网络请求;
[0031] 客户端发送所述网络请求至服务端;
[0032] 服务端调用与所述网络请求中的版本信息对应的业务逻辑;
[0033] 服务端根据所述业务逻辑处理所述业务数据, 得到处理结果;
[0034] 服务端发送所述处理结果至客户端。
[0035] 本发明另提供一种业务数据处理系统, 包括:
[0036] 第一获取模块, 用于客户端获取业务操作的版本信息和与所述业务操作对应的 业务数据;
[0037] 生成模块, 用于客户端根据所述版本信息和所述业务数据生成网络请求;
[0038] 第一发送模块, 用于客户端发送所述网络请求至服务端;
[0039] 调用模块, 用于服务端调用与所述网络请求中的版本信息对应的业务逻辑;
[0040] 处理模块, 用于服务端根据所述业务逻辑处理所述业务数据, 得到处理结果;
[0041] 第二发送模块, 用于服务端发送所述处理结果至客户端。
发明的有益效果
有益效果
[0042] 本发明的有益效果在于: 通过在网络请求中添加业务操作的版本信息, 使得服 务器可快速识别出不同客户端所请求的业务操作的版本信息, 并根据版本信息 调用对应的业务逻辑来处理网络请求中携带的业务数据, 与现有技术相比, 缩 短了服务器识别客户端提交的不同版本业务操作对应的业务数据的吋间, 从而 在实现服务器可兼容处理多版本的业务操作的同吋, 有效缩短客户端执行业务 操作的响应吋间。
对附图的简要说明
附图说明
[0043] 图 1为本发明提供的一种业务数据处理方法的具体实施方式的流程框图;
[0044] 图 2为本发明还提供的一种业务数据处理方法具体实施方式的流程框图;
[0045] 图 3为本发明另提供的一种业务数据处理方法具体实施方式的流程框图;
[0046] 图 4为本发明提供的一种客户端的具体实施方式的结构框图;
[0047] 图 5为本发明提供的一种服务端的具体实施方式的结构框图;
[0048] 图 6为本发明提供的一种业务数据处理系统的具体实施方式的结构框图;
[0049] 图 7为本发明提供的一种客户端的具体实施方式的进一步结构框图;
[0050] 图 8为本发明提供的一种服务端的具体实施方式的进一步结构框图;
[0051] 图 9为本发明提供的客户端与服务端的部署示意图;
[0052] 图 10为本发明提供的一种业务数据处理系统的具体实施方式的进一步结构框图 [0053] 标号说明:
[0054] 1、 客户端; 11、 第一获取模块; 12、 生成模块; 121、 第一添加单元; 122、 第二添加单元; 13、 第一发送模块; 14、 第二获取模块; 15、 更新模块; 21、 调用模块; 22、 处理模块; 221、 验证单元; 222、 执行单元; 223、 设置单元; 23、 第二发送模块; 24、 第三获取模块; 25、 识别模块。
具体实施方式
[0055] 请参照图 1至图 10,
[0056] 如图 1所示, 本发明提供一种业务数据处理方法, 包括:
[0057] 获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0058] 根据所述版本信息和所述业务数据生成网络请求; [0059] 发送所述网络请求至服务端;
[0060] 获取服务端根据所述网络请求中的版本信息对所述网络请求中的业务数据进行 数据处理的处理结果。
[0061] 进一步地, 还包括:
[0062] 更新所述业务操作的版本。
[0063] 由上述描述可知, 客户端更新业务操作的版本后, 无需新建一服务器以支持新 版本的业务操作, 也无需重新部署客户端与服务器之间的连接关系, 提高更新 业务操作的便利性。
[0064] 进一步地, 根据所述版本信息和所述业务数据生成网络请求, 具体为:
[0065] 添加所述版本信息至所述网络请求的请求头;
[0066] 添加所述业务数据至所述网络请求的请求体。
[0067] 由上述描述可知, 基于现有的网络传输机制, 可直接地、 便捷地获取网络请求 的请求头中所包含的信息。 但是, 请求体中的数据需要根据特定的数据结构进 行解析。 因此, 将版本信息置于请求头有利于使服务器快速识别出当前客户端 请求的业务操作的版本信息。
[0068]
[0069] 如图 2所示, 本发明还提供一种业务数据处理方法, 包括:
[0070] 调用与网络请求中的业务操作版本信息对应的业务逻辑;
[0071] 根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果;
[0072] 发送所述处理结果至客户端。
[0073] 进一步地, 根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果 , 具体为:
[0074] 所述业务数据包括业务类型和业务参数;
[0075] 根据所述业务类型验证所述业务参数的合法性, 得到验证结果; 所述验证结果 包括业务参数合法和业务参数不合法;
[0076] 若所述验证结果为业务参数合法, 则根据所述业务逻辑处理所述业务参数得到 对应的处理结果; 否则:
[0077] 设置所述处理结果为业务参数错误。 [0078] 由上述描述可知, 通过业务参数合法性校验, 可以过滤掉很多无效的业务请求
, 减少系统的处理压力。
[0079] 进一步地, 还包括:
[0080] 从所述网络请求的请求头中获取所述业务操作版本信息;
[0081] 根据所述业务操作版本信息识别所述网络请求的请求体中的数据, 得到所述业 务数据。
[0082] 由上述描述可知, 基于现有的网络传输机制, 可直接地、 便捷地获取网络请求 的请求头中所包含的信息。 但是, 请求体中的数据需要根据特定的数据结构进 行解析。 因此, 将版本信息置于请求头有利于使服务器快速识别出当前客户端 请求的业务操作的版本信息, 从而根据特定的数据结构解析请求体中的数据, 缩短了服务器识别不同版本业务操作对应的业务数据的吋间。
[0083]
[0084] 如图 3所示, 本发明另提供一种业务数据处理方法, 包括:
[0085] 客户端获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0086] 客户端根据所述版本信息和所述业务数据生成网络请求;
[0087] 客户端发送所述网络请求至服务端;
[0088] 服务端调用与所述网络请求中的版本信息对应的业务逻辑;
[0089] 服务端根据所述业务逻辑处理所述业务数据, 得到处理结果;
[0090] 服务端发送所述处理结果至客户端。
[0091] 进一步地, 还包括:
[0092] 客户端更新所述业务操作的版本。
[0093] 进一步地, 客户端根据所述版本信息和所述业务数据生成网络请求, 具体为: [0094] 客户端添加所述版本信息至所述网络请求的请求头;
[0095] 客户端添加所述业务数据至所述网络请求的请求体。
[0096] 进一步地, 服务端根据所述业务逻辑处理所述业务数据, 得到处理结果, 具体 为:
[0097] 所述业务数据包括业务类型和业务参数;
[0098] 服务端根据所述业务类型验证所述业务参数的合法性, 得到验证结果; 所述验 证结果包括业务参数合法和业务参数不合法;
[0099] 若所述验证结果为业务参数合法, 则服务端根据所述业务逻辑处理所述业务参 数, 得到对应的处理结果; 否则:
[0100] 服务端设置所述处理结果为业务参数错误。
[0101] 进一步地, 还包括:
[0102] 服务端从所述网络请求的请求头中获取所述版本信息;
[0103] 服务端根据所述版本信息识别所述网络请求的请求体中的数据, 得到所述业务 数据。
[0104]
[0105] 如图 4所示, 本发明提供一种客户端 1, 包括:
[0106] 第一获取模块 11, 用于获取业务操作的版本信息和与所述业务操作对应的业务 数据;
[0107] 生成模块 12, 用于根据所述版本信息和所述业务数据生成网络请求;
[0108] 第一发送模块 13, 用于发送所述网络请求至服务端;
[0109] 第二获取模块 14, 用于获取服务端根据所述网络请求中的版本信息对所述网络 请求中的业务数据进行数据处理的处理结果。
[0110] 进一步地, 还包括:
[0111] 更新模块 15, 用于更新所述业务操作的版本。
[0112] 进一步地, 所述生成模块 12包括:
[0113] 第一添加单元 121, 用于添加所述版本信息至所述网络请求的请求头;
[0114] 第二添加单元 122, 用于添加所述业务数据至所述网络请求的请求体。
[0115]
[0116] 如图 5所示, 本发明还提供一种服务端 2, 包括:
[0117] 调用模块 21, 用于调用与网络请求中的业务操作版本信息对应的业务逻辑; [0118] 处理模块 22, 用于根据所述业务逻辑处理所述网络请求中的业务数据, 得到处 理结果;
[0119] 第二发送模块 23, 用于发送所述处理结果至客户端。
[0120] 进一步地, 所述处理模块 22包括: [0121] 所述业务数据包括业务类型和业务参数;
[0122] 验证单元 221, 用于根据所述业务类型验证所述业务参数的合法性, 得到验证 结果; 所述验证结果包括业务参数合法和业务参数不合法;
[0123] 执行单元 222, 用于若所述验证结果为业务参数合法, 则根据所述业务逻辑处 理所述业务参数得到对应的处理结果;
[0124] 设置单元 223, 用于若所述验证结果为业务参数不合法, 则设置所述处理结果 为业务参数错误。
[0125] 进一步地, 还包括:
[0126] 第三获取模块 24, 用于从所述网络请求的请求头中获取所述业务操作版本信息
[0127] 识别模块 25, 用于根据所述业务操作版本信息识别所述网络请求的请求体中的 数据, 得到所述业务数据。
[0128]
[0129] 如图 6所示, 本发明另提供一种业务数据处理系统, 包括:
[0130] 第一获取模块 11, 用于客户端 1获取业务操作的版本信息和与所述业务操作对 应的业务数据;
[0131] 生成模块 12, 用于客户端 1根据所述版本信息和所述业务数据生成网络请求;
[0132] 第一发送模块 13, 用于客户端 1发送所述网络请求至服务端 2;
[0133] 调用模块 21, 用于服务端 2调用与所述网络请求中的版本信息对应的业务逻辑
[0134] 处理模块 22, 用于服务端 2根据所述业务逻辑处理所述业务数据, 得到处理结 果;
[0135] 第二发送模块 23, 用于服务端 2发送所述处理结果至客户端 1。
[0136] 进一步地, 还包括:
[0137] 更新模块 15, 用于客户端 1更新所述业务操作的版本。
[0138] 进一步地, 所述生成模块 12包括:
[0139] 第一添加单元 121, 用于客户端 1添加所述版本信息至所述网络请求的请求头;
[0140] 第二添加单元 122, 用于客户端 1添加所述业务数据至所述网络请求的请求体。 [0141] 进一步地, 所述处理模块 22包括:
[0142] 所述业务数据包括业务类型和业务参数;
[0143] 验证单元 221, 用于服务端 2根据所述业务类型验证所述业务参数的合法性, 得 到验证结果; 所述验证结果包括业务参数合法和业务参数不合法;
[0144] 执行单元 222, 用于若所述验证结果为业务参数合法, 则服务端 2根据所述业务 逻辑处理所述业务参数, 得到对应的处理结果;
[0145] 设置单元 223, 用于若所述验证结果为业务参数不合法, 则服务端 2设置所述处 理结果为业务参数错误。
[0146] 进一步地, 还包括:
[0147] 第三获取模块 24, 用于服务端 2从所述网络请求的请求头中获取所述版本信息
[0148] 识别模块 25, 用于服务端 2根据所述版本信息识别所述网络请求的请求体中的 数据, 得到所述业务数据。
[0149]
[0150] 本发明的实施例一为:
[0151] 本实施例提供一种业务数据处理方法, 包括:
[0152] Sl、 更新所述业务操作的版本;
[0153] S2、 获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0154] S3、 根据所述版本信息和所述业务数据生成网络请求; 具体为:
[0155] S31、 添加所述版本信息至所述网络请求的请求头;
[0156] S32、 添加所述业务数据至所述网络请求的请求体;
[0157] S4、 发送所述网络请求至服务端;
[0158] S5、 获取服务端根据所述网络请求中的版本信息对所述网络请求中的业务数据 进行数据处理的处理结果。
[0159]
[0160] 本发明的实施例二为:
[0161] 如图 7所示, 本实施例提供一种客户端 1, 包括:
[0162] 更新模块 15, 用于更新所述业务操作的版本; 第一获取模块 11获取业务操作的 版本信息和与所述业务操作对应的业务数据; 生成模块 12根据所述版本信息和 所述业务数据生成网络请求; 其中, 所述生成模块 12包括第一添加单元 121和第 二添加单元 122; 第一添加单元 121添加所述版本信息至所述网络请求的请求头 ; 第二添加单元 122添加所述业务数据至所述网络请求的请求体; 第一发送模块 13发送所述网络请求至服务端; 第二获取模块 14获取服务端根据所述网络请求 中的版本信息对所述网络请求中的业务数据进行数据处理的处理结果。
[0163]
[0164] 本发明的实施例三为:
[0165] 本实施例提供一种业务数据处理方法, 包括:
[0166] Sl、 调用与网络请求中的业务操作版本信息对应的业务逻辑;
[0167] S2、 从所述网络请求的请求头中获取所述业务操作版本信息;
[0168] S3、 根据所述业务操作版本信息识别所述网络请求的请求体中的数据, 得到所 述业务数据;
[0169] S4、 根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果; 具体 为:
[0170] S41、 所述业务数据包括业务类型和业务参数;
[0171] S42、 根据所述业务类型验证所述业务参数的合法性, 得到验证结果; 所述验 证结果包括业务参数合法和业务参数不合法;
[0172] S43、 若所述验证结果为业务参数合法, 则根据所述业务逻辑处理所述业务参 数得到对应的处理结果; 否则: 设置所述处理结果为业务参数错误;
[0173] S5、 发送所述处理结果至客户端。
[0174]
[0175] 本发明的实施例四为:
[0176] 如图 8所示, 本实施例提供一种服务端 2, 包括:
[0177] 第三获取模块 24从所述网络请求的请求头中获取所述业务操作版本信息; [0178] 识别模块 25根据所述业务操作版本信息识别所述网络请求的请求体中的数据, 得到所述业务数据;
[0179] 调用模块 21调用与网络请求中的业务操作版本信息对应的业务逻辑; [0180] 处理模块 22根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果
[0181] 其中, 所述处理模块 22包括验证单元 221、 执行单元 222和设置单元 223; 所述 业务数据包括业务类型和业务参数; 验证单元 221根据所述业务类型验证所述业 务参数的合法性, 得到验证结果; 所述验证结果包括业务参数合法和业务参数 不合法; 执行单元 222若所述验证结果为业务参数合法, 则根据所述业务逻辑处 理所述业务参数得到对应的处理结果; 设置单元 223若所述验证结果为业务参数 不合法, 则设置所述处理结果为业务参数错误;
[0182] 第二发送模块 23发送所述处理结果至客户端。
[0183]
[0184] 本发明的实施例五为:
[0185] 本实施例提供一种业务数据处理方法, 包括:
[0186] Sl、 客户端更新所述业务操作的版本;
[0187] S2、 客户端获取业务操作的版本信息和与所述业务操作对应的业务数据;
[0188] S3、 客户端根据所述版本信息和所述业务数据生成网络请求; 具体为:
[0189] S31、 客户端添加所述版本信息至所述网络请求的请求头;
[0190] 其中, 所述客户端与服务端建立连接吋, 客户端把业务操作的版本信息放入 H
TTP请求的 HEAD域; 例如, 客户端业务操作的版本号为 TMS_Ver.00.01, 客户 端在发送 HTTP请求吋, 通过 httpGet.addHeader("tms Version", "TMS_Ver.00.01") 将版本号添加至 HTTP请求;
[0191] S32、 客户端添加所述业务数据至所述网络请求的请求体;
[0192] 其中, 将具体的业务数据放入 BODY域, 所述业务数据包括业务类型及其他业 务参数; 例如, 业务类型 type=X01表示客户端定吋轮询的业务, 则业务参数包 括客户端系列号、 型号等信息;
[0193] S4、 客户端发送所述网络请求至服务端;
[0194] S5、 服务端从所述网络请求的请求头中获取所述版本信息;
[0195] 其中, 服务端通过 HttpserletRequest.getHeader("tms Version")获取 HTTP请求头中 的版本信息 TMS_Ver.00.01; [0196] S6、 服务端根据所述版本信息识别所述网络请求的请求体中的数据, 得到所述 业务数据;
[0197] 其中, 根据与版本信息 TMS_Ver.00.01对应的数据结构, 从 HTTP请求的 BODY 域中获取键值对; 键值对中的 KEY表示业务参数的名称, 键值对中的 VALUE表 示业务参数的值; 例如, 一键值对为 < "用户名", "张山" >;
[0198] S7、 服务端调用与所述网络请求中的版本信息对应的业务逻辑;
[0199] 其中, 服务端中存储有与具有不同版本信息的业务操作对应的业务逻辑, 可根 据版本信息快速定位并调用适配的业务逻辑; 例如, 服务端中存储有两个不同 版本定吋轮询业务操作的业务逻辑; 其中, 执行与版本信息 TMS_Ver.00.01对应 的业务逻辑 1需由客户端提供客户端系列号, 执行与版本信息 TMS_Ver.00.02对 应的业务逻辑 2需由客户端提供客户端系列号和客户端型号两个业务参数; 显然 , 若业务参数和业务逻辑不适配会造成操作出错; 因此, 当服务端识别到客户 端的业务操作版本为 TMS_Ver.00.01吋, 服务端调用业务逻辑 1处理 HTTP请求中 携带的业务参数;
[0200] 这样对于一个系统来说, 可以在服务端地址不变的情况下, 充分兼容客户端的 各种版本业务操作请求, 解决了以前由于业务升级, 执行业务操作所需的业务 参数发生变更就需要重新建一个后台服务来迁就这一变化的诟病;
[0201] S8、 服务端根据所述业务逻辑处理所述业务数据, 得到处理结果; 具体为:
[0202] S81、 所述业务数据包括业务类型和业务参数;
[0203] S82、 服务端根据所述业务类型验证所述业务参数的合法性, 得到验证结果; 所述验证结果包括业务参数合法和业务参数不合法;
[0204] S83、 若所述验证结果为业务参数合法, 则服务端根据所述业务逻辑处理所述 业务参数, 得到对应的处理结果; 否则服务端设置所述处理结果为业务参数错 误;
[0205] S9、 服务端发送所述处理结果至客户端。
[0206]
[0207] 本发明的实施例六为:
[0208] 如图 10所示, 本实施例提供一种业务数据处理系统, 包括客户端 1和服务端 2; [0209] 其中, 如图 9所示, 多个客户端 1与一个服务端 2连接;
[0210] 所述客户端 1包括第一获取模块 11、 生成模块 12、 第一发送模块 13、 更新模块 1 5;
[0211] 其中, 所述生成模块 12包括第一添加单元 121和第二添加单元 122;
[0212] 所述服务端 2包括调用模块 21、 处理模块 22、 第二发送模块 23、 第三获取模块 2 4、 识别模块 25;
[0213] 其中, 所述处理模块 22包括验证单元 221、 执行单元 222和设置单元 223。
[0214]
[0215] 综上所述, 本发明提供的一种业务数据处理方法及系统, 通过在网络请求中添 加业务操作的版本信息, 使得服务器可快速识别出不同客户端所请求的业务操 作的版本信息, 并根据版本信息调用对应的业务逻辑来处理网络请求中携带的 业务数据, 与现有技术相比, 缩短了服务器识别客户端提交的不同版本业务操 作对应的业务数据的吋间, 从而在实现服务器可兼容处理多版本的业务操作的 同吋, 有效缩短客户端执行业务操作的响应吋间。 进一步地, 由上述描述可知 , 客户端更新业务操作的版本后, 无需新建一服务器以支持新版本的业务操作 , 也无需重新部署客户端与服务器之间的连接关系, 提高更新业务操作的便利 性。 进一步地, 基于现有的网络传输机制, 可直接地、 便捷地获取网络请求的 请求头中所包含的信息。 但是, 请求体中的数据需要根据特定的数据结构进行 解析。 因此, 将版本信息置于请求头有利于使服务器快速识别出当前客户端请 求的业务操作的版本信息, 从而根据特定的数据结构解析请求体中的数据, 缩 短了服务器识别不同版本业务操作对应的业务数据的吋间。
[0216]

Claims

权利要求书
一种业务数据处理方法, 其特征在于, 包括:
获取业务操作的版本信息和与所述业务操作对应的业务数据; 根据所述版本信息和所述业务数据生成网络请求;
发送所述网络请求至服务端;
获取服务端根据所述网络请求中的版本信息对所述网络请求中的业务 数据进行数据处理的处理结果。
根据权利要求 1所述的业务数据处理方法, 其特征在于, 还包括: 更新所述业务操作的版本。
根据权利要求 1所述的业务数据处理方法, 其特征在于, 根据所述版 本信息和所述业务数据生成网络请求, 具体为:
添加所述版本信息至所述网络请求的请求头;
添加所述业务数据至所述网络请求的请求体。
一种业务数据处理方法, 其特征在于, 包括:
调用与网络请求中的业务操作版本信息对应的业务逻辑; 根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果; 发送所述处理结果至客户端。
根据权利要求 4所述的业务数据处理方法, 其特征在于, 根据所述业 务逻辑处理所述网络请求中的业务数据, 得到处理结果, 具体为: 所述业务数据包括业务类型和业务参数;
根据所述业务类型验证所述业务参数的合法性, 得到验证结果; 所述 验证结果包括业务参数合法和业务参数不合法;
若所述验证结果为业务参数合法, 则根据所述业务逻辑处理所述业务 参数得到对应的处理结果; 否则:
设置所述处理结果为业务参数错误。
根据权利要求 4所述的业务数据处理方法, 其特征在于, 还包括: 从所述网络请求的请求头中获取所述业务操作版本信息;
根据所述业务操作版本信息识别所述网络请求的请求体中的数据, 得 到所述业务数据。
一种业务数据处理方法, 其特征在于, 包括:
客户端获取业务操作的版本信息和与所述业务操作对应的业务数据; 客户端根据所述版本信息和所述业务数据生成网络请求;
客户端发送所述网络请求至服务端;
服务端调用与所述网络请求中的版本信息对应的业务逻辑; 服务端根据所述业务逻辑处理所述业务数据, 得到处理结果; 服务端发送所述处理结果至客户端。
根据权利要求 7所述的业务数据处理方法, 其特征在于, 还包括: 客户端更新所述业务操作的版本。
根据权利要求 7所述的业务数据处理方法, 其特征在于, 客户端根据 所述版本信息和所述业务数据生成网络请求, 具体为:
客户端添加所述版本信息至所述网络请求的请求头;
客户端添加所述业务数据至所述网络请求的请求体。
根据权利要求 7所述的业务数据处理方法, 其特征在于, 服务端根据 所述业务逻辑处理所述业务数据, 得到处理结果, 具体为: 所述业务数据包括业务类型和业务参数;
服务端根据所述业务类型验证所述业务参数的合法性, 得到验证结果
; 所述验证结果包括业务参数合法和业务参数不合法;
若所述验证结果为业务参数合法, 则服务端根据所述业务逻辑处理所 述业务参数, 得到对应的处理结果; 否则:
服务端设置所述处理结果为业务参数错误。
根据权利要求 7所述的业务数据处理方法, 其特征在于, 还包括: 服务端从所述网络请求的请求头中获取所述版本信息;
服务端根据所述版本信息识别所述网络请求的请求体中的数据, 得到 所述业务数据。
一种客户端, 其特征在于, 包括:
第一获取模块, 用于获取业务操作的版本信息和与所述业务操作对应 的业务数据;
生成模块, 用于根据所述版本信息和所述业务数据生成网络请求; 第一发送模块, 用于发送所述网络请求至服务端;
第二获取模块, 用于获取服务端根据所述网络请求中的版本信息对所 述网络请求中的业务数据进行数据处理的处理结果。
根据权利要求 12所述的客户端, 其特征在于, 还包括:
更新模块, 用于更新所述业务操作的版本。
根据权利要求 12所述的客户端, 其特征在于, 所述生成模块包括: 第一添加单元, 用于添加所述版本信息至所述网络请求的请求头; 第二添加单元, 用于添加所述业务数据至所述网络请求的请求体。 一种服务端, 其特征在于, 包括:
调用模块, 用于调用与网络请求中的业务操作版本信息对应的业务逻 辑;
处理模块, 用于根据所述业务逻辑处理所述网络请求中的业务数据, 得到处理结果;
第二发送模块, 用于发送所述处理结果至客户端。
根据权利要求 15所述的服务端, 其特征在于, 所述处理模块包括: 所述业务数据包括业务类型和业务参数;
验证单元, 用于根据所述业务类型验证所述业务参数的合法性, 得到 验证结果; 所述验证结果包括业务参数合法和业务参数不合法; 执行单元, 用于若所述验证结果为业务参数合法, 则根据所述业务逻 辑处理所述业务参数得到对应的处理结果;
设置单元, 用于若所述验证结果为业务参数不合法, 则设置所述处理 结果为业务参数错误。
根据权利要求 15所述的服务端, 其特征在于, 还包括:
第三获取模块, 用于从所述网络请求的请求头中获取所述业务操作版 本信息;
识别模块, 用于根据所述业务操作版本信息识别所述网络请求的请求 体中的数据, 得到所述业务数据。
一种业务数据处理系统, 其特征在于, 包括:
第一获取模块, 用于客户端获取业务操作的版本信息和与所述业务操 作对应的业务数据;
生成模块, 用于客户端根据所述版本信息和所述业务数据生成网络请 求;
第一发送模块, 用于客户端发送所述网络请求至服务端;
调用模块, 用于服务端调用与所述网络请求中的版本信息对应的业务 逻辑;
处理模块, 用于服务端根据所述业务逻辑处理所述业务数据, 得到处 理结果;
第二发送模块, 用于服务端发送所述处理结果至客户端。
根据权利要求 18所述的业务数据处理系统, 其特征在于, 还包括: 更新模块, 用于客户端更新所述业务操作的版本。
根据权利要求 18所述的业务数据处理系统, 其特征在于, 所述生成模 块包括:
第一添加单元, 用于客户端添加所述版本信息至所述网络请求的请求 头;
第二添加单元, 用于客户端添加所述业务数据至所述网络请求的请求 体。
根据权利要求 18所述的业务数据处理系统, 其特征在于, 所述处理模 块包括:
所述业务数据包括业务类型和业务参数;
验证单元, 用于服务端根据所述业务类型验证所述业务参数的合法性 , 得到验证结果; 所述验证结果包括业务参数合法和业务参数不合法 执行单元, 用于若所述验证结果为业务参数合法, 则服务端根据所述 业务逻辑处理所述业务参数, 得到对应的处理结果; 设置单元, 用于若所述验证结果为业务参数不合法, 则服务端设置所 述处理结果为业务参数错误。
[权利要求 22] 根据权利要求 18所述的业务数据处理系统, 其特征在于, 还包括: 第三获取模块, 用于服务端从所述网络请求的请求头中获取所述版本 f π息;
识别模块, 用于服务端根据所述版本信息识别所述网络请求的请求体 中的数据, 得到所述业务数据。
PCT/CN2017/095609 2017-08-02 2017-08-02 一种业务数据处理方法、客户端、服务端及系统 WO2019023976A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780000797.7A CN107637052A (zh) 2017-08-02 2017-08-02 一种业务数据处理方法、客户端、服务端及系统
PCT/CN2017/095609 WO2019023976A1 (zh) 2017-08-02 2017-08-02 一种业务数据处理方法、客户端、服务端及系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/095609 WO2019023976A1 (zh) 2017-08-02 2017-08-02 一种业务数据处理方法、客户端、服务端及系统

Publications (1)

Publication Number Publication Date
WO2019023976A1 true WO2019023976A1 (zh) 2019-02-07

Family

ID=61107770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095609 WO2019023976A1 (zh) 2017-08-02 2017-08-02 一种业务数据处理方法、客户端、服务端及系统

Country Status (2)

Country Link
CN (1) CN107637052A (zh)
WO (1) WO2019023976A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256444A (zh) * 2019-07-22 2021-01-22 腾讯科技(深圳)有限公司 基于dag的业务处理方法、装置、服务器及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857439B (zh) * 2019-01-30 2020-11-20 腾讯科技(深圳)有限公司 一种游戏版本的更新方法及装置
CN112532513A (zh) * 2019-09-19 2021-03-19 上海淘票儿信息科技有限公司 网关及业务数据处理方法
CN111176715B (zh) * 2019-12-16 2023-05-12 青岛聚看云科技有限公司 一种信息调用方法及服务器
CN113676521A (zh) * 2021-07-29 2021-11-19 北京百度网讯科技有限公司 业务请求的响应方法、装置及电子设备
CN115208937A (zh) * 2022-07-07 2022-10-18 北京火山引擎科技有限公司 业务请求处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771960A (zh) * 2009-01-04 2010-07-07 中国移动通信集团公司 移动网络的业务调用方法、业务网关、业务平台和系统
WO2012155645A1 (zh) * 2011-09-01 2012-11-22 中兴通讯股份有限公司 基于p2p的无盘设备的网络启动方法及系统
CN104077663A (zh) * 2014-07-08 2014-10-01 信雅达系统工程股份有限公司 一种业务处理方法及系统
CN105956039A (zh) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 数据管理方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212417B (zh) * 2007-12-25 2010-04-21 中国科学院软件研究所 一种基于时间粒度的互联网服务质量保证方法
CN101272337B (zh) * 2007-12-27 2010-08-25 华为技术有限公司 业务数据处理方法与业务数据处理系统
CN102377602A (zh) * 2011-10-26 2012-03-14 国家广播电影电视总局广播科学研究院 数据流处理方法及系统
US9652334B2 (en) * 2015-01-29 2017-05-16 Microsoft Technology Licensing, Llc Increasing coordination service reliability

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771960A (zh) * 2009-01-04 2010-07-07 中国移动通信集团公司 移动网络的业务调用方法、业务网关、业务平台和系统
WO2012155645A1 (zh) * 2011-09-01 2012-11-22 中兴通讯股份有限公司 基于p2p的无盘设备的网络启动方法及系统
CN104077663A (zh) * 2014-07-08 2014-10-01 信雅达系统工程股份有限公司 一种业务处理方法及系统
CN105956039A (zh) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 数据管理方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256444A (zh) * 2019-07-22 2021-01-22 腾讯科技(深圳)有限公司 基于dag的业务处理方法、装置、服务器及存储介质
CN112256444B (zh) * 2019-07-22 2023-08-01 腾讯科技(深圳)有限公司 基于dag的业务处理方法、装置、服务器及存储介质

Also Published As

Publication number Publication date
CN107637052A (zh) 2018-01-26

Similar Documents

Publication Publication Date Title
WO2019023976A1 (zh) 一种业务数据处理方法、客户端、服务端及系统
JP6663001B2 (ja) 本人認証のための方法及び装置
CN103220259B (zh) Oauth API的使用、调用方法、设备及系统
RU2010123182A (ru) Способ аутентификации, система, сервер и клиент
WO2013131337A1 (zh) 一种基于云服务安装应用软件的方法、装置及系统
WO2009132529A1 (zh) 一种网页表单数据验证的方法和装置
WO2021031741A1 (zh) 网络电话处理方法、装置及终端
EP3582439A1 (en) Method for providing an over the air (ota) update to devices of an internet of things (iot) platform
WO2011144081A2 (zh) 用户业务鉴权方法、系统及服务器
WO2019210612A1 (zh) 身份认证方法及装置
CN110289956A (zh) 一种云音箱更新配置的方法及系统
WO2009009968A1 (fr) Procédé, dispositif et système pour acquérir des informations d&#39;ouverture de session
US9832198B2 (en) Service-based message access layer frame and implementation method thereof
CN113190724B (zh) 用户银行信息的查询方法、移动终端及服务器
WO2017128286A1 (zh) 一种下载签约文件的方法、相关设备及系统
CN111698097B (zh) 一种证书认证方法及装置
CN108924161A (zh) 一种交易数据加密通信方法及系统
CN113037480A (zh) 基于jsse的国密加密通信方法及其装置、存储介质
WO2022121492A1 (zh) 文件传输方法、装置、计算机设备及存储介质
CN106802832B (zh) Jenkins节点状态管理方法及装置
CN115314532A (zh) 一种配电终端与物联网主站信息交互方法及装置
WO2019184206A1 (zh) 身份认证方法及装置
CN115134091A (zh) 一种分布式数字身份标识符的管理方法
CN111193776B (zh) 云桌面环境下客户端自动登录方法、装置、设备和介质
CN109587180B (zh) 一种建立连接的方法、客户端及服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17920422

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17920422

Country of ref document: EP

Kind code of ref document: A1