Business processing method, device, storage medium and electronic device
By parsing business requests through the server, finding basic elements of the database and generating business codes, it solves the problems of high development costs and poor scalability of traditional credit card systems when facing diversified lending business needs, achieving flexible business configuration and reducing development costs.
Patent Information
- Application Number
- CN202011399748.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-01
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-01
AI Technical Summary
When facing diversified lending business needs, traditional credit card systems need to frequently add business codes, resulting in high development costs and poor scalability.
The server pre-agrees the transmission protocol and data format to receive the business generation request, parses the request to obtain the business type, finds the basic elements in the database, generates the business code, and executes the business according to the business elements, reducing the need for the development of business code.
It reduces business code development costs, enhances business scalability, and can flexibly configure basic elements according to different marketing needs to meet different business needs.
Smart Images

Figure CN114637509B
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer technology, and in particular to a business processing method, device, storage medium and electronic device. Background Art
[0002] Nowadays, with the development of the economy, various businesses have emerged. But no matter what kind of business it is, there are corresponding business codes. Among them, credit card lending businesses are also different, such as cash installment, bill installment, micro-loan, and on-demand lending businesses. And the business codes corresponding to different lending businesses are naturally different.
[0003] In the prior art, the traditional credit card system can only support standardized loan business in terms of loan business. When a certain loan business needs to be processed, that is, when the standardized indicators of a certain loan business need to be changed according to new marketing needs, the business code corresponding to the processed loan business can be manually added to the credit card system to meet the current marketing needs of the loan business.
[0004] However, as the marketing needs of credit card lending business become increasingly diverse, the traditional credit card system needs to add new business codes each time according to different marketing needs, which will lead to high development costs of business codes. Summary of the invention
[0005] The embodiments of this specification provide a service processing method, device, storage medium and electronic device to partially solve the problems existing in the above-mentioned prior art.
[0006] The embodiments of this specification adopt the following technical solutions:
[0007] This specification provides a service processing method, in which a server pre-agreed with a first user on a transmission protocol and a data format used for transmitting a service generation request, the method comprising:
[0008] The server receives a service generation request sent by the first user through the transmission protocol;
[0009] Parsing the service generation request according to the data format to obtain the service type of the service to be generated by the first user carried in the first designated field of the service generation request;
[0010] Accessing a database, and searching the database for at least one basic element pre-stored and corresponding to the acquired business type according to the acquired business type;
[0011] According to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request, sending the at least one basic element to the address;
[0012] receiving the processed basic elements returned by the first user as business elements;
[0013] Generate a business code corresponding to the business according to the business elements and the component business codes corresponding to the pre-stored business elements;
[0014] When it is determined to execute the service for the second user according to the service element, the service is executed for the second user according to the service code.
[0015] Optionally, when the business type is a loan type, the basic elements include at least one of a borrowing element, a repayment element, a borrowing time and a consumer merchant.
[0016] Optionally, the business elements include: borrowing elements, repayment elements, borrowing time and consumer merchants configured by the first user;
[0017] The loan elements configured by the first user include: loan purpose, loan amount and installment handling fee;
[0018] The purpose of the loan is cash loan or repayment of consumption loan;
[0019] The loan amount is the loan amount corresponding to the second user with different risks;
[0020] The repayment elements configured by the first user include: repayment method and interest and fee calculation;
[0021] The repayment method is installment repayment or non-installment repayment.
[0022] Optionally, generating a business code corresponding to the business according to the business element and a pre-stored component business code corresponding to each business element specifically includes:
[0023] According to each received business element, obtain the component business code corresponding to each business element;
[0024] According to the component business code corresponding to each business element, a business code corresponding to the business is generated.
[0025] Optionally, generating a business code corresponding to the business according to the component business code corresponding to each business element specifically includes:
[0026] Through the association relationship between each business element, determine the calling relationship between the component business codes corresponding to each business element;
[0027] According to the calling relationship between each component business code, the business code corresponding to the business is generated.
[0028] Optionally, when it is determined according to the service element that the service is to be executed for the second user, executing the service for the second user according to the service code specifically includes:
[0029] When receiving a service execution request sent by a second user, obtaining a current service scenario of the second user according to the service execution request;
[0030] Determine whether the business scenario matches the business elements of the business;
[0031] If there is a match, the service is executed for the second user according to the service code corresponding to the service.
[0032] Optionally, determining whether the business scenario matches a business element of the business specifically includes:
[0033] Determine whether the following conditions are met:
[0034] whether the business execution time in the business scenario matches the loan time configured by the first user;
[0035] Whether the business execution location in the business scenario matches the location of the consumer merchant configured by the first user;
[0036] Whether the purpose of the business execution in the business scenario matches the purpose of the loan configured by the first user;
[0037] Whether the amount corresponding to the risk of the second user is greater than or equal to the consumption amount of the second user;
[0038] If the above-mentioned preset number of conditions are met, it is determined that the business scenario matches the business element of the business;
[0039] If the above-mentioned preset number of conditions is not met, it is determined that the business scenario does not match the business element of the business.
[0040] This specification provides a service processing device, including:
[0041] A first receiving module, configured for the server to receive, through the transmission protocol, a service generation request sent by the first user;
[0042] an acquisition module, configured to parse the service generation request according to the data format to acquire the service type of the service to be generated by the first user carried in the first designated field of the service generation request;
[0043] A search module, used to access a database and search, according to the acquired business type, in the database for at least one basic element pre-stored and corresponding to the acquired business type;
[0044] a sending module, configured to send the at least one basic element to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request;
[0045] A second receiving module, configured to receive the processed basic elements returned by the first user as service elements;
[0046] A generating module, used to generate a business code corresponding to the business according to the business elements and the component business codes corresponding to the pre-stored business elements;
[0047] An execution module is used to execute the service for the second user according to the service code when it is determined according to the service element that the service is to be executed for the second user.
[0048] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned business processing method is implemented.
[0049] The present specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned business processing method when executing the program.
[0050] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0051] When generating the required service, the embodiment of this specification searches for the pre-stored basic elements corresponding to the service type according to the service type of the service, the first user processes the basic elements to obtain the service elements, generates the service code of the service according to the service elements, and when the second user needs to execute the service, executes the service through the service code of the service. When processing a service of a certain service type, it is not necessary to add the service code of the service type, but only to process the basic elements of the service type, which not only reduces the service code development cost of the service of the service type, but also enhances the scalability of the service of the service type. In addition, for services of the same service type, in order to meet the different marketing needs of the services, this method can be used to configure the basic elements of the same service type differently. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0053] Figure 1 A schematic diagram of a business process flow provided in the embodiments of this specification;
[0054] Figure 2 A schematic diagram of the structure of a service processing device provided in an embodiment of this specification;
[0055] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0057] In the embodiments of this specification, the business to be processed is a lending business, and the lending business is also different, such as cash installment, bill installment, micro-loan, and on-demand lending business. However, no matter what kind of lending business is composed of two parts: borrowing and repayment. In the borrowing part, the purpose of the loan will be involved, and different loan orders will be generated for different purposes, and in the repayment part, different repayment methods will be involved. When the purpose of the loan is to repay a consumer loan, after the borrower consumes at a certain merchant, the lending business platform will retain the consumption record of the borrower, and the borrower can choose to repay in installments or non-installment repayment. When the borrower chooses to repay in installments, while the borrower successfully applies for installments, the lending business platform will generate a corresponding loan order based on the borrower's borrowing scenario at the time, and the loan order can be associated with each consumption record. Among them, the loan order contains the loan amount, installment handling fee, loan time and other contents. After the loan amount successfully repays the amount generated by the borrower's consumption, the lending business platform will generate a corresponding repayment order, and the repayment method of the repayment order is installment repayment.
[0058] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0059] Figure 1 The business process flow diagram provided for the embodiments of this specification includes:
[0060] S100: The server receives a service generation request sent by the first user through the transmission protocol.
[0061] S102: Parse the service generation request according to the data format to obtain the service type of the service to be generated by the first user carried in the first designated field of the service generation request.
[0062] In an embodiment of the present specification, the server pre-agrees with the first user on the transmission protocol and data format used for the transmission service generation request. The transmission protocol includes: TCP, UDP, HTTP and other transmission protocols, and the transmission protocol specifies the data format of the transmission service data. When the first user sends a service generation request to the server, the server parses the service generation request according to the pre-agreed transmission protocol and the corresponding data format to obtain the service type of the service to be generated. The service generation request includes a first designated field and a second designated field, the first designated field carries the service type of the service to be generated, and the second designated field carries the address of the first user.
[0063] Furthermore, the first user may be a developer, the business type may be a loan type, and the corresponding business to be generated is a loan business. For the loan business, in actual applications, the loan business may be processed according to different marketing activities to meet different loan needs.
[0064] For example, during the "6.18" period, a bank cooperated with XX merchant to launch a 5-day offline shopping event, during which consumers can pay installments for payment orders generated by consumption at XX merchant with 0 handling fee.
[0065] Before launching a marketing campaign, the first user needs to configure the above-mentioned lending demand and generate the business code for the corresponding lending business.
[0066] Therefore, the first user sends a business generation request carrying a loan type to the server. After receiving the business generation request sent by the first user, the server parses the business generation request and obtains the business type of the business to be generated.
[0067] S104: Accessing a database, and according to the acquired business type, searching the database for at least one pre-stored basic element corresponding to the acquired business type.
[0068] In the embodiment of the present specification, common features of each business are obtained in advance according to the business of different business types as basic elements, and the basic elements of each business are associated with the corresponding business type and stored in the database. When a business code of a certain business type needs to be generated, after the business type of the business generation request is obtained through the above step S102, the basic elements associated with the business type are searched in the database according to the business type.
[0069] Specifically, when the business type is a loan type, the basic elements associated with the loan type include at least one of the following: loan elements, repayment elements, loan time, and consumer merchant. Among them, the loan elements include: loan purpose, loan amount, and installment handling fee. The repayment elements include: repayment method and interest calculation and charging.
[0070] S106: According to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request, the at least one basic element is sent to the address, and the processed basic element returned by the first user is received as a service element.
[0071] In the embodiment of the present specification, after parsing the service generation request sent by the first user in step S102, the address of the first user is obtained, and then the basic elements are sent to the address of the first user. After the first user obtains some basic elements of the service to be generated, the first user configures these basic elements, and the configured basic elements are used as service elements.
[0072] Specifically, the purpose of borrowing in the above-mentioned borrowing elements is divided into cash loan type borrowing and consumption repayment type borrowing. Among them, cash loan type borrowing refers to directly lending the loan amount to the account designated by the borrower, and consumption repayment type borrowing refers to: based on the borrower's consumption record, the loan amount is directly used to repay the amount generated by the borrower's consumption, and there is no need to lend the loan amount to the borrower's account. The loan amount means: when the client user borrows money, first determine the risk level of the second user (i.e., the client user), and then obtain the loan amount corresponding to the risk level of the second user according to the different loan amounts corresponding to different risk levels. The repayment method in the repayment element is divided into installment repayment and non-installment repayment. Among them, installment repayment refers to repaying the loan amount in N installments, and non-installment repayment refers to repaying at any time before the preset repayment date. Interest and fee calculation in the repayment element refers to calculating interest and calculating handling fees.
[0073] Further, continue to use the above example to configure the basic elements of the loan type according to the "6.18" activity. The configuration results are as follows:
[0074] Loan purpose: repayment of consumer loans;
[0075] Installment fee: 0;
[0076] Loan period: June 14 to June 18;
[0077] Consumer merchant: XX merchant;
[0078] Repayment method: installment repayment;
[0079] Interest-based billing: interest is calculated, but installment fees are not calculated;
[0080] Loan amount: as shown in Table 1.
[0081] Risk Level Loan amount / yuan Low risk >10000 Low to medium risk 5001~10000 Medium risk 2000~5000 High risk <2000
[0082] Table 1
[0083] S108: Generate a business code corresponding to the business according to the business elements and the pre-stored component business codes corresponding to the business elements.
[0084] In an embodiment of the present specification, based on each received business element, a pre-stored component business code corresponding to each business element is obtained, and through the association relationship between each business element, the calling relationship between the component business codes corresponding to each business element is determined, and based on the calling relationship between each component business code, a business code corresponding to the business to be generated is generated, that is, the business code for the lending business during the "6.18" period.
[0085] Specifically, for each business element, a component business code corresponding to the business element is pre-stored. According to the association relationship between each business element, the first user can also configure the calling relationship between the component business codes corresponding to each business element.
[0086] Furthermore, the repayment method in the above example is associated with interest calculation and billing, that is, installment repayment corresponds to the method of calculating interest and installment fees for installment repayment, and non-installment repayment corresponds to the method of calculating interest for non-installment repayment. Developers can configure the calling relationship between the component business code corresponding to the repayment method and the component business code corresponding to interest calculation and billing. In addition, when the client user executes a loan business, it is necessary to judge the current business scenario of the client user, and when judging, it is necessary to call the component business code related to the loan, and such a calling relationship also needs to be configured by the developer.
[0087] S110: When it is determined according to the service element that the service is to be executed for the second user, the service is executed for the second user according to the service code.
[0088] In the embodiment of the present specification, when a service execution request sent by the second user is received, the current service scenario of the second user is obtained according to the sent service execution request. It is determined whether the current service scenario matches the service element of the above-mentioned configured service. If they match, it can be determined that the service currently required to be executed by the second user is the above-mentioned configured service. The service is executed for the second user according to the service code corresponding to the above-mentioned configured service.
[0089] In the determination of whether the business scenario of the business requested by the second user matches the business elements of the above-configured business, it is possible to determine whether the following conditions are met:
[0090] Determine whether the business execution time in the business scenario matches the loan time configured by the first user;
[0091] Determine the location of the consumer merchant corresponding to the consumer merchant configured by the first user, and judge whether the business execution location in the business scenario matches the location of the consumer merchant configured by the first user;
[0092] Determining whether the purpose of the business execution in the business scenario matches the purpose of the loan configured by the first user;
[0093] Determine the risk of the second user, find a loan amount corresponding to the risk of the second user based on the risk of the second user, and determine whether the loan amount of the second user is greater than or equal to the consumption amount of the second user based on the loan amount corresponding to the risk of the second user;
[0094] If the above-mentioned preset number of conditions are met, it is determined that the business scenario of the service requested by the second user matches the business elements of the above-mentioned configured service; if the above-mentioned preset number of conditions are not met, it is determined that the business scenario of the service requested by the second user does not match the business elements of the above-mentioned configured service.
[0095] Specifically, continue to use the above example, obtain the borrowing time, location of the consumer merchant, purpose of the borrowing, and the consumption amount of user A in the current business scenario of user A (second user), determine whether the borrowing time of user A's business scenario is between June 14 and June 18, find the current consumer merchant of user A according to the location of the current consumer merchant of user A, determine whether the consumer merchant of user A's business scenario is XX merchant, determine whether the purpose of the borrowing in user A's business scenario is to repay consumer loans, first determine the risk level of the second user, find the borrowing amount corresponding to the risk level of user A according to the risk level of user A and the pre-configured correspondence between different risk levels and borrowing amounts, and determine whether the borrowing amount of user A in the business scenario of user A is greater than or equal to the consumption amount of user A. If the preset number is 3, that is, any 3 of the above judgment conditions are met, it can be determined that the business currently requested by user A is a loan business during the "6.18" period. User A can enjoy the benefits brought by the "6.18" event, that is, 0 handling fee installment.
[0096] Through the above Figure 1 It can be seen from the method shown that when generating the required business, this specification searches for the preset basic elements corresponding to the business type according to the business type of the business, the first user processes the basic elements to obtain the business elements, generates the business code of the business according to the business elements, and when the second user needs to execute the business, the business is executed through the business code of the business. When adding a business of a certain business type, it is not necessary to add the business code of the business type, but only to process the basic elements of the business type, which not only reduces the cost of business code development, but also enhances the scalability of the business of the business type. Among them, the processing is to configure the basic elements of the business type differently according to the needs of the actual application. In addition, for the business of the same business type, in order to meet the different marketing needs of the same business, it is only necessary to configure the basic elements of the same business type differently, or only add the basic elements of the same business type, and there is no need to add the complete business code of the lending business that meets the marketing needs.
[0097] The above is the service processing method provided in the embodiments of this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.
[0098] Figure 2 A schematic diagram of the structure of a service processing device provided in an embodiment of this specification, the device comprising:
[0099] A first receiving module 201, configured for the server to receive a service generation request sent by the first user through the transmission protocol;
[0100] An acquisition module 202, configured to parse the service generation request according to the data format to obtain the service type of the service to be generated by the first user carried in the first designated field of the service generation request;
[0101] A search module 203 is used to access a database and search the database for at least one basic element corresponding to the acquired business type that is pre-stored according to the acquired business type;
[0102] A sending module 204, configured to send the at least one basic element to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request;
[0103] A second receiving module 205 is used to receive the processed basic elements returned by the first user as business elements;
[0104] A generating module 206, configured to generate a business code corresponding to the business according to the business elements and the pre-stored component business codes corresponding to the business elements;
[0105] The execution module 207 is configured to execute the service for the second user according to the service code when it is determined according to the service element that the service is to be executed for the second user.
[0106] Optionally, when the business type is a loan type, the basic elements include at least one of a borrowing element, a repayment element, a borrowing time and a consumer merchant.
[0107] Optionally, the business elements include: borrowing elements, repayment elements, borrowing time and consumer merchants configured by the first user;
[0108] The loan elements configured by the first user include: loan purpose, loan amount and installment handling fee;
[0109] The purpose of the loan is cash loan or repayment of consumption loan;
[0110] The loan amount is the loan amount corresponding to the second user with different risks;
[0111] The repayment elements configured by the first user include: repayment method and interest and fee calculation;
[0112] The repayment method is installment repayment or non-installment repayment.
[0113] Optionally, the generating module 206 is specifically configured to obtain, according to each received business element, a component business code corresponding to each business element;
[0114] According to the component business code corresponding to each business element, a business code corresponding to the business is generated.
[0115] Optionally, the generating module 206 is specifically used to determine the calling relationship between the component business codes corresponding to each business element through the association relationship between each business element;
[0116] According to the calling relationship between each component business code, the business code corresponding to the business is generated.
[0117] Optionally, the execution module 207 is specifically configured to, when receiving a service execution request sent by a second user, obtain a current service scenario of the second user according to the service execution request;
[0118] Determine whether the business scenario matches the business elements of the business;
[0119] If there is a match, the service is executed for the second user according to the service code corresponding to the service.
[0120] Optionally, the execution module 207 is specifically configured to determine whether the following conditions are met:
[0121] whether the business execution time in the business scenario matches the loan time configured by the first user;
[0122] Whether the business execution location in the business scenario matches the location of the consumer merchant configured by the first user;
[0123] Whether the purpose of the business execution in the business scenario matches the purpose of the loan configured by the first user;
[0124] Whether the amount corresponding to the risk of the second user is greater than or equal to the consumption amount of the second user;
[0125] If the above-mentioned preset number of conditions are met, it is determined that the business scenario matches the business element of the business;
[0126] If the above-mentioned preset number of conditions is not met, it is determined that the business scenario does not match the business element of the business.
[0127] This specification also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, it can be used to perform the above Figure 1 Provides business processing methods.
[0128] based on Figure 1 The motion trajectory prediction method shown in the present specification also provides Figure 3As shown in Figure 3, at the hardware level, the unmanned device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The business processing method described.
[0129] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0130] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0131] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0132] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0133] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0134] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0135] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] 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.
[0137] 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.
[0138] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0139] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0140] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0141] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0142] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0143] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0144] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0145] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A business processing method, It is characterized in that The server pre-agrees with the first user on a transmission protocol and a data format used for the transmission service generation request, and the method includes: The server receives a service generation request sent by the first user through the transmission protocol; Parsing the service generation request according to the data format to obtain the service type of the service to be generated by the first user carried in the first designated field of the service generation request; Accessing a database, and searching the database for at least one basic element pre-stored and corresponding to the acquired business type according to the acquired business type; According to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request, sending the at least one basic element to the address; receiving the processed basic elements returned by the first user as business elements; Generate a business code corresponding to the business according to the business elements and the component business codes corresponding to the pre-stored business elements; When it is determined to execute the service for the second user according to the service element, the service is executed for the second user according to the service code.
2. The method according to claim 1, It is characterized in that When the business type is a loan type, the basic elements include at least one of a borrowing element, a repayment element, a borrowing time and a consumer merchant.
3. The method according to claim 2, It is characterized in that The business elements include: borrowing elements, repayment elements, borrowing time and consumer merchants configured by the first user; The loan elements configured by the first user include: loan purpose, loan amount and installment handling fee; The purpose of the loan is cash loan or repayment of consumption loan; The loan amount is the loan amount corresponding to the second user with different risks; The repayment elements configured by the first user include: repayment method and interest and fee calculation; The repayment method is installment repayment or non-installment repayment.
4. The method according to claim 1, It is characterized in that Generating a business code corresponding to the business according to the business elements and the pre-stored component business codes corresponding to the business elements, specifically includes: According to each received business element, obtain the component business code corresponding to each business element; According to the component business code corresponding to each business element, a business code corresponding to the business is generated.
5. The method according to claim 4, It is characterized in that According to the component business code corresponding to each business element, a business code corresponding to the business is generated, specifically including: Through the association relationship between each business element, determine the calling relationship between the component business codes corresponding to each business element; According to the calling relationship between each component business code, the business code corresponding to the business is generated.
6. The method according to claim 3, It is characterized in that When it is determined according to the service element that the service is to be executed for the second user, executing the service for the second user according to the service code specifically includes: When receiving a service execution request sent by a second user, obtaining a current service scenario of the second user according to the service execution request; Determine whether the business scenario matches the business elements of the business; If there is a match, the service is executed for the second user according to the service code corresponding to the service.
7. The method according to claim 6, It is characterized in that Determining whether the business scenario matches the business element of the business specifically includes: Determine whether the following conditions are met: whether the business execution time in the business scenario matches the loan time configured by the first user; Whether the business execution location in the business scenario matches the location of the consumer merchant configured by the first user; Whether the purpose of the business execution in the business scenario matches the purpose of the loan configured by the first user; Whether the amount corresponding to the risk of the second user is greater than or equal to the consumption amount of the second user; If the above-mentioned preset number of conditions are met, it is determined that the business scenario matches the business element of the business; If the above-mentioned preset number of conditions is not met, it is determined that the business scenario does not match the business element of the business.
8. A business processing device, It is characterized in that include: A first receiving module, used for the server to receive a service generation request sent by a first user through a transmission protocol; an acquisition module, configured to parse the service generation request according to a data format to obtain a service type of the service to be generated by the first user carried in a first designated field of the service generation request; A search module, used to access a database and search, according to the acquired business type, in the database for at least one basic element pre-stored and corresponding to the acquired business type; a sending module, configured to send the at least one basic element to the address of the first user carried in the second designated field of the service generation request obtained after parsing the service generation request; A second receiving module, configured to receive the processed basic elements returned by the first user as service elements; A generating module, used to generate a business code corresponding to the business according to the business elements and the component business codes corresponding to the pre-stored business elements; An execution module is used to execute the service for the second user according to the service code when it is determined according to the service element that the service is to be executed for the second user.
9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.
