CN111857876A - Service processing method and device, electronic equipment and computer readable medium - Google Patents

Service processing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111857876A
CN111857876A CN202010698537.5A CN202010698537A CN111857876A CN 111857876 A CN111857876 A CN 111857876A CN 202010698537 A CN202010698537 A CN 202010698537A CN 111857876 A CN111857876 A CN 111857876A
Authority
CN
China
Prior art keywords
service
client
operation instruction
target service
parameter
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010698537.5A
Other languages
Chinese (zh)
Inventor
魏东迪
陈玉栓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010698537.5A priority Critical patent/CN111857876A/en
Publication of CN111857876A publication Critical patent/CN111857876A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the disclosure provides a service processing method, a service processing device, an electronic device and a computer readable medium, wherein the method comprises the following steps: acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, which are sent by the first client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service; determining an operation instruction of the target service according to the demand parameter and the configuration parameter; and enabling the service processing system to process the target service by executing the operation instruction. According to the method, the direct interaction between the first client and the second client is isolated through the service processing system, and the target service is processed through the service processing system, so that the problems that the first client and the second client need to maintain multiple sets of service copies and the multiple sets of service copies cause inconsistency are solved, and the efficiency of processing the target service is improved.

Description

Service processing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a service processing method and apparatus, an electronic device, and a computer-readable medium.
Background
B2C (Business-to-Customer) refers to a model of electronic commerce, and is also a retail model of selling products and services directly to consumers. In the prior art, payment service in a B2C application scenario generally takes a vertical access model as a main factor; the service party at the B end directly interacts with the user party at the C end, and the third-party payment system is only responsible for providing payment. Each service party not only needs to focus on the content of the service itself, but also needs to manage the balance change, running water, accounting and other copy information of each user, which are irrelevant to the main business, thereby increasing the working cost of each service party. The business party maintains a set of fund copies outside the payment system, which often causes inconsistency of a plurality of fund copies, and reduces the processing efficiency of the payment business.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The present disclosure provides a service processing method, a service processing apparatus, an electronic device, and a computer-readable medium to solve the problem of how to improve the efficiency of processing a target service.
In a first aspect, the present disclosure provides a service processing method, including:
acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, which are sent by the first client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service;
determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and enabling the service processing system to process the target service by executing the operation instruction.
In a second aspect, the present disclosure provides a service processing apparatus, including:
the first processing module is used for acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service;
The second processing module is used for determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and the third processing module is used for enabling the service processing system to process the target service by executing the operation instruction.
In a third aspect, the present disclosure provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
and the processor is used for executing the business processing method of the first aspect of the disclosure by calling the operation instruction.
In a fourth aspect, the present disclosure provides a computer-readable medium storing a computer program for executing the service processing method of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
direct interaction between the first client and the second client is isolated through the service processing system, and the target service is processed through the service processing system, so that the problems that multiple sets of service copies need to be maintained by the first client and the second client and are inconsistent due to the multiple sets of service copies are solved, and the efficiency of processing the target service is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flow chart of a service processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of service processing provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiment of the present disclosure provides a service processing method, a flow diagram of the method is shown in fig. 1, and the method includes:
s101, acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, wherein the demand parameter is sent by the first client and used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service.
In the embodiment of the present disclosure, in a B2C application scenario, the first client and the second client are a service party at the B end and a user party at the C end, respectively, or the first client and the second client are a user party at the C end and a service party at the B end, respectively.
In the embodiment of the present disclosure, the target service may be a payment service, or may be services such as online information service, online entertainment, and inquiry and order of goods and goods-related services.
And S102, determining an operation instruction of the target service according to the demand parameter and the configuration parameter.
In the embodiment of the disclosure, the first client sends the requirement parameter and the configuration parameter to a service processing system based on a SaaS (Software-as-a-service) mode, and the service processing system determines an operation instruction of the target service according to the requirement parameter and the configuration parameter.
In the embodiment of the present disclosure, if the target service needs to be processed between the first client and the second client, the processing of the target service may be fund change, balance inquiry, and the like, and correspondingly, the requirement parameter may be used to represent that the fund change, the balance inquiry requirement, and the like exist between the first client and the second client. In the processing process of the target service, the identity and the like of the first client need to be determined, and correspondingly, the configuration parameters are used for representing the identity and the like of the first client in the processing process of the target service.
S103, the service processing system is enabled to process the target service by executing the operation instruction.
In the embodiment of the disclosure, the direct interaction between the first client and the second client is isolated by the service processing system, and the service processing system processes the target service by executing the operation instruction.
In the embodiment of the present disclosure, the target service may be a payment service, and accordingly, the service processing system may be an account hosting system.
In the disclosed embodiment, the payment service includes marketing cashback, free-job operator commission management, and the like.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes a configuration center, an identity verification module, an instruction parsing module, a product center, a data persistence module, an SDK (Software Development Kit), a data monitoring and repair task module. The account hosting system 101 interacts with the service party 102 through the SDK, and the account hosting system 101 interacts with the user party 103 through the SDK. The SDK provides an interface for the service party 102 or the user party 103, and the interface may be a fund release interface, a fund release result query interface, a balance query interface of the budget account of the service party, or the like. The payment system 104 is responsible for providing payments.
In the embodiment of the disclosure, a first client is a service party, and a second client is a user party;
the requirement parameters comprise at least one item of identification, money amount, serial number of the user party and name of an interface between the service party and the account hosting system;
the configuration parameter comprises at least one of an identifier of the service party, an application identifier corresponding to the payment service, an activity identifier of the service party, and a key of the service party.
In the embodiment of the present disclosure, for example, in order to pull new marketing, a service party needs to send a cash voucher with an amount of c to a user party a, and an order number is 1234567; the requirement parameters sent by the business party to the account hosting system include the identification a of the user party, the amount c, and the serial number 1234567. The configuration parameters stored locally by the service party include the identification 1300000005 of the service party, the application identification 800000057774 corresponding to the payment service, the activity identification CB888 of the service party, and the key uhqh03f9j4gzrkb of the service party.
In the embodiment of the present disclosure, the "determining the operation command of the target service according to the requirement parameters and the configuration parameters" in the step S102 may include steps S102a-S102b, or include steps S102c-S102 e:
s102 a: splicing the demand parameters and the configuration parameters to obtain spliced parameters;
s102 b: setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service;
s102 c: splicing the demand parameters and the configuration parameters to obtain spliced parameters;
s102 d: setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted;
s102 e: and encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service.
In steps S102a-S102b of the embodiment of the present disclosure, the demand parameters and the configuration parameters are spliced to obtain spliced parameters; and setting the spliced parameters according to a preset operation instruction format to obtain the operation instruction of the target service. For example, the requirement parameters sent by the business party to the account hosting system include an identifier a, an amount c, and a serial number 1234567 of the user party; the configuration parameters stored locally by the service party include the identification 1300000005 of the service party, the application identification 800000057774 corresponding to the payment service, the activity identification CB888 of the service party, and the key uhqh03f9j4gzrkb of the service party. Splicing the demand parameters and the configuration parameters to obtain spliced parameters, wherein the spliced parameters are as follows:
the identity of the user side Uid a,
run number FlowNo: 1234567,
the sum of the Amount of Amount: c,
the activity identification of the business party is ActivityNo: CB888,
the application identity MerchantId 1300000005 for the payment service,
the key MerchantAppId of the service party 800000057774.
Setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service, wherein the operation instruction of the target service is as follows:
Figure BDA0002592156260000061
Where TimeStamp represents a TimeStamp.
In steps S102c-S102e of the embodiment of the present disclosure, the demand parameters and the configuration parameters are spliced to obtain spliced parameters; setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted; and encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service. For example, the requirement parameters sent by the business party to the account hosting system include the identification a of the user party, the amount c, and the serial number 1234567. The configuration parameters stored locally by the service party include the identification 1300000005 of the service party, the application identification 800000057774 corresponding to the payment service, the activity identification CB888 of the service party, and the key uhqh03f9j4gzrkb of the service party. Splicing the demand parameters and the configuration parameters to obtain spliced parameters, wherein the spliced parameters are as follows:
the identity of the user side Uid a,
run number FlowNo: 1234567,
the sum of the Amount of Amount: c,
the activity identification of the business party is ActivityNo: CB888,
the application identity MerchantId 1300000005 for the payment service,
the key MerchantAppId of the service party 800000057774.
Setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted, wherein the instruction to be encrypted is as follows:
Figure BDA0002592156260000071
Where TimeStamp represents a TimeStamp.
Encrypting the instruction to be encrypted according to the key of the service party to obtain an operation instruction of the target service, wherein the operation instruction of the target service is as follows:
Figure BDA0002592156260000081
where Sign denotes an encrypted signature.
In this embodiment of the present disclosure, the "enabling the service processing system to process the target service by executing the operation instruction" in step S103 may include:
verifying the operation instruction to obtain a verification result;
if the verification result is legal, analyzing the operation instruction according to the configuration parameters to obtain configuration information;
obtaining an updated operation instruction according to the configuration information;
and calling one instruction execution unit in the instruction execution unit set included in the service processing system, and executing the updated operation instruction by using the called instruction execution unit so as to process the target service.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes an identity verification module, and the identity verification module may verify the reliability and integrity of the source of the operation instruction, so as to prevent a third party from impersonating a service party or a user party to send the operation instruction or tampering the operation instruction, and the identity verification is implemented in a signing manner.
In the disclosed embodiment, as shown in fig. 2, the account hosting system 101 includes a product center including a set of instruction execution units. Each instruction execution unit in the set of instruction execution units may perform a series of fund changes that are required to perform a certain fund operation in a certain logical order. For example, in the B2C red-envelope activity, the cash service issues a cash ticket for a service party to a certain user party, and the process of processing the payment service by the instruction execution unit corresponding to the cash ticket issued by the service party to the certain user party includes: the method comprises the steps of firstly placing a red packet and issuing a bill, then calling the payment system 104 to transfer the bill, then updating the state of the red packet issuing bill to be successful in issuing, and finally informing a user of the fact that the fund is paid out. The cash service is provided for the user side, and the process that the instruction execution unit corresponding to the user side cash withdrawal processes the payment service comprises the following steps: checking balance of the user, placing a withdrawal order under the payment system 104, associating the withdrawal order with a red packet, sending the withdrawal order, returning a link for pulling up a withdrawal cash desk to the user, and updating the states of the withdrawal order and the red packet issue order to be withdrawn after the withdrawal of the user is completed if the user fills in withdrawal payment account information and confirms the withdrawal.
In the embodiment of the disclosure, each operation of the service party on the payment service is executed through the instruction execution unit in the instruction execution unit set, and the service party does not need to maintain another set of fund copies outside the payment system, thereby avoiding inconsistency of multiple fund copies and improving the processing efficiency of the payment service.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes an instruction parsing module, where the instruction parsing module identifies an operation instruction and reads configuration information corresponding to the operation instruction from a configuration center; the instruction analysis module obtains an updated operation instruction according to the configuration information; the analysis module selects one instruction execution unit from the instruction execution unit set included in the product center, and sends the updated operation instruction to the instruction execution unit, so that the instruction execution unit executes the updated operation instruction for processing the payment service.
In the embodiment of the disclosure, the operation instruction is verified to obtain a verification result. For example, the operation instruction of the target service is as follows:
Figure BDA0002592156260000091
the account hosting system generates a sign2 for the fields except the sign field in the operation instruction of the target service according to a preset signing mode, compares whether the sign is the same as the sign2, if the sign is the same as the sign2, the verification is passed, and the verification result is legal; if sign and sign2 are different, the verification is not passed, and the verification result is illegal; the signature adding mode comprises at least one of an information digest algorithm MD5 and a public key cryptographic algorithm RSA.
In the embodiment of the disclosure, if the verification result is legal, the operation instruction is analyzed according to the configuration parameters to obtain configuration information; and obtaining the updated operation instruction according to the configuration information. For example, if a cash voucher with the amount of c needs to be sent to the user a, the obtained configuration information includes the identifier Mid of the service party, the activity name ActivityName, the single minimum withdrawal amount WithdrawMinLimit of the activity, the single maximum withdrawal amount SendMaxLimit of the activity, the account type createacounttype, the cash register version cashdeskdeskversision, and the like. The updated operation instructions are as follows:
Figure BDA0002592156260000101
wherein, the single minimum withdrawal amount WithdrawMinLimit of the current activity is 5 yuan, and the single maximum withdrawal amount SendMax Limit of the current activity is 50000 yuan.
In this embodiment of the disclosure, if the target service is a payment service, the first client is a service party, and the second client is a user party, the configuration information includes at least one of the following items:
the method comprises the following steps of calling an identification of an instruction execution unit, an activity identification, an identification of a service party, an application identification corresponding to a payment service, an activity fund validity period, fund use limits, a fund inquiry account type, whether an activity needs to verify an identity, a minimum alarm balance of an activity account and activity page front-end configuration.
In the embodiment of the disclosure, the fund usage limit comprises at least one of a single minimum withdrawal amount WithdrawMinLimit of the activity and a single maximum withdrawal amount SendMax Limit of the activity; the fund inquiry account type comprises an account type CreateAccountType; the activity flag is a tremble; the application identity corresponding to the payment service is the application identity of the service party, e.g. the application identity of the service party is the service party charging the user party.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes a configuration center, which is a database for recording configuration information.
In the embodiment of the present disclosure, after executing the updated operation instruction by using the called instruction execution unit, the method further includes:
and persisting result information of the executed updated operation instruction into a preset database, and sending the result information to the first client.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes a data persistence module, where the data persistence module persists result information of an executed updated operation instruction into a preset database, so as to facilitate a user side or a business side to query the result information, and the result information in the database facilitates data monitoring and repair task form supplementing. The result information is persisted in the preset database, so that each fund change in the payment service can be traced, and the fund security is ensured.
In the embodiment of the disclosure, the execution process of the updated operation instruction is monitored; and if the execution process is abnormal, re-determining the operation instruction or re-selecting at least one instruction execution unit from the instruction execution unit set.
In the embodiment of the present disclosure, as shown in fig. 2, the account hosting system 101 includes a data monitoring and repairing task module, and the data monitoring and repairing task module monitors an execution process of an updated operation instruction; for example, the execution process of the updated operation instruction includes: the account hosting system 101 comprises a product center, wherein an instruction execution unit in the product center receives orders, marks the orders as the order receiving state and returns the order receiving success to a business party; the instruction execution unit invokes the payment system 104 to initiate a transfer; the data monitoring and repairing task module monitors the execution process of the updated operation instruction, if the transfer is successful, the instruction execution unit updates the order state to be successful, and sends a fund transfer notification to the user side; and if the transfer fails, automatically retrying, namely, re-determining the operation instruction by the data monitoring and repairing task module or selecting at least one instruction execution unit from the instruction execution unit set again to ensure that the fund can be finally successfully received.
In the embodiment of the disclosure, the direct interaction between the first client and the second client is isolated by the service processing system, and the target service is processed by the service processing system, so that the problems that the first client and the second client need to maintain multiple sets of service copies and the multiple sets of service copies cause inconsistency are avoided, and the efficiency of processing the target service is improved. The operating requirements of a business party on funds are abstracted, and the operating requirements are provided at the cloud in the form of an instruction execution unit; the business side can operate a certain account in the most professional and most safe mode only by a small amount of operation, and the fund loss caused by low-level errors is avoided.
Based on the same inventive concept, the embodiment of the present disclosure further provides a service processing apparatus, and a schematic structural diagram of the apparatus is shown in fig. 3, where the service processing apparatus 60 includes a first processing module 601, a second processing module 602, and a third processing module 603.
A first processing module 601, configured to obtain a requirement parameter and a configuration parameter of a target service between a first client and a second client, where the requirement parameter is used to represent a processing requirement of the target service between the first client and the second client, and the configuration parameter is used to represent a parameter associated with the first client in a processing process of the target service;
A second processing module 602, configured to determine an operation instruction of the target service according to the requirement parameter and the configuration parameter;
the third processing module 603 is configured to enable the service processing system to process the target service by executing the operation instruction.
In the embodiment of the disclosure, the target service is a payment service, and the service processing system is an account hosting system.
In the embodiment of the disclosure, a first client is a service party, and a second client is a user party;
the requirement parameters comprise at least one item of identification, money amount, serial number of the user party and name of an interface between the service party and the account hosting system;
the configuration parameter comprises at least one of an identifier of the service party, an application identifier corresponding to the payment service, an activity identifier of the service party, and a key of the service party.
In the embodiment of the present disclosure, the second processing module 602 is specifically configured to splice the requirement parameter and the configuration parameter to obtain a spliced parameter; setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service; or splicing the demand parameters and the configuration parameters to obtain spliced parameters; setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted; and encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service.
In the embodiment of the present disclosure, the third processing module 603 is specifically configured to verify the operation instruction to obtain a verification result; if the verification result is legal, analyzing the operation instruction according to the configuration parameters to obtain configuration information; obtaining an updated operation instruction according to the configuration information; and calling one instruction execution unit in the instruction execution unit set included in the service processing system, and executing the updated operation instruction by using the called instruction execution unit so as to process the target service.
In this embodiment of the disclosure, if the target service is a payment service, the first client is a service party, and the second client is a user party, the configuration information includes at least one of the following items:
the method comprises the following steps of calling an identification of an instruction execution unit, an activity identification, an identification of a service party, an application identification corresponding to a payment service, an activity fund validity period, fund use limits, a fund inquiry account type, whether an activity needs to verify an identity, a minimum alarm balance of an activity account and activity page front-end configuration.
In this embodiment of the disclosure, the third processing module 603 is further configured to, after the updated operation instruction is executed by the called instruction execution unit, persist result information of the executed updated operation instruction into a preset database, and send the result information to the first client.
In the embodiment of the present disclosure, the service processing apparatus 60 further includes: the fourth processing module is used for monitoring the execution process of the updated operation instruction; and if the execution process is abnormal, re-determining the operation instruction or re-selecting at least one instruction execution unit from the instruction execution unit set.
The application of the embodiment of the disclosure has at least the following beneficial effects:
direct interaction between the first client and the second client is isolated through the service processing system, and the target service is processed through the service processing system, so that the problems that multiple sets of service copies need to be maintained by the first client and the second client and are inconsistent due to the multiple sets of service copies are solved, and the efficiency of processing the target service is improved.
For the content that is not described in detail in the service processing apparatus provided in the embodiment of the present disclosure, reference may be made to the service processing method provided in the above embodiment, and the beneficial effects that the service processing apparatus provided in the embodiment of the present disclosure can achieve are the same as the service processing method provided in the above embodiment, and are not described again here.
Referring now to FIG. 4, a block diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 801 described below, and the memory may include at least one of a Read Only Memory (ROM)802, a Random Access Memory (RAM)803, and a storage device 808, as shown in fig. 4:
the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, which are sent by the first client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service; determining an operation instruction of the target service according to the demand parameter and the configuration parameter; and enabling the service processing system to process the target service by executing the operation instruction.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the designation of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, an embodiment provides a service processing method, including:
acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, which are sent by the first client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service;
determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and enabling the service processing system to process the target service by executing the operation instruction.
In the embodiment of the disclosure, the target service is a payment service, and the service processing system is an account hosting system.
In the embodiment of the disclosure, a first client is a service party, and a second client is a user party;
the requirement parameters comprise at least one item of identification, money amount, serial number of the user party and name of an interface between the service party and the account hosting system;
the configuration parameter comprises at least one of an identifier of the service party, an application identifier corresponding to the payment service, an activity identifier of the service party, and a key of the service party.
In the embodiment of the present disclosure, determining an operation instruction of a target service according to a demand parameter and a configuration parameter includes:
Splicing the demand parameters and the configuration parameters to obtain spliced parameters;
setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service;
or splicing the demand parameters and the configuration parameters to obtain spliced parameters;
setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted;
and encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service.
In the embodiment of the present disclosure, the executing the operation instruction to enable the service processing system to process the target service includes:
verifying the operation instruction to obtain a verification result;
if the verification result is legal, analyzing the operation instruction according to the configuration parameters to obtain configuration information;
obtaining an updated operation instruction according to the configuration information;
and calling one instruction execution unit in the instruction execution unit set included in the service processing system, and executing the updated operation instruction by using the called instruction execution unit so as to process the target service.
In this embodiment of the disclosure, if the target service is a payment service, the first client is a service party, and the second client is a user party, the configuration information includes at least one of the following items:
The method comprises the following steps of calling an identification of an instruction execution unit, an activity identification, an identification of a service party, an application identification corresponding to a payment service, an activity fund validity period, fund use limits, a fund inquiry account type, whether an activity needs to verify an identity, a minimum alarm balance of an activity account and activity page front-end configuration.
In the embodiment of the present disclosure, after executing the updated operation instruction by using the called instruction execution unit, the method further includes:
and persisting result information of the executed updated operation instruction into a preset database, and sending the result information to the first client.
In the embodiment of the disclosure, the execution process of the updated operation instruction is monitored;
and if the execution process is abnormal, re-determining the operation instruction or re-selecting at least one instruction execution unit from the instruction execution unit set.
According to one or more embodiments of the present disclosure, an embodiment provides a service processing apparatus, including:
the first processing module is used for acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service;
The second processing module is used for determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and the third processing module is used for enabling the service processing system to process the target service by executing the operation instruction.
In the embodiment of the disclosure, the target service is a payment service, and the service processing system is an account hosting system.
In the embodiment of the disclosure, a first client is a service party, and a second client is a user party;
the requirement parameters comprise at least one item of identification, money amount, serial number of the user party and name of an interface between the service party and the account hosting system;
the configuration parameter comprises at least one of an identifier of the service party, an application identifier corresponding to the payment service, an activity identifier of the service party, and a key of the service party.
In the embodiment of the disclosure, the second processing module is specifically configured to splice the demand parameter and the configuration parameter to obtain a spliced parameter; setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service; or splicing the demand parameters and the configuration parameters to obtain spliced parameters; setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted; and encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service.
In the embodiment of the disclosure, the third processing module is specifically configured to verify the operation instruction to obtain a verification result; if the verification result is legal, analyzing the operation instruction according to the configuration parameters to obtain configuration information; obtaining an updated operation instruction according to the configuration information; and calling one instruction execution unit in the instruction execution unit set included in the service processing system, and executing the updated operation instruction by using the called instruction execution unit so as to process the target service.
In this embodiment of the disclosure, if the target service is a payment service, the first client is a service party, and the second client is a user party, the configuration information includes at least one of the following items:
the method comprises the following steps of calling an identification of an instruction execution unit, an activity identification, an identification of a service party, an application identification corresponding to a payment service, an activity fund validity period, fund use limits, a fund inquiry account type, whether an activity needs to verify an identity, a minimum alarm balance of an activity account and activity page front-end configuration.
In this disclosure, the third processing module is further configured to, after the updated operation instruction is executed by the invoked instruction execution unit, persist result information of the executed updated operation instruction into a preset database, and send the result information to the first client.
In this embodiment of the present disclosure, the service processing apparatus further includes: the fourth processing module is used for monitoring the execution process of the updated operation instruction; and if the execution process is abnormal, re-determining the operation instruction or re-selecting at least one instruction execution unit from the instruction execution unit set.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A method for processing a service, comprising:
acquiring a demand parameter and a configuration parameter of a target service between a first client and a second client, which are sent by the first client, wherein the demand parameter is used for representing the processing demand of the target service between the first client and the second client, and the configuration parameter is used for representing a parameter associated with the first client in the processing process of the target service;
determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and executing the operation instruction to enable the service processing system to process the target service.
2. The method of claim 1, wherein the target transaction is a payment transaction and the transaction processing system is an account hosting system.
3. The method of claim 2, wherein the first client is a business side and the second client is a user side;
the requirement parameters comprise at least one of identification, amount, serial number of the user party and name of an interface between the business party and the account hosting system;
the configuration parameter comprises at least one of the identification of the service party, the application identification corresponding to the payment service, the activity identification of the service party and the secret key of the service party.
4. The method of claim 1, wherein the determining the operation instruction of the target service according to the demand parameter and the configuration parameter comprises:
splicing the demand parameters and the configuration parameters to obtain spliced parameters;
setting the spliced parameters according to a preset operation instruction format to obtain an operation instruction of the target service;
or splicing the demand parameters and the configuration parameters to obtain spliced parameters;
setting the spliced parameters according to a preset operation instruction format to obtain an instruction to be encrypted;
And encrypting the instruction to be encrypted according to the key of the first client to obtain the operation instruction of the target service.
5. The method according to any one of claims 1 to 4, wherein the causing a service processing system to process the target service by executing the operation instruction comprises:
verifying the operation instruction to obtain a verification result;
if the verification result is legal, analyzing the operation instruction according to the configuration parameters to obtain configuration information;
obtaining an updated operation instruction according to the configuration information;
and calling one instruction execution unit in the instruction execution unit set included in the service processing system, and executing the updated operation instruction by using the called instruction execution unit so as to process the target service.
6. The method of claim 5, wherein if the target service is a payment service, the first client is a service party, and the second client is a user party, the configuration information comprises at least one of:
the calling instruction execution unit identifier, the activity identifier, the service party identifier, the application identifier corresponding to the payment service, the activity fund validity period, the fund use limit, the fund inquiry account type, whether the activity needs to check the identity, the minimum alarm balance of the activity account, and the activity page front-end configuration.
7. The method of claim 5, after the executing the updated operation instruction with the called instruction execution unit, further comprising:
and persisting result information for executing the updated operation instruction into a preset database, and sending the result information to the first client.
8. The method of claim 5, further comprising:
monitoring the execution process of the updated operation instruction;
and if the execution process is abnormal, re-determining the operation instruction or re-selecting at least one instruction execution unit from the instruction execution unit set.
9. A traffic processing apparatus, comprising:
a first processing module, configured to obtain a requirement parameter and a configuration parameter of a target service between a first client and a second client, where the requirement parameter is used to represent that a processing requirement of the target service exists between the first client and the second client, and the configuration parameter is used to represent a parameter associated with the first client in a processing process of the target service;
The second processing module is used for determining an operation instruction of the target service according to the demand parameter and the configuration parameter;
and the third processing module is used for enabling the service processing system to process the target service by executing the operation instruction.
10. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor is configured to execute the service processing method according to any one of claims 1 to 8 by calling the computer program.
11. A computer-readable medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the traffic processing method according to any one of claims 1-8.
CN202010698537.5A 2020-07-20 2020-07-20 Service processing method and device, electronic equipment and computer readable medium Pending CN111857876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010698537.5A CN111857876A (en) 2020-07-20 2020-07-20 Service processing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010698537.5A CN111857876A (en) 2020-07-20 2020-07-20 Service processing method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN111857876A true CN111857876A (en) 2020-10-30

