A service expansion method, device, terminal and storage medium
By matching the expansion points and candidate services by preset extension management components, the inefficiency problem caused by the dependence relationship between the expansion points and the business party in the existing technology is solved, and more efficient business expansion and stronger management and control capabilities are achieved.
Patent Information
- Application Number
- CN202010676725.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-14
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-07-14
AI Technical Summary
In the existing business expansion methods, there is a strong dependence between the expansion points and the business parties, resulting in low business expansion efficiency. When adding new business parties, you need to perceive and modify the expansion points, which will affect efficiency.
Use preset extension management components to match extension points and multiple candidate services. By receiving condition information in the extension request, the component calls the component to obtain candidate services, and makes matching judgments based on condition information. When matching, obtain the expansion information of the target service and output Business expansion information to reduce the direct connection between expansion points and business parties.
It improves the efficiency of business expansion, reduces the docking needs of the expansion point provider for each business party, unifies the review and management of business rules and extension rules, and improves the expansion control capabilities.
Smart Images

Figure CN113934923B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a service expansion method, device, terminal and storage medium. Background Art
[0002] In the current business process and system display interface, you can customize the target points for extension, such as the cashier display interface, payment success page display interface, and user payment authentication process. The main implementation method of existing extensions is: the extension point and the business party are directly connected, the two parties determine the connection contract, and the extension point directly queries the business party system to obtain extension information. However, this method has a strong dependency relationship between the extension point and the business party. When a new business party is added, the extension point needs to be sensed and modified, which leads to low efficiency of business extension. Summary of the invention
[0003] In view of this, embodiments of the present application provide a service expansion method, device, terminal and storage medium, which can improve the efficiency of service expansion.
[0004] In a first aspect, an embodiment of the present application provides a service expansion method, including:
[0005] receiving an extension request acting on an extension point, the extension request carrying condition information for matching service extension;
[0006] Based on the extension request, a preset extension management component is called to obtain a candidate service corresponding to the extension point;
[0007] Performing matching judgment between the extension point and the candidate service according to the condition information;
[0008] When the extension point matches a target service among the candidate services, acquiring service extension information of the target service;
[0009] The service extension information is output.
[0010] In a second aspect, the present application also provides a service expansion device, including:
[0011] A request acquisition unit, configured to receive an extension request acting on an extension point, wherein the extension request carries condition information for matching service extension;
[0012] A service acquisition unit, configured to call a preset extension management component based on the extension request to acquire a candidate service corresponding to the extension point;
[0013] A matching unit, configured to match the extension point with the candidate service according to the condition information;
[0014] an information acquisition unit, configured to acquire service extension information of the target service when the extension point matches the target service among the candidate services;
[0015] An output unit is used to output the service extension information.
[0016] In a third aspect, the present application further provides a terminal, comprising: a processor and a memory; the memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to execute the steps in the above-mentioned service expansion method.
[0017] In a fourth aspect, the present application further provides a storage medium on which a computer program is stored. When the computer program runs on a computer, the computer executes the above-mentioned business expansion method.
[0018] The embodiment of the present application can receive an extension request acting on an extension point, the extension request carries condition information for matching business extension; based on the extension request, a preset extension management component is called to obtain the candidate business corresponding to the extension point; the extension point is matched with the candidate business according to the condition information; when the extension point matches the target business in the candidate business, the business extension information of the target business is obtained; and the business extension information is output. This embodiment uses an extension management component to match extension points and multiple candidate businesses. The extension point provider does not need to connect to each extension business party, thereby improving business extension efficiency. In addition, for different candidate businesses, business rules and extension rules are uniformly reviewed and managed, which can improve the management and control capabilities of the extension. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of an application scenario of the business expansion method provided in an embodiment of the present application.
[0021] Figure 2a It is a flowchart of the service expansion method provided in an embodiment of the present application.
[0022] Figure 2b This is another flowchart of the service expansion method provided in an embodiment of the present application.
[0023] Figure 3 It is a structural diagram of a service expansion device provided in an embodiment of the present application.
[0024] Figure 4 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application.
[0025] Figure 5a It is a schematic diagram of a business expansion structure provided in an embodiment of the present application.
[0026] Figure 5b It is a schematic diagram of the structure of an extended management component provided in an embodiment of the present application.
[0027] Figure 5c It is a schematic diagram of an extended management component application process provided in an embodiment of the present application.
[0028] Figure 5d This is a schematic diagram of the basic principles of the matching principle provided in the embodiment of the present application.
[0029] Figure 5e It is a schematic diagram of the compound principle of the matching principle provided in the embodiment of the present application.
[0030] Figure 5f It is a schematic diagram of matching judgment provided in an embodiment of the present application.
[0031] Figure 6 It is a schematic diagram of the extended page provided in the embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will group the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0033] The embodiments of the present invention provide a service expansion method, device, terminal and storage medium.
[0034] An embodiment of the present invention provides a service expansion system, including a service expansion device provided by any embodiment of the present invention, and the service expansion device can be specifically integrated in a network device, such as a terminal, wherein the terminal can be a mobile phone, a tablet computer, a laptop computer, a smart wearable device, and the like.
[0035] The service expansion system may also include other network devices, such as a server, which may be a single server or a server cluster.
[0036] For example, refer to Figure 1 The business expansion system includes a terminal and a server, and the terminal and the server are connected through a network. The network includes network entities such as routers and gateways.
[0037] The terminal can receive an extension request acting on an extension point, the extension request carrying condition information for matching service extension; based on the extension request, call a preset extension management component to obtain a candidate service corresponding to the extension point; perform matching judgment between the extension point and the candidate service according to the condition information; when the extension point matches a target service among the candidate services, obtain service extension information of the target service; and output the service extension information.
[0038] Above Figure 1 The example is only an example of a system architecture for implementing the embodiment of the present invention. The embodiment of the present invention is not limited to the above Figure 1 The system structure shown is based on which various embodiments of the present invention are proposed.
[0039] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0040] refer to Figure 2a This embodiment will be described from the perspective of a service expansion method. This service expansion method can be executed by a terminal or jointly by a terminal and a server.
[0041] 101. Receive an extension request acting on an extension point, where the extension request carries condition information for matching service extension.
[0042] Among them, the extension point refers to the target point that can be personalized and extended in the current business process and system display interface, such as the cash register display interface, the payment success page display interface, and the target point that can be personalized in the user payment authentication process.
[0043] In one embodiment, the extension request can be triggered based on the user's operation on the terminal interface. For example, when the user clicks the command interface on the extension point, the extension request is triggered. The command interface has various forms of expression, such as input boxes, selection boxes, icons, buttons, etc.
[0044] refer to Figure 5a , this step may also include:
[0045] Based on the extension point, generating a simulation extension point corresponding to the extension point in the preset extension management component;
[0046] An extension request sent by an extension point provider to the simulation extension point is received, wherein the extension request carries condition information for matching service extension.
[0047] Specifically, the extension point provides a preset extension management component to apply for registration of a simulated extension point, and configures the extension point rules for the simulated extension point. The business party applies to register as an extended business, applies to extend a certain extension point, and configures the extension point business rules for the business party.
[0048] This embodiment decouples the extension point and the business party, thereby improving the extension flexibility and realizing flexible extension demands by configuring personalized rules.
[0049] 102. Call a preset extension management component based on the extension request to obtain a candidate service corresponding to the extension point.
[0050] The business refers to the business that can be extended at the extension point, such as payment sub-business and payment sub-business.
[0051] In this embodiment, an extension management component may include multiple candidate services. The use of extension management components can improve the efficiency of service extension, and the extension point provider does not need to connect to each extension service party.
[0052] refer to Figure 5c ,The extension management component may contain multiple candidate businesses.
[0053] In one embodiment, reference Figure 5b The extension management component can include four parts: extension manager body, extension point management, extension business management, and rule management. The specific functions are as follows:
[0054] (1) The role of extension point management: providing the ability to apply for and register extension points, and recording extension point information and extension contracts.
[0055] (2) The role of extended business management: providing business party registration capabilities, recording business party information and business party expansion methods.
[0056] (3) Role of rule management: It provides rule configuration and storage capabilities. Extension point applicants and business parties can configure extension rules.
[0057] (4) Extension manager body: processes extension point requests, performs rule matching, and operates business party extensions.
[0058] 103. Perform a match determination between the extension point and the candidate service according to the condition information.
[0059] The extension request carries condition information, which is rule information used to determine whether the extension point matches the candidate service.
[0060] In one embodiment, the condition information includes a matching principle between the extension point and the target service, and the step of “matching the extension point with the candidate service according to the condition information” may include:
[0061] Acquire the extension point rule corresponding to the extension point and the candidate business rule corresponding to the candidate business;
[0062] Determine whether the relationship between the extension point rule and the candidate business rule satisfies the matching principle;
[0063] If so, it is determined that the business corresponding to the candidate business rule is the target business, and the target business matches the extension point.
[0064] Among them, reference Figure 5d and Figure 5e ,The matching principle includes the basic matching principle rules and the compound matching principle rules, as follows:
[0065] Basic rules of matching principles: rules for equal, greater than, less than, true, false, and list judgments on business parameters.
[0066] Matching principle composite rule: It is formed by combining the basic rules of the matching principle. All the rules in the combination must pass the matching conditions for the composite rule to pass the matching conditions.
[0067] In one embodiment, reference Figure 5f , Rule 1 and Rule 2 are both equality rules. The product_id in the extended condition is 1, which does not match the equality rule of Rule 1; the industry_flag in the extended condition is 2, which meets the equality requirement of Rule 2 that industry_flag is 2.
[0068] 104. When the extension point matches a target service among the candidate services, obtain service extension information of the target service.
[0069] The service extension information refers to the service information that can be obtained at the extension point.
[0070] In one embodiment, when the extension point matches a target service among the candidate services, the service extension information of the target service is acquired by adopting a target extension mode corresponding to the target service.
[0071] Specifically, target extension methods include static extension, query extension, and injection extension, as follows:
[0072] Static extension: One of the ways to obtain the business party's extension information. The business party provides a static configuration file for storing extension information. When the extension behavior occurs, the extension management component reads the extension information in the static configuration.
[0073] Query extension: One of the ways to obtain extended information from the business side. The business side provides a remote procedure call interface for obtaining extended information. When the extended behavior occurs, the extension management component obtains the extended information through a remote procedure call.
[0074] Injection extension: One of the ways to obtain extension information from the business side. The business side writes the extension information into the extension information storage maintained by the extension management component. When the extension behavior occurs, the extension management component obtains the extension information from the extension information storage.
[0075] 105. Output the service extension information.
[0076] In one embodiment, after the terminal obtains the service extension information, it may display a service extension page and display the service extension information on the page.
[0077] As can be seen from the above, this embodiment can receive an extension request acting on an extension point, the extension request carries condition information for matching business extension; based on the extension request, call a preset extension management component to obtain the candidate business corresponding to the extension point; match the extension point with the candidate business according to the condition information; when the extension point matches the target business in the candidate business, obtain the business extension information of the target business; output the business extension information. This embodiment uses an extension management component to match extension points and multiple candidate businesses. The extension point provider does not need to connect to each extension business party, thereby improving business extension efficiency. In addition, for different candidate businesses, business rules and extension rules are uniformly reviewed and managed, which can improve the management and control capabilities of the extension.
[0078] refer to Figure 6 In this embodiment, the service expansion method is performed by the terminal, and is described by taking the example of clicking "Manage WeChat Payment Points" on the payment voucher interface. Specifically, it is performed by the service expansion device integrated in the terminal. Figure 2b As shown, the specific process of the business expansion method can be as follows:
[0079] 201. A terminal receives an extension request acting on an extension point, where the extension request carries condition information for matching service extension.
[0080] When the user clicks the "Manage Payment Points" command interface on the page, an extension request is triggered. This command interface is the "Payment Voucher" extension point.
[0081] 202. The terminal calls a preset extension management component based on the extension request to obtain a candidate service corresponding to the extension point.
[0082] The preset management component can determine the candidate services that can be extended at the extension point according to the relevant information of the extension point (such as the extension point ID information), and obtain the service ID and corresponding service rules of the candidate services.
[0083] 203. The terminal performs a matching judgment between the extension point and the candidate service according to the condition information.
[0084] According to the extension rule corresponding to the "payment voucher" extension point, the business rules of the corresponding candidate business are matched. For example, the "payment voucher" extension point can be successfully matched with the target business "payment sub-business".
[0085] 204. When the extension point matches a target service among the candidate services, the terminal obtains service extension information of the target service.
[0086] In this embodiment, the "payment voucher" belongs to the "payment sub-business" and meets the "greater than rule" that the extended rule is greater than the business rule.
[0087] 205. The terminal displays the service extension information according to the service extension information.
[0088] In this embodiment, the service extension information refers to the payment score information. After the payment score information is obtained, the payment score page can be displayed.
[0089] In order to better implement the above method, accordingly, the embodiment of the present invention also provides a service expansion device, which can be integrated in the playback terminal, referring to Figure 3 The service expansion device may include a request acquisition unit 301, a service acquisition unit 302, a matching unit 303, an information acquisition unit 304 and an output unit 305, as follows:
[0090] (1) a request acquisition unit 301, configured to receive an extension request acting on an extension point, wherein the extension request carries condition information for matching service extension;
[0091] (2) a service acquisition unit 302, configured to call a preset extension management component based on the extension request to acquire a candidate service corresponding to the extension point;
[0092] (3) a matching unit 303, configured to match the extension point with the candidate service according to the condition information;
[0093] (4) an information acquisition unit 304, configured to acquire service extension information of the target service when the extension point matches the target service among the candidate services;
[0094] (5) An output unit 305, used to output the service extension information.
[0095] In one embodiment, the request obtaining unit 301 may be specifically used for:
[0096] Based on the extension point, generating a simulation extension point corresponding to the extension point in the preset extension management component;
[0097] An extension request sent by an extension point provider to the simulation extension point is received, wherein the extension request carries condition information for matching service extension.
[0098] In one embodiment, the matching unit 303 may be specifically used for:
[0099] Acquire the extension point rule corresponding to the extension point and the candidate business rule corresponding to the candidate business;
[0100] Determine whether the relationship between the extension point rule and the candidate business rule satisfies the matching principle;
[0101] If so, it is determined that the business corresponding to the candidate business rule is the target business, and the target business matches the extension point.
[0102] In one embodiment, the output unit 305 may be specifically used for:
[0103] When the extension point matches the target service among the candidate services, obtaining service extension information of the target service from the storage unit of the extension management component,
[0104] or,
[0105] When the extension point matches the target service among the candidate services, obtaining service extension information of the target service based on the access interface of the target service,
[0106] or,
[0107] When the extension point matches the target service among the candidate services, the service extension information of the target service is written into the storage unit of the extension management component.
[0108] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0109] As can be seen from the above, the embodiment of the present invention can receive an extension request acting on an extension point, the extension request carries condition information for matching business extension; based on the extension request, call a preset extension management component to obtain the candidate business corresponding to the extension point; match the extension point with the candidate business according to the condition information; when the extension point matches the target business in the candidate business, obtain the business extension information of the target business; output the business extension information. This embodiment uses an extension management component to match extension points and multiple candidate businesses. The extension point provider does not need to connect to each extension business party, thereby improving business extension efficiency. In addition, for different candidate businesses, business rules and extension rules are uniformly reviewed and managed, which can improve the management and control capabilities of the extension.
[0110] In addition, an embodiment of the present invention further provides a terminal, such as Figure 4 As shown, it shows a schematic diagram of the structure of the terminal involved in the embodiment of the present invention, and the terminal may include components such as a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, an input module 404, and a communication module 405. Those skilled in the art can understand that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0111] The processor 401 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402. In some embodiments, the processor 401 may include one or more processing cores; in some embodiments, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0112] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0113] The terminal also includes a power supply 403 for supplying power to various components. In some embodiments, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0114] The terminal may further include an input module 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0115] The terminal may further include a communication module 405. In some embodiments, the communication module 405 may include a wireless submodule, and the terminal may perform short-range wireless transmission through the wireless submodule of the communication module 405, thereby providing wireless broadband Internet access. For example, the communication module 405 may be used to help users obtain transaction data, send and receive emails, browse web pages, and access streaming media.
[0116] Although not shown, the terminal may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 401 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402 to achieve various functions, as follows:
[0117] receiving an extension request acting on an extension point, the extension request carrying condition information for matching service extension;
[0118] Based on the extension request, a preset extension management component is called to obtain a candidate service corresponding to the extension point;
[0119] Performing matching judgment between the extension point and the candidate service according to the condition information;
[0120] When the extension point matches a target service among the candidate services, acquiring service extension information of the target service;
[0121] The service extension information is output.
[0122] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0123] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0124] To this end, an embodiment of the present invention further provides a storage medium, in which a plurality of instructions are stored. The instructions can be loaded by a processor to execute the steps in any one of the service expansion methods provided in the embodiments of the present invention.
[0125] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0126] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0127] Since the instructions or computer programs stored in the storage medium can execute the steps in any one of the business expansion methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the business expansion methods provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0128] The above is a detailed introduction to a service expansion method, device, terminal and storage medium provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A service expansion method, characterized in that: Applied to terminals, including: receiving an extension request acting on an extension point, the extension request carrying condition information including a matching principle between the extension point and a target service; Based on the extension request, a preset extension management component is called to obtain a candidate service corresponding to the extension point; Acquire the extension point rule corresponding to the extension point and the candidate business rule corresponding to the candidate business; Determine whether the relationship between the extension point rule and the candidate business rule satisfies the matching principle; If yes, determining that the business corresponding to the candidate business rule is the target business, and the target business matches the extension point; When the extension point matches the target service among the candidate services, the service extension information of the target service is read from the static configuration file through the preset extension management component; or, the service extension information of the target service is obtained through the remote procedure call interface through the preset extension management component; The service extension information is output.
2. The service expansion method according to claim 1, characterized in that: The receiving of an extension request acting on an extension point, wherein the extension request carries condition information including a matching principle between the extension point and a target service, includes: Based on the extension point, generating a simulation extension point corresponding to the extension point in the preset extension management component; An extension request sent by an extension point provider to the simulation extension point is received, wherein the extension request carries condition information for matching service extension.
3. The service expansion method according to claim 1, characterized in that: When the extension point matches the target service among the candidate services, obtaining service extension information of the target service includes: When the extension point matches a target service among the candidate services, the service extension information of the target service is acquired by adopting a target extension mode corresponding to the target service.
4. The service expansion method according to claim 3, characterized in that: When the extension point matches the target service among the candidate services, adopting the target extension mode corresponding to the target service to obtain service extension information of the target service includes: When the extension point matches the target service among the candidate services, the service extension information of the target service is acquired from the storage unit of the extension management component.
5. The service expansion method according to claim 3, characterized in that: When the extension point matches the target service among the candidate services, adopting the target extension mode corresponding to the target service to obtain service extension information of the target service includes: When the extension point matches a target service among the candidate services, service extension information of the target service is acquired based on an access interface of the target service.
6. The service expansion method according to claim 3, characterized in that: When the extension point matches the target service among the candidate services, adopting the target extension mode corresponding to the target service to obtain service extension information of the target service includes: When the extension point matches the target service among the candidate services, the service extension information of the target service is written into the storage unit of the extension management component.
7. A service expansion device, characterized in that: Applied to terminals, including: A request acquisition unit, configured to receive an extension request acting on an extension point, wherein the extension request carries condition information including a matching principle between the extension point and a target service; A service acquisition unit, configured to call a preset extension management component based on the extension request to acquire a candidate service corresponding to the extension point; A matching unit, configured to perform matching judgment between the extension point and the candidate business according to the condition information, comprising: obtaining an extension point rule corresponding to the extension point and a candidate business rule corresponding to the candidate business; judging whether the relationship between the extension point rule and the candidate business rule satisfies the matching principle; and if so, determining that the business corresponding to the candidate business rule is a target business, and the target business matches the extension point; an information acquisition unit, configured to acquire the service extension information of the target service through the preset extension management component when the extension point matches the target service in the candidate services, including: reading the service extension information of the target service from a static configuration file through the preset extension management component; or acquiring the service extension information of the target service through a remote procedure call interface through the preset extension management component; An output unit is used to output the service extension information.
8. A terminal, characterized in that: include: Processor and memory; The memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to execute the steps in the service expansion method according to any one of claims 1 to 6.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program runs on a computer, the computer is enabled to execute the service expansion method according to any one of claims 1 to 6.
