Business processing method and device, equipment and storage medium
By receiving the virtual service code sent by the terminal and obtaining the real service code when the channel type and the service type match, the problem of poor service processing security in the prior art is solved, and the security of service processing is improved.
Patent Information
- Application Number
- CN202411024935.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-08
AI Technical Summary
The business processing security of existing business systems is poor. Users can easily obtain another business code through one business code, resulting in illegal business processing and threatening users' economic security.
By receiving the service processing requests sent by the terminal, the virtual service code is used to obtain the real service code, and the service processing is performed when the channel type and the service type match, ensuring that the real service code is not directly exposed and improving the security of service processing.
It effectively prevents the leakage of real business codes, reduces the risk of illegal business processing, improves the security of business processing, and prevents attackers from inferring real business codes through virtual business codes.
Smart Images

Figure CN118917934A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to technical fields such as data processing, and in particular, to a business processing method, apparatus, device and storage medium. Background Art
[0002] At present, the business processing of the business system is completed based on the business code. For example, the business code is "KX012Y345", which represents a deposit. For example, the business code is "KX012Y346", which represents a withdrawal.
[0003] In the related art, multiple service codes have encoding rules of specific types. Some users may easily obtain another service code through one service code, and then perform illegal service processing based on the obtained service code, resulting in poor security of service processing. Summary of the invention
[0004] The embodiments of the present application provide a business processing method, apparatus, device and storage medium for improving the security of real business codes, thereby improving the security of business processing.
[0005] In a first aspect, an embodiment of the present application provides a service processing method, which is applied to a server, and the method includes:
[0006] Receiving a service processing request sent by a terminal, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of a first service;
[0007] According to the virtual service code, obtaining a second channel type, a second service type and a real service code;
[0008] When the first channel type matches the second channel type, and the first service type matches the second service type, executing the service processing corresponding to the service processing request according to the real service code to obtain a service processing result;
[0009] Sending the service processing result to the terminal.
[0010] In an optional implementation, acquiring the second channel type, the second service type and the real service code according to the virtual service code includes:
[0011] According to the virtual service code, acquiring the second channel type, the second service type and the real service code from a virtual service code system; or,
[0012] The virtual service code is decoded to obtain the second channel type, the second service type and the real service code.
[0013] In an optional implementation manner, acquiring the second channel type, the second service type, and the real service code from a virtual service code system according to the virtual service code includes:
[0014] Sending a virtual service code to the virtual service code system;
[0015] Receive the second channel type, the second business type and the real business code sent by the virtual business code system according to a preset mapping relationship and the virtual business code; wherein the preset mapping relationship includes a mapping relationship between the virtual business code and the second channel type, the second business type and the real business code.
[0016] In an optional implementation manner, decoding the virtual service code to obtain the second channel type, the second service type and the real service code includes:
[0017] In the virtual service code, determining a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code;
[0018] Decoding the first data string using a first decoding algorithm to obtain the second channel type; wherein the first data string is obtained by encoding the second channel type based on a first encoding algorithm, and the first decoding algorithm corresponds to the first encoding algorithm;
[0019] Decoding the second data string using a second decoding algorithm to obtain the second service type, wherein the second data string is obtained by encoding the second service type based on a second encoding algorithm, and the second decoding algorithm corresponds to the second encoding algorithm;
[0020] The third data string is decoded using a third decoding algorithm to obtain the real business code, wherein the third data string is obtained by encoding the real business code based on a third decoding algorithm, and the third decoding algorithm corresponds to the third decoding algorithm.
[0021] In an optional embodiment, the method further includes:
[0022] When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, an interception prompt message is sent to the security maintenance terminal; wherein the interception prompt message includes one or more of the following: a virtual service code, a first channel type, a second channel type, a first service type, and a second service type.
[0023] In an optional embodiment, the method further includes:
[0024] When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, service processing failure information is sent to the terminal.
[0025] In an optional implementation, a preset data packet is provided in the server;
[0026] The preset data packet includes a compilation file of the first service, and the compilation file includes the first channel type, the first service type and the virtual service code;
[0027] The service processing request is a request sent by the terminal when executing the compiled file.
[0028] In a second aspect, an embodiment of the present application provides a service processing method, which is applied to a terminal, and the method includes:
[0029] In response to a touch operation on a first service, sending a service processing request to a server, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of the first service;
[0030] A service processing result corresponding to the service processing request sent by the server is received, where the service processing result is obtained by the server according to the first channel type, the first service type and the virtual service code of the first service.
[0031] In an optional implementation, in response to the touch operation on the first service, sending a service processing request to the server includes:
[0032] In response to a touch operation on a first service, reading a first channel type, a first service type, and a virtual service code of the first service in a compilation file of the first service;
[0033] The service processing request is generated according to the first channel type, the first service type and the virtual service code, and the service processing request is sent to the server.
[0034] In an optional embodiment, the method further includes:
[0035] A preset data package is downloaded from a server, where the preset data package includes a compiled file of the first service.
[0036] In a third aspect, an embodiment of the present application provides a service processing device, applied to a server, the device comprising:
[0037] A first receiving module, configured to receive a service processing request sent by a terminal, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of a first service;
[0038] An acquisition module, used for acquiring a second channel type, a second service type and a real service code according to the virtual service code;
[0039] a processing module, configured to, when the first channel type matches the second channel type and the first service type matches the second service type, execute the service processing corresponding to the service processing request according to the real service code to obtain a service processing result;
[0040] The first sending module is used to send the service processing result to the terminal.
[0041] In an optional implementation, the acquisition module is specifically used to:
[0042] According to the virtual service code, acquiring the second channel type, the second service type and the real service code from a virtual service code system; or,
[0043] The virtual service code is decoded to obtain the second channel type, the second service type and the real service code.
[0044] In an optional implementation, the acquisition module is specifically used for:
[0045] Sending a virtual service code to the virtual service code system through a first sending module;
[0046] The second channel type, the second business type and the real business code sent by the virtual business code system according to a preset mapping relationship and the virtual business code are received through the first receiving module; wherein the preset mapping relationship includes the mapping relationship between the virtual business code and the second channel type, the second business type and the real business code.
[0047] In an optional implementation, the acquisition module is specifically used to:
[0048] In the virtual service code, determining a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code;
[0049] Decoding the first data string using a first decoding algorithm to obtain the second channel type; wherein the first data string is obtained by encoding the second channel type based on a first encoding algorithm, and the first decoding algorithm corresponds to the first encoding algorithm;
[0050] Decoding the second data string using a second decoding algorithm to obtain the second service type, wherein the second data string is obtained by encoding the second service type based on a second encoding algorithm, and the second decoding algorithm corresponds to the second encoding algorithm;
[0051] The third data string is decoded using a third decoding algorithm to obtain the real business code, wherein the third data string is obtained by encoding the real business code based on a third decoding algorithm, and the third decoding algorithm corresponds to the third decoding algorithm.
[0052] In an optional implementation manner, the first sending module is specifically configured to:
[0053] When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, an interception prompt message is sent to the security maintenance terminal; wherein the interception prompt message includes one or more of the following: a virtual service code, a first channel type, a second channel type, a first service type, and a second service type.
[0054] In an optional implementation manner, the first sending module is specifically configured to:
[0055] When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, service processing failure information is sent to the terminal.
[0056] In an optional implementation, a preset data packet is provided in the server;
[0057] The preset data packet includes a compilation file of the first service, and the compilation file includes the first channel type, the first service type and the virtual service code;
[0058] The service processing request is a request sent by the terminal when executing the compiled file.
[0059] In a fourth aspect, an embodiment of the present application provides a service processing device, applied to a terminal, the device comprising:
[0060] A second sending module, configured to send a service processing request to a server in response to a touch operation on the first service, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of the first service;
[0061] The second receiving module is used to receive a business processing result corresponding to the business processing request sent by the server, where the business processing result is obtained by the server according to the first channel type, the first business type and the virtual business code of the first business.
[0062] In an optional implementation manner, the second sending module is specifically configured to:
[0063] In response to a touch operation on a first service, reading a first channel type, a first service type, and a virtual service code of the first service in a compilation file of the first service;
[0064] The service processing request is generated according to the first channel type, the first service type and the virtual service code, and the service processing request is sent to the server.
[0065] In an optional embodiment, the device further comprises:
[0066] The download module is used to download a preset data package from a server, wherein the preset data package includes a compiled file of the first service.
[0067] In a fifth aspect, an embodiment of the present application provides a server, including: a memory and a processor;
[0068] The memory stores computer-executable instructions;
[0069] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method described in any one of the first aspects.
[0070] In a sixth aspect, an embodiment of the present application provides a terminal, including: a memory and a processor;
[0071] The memory stores computer-executable instructions;
[0072] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method described in any one of the second aspects.
[0073] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement any method of the first aspect and / or any method of the second aspect.
[0074] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements any method of the first aspect and / or any method of the second aspect.
[0075] The embodiment of the present application provides a business processing method, apparatus, device and storage medium, the method comprising: receiving a business processing request sent by a terminal, the business processing request comprising a first channel type, a first business type and a virtual business code of a first business; obtaining a second channel type, a second business type and a real business code according to the virtual business code; when the first channel type matches the second channel type, and the first business type matches the second business type, executing the business processing corresponding to the business processing request according to the real business code to obtain a business processing result; and sending the business processing result to the terminal. In the above method, the business processing request sent by the terminal includes a virtual business code to avoid exposing the real business code at the terminal. Even if an attacker intercepts the business processing request, the real business code cannot be directly obtained from the business processing request, which improves the security of the real business code and further improves the security of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the technical solutions in the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0077] Figure 1 A schematic diagram of an application scenario of the business processing method provided in an embodiment of the present application;
[0078] Figure 2 One of the flowcharts of the business processing method provided for this application;
[0079] Figure 3 The second flowchart of the business processing method provided for this application;
[0080] Figure 4 A schematic diagram of the architecture of the preset data packet generation system provided in this application;
[0081] Figure 5 One of the structural diagrams of the business processing device provided by this application;
[0082] Figure 6 The second structural diagram of the business processing device provided by this application;
[0083] Figure 7 A schematic diagram of the hardware structure of a server provided in an embodiment of the present application;
[0084] Figure 8 A schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application.
[0085] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0087] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0088] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0089] In the embodiments of the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". In the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. In the present application, the term "at least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0090] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0091] First, an exemplary description is given of the application scenarios of the business processing method provided in this application.
[0092] Figure 1 A schematic diagram of an application scenario of the business processing method provided in the embodiment of the present application. For example, Figure 1 As shown, it includes: a server and at least one terminal. For example, the at least one terminal includes: terminal 1, terminal 2...terminal N. N is an integer greater than or equal to 1.
[0093] The terminal may send a service processing request to the server, where the service processing request includes a virtual service code.
[0094] The server obtains the real business code according to the virtual business code in the business processing request, and executes the business processing corresponding to the business processing request according to the real business code to obtain the business processing result.
[0095] In the above business processing process, the business processing request includes a virtual business code instead of a real business code, which effectively prevents direct exposure of the real business code during transmission, reduces the risk of leakage of the real business code, and thereby improves the security of business processing.
[0096] The following takes a terminal as an example and describes the technical solution of the present application in detail in combination with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0097] Figure 2 This is one of the flowcharts of the business processing method provided by this application. Figure 2 As shown, the method includes:
[0098] S201. In response to a touch operation on a first service, a terminal sends a service processing request to a server. The service processing request includes a first channel type, a first service type, and a virtual service code of the first service.
[0099] Correspondingly, the server can receive the service processing request sent by the terminal.
[0100] The terminal is, for example, an ATM (Automated Teller Machine), a computer, a smart phone, and the like.
[0101] The first business may be deposit, withdrawal, loan or payment settlement, etc.
[0102] The first channel type is associated with the type of the terminal. For example, when the terminal is an ATM, the first channel type is A123. For example, when the terminal is a computer, the first channel type is B456.
[0103] The first service type is associated with the type of the first service. For example, if the first service is a deposit, the first service type is M234. For example, if the first service is a withdrawal, the first service type is N567.
[0104] The virtual service code is associated with the channel type and service type. For example, if the channel type is A123, the service type is M234, and the virtual service code is 66a877cfbf449948d4cc538ed3. For example, if the channel type is B456, the service type is N567, and the virtual service code is 7a5b6c4d3e2f10987654321fedc.
[0105] S202. The server obtains the second channel type, the second service type and the real service code according to the virtual service code.
[0106] Optionally, the server may obtain the second channel type, the second service type and the real service code by the following method 1.
[0107] In method 1, the server can query the second channel type, the second service type and the real service code in a pre-stored preset mapping relationship according to the virtual service code. The preset mapping relationship includes the correspondence between multiple channel types, multiple service types, multiple real service codes and multiple virtual service codes. Exemplarily, the preset mapping relationship is shown in Table 1 below.
[0108] Table 1 Preset mapping relationship
[0109] Virtual business code Channel Type Business Type Real business code 66a877cfbf449948d4cc538ed3 A123 M234 KX012Y345 7a5b6c4d3e2f10987654321fedc B456 N567 KX012Y346 d1c2b3a495867465543210fedc C234 R423 KX012Y347
[0110] For example, the virtual service code in the service processing request is 66a877cfbf449948d4cc538ed3. Based on Table 1, the second channel type obtained by query is A123, the second service type is M234, and the real service code is KX012Y345.
[0111] S203: When the first channel type matches the second channel type, and the first business type matches the second business type, the server executes the business processing corresponding to the business processing request according to the real business code to obtain the business processing result.
[0112] Matching of the first channel type and the second channel type may mean that the first channel type and the second channel type are the same.
[0113] The matching of the first service type and the second service type may mean that the first channel type and the second channel type are the same.
[0114] In this application, matching is intended to ensure the consistency of channel type and business type and prevent cross-channel business execution.
[0115] S204: The server sends the service processing result to the terminal. Accordingly, the terminal can receive the service processing result corresponding to the service processing request sent by the server.
[0116] In an embodiment of the present application, the service processing request sent by the terminal includes a virtual service code to avoid exposing the real service code at the terminal. Even if an attacker intercepts the service processing request, the real service code cannot be directly obtained from the service processing request, thereby improving the security of the real service code.
[0117] In the traditional business processing method, there is an association relationship between multiple real business codes. The terminal sends the real business code to the server, making it easier for attackers to intercept the real business code, infer other related real business codes based on the real business code, and use the inferred real business code to perform illegal business processing, which will cause significant economic losses to users. In this application, the terminal sends a virtual business code to the server, and the risk of attackers inferring the real business code based on the virtual business code is significantly reduced, thereby reducing the risk of illegal business processing to a lower level, effectively controlling the phenomenon of illegal business processing, and improving the security of business processing.
[0118] In addition, in the traditional technology, the real business codes corresponding to multiple channels (such as ATM, online banking, mobile banking, etc.) are the same, so that attackers can use the inferred real business codes in multiple channels (such as ATM, online banking, mobile banking, etc.) to perform illegal business processing. In the present application, the business processing request also includes the first channel type and the first business type. The server obtains the second channel type, the second business type and the real business code according to the virtual business code. When the first channel type and the second channel type match, and the first business type and the second business type match, the business processing is performed according to the real business code, which can prevent business processing from being performed when the channel types do not match, thereby improving the security of business processing.
[0119] Optionally, method 2 and method 3 may be used to implement S202.
[0120] Method 2, according to the virtual service code, obtain the second channel type, the second service type and the real service code from the virtual service code system.
[0121] In an optional implementation, the server sends the virtual service code to the virtual service code system;
[0122] The server receives the second channel type, second service type and real service code sent by the virtual service code system according to the preset mapping relationship and the virtual service code; wherein the preset mapping relationship includes the mapping relationship between the virtual service code and the second channel type, the second service type and the real service code.
[0123] The virtual service code system searches the preset mapping relationship to obtain the second channel type, the second service type and the real service code according to the virtual service code, and sends the second channel type, the second service type and the real service code to the server. The preset mapping relationship is shown in Table 1, for example.
[0124] For example, the virtual service code is 66a877cfbf449948d4cc538ed3. The virtual service code system searches the preset mapping relationship based on the virtual service code and finds that the second channel type is A123, the second service type is M234 and the real service code is KX012Y345, and sends the second channel type A123, the second service type M234 and the real service code KX012Y345 to the server.
[0125] Mode 3, decoding the virtual service code to obtain the second channel type, the second service type and the real service code.
[0126] In an optional implementation, in the virtual service code, a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code are determined;
[0127] Decoding the first data string using a first decoding algorithm to obtain a second channel type, wherein the first data string is obtained by encoding the second channel type based on a first encoding algorithm, and the first decoding algorithm corresponds to the first encoding algorithm;
[0128] Decoding the second data string using a second decoding algorithm to obtain a second service type, wherein the second data string is obtained by encoding the second service type based on a second encoding algorithm, and the second decoding algorithm corresponds to the second encoding algorithm;
[0129] The third data string is decoded using a third decoding algorithm to obtain a real business code, wherein the third data string is obtained by encoding the real business code based on a third decoding algorithm, and the third decoding algorithm corresponds to the third decoding algorithm.
[0130] Wherein, in the virtual service code, determining a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code comprises:
[0131] The virtual service code is segmented according to the first preset number of bits, the second preset number of bits and the third preset number of bits to obtain the first data string, the second data string and the third data string, wherein the number of bits of the first data string is equal to the first preset number of bits, the number of bits of the second data string is equal to the second preset number of bits and the number of bits of the third data string is equal to the third preset number of bits.
[0132] Optionally, the first preset number of bits, the second preset number of bits and the third preset number of bits may be the same, or may be different.
[0133] For example, the first preset bit number is equal to 6, the second preset bit number is equal to 6, and the third preset bit number is equal to 14. When the virtual service code is 66a877cfbf449948d4cc538ed3, the first 6 bits "66a877" of the virtual service code are determined as the first data string, the middle 6 bits "cfbf44" of the virtual service code are determined as the second data string, and the last 14 bits "9948d4cc538ed3" are determined as the third data string.
[0134] The first decoding algorithm, the second decoding algorithm and the third decoding algorithm may be the same or different.
[0135] When the first decoding algorithm, the second decoding algorithm and the third decoding algorithm are the same, the first encoding algorithm, the second encoding algorithm and the third decoding algorithm may be the same.
[0136] When the first decoding algorithm, the second decoding algorithm and the third decoding algorithm are different, the first encoding algorithm, the second encoding algorithm and the third decoding algorithm may be different.
[0137] The first decoding algorithm and the first encoding algorithm are a pair of inverse operations.
[0138] For example, the first encoding algorithm encodes the second channel type A123 to obtain the first data string 66a877, and the first decoding algorithm decodes the first data string 66a877 to obtain the second channel type A123.
[0139] For example, the second encoding algorithm encodes the second service type M234 to obtain the second data string cfbf44, and the second decoding algorithm decodes the second data string cfbf44 to obtain the second service type M234.
[0140] For example, the third decoding algorithm encodes the real business code KX012Y345 to obtain the third data string 9948d4cc538ed3, and the third decoding algorithm decodes the third data string 9948d4cc538ed3 to obtain the real business code KX012Y345.
[0141] Based on any of the above embodiments, Figure 3Method 2 is described in detail.
[0142] Figure 3 The second flowchart of the business processing method provided by this application. Figure 3 As shown, the method includes:
[0143] S301: In response to a touch operation on a first service, a terminal reads a first channel type, a first service type, and a virtual service code of the first service in a compilation file of the first service.
[0144] In an optional implementation, the server deploys a preset data package; the preset data package includes a compilation file of the first service, and the compilation file includes a first channel type, a first service type, and a virtual service code.
[0145] In an optional implementation, the terminal may download a preset data package from a server, and read the first channel type, the first service type and the virtual service code of the first service in a compiled file of the first service in response to a touch operation on the first service.
[0146] In the embodiment of the present application, the server is deployed with a preset data packet, and each terminal of the same type can download the preset data packet from the server and execute the method steps executed by the terminal in the present embodiment according to the preset data packet.
[0147] S302. The terminal generates a service processing request according to the first channel type, the first service type and the virtual service code. The service processing request includes the first channel type, the first service type and the virtual service code of the first service.
[0148] S303: The terminal sends a service processing request to the server.
[0149] Correspondingly, the server can receive the service processing request sent by the terminal.
[0150] Specifically, the execution method of S303 is the same as the execution method of S201, and the execution process of S303 is not repeated here.
[0151] S304. The server obtains the second channel type, the second service type and the real service code according to the virtual service code.
[0152] Specifically, the execution method of S304 is the same as the execution method of S202, and the execution process of S304 is not repeated here.
[0153] S305a: When the first channel type matches the second channel type, and the first business type matches the second business type, the server executes the business processing corresponding to the business processing request according to the real business code to obtain the business processing result.
[0154] Specifically, the execution method of S303a is the same as the execution method of S203, and the execution process of S305a is not repeated here.
[0155] S306a: The server sends the service processing result to the terminal.
[0156] Correspondingly, the terminal can receive the service processing result corresponding to the service processing request sent by the server.
[0157] S305b. When the first channel type and the second channel type do not match and / or the first business type and the second business type do not match, the server sends an interception prompt message to the security maintenance terminal; wherein the interception prompt message includes one or more of the following: virtual business code, first channel type, second channel type, first business type and second business type.
[0158] The interception prompt information is used by the security maintenance end to trace the illegal business processing.
[0159] S306b: When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, the server sends service processing failure information to the terminal.
[0160] Correspondingly, the terminal may receive the service processing failure information corresponding to the service processing request sent by the server.
[0161] The service processing failure information is used to indicate the failure of processing the first service.
[0162] The service processing failure information may also be indicated as a channel type mismatch and / or a menu type mismatch.
[0163] It should be noted that Figure 3 The technical solutions shown in the embodiments are Figure 2 The technical solutions shown in the embodiments have similar implementation principles and beneficial effects, which will not be described in detail here.
[0164] Based on any of the above embodiments, the following Figure 4 The preset data packet generating system shown illustrates the process of obtaining the preset data packet.
[0165] Figure 4 This is a schematic diagram of the architecture of the preset data packet generation system provided in this application. Figure 4 As shown, the architecture includes: an application unit, an encoding unit, a decoding unit, a compilation and packaging unit and a virtual service code system.
[0166] The application unit is used to receive input channel type, menu type, real business code and online date, etc., generate a virtual business code application request based on the channel type, menu type, real business code and online date, etc., and send the virtual business code application request to the virtual business code system, wherein the virtual business code application request includes the channel type, menu type and real business code.
[0167] The virtual service code system is used to generate a virtual service code according to the channel type, menu type and real service code, and record the mapping relationship between the channel type, menu type and real service code and the virtual service code to obtain a preset mapping relationship (such as shown in Table 1).
[0168] The encoding unit is used to query the virtual business code in the virtual business code system according to the channel type, menu type and real business code, and write the source code corresponding to the virtual business code (for example, "$proc: channel type. menu type. real business code"), and then set the source code corresponding to the virtual business code in the source code file; it is also used to use a preset plug-in (such as a webpack plug-in) to load the preset mapping relationship in the virtual business code system, traverse the source code file, and replace the real business code in the source code file "$proc: channel type. menu type. real business code" with the queried virtual business code according to the preset mapping relationship, so as to obtain the source code file corresponding to the channel type and menu type; it is also used to send the source code file corresponding to the channel type and menu type to the compilation and packaging unit.
[0169] The compiling and packaging unit is used to compile multiple source code files of the same channel type to obtain multiple compiled files, and to package the multiple compiled files to obtain a preset data package.
[0170] After obtaining the preset data package, the preset data package can be deployed to the server so that the terminal can download and use it.
[0171] The decoding unit is used to adopt the above-mentioned methods 1 to 3 to obtain the corresponding channel type, service type and real service code according to the virtual service code to verify the availability of the preset mapping relationship in the virtual service code system. For example, when adopting method 1 to obtain the corresponding channel type, service type and real service code according to the virtual service code, the decoding unit first loads the preset mapping relationship in the virtual service code system, and then when the server receives the service processing request, it obtains the corresponding channel type, menu type and real service code from the preset mapping relationship according to the virtual service code in the service processing request. If the corresponding channel type, menu type and real service code are obtained, it is determined that the preset mapping relationship in the virtual service code system is available.
[0172] It should be noted that, in actual applications, a decoding unit may be disposed in a server to execute the method steps of “obtaining the second channel type, the second service type and the real service code according to the virtual service code”.
[0173] exist Figure 4 In an embodiment, a virtual service code application request may be generated according to a launch date, so as to facilitate tracing and management of the virtual service code.
[0174] exist Figure 4 In the embodiment, the source code corresponding to the virtual business code is "$proc: channel type. menu type. real business code". The real business code can be intuitively reflected in the source code, which improves the development efficiency of developers and enhances the maintainability of the source code.
[0175] exist Figure 4 In the embodiment, the webpack plug-in has strong passability and can be embedded in any code repository. Therefore, in the embodiment of the present application, the webpack plug-in is used to load the preset mapping relationship in the virtual business code system, traverse the source code file, and replace the real business code in "$proc: channel type. menu type. real business code" in the source code file with the corresponding virtual business code according to the preset mapping relationship, thereby obtaining the source code file corresponding to the channel type and menu type, thereby improving the development efficiency of the source code file.
[0176] Figure 5 This is one of the structural diagrams of the business processing device provided in this application. The business processing device 50 is applied to the server. Figure 5 As shown, the service processing device 50 includes:
[0177] The first receiving module 501 is used to receive a service processing request sent by a terminal, where the service processing request includes a first channel type, a first service type and a virtual service code of a first service;
[0178] The acquisition module 502 is used to acquire the second channel type, the second service type and the real service code according to the virtual service code;
[0179] The processing module 503 is used to execute the business processing corresponding to the business processing request according to the real business code to obtain the business processing result when the first channel type matches the second channel type and the first business type matches the second business type;
[0180] The first sending module 504 is configured to send the service processing result to the terminal.
[0181] The business processing device 50 provided in the embodiment of the present application can execute the method steps executed by the server in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be repeated here.
[0182] In an optional implementation, the acquisition module 502 is specifically configured to:
[0183] According to the virtual service code, obtaining the second channel type, the second service type and the real service code from the virtual service code system; or,
[0184] The virtual service code is decoded to obtain the second channel type, the second service type and the real service code.
[0185] In an optional implementation, the acquisition module 502 is specifically configured to:
[0186] Sending the virtual service code to the virtual service code system through the first sending module 504;
[0187] The first receiving module 501 receives the second channel type, second business type and real business code sent by the virtual business code system according to the preset mapping relationship and the virtual business code; wherein the preset mapping relationship includes the mapping relationship between the virtual business code and the second channel type, the second business type and the real business code.
[0188] In an optional implementation, the acquisition module 502 is specifically configured to:
[0189] In the virtual service code, determining a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code;
[0190] The first data string is decoded by using a first decoding algorithm to obtain a second channel type; wherein the first data string is obtained by encoding the second channel type based on a first encoding algorithm, and the first decoding algorithm corresponds to the first encoding algorithm;
[0191] Decoding the second data string using a second decoding algorithm to obtain a second service type, wherein the second data string is obtained by encoding the second service type based on a second encoding algorithm, and the second decoding algorithm corresponds to the second encoding algorithm;
[0192] The third data string is decoded using a third decoding algorithm to obtain a real business code, wherein the third data string is obtained by encoding the real business code based on a third decoding algorithm, and the third decoding algorithm corresponds to the third decoding algorithm.
[0193] In an optional implementation manner, the first sending module 504 is specifically configured to:
[0194] When the first channel type and the second channel type do not match and / or the first business type and the second business type do not match, an interception prompt message is sent to the security maintenance terminal; wherein the interception prompt message includes one or more of the following: a virtual business code, a first channel type, a second channel type, a first business type, and a second business type.
[0195] In an optional implementation manner, the first sending module 504 is specifically configured to:
[0196] When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, service processing failure information is sent to the terminal.
[0197] In an optional implementation, a preset data packet is provided in the server;
[0198] The preset data package includes a compilation file of the first service, and the compilation file includes a first channel type, a first service type and a virtual service code;
[0199] The service processing request is a request sent when the terminal executes a compiled file.
[0200] The business processing device 50 provided in the embodiment of the present application can execute the method steps executed by the server in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be repeated here.
[0201] Figure 6 The second structural diagram of the service processing device provided by the present application. The service processing device 60 is applied to the terminal. Figure 6 As shown, the service processing device 60 includes:
[0202] The second sending module 601 is used to send a service processing request to the server in response to the touch operation on the first service, where the service processing request includes the first channel type, the first service type and the virtual service code of the first service;
[0203] The second receiving module 602 is used to receive a business processing result corresponding to the business processing request sent by the server, where the business processing result is obtained by the server according to the first channel type, the first business type and the virtual business code of the first business.
[0204] The service processing device 60 provided in the embodiment of the present application can execute the method steps executed by the terminal in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.
[0205] In an optional implementation manner, the second sending module 601 is specifically configured to:
[0206] In response to a touch operation on the first service, reading a first channel type, a first service type, and a virtual service code of the first service in a compiled file of the first service;
[0207] A service processing request is generated according to the first channel type, the first service type and the virtual service code, and the service processing request is sent to the server.
[0208] In an optional embodiment, the device further comprises:
[0209] The download module is used to download a preset data package from a server, where the preset data package includes a compiled file of the first service.
[0210] The service processing device 60 provided in the embodiment of the present application can execute the method steps executed by the terminal in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.
[0211] Figure 7 The hardware structure diagram of the server provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the server 70 may include: a memory 701, a processor 702 and a transceiver 703. The transceiver 703 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port or a transmission interface and the like, and the receiver may also be referred to as a receiver, a reception port or a reception interface and the like. Exemplarily, the memory 701, the processor 702 and the transceiver 703 are interconnected via a bus 704.
[0212] The memory 701 is used to store program instructions.
[0213] The processor 702 is used to execute the program instructions stored in the memory, so that the processor 702 executes the method steps executed by the server in the above method embodiment.
[0214] Figure 8 The hardware structure diagram of the terminal provided in the embodiment of the present application is shown in FIG. Figure 8 As shown, the terminal 80 may include: a memory 801, a processor 802 and a transceiver 803. The transceiver 803 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port or a transmission interface and the like, and the receiver may also be referred to as a receiver, a reception port or a reception interface and the like. Exemplarily, the memory 801, the processor 802 and the transceiver 803 are interconnected via a bus 804.
[0215] The memory 801 is used to store program instructions.
[0216] The processor 802 is used to execute the program instructions stored in the memory, so that the processor 802 executes the method steps executed by the terminal in the above method embodiment.
[0217] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: ROM (read-only memory), RAM (Random Access Memory), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0218] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method of the above method embodiment is used to implement the method.
[0219] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the method shown in the above method embodiment.
[0220] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0221] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0222] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A business processing method, It is characterized in that Applied to a server, the method comprises: Receiving a service processing request sent by a terminal, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of a first service; According to the virtual service code, obtaining a second channel type, a second service type and a real service code; When the first channel type matches the second channel type, and the first service type matches the second service type, executing the service processing corresponding to the service processing request according to the real service code to obtain a service processing result; Sending the service processing result to the terminal.
2. The method according to claim 1, It is characterized in that The acquiring, according to the virtual service code, the second channel type, the second service type and the real service code comprises: According to the virtual service code, acquiring the second channel type, the second service type and the real service code from a virtual service code system; or, The virtual service code is decoded to obtain the second channel type, the second service type and the real service code.
3. The method according to claim 2, It is characterized in that The acquiring the second channel type, the second service type and the real service code from a virtual service code system according to the virtual service code comprises: Sending a virtual service code to the virtual service code system; Receive the second channel type, the second business type and the real business code sent by the virtual business code system according to a preset mapping relationship and the virtual business code; wherein the preset mapping relationship includes a mapping relationship between the virtual business code and the second channel type, the second business type and the real business code.
4. The method according to claim 2, It is characterized in that Decoding the virtual service code to obtain the second channel type, the second service type and the real service code includes: In the virtual service code, determining a first data string corresponding to the second channel type, a second data string corresponding to the second service type, and a third data string corresponding to the real service code; Decoding the first data string using a first decoding algorithm to obtain the second channel type; wherein the first data string is obtained by encoding the second channel type based on a first encoding algorithm, and the first decoding algorithm corresponds to the first encoding algorithm; Decoding the second data string using a second decoding algorithm to obtain the second service type, wherein the second data string is obtained by encoding the second service type based on a second encoding algorithm, and the second decoding algorithm corresponds to the second encoding algorithm; The third data string is decoded using a third decoding algorithm to obtain the real business code, wherein the third data string is obtained by encoding the real business code based on a third decoding algorithm, and the third decoding algorithm corresponds to the third decoding algorithm.
5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, an interception prompt message is sent to the security maintenance terminal; wherein the interception prompt message includes one or more of the following: a virtual service code, a first channel type, a second channel type, a first service type, and a second service type.
6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: When the first channel type and the second channel type do not match and / or the first service type and the second service type do not match, service processing failure information is sent to the terminal.
7. The method according to any one of claims 1 to 4, It is characterized in that The server is provided with a preset data packet; The preset data packet includes a compilation file of the first service, and the compilation file includes the first channel type, the first service type and the virtual service code; The service processing request is a request sent by the terminal when executing the compiled file.
8. A business processing method, It is characterized in that Applied to a terminal, the method comprises: In response to a touch operation on a first service, sending a service processing request to a server, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of the first service; A service processing result corresponding to the service processing request sent by the server is received, where the service processing result is obtained by the server according to the first channel type, the first service type and the virtual service code of the first service.
9. The method according to claim 8, It is characterized in that The sending a service processing request to a server in response to a touch operation on the first service includes: In response to a touch operation on a first service, reading a first channel type, a first service type, and a virtual service code of the first service in a compilation file of the first service; The service processing request is generated according to the first channel type, the first service type and the virtual service code, and the service processing request is sent to the server.
10. The method according to claim 9, It is characterized in that The method further comprises: A preset data package is downloaded from a server, where the preset data package includes a compiled file of the first service.
11. A business processing device, It is characterized in that Applied to a server, the device comprises: A first receiving module, configured to receive a service processing request sent by a terminal, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of a first service; An acquisition module, used for acquiring a second channel type, a second service type and a real service code according to the virtual service code; a processing module, configured to, when the first channel type matches the second channel type and the first service type matches the second service type, execute the service processing corresponding to the service processing request according to the real service code to obtain a service processing result; The first sending module is used to send the service processing result to the terminal.
12. A business processing device, It is characterized in that Applied to a terminal, the device comprises: A second sending module, configured to send a service processing request to a server in response to a touch operation on the first service, wherein the service processing request includes a first channel type, a first service type, and a virtual service code of the first service; The second receiving module is used to receive a business processing result corresponding to the business processing request sent by the server, where the business processing result is obtained by the server according to the first channel type, the first business type and the virtual business code of the first business.
13. A server, It is characterized in that include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
14. A terminal, It is characterized in that include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to claim 8 or 9.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.
16. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a computer.