Family

ID=73002118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010698537.5A Pending CN111857876A (en) 2020-07-20 2020-07-20 Service processing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111857876A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104956395A (en) * 2012-12-27 2015-09-30 谷歌公司 Management of emails containing payments
WO2017072783A1 (en) * 2015-10-27 2017-05-04 Biswas Somnath System and method for electronic payment transactions via social media based messaging using non-text triggers
CN108369700A (en) * 2015-10-27 2018-08-03 屯屯·闻 Mobile-payment system
CN109242139A (en) * 2018-07-23 2019-01-18 华北电力大学 A kind of electric power day peak load prediction technique
CN109325041A (en) * 2018-08-14 2019-02-12 中国平安人寿保险股份有限公司 Business data processing method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104956395A (en) * 2012-12-27 2015-09-30 谷歌公司 Management of emails containing payments
WO2017072783A1 (en) * 2015-10-27 2017-05-04 Biswas Somnath System and method for electronic payment transactions via social media based messaging using non-text triggers
CN108369700A (en) * 2015-10-27 2018-08-03 屯屯·闻 Mobile-payment system
CN109242139A (en) * 2018-07-23 2019-01-18 华北电力大学 A kind of electric power day peak load prediction technique
CN109325041A (en) * 2018-08-14 2019-02-12 中国平安人寿保险股份有限公司 Business data processing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP2014112286A (en) System and method for supporting split bill payment
TWI778314B (en) An electronic payment method, device, system and storage medium
CN111857888B (en) Transaction processing method and device
CN112116351A (en) Service processing method and device
EP4358000A1 (en) Digital currency-based payment method, platform, terminal, and payment system
CN111199401B (en) Information processing method, device, terminal, server and storage medium
WO2023197917A1 (en) Payment security management method and apparatus and payment system
CN113780969A (en) Customs declaration method and system
WO2020063180A1 (en) Transaction processing method and device, electronic device and computer-readable storage medium
EP4365808A1 (en) Data verification method and apparatus
CN111857876A (en) Service processing method and device, electronic equipment and computer readable medium
CN115689570A (en) Business information risk identification method, device, equipment and medium
CN115396178A (en) User distributed authentication method, device, electronic equipment and storage medium
CN115619552A (en) Asynchronous processing method and device of transaction bill, electronic equipment and medium
CN110661866B (en) Bill processing method and equipment
CN114462991A (en) Method and apparatus for conditional transactions based on digital currency
CN113283891A (en) Information processing method and device and electronic equipment
CN111652694A (en) Order processing method and device and electronic equipment
CN111695985A (en) System and method for processing voluntary deposit service of accumulation fund
CN111127006A (en) Transaction processing method and system based on block chain
CN113746636B (en) Unified digital security service method, device, electronic equipment and storage medium
US20240193594A1 (en) Method, Terminal and System for Splitting and Managing Digital Currency in Transaction
EP4325411A1 (en) Digital currency management method and system
US20240193557A1 (en) Digital Currency Management Method and System
CN113129013B (en) Virtual resource transfer method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information