Service execution method and device, equipment and medium

By integrating business components on the resource client, the problem of newly developed digital resource access functions and single business processing capabilities is solved, and the business expansion and function enrichment of the resource client are realized.

CN118842842APending Publication Date: 2024-10-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310469158.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-23
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

It is difficult for existing resource clients to access the features and functions of newly developed digital resources, and their business processing capabilities are single, making it impossible to access new business functions.

Method used

Business expansion is achieved by integrating business components on the target resource client, receiving call requests from business objects, obtaining matching business interfaces, calling interface interactive components to output business content, and executing extended services such as business signatures and asset queries.

Benefits of technology

Without modifying the original source code, it enriches the business processing capabilities of the resource client, quickly realizes business expansion, and improves the access efficiency and user experience of new business functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842842A_ABST
    Figure CN118842842A_ABST
Patent Text Reader

Abstract

The invention discloses a service execution method and device, equipment and a medium, and the method comprises the steps: calling a first service component based on a service component calling request when the service component calling request sent by a service object for a first service through an application client is received, obtaining a target service interface matched with the first service from service interfaces indicated by the first service source code; based on an interface method provided by the target service interface, calling an interface interaction component of the target resource client, and outputting service content indicated by the first service on a display interface corresponding to the interface interaction component; and in response to a confirmation operation of the service object for the service content indicated by the first service, executing the first service based on the source code matched with the service content in the first service source code to obtain a first service execution result, and returning the first service execution result to the application client. According to the invention, the service processing capability of the resource client can be enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a business execution method, device, equipment and medium. Background Art

[0002] A resource client is a tool for managing and storing user digital resources. It can query information about digital resources with existing management rights based on the resource client. In practice, it is found that in some scenarios, for newly developed digital resources, it is difficult for the resource client to access the feature functions for the newly developed digital resources. For example, the newly developed digital resources can be newly issued assets, and the resource client cannot implement the information query function for the newly issued assets. At present, in order to provide relevant feature functions for newly developed digital resources, developers need to develop a new resource client to serve the digital resources. However, this method is cumbersome and in the same scenario, the resource client developed by the development cannot access new business functions. It is obvious that the business processing capabilities of the existing resource clients are single. Summary of the invention

[0003] The embodiments of the present application provide a service execution method, apparatus, device and medium, which can enrich the service processing capabilities of resource clients.

[0004] On the one hand, an embodiment of the present application provides a service execution method, which is executed by a target resource client, the target resource client is obtained by integrating and running a first service component on an original resource client; the first service component is obtained by component encapsulating a first service source code corresponding to a first service, and the method includes:

[0005] Upon receiving a business component call request sent by the business object through the application client for the first business, calling the first business component based on the business component call request, and acquiring a target business interface matching the first business from the business interface indicated by the first business source code;

[0006] Based on the interface method provided by the target service interface, the interface interaction component of the target resource client is called, and the service content indicated by the first service is output on the display interface corresponding to the interface interaction component;

[0007] In response to the confirmation operation of the business object on the business content indicated by the first business, based on the source code in the first business source code that matches the business content, the first business is executed, a first business execution result is obtained, and the first business execution result is returned to the application client.

[0008] The first service includes a first extended service for performing service signing through a target resource client;

[0009] The method also includes:

[0010] When receiving a first login connection request sent by the business object through the application client, parsing the first login connection request to obtain a first extended business requested to be executed by the business object;

[0011] Querying a first extended service from services managed by a target resource client to obtain a first query result; the services managed by the target resource client include the first service;

[0012] When the first query result indicates that the first extended service is queried from the services managed by the target resource client, determining that the target resource client integrates the first extended service source code corresponding to the first extended service, and acquiring the first extended service field configured for the first extended service from the first extended service source code;

[0013] Using the first extended service field as the first field to be authorized of the first extended service, and displaying the first field to be authorized in the client connection request interface of the target resource client;

[0014] In response to the business object's confirmation operation on the first field to be authorized on the client connection interface, the first field to be authorized is used as the first authorized field, and based on the first authorized field, a first prompt message is generated to indicate that the application client is successfully connected to the target resource client, and the first prompt message is returned to the application client.

[0015] The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service;

[0016] A first extended service is queried from services managed by the target resource client to obtain a first query result, including:

[0017] querying the first extended service from the second service, and querying the first extended service from the first service if the first extended service is not found from the second service;

[0018] When the first extended service is queried from the first service, a first query result is obtained.

[0019] The first extended service is queried from the services managed by the target resource client to obtain a first query result, including:

[0020] Searching for a business source code for executing a first extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0021] When a business source code for executing the first extended business is queried from the first business source code, the business source code for executing the first extended business in the first business source code is used as the first extended business source code corresponding to the first extended business, and it is determined that the first extended business is queried from the business managed by the target resource client, and a first query result is generated.

[0022] The method of calling the first business component based on the business component calling request and acquiring a target business interface matching the first business from the business interface indicated by the first business source code includes:

[0023] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the first extended business source code, and the obtained business interface for indicating the interface interaction component is used as a first target business interface matching the first extended business.

[0024] The method of calling the interface interaction component of the target resource client based on the interface method provided by the target service interface and outputting the service content indicated by the first service on the display interface corresponding to the interface interaction component includes:

[0025] Acquire a field value of a first extended service field configured for the first extended service through the first extended service source code, and use the field value of the first extended service field configured for the first extended service as the first service content indicated by the first extended service;

[0026] When determining the first component calling parameter based on the business content indicated by the first extended business, the first component calling parameter is passed to the interface interaction component based on the interface method provided by the first target business interface, so that the interface interaction component outputs the first business content indicated by the first extended business on the display interface based on the first component calling parameter.

[0027] Wherein, the first extended service field is a service content field;

[0028] Acquiring a field value of a first extended service field configured for the first extended service through the first extended service source code includes:

[0029] The business information to be signed is parsed from the business component call request through the first extended business source code, and the business information to be signed is used as the field value of the business content field.

[0030] The first service is executed based on the source code in the first service source code that matches the service content, and the first service execution result is obtained, including:

[0031] Acquire a source code for executing the business information signature from the first extended business source code, and use the source code for executing the business information signature as a first matching source code in the first extended business source code that matches the first business content;

[0032] The business information to be signed is signed by using a first matching source code that matches the first business content, and the signed business information is used as a first business execution result corresponding to the first extended business.

[0033] The business interface indicated by the first matching source code matching the first business content includes a key acquisition interface and a transaction signature interface;

[0034] Signing the business information to be signed by using a first matching source code that matches the first business content, and using the signed business information as a first business execution result corresponding to the first extended business, including:

[0035] Calling a key acquisition interface indicated by a first matching source code matching the first service content to acquire key information used for signing service information;

[0036] Based on the key information, a transaction signature interface indicated by a first matching source code matching the first business content is called to sign the business information, and the signed business information is used as a first business execution result corresponding to the first extended business.

[0037] The first service includes a second extended service for performing asset query via a target resource client;

[0038] The method also includes:

[0039] When receiving a second login connection request sent by the business object through the application client, parsing the second login connection request to obtain a second extended business requested to be executed by the business object;

[0040] Querying the second extended service from the services managed by the target resource client to obtain a second query result; the services managed by the target resource client include the first service;

[0041] When the second query result indicates that the second extended service is queried from the services managed by the target resource client, determining that the target resource client is integrated with a second extended service source code corresponding to the second extended service, and acquiring a second extended service field configured for the second extended service from the second extended service source code;

[0042] Using the second extended service field as a second field to be authorized for the second extended service, and displaying the second field to be authorized in a client connection request interface of the target resource client;

[0043] In response to the business object's confirmation operation on the second field to be authorized on the client connection interface, the second field to be authorized is used as the second authorized field, and based on the second authorized field, a second prompt message is generated to indicate that the application client is successfully connected to the target resource client, and the second prompt message is returned to the application client.

[0044] The service managed by the target resource client includes the second service, and the service priority of the second service is higher than the service priority of the first service;

[0045] The second extended service is queried from the services managed by the target resource client to obtain a second query result, including:

[0046] querying the second extended service from the second service, and querying the second extended service from the first service if the second extended service is not found from the second service;

[0047] When the second extended service is queried from the first service, a second query result is obtained.

[0048] The second extended service is queried from the services managed by the target resource client to obtain a second query result, including:

[0049] Querying a business source code for executing a second extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0050] When the business source code for executing the second extended business is queried from the first business source code, the business source code for executing the second extended business in the first business source code is used as the second extended business source code corresponding to the second extended business, and it is determined that the second extended business is queried from the business managed by the target resource client, and a second query result is generated.

[0051] The method of calling the first business component based on the business component calling request and acquiring a target business interface matching the first business from the business interface indicated by the first business source code includes:

[0052] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the second extended business source code, and the obtained business interface for indicating an interface interaction component is used as a second target business interface matching the second extended business.

[0053] The method of calling the interface interaction component of the target resource client based on the interface method provided by the target service interface and outputting the service content indicated by the first service on the display interface corresponding to the interface interaction component includes:

[0054] Acquire a field value of a second extended service field configured for the second extended service through the second extended service source code, and use the field value of the second extended service field configured for the second extended service as the second service content indicated by the second extended service;

[0055] When determining the second component calling parameter based on the business content indicated by the second extended business, the second component calling parameter is passed to the interface interaction component based on the interface method provided by the second target business interface, so that the interface interaction component outputs the second business content indicated by the second extended business in the interface interaction component based on the second component calling parameter.

[0056] Wherein, the second extended business field is an asset address field;

[0057] Acquiring a field value of a second extended service field configured for the second extended service through the second extended service source code includes:

[0058] The asset address information of the asset to be queried is parsed from the business component call request through the second extended business source code, and the asset address information is used as the field value of the asset address field.

[0059] The first service is executed based on the source code in the first service source code that matches the service content, and the first service execution result is obtained, including:

[0060] Acquire a source code for executing asset information query from the second extended business source code, and use the source code for executing asset information query as a second matching source code in the second extended business source code that matches the second business content;

[0061] The asset information of the asset indicated by the asset address information is queried through the asset information query interface indicated by the second matching source code matching the second business content, and the queried asset information is used as the first business execution result corresponding to the second extended business.

[0062] The method further includes:

[0063] When the service managed by the original resource client does not support the first service, obtaining a development dependency package of the original resource client and obtaining the first service source code of the target resource client;

[0064] The first business source code and the development dependency package are packaged by a packaging tool, and the first business source code is packaged as a component during the packaging process, and the packaged component corresponding to the obtained first business source code is used as the first business component;

[0065] The first business component and the original resource client are integrated based on the development dependency package, and the original resource client after component integration is used as the target resource client.

[0066] On the one hand, an embodiment of the present application provides a service execution device, which runs on a target resource client, and the target resource client is obtained by integrating and running a first service component on an original resource client; the first service component is obtained by component encapsulating a first service source code corresponding to a first service; the device includes:

[0067] A component calling module, configured to, upon receiving a business component calling request sent by a business object through an application client for a first business, call the first business component based on the business component calling request, and obtain a target business interface matching the first business from the business interface indicated by the first business source code;

[0068] A content output module, used to call the interface interaction component of the target resource client based on the interface method provided by the target business interface, and output the business content indicated by the first business on the display interface corresponding to the interface interaction component;

[0069] The business execution module is used to respond to the confirmation operation of the business object on the business content indicated by the first business, execute the first business based on the source code in the first business source code that matches the business content, obtain the first business execution result, and return the first business execution result to the application client.

[0070] The first service includes a first extended service for performing service signing through a target resource client;

[0071] The component calling module also includes:

[0072] A request parsing unit, configured to, upon receiving a first login connection request sent by a business object through an application client, parse the first login connection request to obtain a first extended business requested to be executed by the business object;

[0073] A service query unit, configured to query a first extended service from services managed by a target resource client to obtain a first query result; the services managed by the target resource client include the first service;

[0074] a field acquisition unit, configured to determine that the target resource client has integrated a first extended service source code corresponding to the first extended service when the first query result indicates that the first extended service is queried from the services managed by the target resource client, and to acquire a first extended service field configured for the first extended service from the first extended service source code;

[0075] A field display unit, configured to use the first extended service field as a first field to be authorized for the first extended service, and display the first field to be authorized in a client connection request interface of a target resource client;

[0076] A business confirmation unit is used to respond to the confirmation operation of the business object on the client connection interface for the first field to be authorized, use the first field to be authorized as the first authorized field, and generate a first prompt message indicating that the application client is successfully connected to the target resource client based on the first authorized field, and return the first prompt message to the application client.

[0077] The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service;

[0078] The business query unit is specifically used for:

[0079] querying the first extended service from the second service, and querying the first extended service from the first service if the first extended service is not found from the second service;

[0080] When the first extended service is queried from the first service, a first query result is obtained.

[0081] The business query unit is specifically used for:

[0082] Searching for a business source code for executing a first extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0083] When a business source code for executing the first extended business is queried from the first business source code, the business source code for executing the first extended business in the first business source code is used as the first extended business source code corresponding to the first extended business, and it is determined that the first extended business is queried from the business managed by the target resource client, and a first query result is generated.

[0084] Among them, the component calling module is specifically used for:

[0085] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the first extended business source code, and the obtained business interface for indicating the interface interaction component is used as a first target business interface matching the first extended business.

[0086] Among them, the content output module includes:

[0087] a service content determination unit, configured to obtain a field value of a first extended service field configured for the first extended service through the first extended service source code, and use the field value of the first extended service field configured for the first extended service as a first service content indicated by the first extended service;

[0088] The business content output unit is used to transfer the first component calling parameter to the interface interaction component based on the interface method provided by the first target business interface when determining the first component calling parameter based on the business content indicated by the first extended business, so that the interface interaction component outputs the first business content indicated by the first extended business on the display interface based on the first component calling parameter.

[0089] Wherein, the first extended service field is a service content field;

[0090] The business content determination unit is specifically used for:

[0091] The business information to be signed is parsed from the business component call request through the first extended business source code, and the business information to be signed is used as the field value of the business content field.

[0092] The business execution module includes:

[0093] A source code acquisition unit, used to acquire a source code for executing the business information signature from the first extended business source code, and use the source code for executing the business information signature as a first matching source code in the first extended business source code that matches the first business content;

[0094] The business signing unit is used to sign the business information to be signed by using a first matching source code that matches the first business content, and use the signed business information as a first business execution result corresponding to the first extended business.

[0095] The business interface indicated by the first matching source code matching the first business content includes a key acquisition interface and a transaction signature interface;

[0096] Business signature units include:

[0097] A key acquisition subunit, used to call a key acquisition interface indicated by a first matching source code matching the first service content to acquire key information used for signing service information;

[0098] The business signature subunit is used to call the transaction signature interface indicated by the first matching source code matching the first business content based on the key information, sign the business information, and use the signed business information as the first business execution result corresponding to the first extended business.

[0099] The first service includes a second extended service for performing asset query via a target resource client;

[0100] The component calling module also includes:

[0101] A request parsing unit, configured to, upon receiving a second login connection request sent by the business object through the application client, parse the second login connection request to obtain a second extended business requested to be executed by the business object;

[0102] A service query unit, configured to query a second extended service from services managed by a target resource client to obtain a second query result; the services managed by the target resource client include the first service;

[0103] a field acquisition unit, configured to determine that the target resource client has integrated a second extended service source code corresponding to the second extended service when the second query result indicates that the second extended service is queried from the services managed by the target resource client, and to acquire a second extended service field configured for the second extended service from the second extended service source code;

[0104] A field display unit, configured to use the second extended service field as a second field to be authorized for the second extended service, and display the second field to be authorized in a client connection request interface of a target resource client;

[0105] A business confirmation unit is used to respond to the confirmation operation of the business object on the client connection interface for the second field to be authorized, use the second field to be authorized as the second authorized field, and generate second prompt information based on the second authorized field to indicate that the application client is successfully connected to the target resource client, and return the second prompt information to the application client.

[0106] The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service;

[0107] The business query unit is specifically used for:

[0108] querying the second extended service from the second service, and querying the second extended service from the first service if the second extended service is not found from the second service;

[0109] When the second extended service is queried from the first service, a second query result is obtained.

[0110] The business query unit is specifically used for:

[0111] Querying a business source code for executing a second extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0112] When the business source code for executing the second extended business is queried from the first business source code, the business source code for executing the second extended business in the first business source code is used as the second extended business source code corresponding to the second extended business, and it is determined that the second extended business is queried from the business managed by the target resource client, and a second query result is generated.

[0113] Among them, the component calling module is specifically used for:

[0114] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the second extended business source code, and the obtained business interface for indicating an interface interaction component is used as a second target business interface matching the second extended business.

[0115] Among them, the content output module includes:

[0116] a service content determination unit, configured to obtain a field value of a second extended service field configured for the second extended service through the second extended service source code, and use the field value of the second extended service field configured for the second extended service as a second service content indicated by the second extended service;

[0117] The business content output unit is used to transfer the second component calling parameter to the interface interaction component based on the interface method provided by the second target business interface when determining the second component calling parameter based on the business content indicated by the second extended business, so that the interface interaction component outputs the second business content indicated by the second extended business in the interface interaction component based on the second component calling parameter.

[0118] Wherein, the second extended business field is an asset address field;

[0119] The business content determination unit is specifically used for:

[0120] The asset address information of the asset to be queried is parsed from the business component call request through the second extended business source code, and the asset address information is used as the field value of the asset address field.

[0121] The business execution module includes:

[0122] A source code acquisition unit, used to acquire a source code for executing asset information query from the second extended business source code, and use the source code for executing asset information query as a second matching source code in the second extended business source code that matches the second business content;

[0123] The asset query unit is used to query the asset information of the asset indicated by the asset address information through the asset information query interface indicated by the second matching source code matching the second business content, and use the queried asset information as the first business execution result corresponding to the second extended business.

[0124] Among them, the component calling module also includes:

[0125] A data acquisition unit, used to acquire a development dependency package of the original resource client and acquire a first service source code of the target resource client when the service managed by the original resource client does not support the first service;

[0126] A data packaging unit, used to package the first business source code and the development dependency package through a packaging tool, and package the first business source code into components during the packaging process, and use the packaged components corresponding to the obtained first business source code as the first business component;

[0127] The data integration unit is used to perform component integration on the first business component and the original resource client based on the development dependency package, and use the original resource client after component integration as the target resource client.

[0128] On one hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method provided in the above aspect of the embodiment of the present application.

[0129] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.

[0130] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the above aspect.

[0131] In an embodiment of the present application, when a business component call request sent by a business object for a first business through an application client is received, the first business component is called based on the business component call request, and a target business interface matching the first business is obtained from the business interface indicated by the first business source code. The first business component is integrated in the target resource client, and the first business component is obtained by encapsulating the first business source code corresponding to the first business as a component. That is to say, when the target resource client is expanded, the first business source code is encapsulated as a component and integrated into the target resource client. In this way, business expansion, that is, the access of new business functions, can be quickly realized without changing the original source code file of the target resource client, thereby enriching the target resource client. business processing capabilities; based on the interface method provided by the target business interface, the interface interaction component of the target resource client can be called to output the business content indicated by the first business on the display interface corresponding to the interface interaction component; it can be understood that part of the execution process of the extended business can be implemented through the interface interaction component and interface method provided by the target resource client, which can save the data volume of the first business source code; at the same time, the execution logic of the extended business is defined in the first business source code, so that in response to the confirmation operation of the business object for the business content indicated by the first business, based on the source code (i.e., the execution logic) in the first business source code that matches the business content, the first business is executed to obtain the first business execution result, and the first business execution result is returned to the application client. BRIEF DESCRIPTION OF THE DRAWINGS

[0132] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0133] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0134] Figure 2 This is a business execution scenario provided by the embodiment of the present application. Figure 1 ;

[0135] Figure 3 This is a flow diagram of a service execution method provided in an embodiment of the present application. Figure 1 ;

[0136] Figure 4 This is a flow diagram of a service execution method provided in an embodiment of the present application. Figure 2 ;

[0137] Figure 5This is a schematic diagram of a target resource client acquisition process provided by an embodiment of the present application;

[0138] Figure 6 This is a flowchart of a login connection provided by an embodiment of the present application;

[0139] Figure 7 is a schematic diagram of a client connection request interface provided in an embodiment of the present application;

[0140] Figure 8 This is a schematic diagram of a display interface provided in an embodiment of the present application. Figure 1 ;

[0141] Fig. 9 This is a schematic diagram of a display interface provided in an embodiment of the present application. Figure 2 ;

[0142] Fig.10 This is a business execution scenario provided by the embodiment of the present application. Figure 2 ;

[0143] Fig.11 This is a business execution scenario provided by the embodiment of the present application. Figure 3 ;

[0144] Fig.12 This is a flowchart of a service execution provided by an embodiment of the present application;

[0145] Fig.13 It is a structural diagram of a service execution device provided in an embodiment of the present application;

[0146] Fig.14 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0147] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0148] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1As shown, the system architecture may include a terminal device 100a, a terminal device 100b and a blockchain network 200, and the blockchain network 200 includes multiple blockchain nodes. The terminal device 100a and the terminal device 100b are in communication connection, so that the terminal device 100a can interact with the terminal device 100b through the communication connection. And the terminal device 100a or the terminal device 100b can be in communication connection with any blockchain node, so that the terminal device 100a or the terminal device 100b can interact with the blockchain node through the communication connection. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, and this application is not limited here.

[0149] Among them, Figure 1 The terminal device 100a and the terminal device 100b shown may include: smart phones, tablet computers, laptop computers, desktop computers, wearable devices (such as smart watches, smart bracelets), smart homes, head-mounted devices, smart car-mounted smart terminals, etc. It should be understood that the terminal device 100 may be installed with a target resource client and / or an application client.

[0150] Optionally, it can be understood that the target resource client and the application client can be installed in the same terminal device or in different terminal devices. For example, there can be one or more terminal devices 100a (or terminal device 100b), and the target resource client and the application client can be installed on the same terminal device 100a (or terminal device 100b) or on different terminal devices 100a (or terminal device 100b). Among them, the application client can include entertainment clients (for example, game clients), multimedia clients (for example, video clients), payment clients, car clients, smart home clients, browsers, and other applications with data information functions such as displaying text, images, audio, and video. The target resource client is a client associated with the application client, which can be used to manage the resources of the business object to which the application client belongs. Among them, the application client and the target resource client can be independent clients or embedded sub-clients integrated in a client (for example, a multimedia client), which is not limited here. Taking the game client as an example, the game client can have a corresponding background server, so the terminal device can transmit data with the server through the game client, such as the terminal device 100a can participate in the same game with other terminal devices through the server.

[0151] Among them, Figure 1The terminal device 100a (or terminal device 100b) shown can be associated with a server with a communication connection relationship. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.

[0152] It is understandable that blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism and encryption algorithm. It is mainly used to organize data in chronological order and encrypt it into a ledger to make it impossible to be tampered with or forged. At the same time, it can verify, store and update data. Blockchain is essentially a decentralized database in which each node stores an identical blockchain. Figure 1 The blockchain network 200 shown can be applied to a blockchain system. A blockchain system refers to a system for sharing data between blockchain nodes. The blockchain network 200 can be deployed with multiple blockchain nodes (referred to as nodes for short). The number of blockchain nodes deployed in the blockchain network 200 is not limited. For example, Figure 1 As shown, the blockchain network 200 may specifically include nodes 200a, 200b, 200c, 200d, ..., 200n. It is understandable that the blockchain node may be a server connected to the blockchain network or a terminal connected to the blockchain network. The specific form of the blockchain node is not limited here, and each blockchain node may include a hardware layer, an intermediate layer, an operating system layer, and an application layer.

[0153] It should be noted that the blockchain network in the embodiments of the present application can be a layered structure or a single-layer structure, and the specific structure of the blockchain network is not limited here.

[0154] For example, optionally, for a blockchain network with a hierarchical structure, Figure 1 The blockchain network 200 shown can be further divided into a business network (i.e., a witness network) and a core consensus network, and the business network and the core consensus network are independent of each other. In particular, both the business network and the core consensus network can deploy multiple nodes, and there is no limit on the number of nodes deployed in the two networks. For example, the business network may include Figure 1 As shown in nodes 200a, 200b and 200c, the core consensus network may include Figure 1Node 200d, node 200e, ..., node 200n are shown. Among them, the node in the business network can be called a business node, which is mainly used to execute the transaction business to obtain the transaction data associated with the transaction business and to synchronize the data in a timely manner. It can be understood that the business node here does not need to participate in the bookkeeping consensus, but can obtain the block header data and part of the authorized visible block data from the core consensus network through identity authentication. Among them, the business node can be a full node (Full Node) containing a complete blockchain database, or a lightweight node (Lightweight Node) that stores part of the data in the blockchain database. This type of node can complete transaction verification through "Simplified Payment Verification (SPV)" and is therefore also called an SPV node. The type of business node will not be limited here. Similarly, the node in the core consensus network can be called a consensus node (i.e., a bookkeeping node), which can run a blockchain consensus protocol. Among them, the consensus node can be a full node containing a complete blockchain database. The consensus node can participate in the verification and broadcasting of transaction data and block information, and can discover and maintain connections with other nodes. In addition, optionally, the business network and the core consensus network can be isolated through a routing network (i.e., a routing proxy layer). For example, the peer-to-peer (P2P) network can be layered through the routing nodes in the routing network to form a layered structure such as "business network-core consensus network", thereby improving the confidentiality and security of data on the blockchain. Among them, the number of routing nodes in the routing network can be one or more, which is not limited here.

[0155] It is understandable that the above-mentioned business network and core consensus network can be in different network environments. For example, in some embodiments, the business node can be deployed in the business network in the public network, and the consensus node running the blockchain consensus protocol can be deployed in the private core consensus network, and the two can interact through the routing boundary. In this case, since the core consensus network is in a relatively secure private cloud, its mutual access has a consensus mechanism to ensure security, and there is no need to add additional identity management and network control; while the business node is in the public network and may be accessed by other uncertain network terminals, so the behavior of the business node and other possible nodes accessing the core consensus network needs to be strictly controlled. Optionally, in some other embodiments, the business node and the consensus node can also directly transmit data without going through the routing node, which is not limited here.

[0156] For another example, optionally, for a blockchain network with a single-layer structure, Figure 1 The blockchain network 200 shown may include consensus nodes and ordinary nodes. Consensus nodes participate in consensus, while ordinary nodes do not participate in consensus but can help propagate blocks and voting messages, as well as synchronize states with each other. For example, Figure 1 Nodes 200a, 200b, 200c and 200d are used as consensus nodes, and the remaining nodes are used as ordinary nodes. There is no limit on the number of consensus nodes and the number of ordinary nodes.

[0157] It is understandable that a smart contract can be deployed in the above blockchain system. The smart contract can be understood as a code that can be understood and executed by each node of the blockchain (such as a consensus node or a business node) in the blockchain system, and can execute any logic and obtain results. For example, an entity object (such as a user who requests to execute a transaction business) can call the on-chain business contract that has been deployed on the consensus node by initiating a contract call request (also known as a transaction business request) through the client on the terminal it holds. It should be understood that the blockchain system can include one or more smart contracts, which can be distinguished by contract identifiers (such as identification numbers (Identity document, ID) or names, and can also include contract addresses or contract function names (also known as contract method names)), and the contract call request initiated by the client can also carry the identification number or name of the smart contract to specify the smart contract that the blockchain needs to run.

[0158] It is understandable that the application client in the embodiment of the present application can specifically be various decentralized applications (i.e., DAPP) deployed on the blockchain. Among them, decentralized applications refer to various distributed applications derived from the underlying blockchain platform and applied to the fields of finance, games, entertainment, governance, etc., which are the service provision forms in the blockchain world. Decentralized applications have the following characteristics: (1) Decentralized applications can be run on the user's personal device (such as the aforementioned terminal device 100a) through decentralized operation of network nodes. Decentralized applications belong to the user and can also be freely transferred to anyone. (2) Decentralized applications run on a peer-to-peer network, do not rely on a central server, do not require a dedicated communication server to transmit messages, and do not require a central database to record data. Relevant data can be stored in the user's personal space, which can be, for example, a personal device (such as a mobile phone) or a personal cloud disk. (3) The relevant data of the decentralized application is encrypted and stored on the blockchain, and can rely on the blockchain for property rights transactions and sales, carrying a transaction method without an intermediary. (4) The information of decentralized application participants is securely stored, which can protect digital assets and ensure that property rights will not be leaked or destroyed. (5) Decentralized applications are open source and can be freely packaged and generated by users. The ownership is marked by signatures. Their release is not restricted by any organization, and various ideas and innovations can be freely expressed and implemented. It can be understood that decentralized applications can be developed on the public blockchain and combined with smart contracts, and their data is encrypted and stored in the blockchain, making it difficult to tamper with. Based on this, when the application client corresponding to the decentralized application runs on Figure 1 When the terminal device 100a is shown, the server corresponding to the terminal device 100a can be used as the background server of the decentralized application, and in addition to data interaction between the application client and the server, data interaction can be performed between the application client and the nodes of the blockchain network 200, and between the server and the nodes of the blockchain network 200. For example, the application client or server can send the transaction that needs to be on the chain to the consensus node of the blockchain network 200. Finally, each consensus node will verify whether the transaction execution results are consistent with each other (that is, consensus is reached). If they are consistent, the transaction execution results can be stored in their respective local ledgers, and the execution results will be returned to the application client or server.

[0159] Among them, before the application client or server sends the transaction that needs to be on the chain to the consensus node of the blockchain network 200, the transaction to be on the chain needs to be signed. At this time, the target resource client is involved, that is, the transaction to be on the chain can be signed by the target resource client. The target resource client can be used to implement the resource management business function, and based on the resource management business function, the communication connection with the decentralized application client is realized. The target resource client is a tool for managing and storing user digital resources. For example, digital resources (also called digital assets) can be transferred to other accounts based on the target resource client, and digital resources transferred from other accounts can be received based on the target resource client. The target resource client can be a hardware device or a software program and deployed in a terminal device. In this application, the target resource client can establish a communication connection with the decentralized application client to execute the business requested by the decentralized application client. It can be understood that the target resource client can keep the user's account private key on the blockchain. The identity of the user is identified by the private key on the blockchain, and the user's assets are managed by the private key. For example, to initiate a transaction such as a transfer, the transaction needs to be signed and confirmed by the private key in the target resource client. The signed transaction can be sent directly to the blockchain node by the blockchain wallet or DAPP. Only the correct transaction blockchain node will execute it. The forged signature blockchain node will reject it and prompt failure.

[0160] It is understandable that, as various decentralized applications are widely deployed on the blockchain, the user's activities on the blockchain increase, and the decentralized application can request the target resource client to perform services related to the blockchain. The embodiment of the present application provides a service execution method on a target resource client, and the target resource client can integrate a first service component related to service expansion, so that the user can use the custom function on the target resource client. For the convenience of subsequent understanding and explanation, the embodiment of the present application can refer to the entity object (for example, an individual user, an enterprise user, an institution, etc.) using the decentralized application as a service object, and the service object can initiate a service component call request for the first service to the target resource client through the application client to request the target resource client to perform the first service. Among them, the application client and the target resource client can run on the same device (for example, both run on the above-mentioned terminal device 100a), or they can run on different devices (for example, the application client runs on the above-mentioned terminal device 100a, and the target resource client runs on a hardware device independent of the terminal device 100a), which is not limited here.

[0161] Specifically, in an embodiment of the present application, a first business component is integrated on the target resource client, and the first business component is obtained by encapsulating the first business source code corresponding to the first business. The application client can generate a business component call request and send it to the target resource client in response to the business object's business component call operation for the first business. The target resource client calls the first business component based on the business component call request, obtains the target business interface matching the first business from the business interface indicated by the first business source code, and calls the interface interaction component of the target resource client based on the interface method provided by the target business interface, and outputs a display interface showing the business content indicated by the first business; further, in response to the business object's confirmation operation on the business content indicated by the first business, the first business is executed based on the source code matching the business content in the first business source code, and the first business execution result is obtained, and the first business execution result is returned to the application client.

[0162] It can be understood that the above-mentioned terminal device 100a can be the terminal where the developer who develops the target resource client is located. The terminal device 100b can be the terminal where the user (i.e., the user) facing the target resource client is located. For example, the developer encapsulates the first business source code into components through the terminal device 100a to obtain the first business component, and integrates the first business component into the original resource client to obtain the target resource client. The developer can test the target resource client through the terminal device 100a to determine whether the execution logic of the first business on the target resource client is correct. The user can download the developed target resource client through the terminal device 100b. For example, the terminal device 100b requests the terminal device 100a to download the target resource client, or the terminal device 100a uploads the target resource client to the server corresponding to the terminal device 100a, and the terminal device 100b requests the server to download the target resource client to use the first business on the target resource client. It can be understood that the business object can refer to the developer or the user.

[0163] It can be seen that the embodiment of the present application encapsulates the first business source code (the first business source code can be a code snippet written by the developer for the new function that needs to be expanded) into a component, and integrates the encapsulated first business component into the target resource client. In this way, the custom function can be expanded in the target resource client without modifying the original open source source code file of the target resource client, so that the target resource client can execute the extended business. At the same time, when executing the extended business, the interface interaction components and interface methods provided by the target resource client can be used to quickly realize business expansion, that is, the access of new business functions, thereby enriching the business processing capabilities of the target resource client. Therefore, for newly developed digital resources (such as newly issued assets or new blockchains), the target resource client can quickly access the feature functions for the newly developed digital resources. In addition, the operational efficiency of adding new custom functions in the target resource client can be improved, and the workload and time consumption of developers can be reduced.

[0164] It can be understood that the computer device involved in the embodiment of the present application can be a server (for example, Figure 1 The server 200 shown in FIG. 1 may also be a terminal device (for example, Figure 1 The terminal device 100 shown in the figure). Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, etc., but is not limited to this.

[0165] Understandably, Figure 1 The possible network architecture of the technical solution of the present application is merely exemplified and does not limit the specific architecture of the technical solution of the present application. That is, the technical solution of the present application can also provide other forms of network architecture.

[0166] For further understanding, please refer to Figure 2 , Figure 2 Schematic diagram of a business execution scenario provided by an embodiment of the present application. Figure 2 The user X shown is the business object, the client 21a running on the terminal device 20 used by the user X can be the target resource client, and the running client 21b is the application client. The terminal device 20 can access the blockchain network. The terminal device 20 can be the Figure 1The terminal device 100a or the terminal device 100b in.

[0167] like Figure 2 As shown, when using the client 21b, the user X can perform a business component calling operation for the first business on the client 21b. In response to the business component calling operation, the client 21b generates a business component calling request 22 for the first business, and sends the business component calling request 22 to the client 21a. The client 21a calls the first business component 23 based on the business component calling request 22, obtains the target business interface 25 matching the first business from the business interface indicated by the first business source code 24 corresponding to the first business component 23, and calls the interface interaction component of the client 21a based on the interface method provided by the target business interface 25. The client 21a outputs a display interface 26 showing the business content indicated by the first business on the client 21a. In response to the confirmation operation of the business object on the display interface 26 for the business content indicated by the first business, the client 21a executes the first business based on the source code 27 matching the business content in the first business source code (i.e., the business logic source code matching the business content), and returns the obtained first business execution result 28 to the client 21b.

[0168] It can be understood that the technical solution of the present application can be applied to the scenario of expanding specific business of the target resource client. For example, when it is necessary to add a custom function to the existing open source target resource client, the functional expansion can be achieved through the technical solution of the present application. For example, the developer can add a signature function for the blockchain (such as a new blockchain developed by the developer) or an information query function for assets (such as assets on a new blockchain developed by the developer) in the target resource client, such as asset balance query. Specific scenario examples can be as follows: the signature algorithm used for domestic blockchains (such as alliance chains, etc.) is usually a domestic cryptographic algorithm, and the signature algorithm in the target resource client serving the domestic blockchain is a domestic key algorithm; the signature algorithm used for foreign blockchains is usually an international standard algorithm. When developers develop a blockchain that is in line with international standards, the signature algorithm corresponding to the newly developed blockchain can be an international standard algorithm. When users want to use the new blockchain, they can usually only download the target resource client that supports the international standard algorithm. When users want to use multiple blockchains at the same time (for example, the multiple blockchains used are: the signature algorithm of blockchain A is a domestic cryptographic algorithm, and the signature algorithm of blockchain B is an international standard algorithm), it is necessary to download the target resource client that supports the domestic cryptographic algorithm for blockchain A and the target resource client that supports the domestic cryptographic algorithm for blockchain B, which makes the user operation more cumbersome and reduces the user experience. Therefore, developers can expand the business of the existing target resource client so that the target resource client can add the custom functions required by the developer while having the original business functions, that is, the target resource client can also add the signature algorithm required by the developer while having the original signature algorithm. Therefore, developers can add the signature function of the blockchain in the target resource client through the technical solution of this application. Accordingly, when a user needs to query a newly added asset on the blockchain (such as an electronic bill, a certain asset, etc.) or a developer develops a new asset, the developer can use the technical solution of this application to add an asset information query function (such as an asset balance query function, etc.) in the target resource client.

[0169] The newly developed assets may be game coins in the game scenario. At this time, the newly added business functions of the target resource client may be the transfer of game coins, the balance query of game coins, etc. For example, the first business is a balance query business for game coins. The business object (game user) makes a business component call request for the balance query business for game coins through an application client (such as a game client). The digital resources managed in the resource management client include game coins. Therefore, the resource management client can call the first business component based on the business component call request, obtain the target business interface matching the balance query business for game coins, call the interface interaction component (the interface interaction component is provided by the original resource client), and output a display interface showing the business content indicated by the balance query business for game coins. The display interface is used to indicate the query of the balance information of the game coins indicated by a certain asset address (i.e., the game coin address, which can also be understood as the account address of the business object). In response to the confirmation operation of the business content (i.e., the asset address) indicated by the balance query business for game coins, the balance query business for game coins is executed based on the source code matching the business content in the business source code corresponding to the balance query business for game coins, and a first business execution result is obtained. The first business execution result is the balance of game coins queried based on the asset address. Among them, the game coin can be an on-chain asset on the blockchain, and the resource management client can query the game coin balance corresponding to the asset address from the blockchain based on the asset address, or it can also be queried on the background server corresponding to the game client. In other words, the first business involved in this application can also be a business in the game scene. The specific type and scenario of the first business are not limited here.

[0170] It should be noted that, in the embodiment of the present application, when the application client obtains the asset address of the business object or the target resource client obtains the key information of the business object, a prompt interface or pop-up window can be displayed on the corresponding client. The prompt interface or pop-up window is used to prompt the business object that it is currently collecting data such as the asset address and key information. Only after the business object issues a confirmation operation to the prompt interface or pop-up window (such as the business object confirms the authorization through the target resource client), the relevant steps of data acquisition are started, otherwise it ends.

[0171] In addition, it can be understood that in the specific implementation of the present application, data such as asset addresses related to business objects such as users, enterprises, and institutions may be involved. When the above embodiments of the present application are applied to specific products or technologies, it is necessary to obtain the permission or consent of business objects such as users, enterprises, and institutions, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of the relevant regions.

[0172] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0173] For further information, see Figure 3 , Figure 3 Schematic diagram of a service execution method provided by an embodiment of the present application. Figure 3 As shown, the method can be executed by the target resource client, for example, the target resource client can run on the above Figure 1 The method may specifically include the following steps S101 to S103:

[0174] S101. When receiving a business component call request sent by a business object through an application client for a first business, call the first business component based on the business component call request, and obtain a target business interface matching the first business from the business interface indicated by the first business source code.

[0175] Among them, the first business component is obtained by encapsulating the first business source code corresponding to the first business, and the first business component is integrated in the target resource client, so that the target resource client can realize the expansion of the first business while having the original business. The target resource client is obtained after the first business component is integrated and run on the original resource client. It can be understood that the first business can also be called the extended business of the target resource client, and the first business source code of the first business is the extended business source code of the extended business. In addition, the business originally managed in the target resource client can be expressed as the second business, that is, the original business. In other words, the business managed by the target resource client includes the second business provided by the original resource client. It can be understood that the second business can be a business that has been originally developed in the original resource client, such as a business function of a digital resource that the original resource client originally has management authority. For example, the digital resource that the original resource client originally has management authority for is an electronic invoice, then the second business can be an electronic invoice issuance business, an electronic invoice red-off business, etc., and the type and scenario of the second business are not limited here.

[0176] Among them, the business object can initiate a business component call request through the application client, and the business component call request is used to instruct the target resource client to query the business (such as the first business) requested to be executed by the business component call request from the business managed by the target resource client, and when the target resource client queries the requested business from the managed business, the corresponding business logic is executed through the business source code corresponding to the queried business.

[0177] Therefore, when the target resource client receives a business component call request and determines that the business requested to be executed by the business component call request is the first business, the first business component is called based on the business component call request to execute the first business through the first business component. Among them, the first business corresponding to the first business component may include one or more extended sub-businesses, such as a signature business, an asset query business, etc. The specific type of the extended sub-business can be determined by the developer according to the actual scenario. It can be understood that the first business source code includes an extended business source code corresponding to each of the multiple extended sub-businesses. When the specific extended sub-business requested to be executed in the first business is determined based on the business component call request, the first business component is called to execute the extended sub-business through the extended business source code corresponding to the specific extended sub-business requested to be executed in the first business extension corresponding to the first business component.

[0178] Among them, the business interface indicated by the first business source code defines an interface for indicating an interface interaction component, and the interface indicating the interface interaction component can be used as the target business interface matching the first business. That is to say, taking an extended sub-business included in the first business as an example, the business interface indicated by the corresponding extended business source code defines an interface for indicating an interface interaction component, and the interface indicating the interface interaction component can be used as the target business interface matching the extended sub-business. It can be understood that the business execution logic of the extended business source code corresponding to each of the multiple extended sub-businesses included in the first business source code is the same. For example, it can be that the interface interaction component is called through the target business interface matching the extended sub-business indicated by the extended business source code to output the display interface to be authorized, and in response to the confirmation operation for the display interface to be authorized (that is, the authorization operation for the extended sub-business), the specific business logic of the extended sub-business is executed to obtain the business execution result of the extended sub-business.

[0179] The interface interaction component may be a component provided by the target resource client. That is, when executing the first service, some steps in the first service may be implemented through the component or interface method provided by the target resource client.

[0180] The first service may be a signature service of a newly developed blockchain or an information query service of a newly issued digital resource (such as a digital asset), such as a balance query service of a game coin, etc. The specific type and scenario of the first service are not limited here, and the developer determines the first service that needs to be expanded in the resource client according to the actual application.

[0181] S102: Based on the interface method provided by the target service interface, call the interface interaction component of the target resource client, and output the service content indicated by the first service on the display interface corresponding to the interface interaction component.

[0182] Among them, the business content indicated by the first business can be obtained through the first business source code, and the business content indicated by the first business can include the business content configured for the first business in the first business source code (such as part of the text to be displayed) and the request parameters parsed from the business component call request. The component call parameter can be generated based on the business content indicated by the first business, and the component call parameter can be passed into the interface interaction component. When the interface interaction component parses the business content indicated by the first business from the component call parameter, the business content indicated by the first business is displayed on the display interface corresponding to the interface interaction component, so that the business object can confirm the business content indicated by the first business on the display interface, that is, to confirm the authority (authorization confirmation) of the first business. In other words, the component call parameter is generated based on the business content indicated by the specific extended sub-business, and the component call parameter is passed into the interface interaction component. When the interface interaction component parses the business content indicated by the extended sub-business from the component call parameter, the business content indicated by the extended sub-business is displayed on the display interface corresponding to the interface interaction component, so that the business object can confirm the business content indicated by the extended sub-business on the display interface, that is, to confirm the authority (authorization confirmation) of the extended sub-business.

[0183] In addition, it can be understood that different extended sub-services may indicate the calling of one or more interface interaction components, and different interface interaction components may correspond to different display interfaces, which is specifically configured by the developer.

[0184] Wherein, obtaining the business content indicated by the first business through the first business source code may be to obtain the business field configured for the first business through the first business source code (i.e., obtain the extended business field configured for the extended sub-business through the extended business source code), and obtain the field value of the business field configured for the first business (i.e., the field value of the extended business field configured for the extended sub-business), and use the business field configured for the first business (i.e., the field value of the extended business field configured for the extended sub-business) as the business content indicated by the first business. Wherein, the field value of the business field configured for the first business may be obtained from the first business source code, such as the business field configured for the first business includes an interface display title field, and the field value of the interface display title field may be defined in the first business source code, such as "DAPP application signature", or may be parsed from the business component call request, such as the business field configured for the first business includes a business content field, and the field value of the business content field may be the business information to be signed carried in the business component call request, such as "XXX requests to transfer XX to XXX".

[0185] S103. In response to a confirmation operation of the business object on the business content indicated by the first business, based on source code in the first business source code that matches the business content, execute the first business, obtain a first business execution result, and return the first business execution result to the application client.

[0186] The business content indicated by the first business is displayed on the interface interaction component. The confirmation operation of the business object can be a touch operation on the display interface for the business content indicated by the first business. For example, a sliding operation, a click operation, or a double-click operation on the display interface, etc., and the specific type of the confirmation operation is not limited here. For example, a confirmation control for the business content indicated by the first business is displayed on the interface interaction component, and the touch operation on the confirmation control is the confirmation operation for the business content indicated by the first business.

[0187] It can be understood that the first service source code includes source code matching the service content (i.e., the extended service source code includes source code matching the service content), that is, the specific logic source code for executing the first service (i.e., the specific logic source code for executing the extended sub-service), and the first service (extended sub-service) can be executed through the source code matching the service content to obtain the corresponding first service execution result, and the first service execution is returned to the application client. For example, the first service execution result can be the signed service information, or the queried asset information, etc.

[0188] In an embodiment of the present application, the target resource client is integrated with a first business component for business extension, and the first business component is obtained after component encapsulation of the first business source code corresponding to the first business, that is, when the business of the target resource client is extended, the first business source code is encapsulated as a component and integrated into the target resource client, so that the business extension can be achieved without changing the original source code file of the target resource client, thereby enriching the business processing capability of the target resource client; it can be understood that when executing the extended business, part of the execution process of the extended business can be implemented through the interface interaction components and interface methods provided by the target resource client, which can save the data volume of the first business source code and reduce the memory occupied by the first business component; at the same time, the execution logic of the extended business is defined in the first business source code, and the first business can be executed based on the source code (i.e., the execution logic) in the first business source code that matches the business content to obtain the corresponding execution result.

[0189] For further information, see Figure 4 , Figure 4 Schematic diagram of a service execution method provided by an embodiment of the present application. Figure 4 As shown, the method can be executed by the target resource client, for example, the target resource client can run on the above Figure 1 The method may specifically include the following steps S201 to S204:

[0190] S201. When the business managed by the original resource client does not support the first business, obtain the development dependency package of the original resource client, and obtain the first business source code of the target resource client, package the first business source code and the development dependency package through a packaging tool, package the first business source code into components during the packaging process, use the packaged component corresponding to the obtained first business source code as the first business component, integrate the first business component and the original resource client based on the development dependency package, and use the original resource client after component integration as the target resource client.

[0191] Among them, the development dependency package (that is, the open source target resource client) of the original resource client (that is, the open source target resource client) can be obtained by the terminal device where the developer is located (that is, the open source source code file, such as the development dependency package in the format of npm (Node Package Manager, the mainstream package management program under Node.js (a compilation and operation environment)) / node.js), that is, when implementing the business expansion for the resource client, the open source resource client, that is, the development dependency package of the original resource client without the expanded business, and the first business source code for implementing the business expansion is obtained, and the development dependency package and the first business source code are compiled and packaged by a packaging tool, and the target resource client integrated with the first business component is determined based on the compilation and packaging result. It can be understood that when compiling and packaging, the first business source code will be packaged as a component, that is, the first business component is packaged as a component by the development dependency package to obtain the first business component, and the first business component obtained by the component packaging is integrated in the original resource client, so as to obtain a target resource client with a customized function, that is, the first business component and the original resource client are integrated as a component based on the development dependency package. That is, a business expansion is performed on an original resource client to obtain a new target resource client. The development dependency package of the original resource client can be obtained by downloading it from the official website of the original resource client. In addition, the development dependency package and the first business source code can be developed based on JavaScript (a computer language).

[0192] Optionally, the target resource client can be put online for users to download, or after the extended function test of the target resource client is completed, the first business source code can be exported and uploaded to the official object of the original resource client. After the official object reviews and approves the first business source code, the official object packages the first business source code and the development dependency package and puts the obtained target resource client online.

[0193] It can be understood that in this way, a target resource client with developer-defined functions can be generated. This method can realize the business that the developer wants to expand through the interface interaction components and interface methods originally provided by the original resource client without directly modifying the original source code file (i.e., the above-mentioned development dependency package). At this time, when writing the first business source code, it is only necessary to implement the parameter configuration on the generated display interface and the specific processing logic of the first business, and at the same time, compile and package the implemented business source code and the open source source code file of the original resource client into a new resource client, and then obtain the above-mentioned target resource client. Subsequently, you can choose to export the first business source code, submit the first business source code to the official object where the original resource client is located, and the official object will review and approve the first business source code and integrate the first business source code into the original resource client, or the developer can promote the download of the compiled and packaged target resource client. In this way, the terminal device where the ordinary user is located can download the target resource client and use the new functions in the target resource client, and at the same time, it can make ordinary users safer and more reliable when using the new functions. It is understandable that this business expansion method can quickly support the access of new functions (such as the extended features for new types of blockchains) to the original resource client, which has positive significance for the generation and development of blockchain.

[0194] It can be understood that the above-mentioned business expansion method can be provided to developers (such as new blockchain startup developers), and developers can obtain the user manual of the original resource client, which defines how to call an interface interaction component in the original resource client, how to use the interface methods involved, how to write business execution logic, and how to install the development dependency packages required by the original resource client. After the developer has developed the relevant logic, that is, when the first business source code is obtained, the first business source code and the development dependency package of the original resource client can be compiled and packaged together. In addition, if the first business source code is to be compiled and packaged with other types of original resource clients, an adaptation layer can be developed for the first business source code to integrate the first business source code into other types of original resource clients based on the adaptation layer. Therefore, this method is friendly to developers who need to expand their business. They only need to implement the first business source code to realize the functional expansion of the original resource client. There is no need to query and modify the original source code file. They only need to compile and integrate the original source code file, and the target resource client can be obtained by packaging it. In addition, if the interface method defined in the first business source code has the same name as the original interface method in the original source code file of the original resource client, the logic defined by the original interface method in the original source code file is executed first.

[0195] In addition, the target resource client serves the application client. Therefore, after the target resource client expands the new service, it is necessary to write a user manual for the first service and provide it to the application client to inform the application client how to use the expanded first service. At the same time, when the application client uses the service functions of the target resource client, there is a set of standard interface protocols. The target resource client has developed a detection interface for detecting whether the service functions requested by the application client exist. Optionally, the developer will develop a detection interface for detecting the expanded service functions in the target resource client. When the target resource client fails to detect the service functions requested by the application client from the original service functions, the newly developed detection interface can be called to detect the service functions requested by the application client from the first service managed by the target resource client.

[0196] It can be understood that when the application client wants to call the first service extended in the target resource client, the pre-process is the same as the pre-process of calling the original service in the original resource client. It is also necessary to establish a login connection between the application client and the target resource client. That is: the application client generates a login connection request and sends it to the target resource client. The target resource client detects whether it supports the service requested by the login connection request. If it supports it, a client connection interface is generated. The client connection interface displays the permissions required to execute the requested service. After the business object performs the confirmation operation, the target resource client will establish a connection with the application client.

[0197] For example, Figure 5 As shown, Figure 5 1 is a schematic diagram of a process of obtaining a target resource client provided in an embodiment of the present application; wherein, S11, the device A where the developer is located downloads the development dependency package of the original resource client from the official website of the original resource client, such as downloading from the device B where the official website is located, and the downloaded development dependency package can support compilation, packaging and installation; S12, the developer develops the first business source code (i.e., code snippet) of the first business that supports the customized new function on the device A; S13, the device A packages the development dependency package and the first business source code to obtain the target resource client, and tests the extended function of the target resource client; S14, after the test is completed, the developer can choose to export the first business source code and upload the first business source code to the device B, and the official personnel will review the first business source code on the device B, and after the review is passed, it can be integrated into the original resource client to obtain the target resource client; or, the developer can promote the packaged target resource client for users to download; S15, at the same time, the developer can write a user manual for the first business on the device A, and send the user manual to the device C where the application client is located to notify the application client of how to use the first business.

[0198] S202: upon receiving a business component call request sent by a business object through an application client for a first business, calling the first business component based on the business component call request, and obtaining a target business interface matching the first business from a business interface indicated by the first business source code.

[0199] In some embodiments, before initiating a business component call request, the application client will also send a login connection request to the target resource client. The login connection request is used by the application client to request business authorization from the target resource client, that is, the pre-process of requesting to execute the business. That is to say, for the business that the application client indicated in the login connection request wants to execute, the target resource client can query whether there is a business requested to be executed by the application client from the managed business. If there is, an authorization interface for the business requested to be executed is generated. When the business object performs business authorization through the authorization interface, the target resource client is allowed to execute the business, a login connection is established between the target resource client and the application client, and subsequent steps (i.e., steps S202-S204) are executed. It can be understood that the business managed by the target resource client can include a first business (i.e., an extended business) and a second business (original business). The second business is a business provided by the original resource client. The business indicated by the business component call request initiated by the application client can be a business belonging to the first business or a business belonging to the second business. Here, the business component call request is used to request to call the first business as an example for explanation.

[0200] For example, when the target resource client receives the login connection request sent by the business object through the application client, it parses the login connection request to obtain the first business requested by the business object, queries the first business from the business managed by the target resource client, and obtains the query result; when the first business is queried from the business managed by the target resource client from the first query result, it is determined that the target resource client is integrated with the first business source code corresponding to the first business (that is, the target resource client has an extended business), and obtains the first business field configured for the first business from the first business source code, takes the first business field as the field to be authorized, displays the field to be authorized in the client connection request interface of the target resource client (that is, the authority required to execute the first business, which needs to be authorized by the business object), responds to the confirmation operation of the business object on the client connection interface for the field to be authorized, takes the field to be authorized as the authorized field, and generates prompt information for indicating that the application client is successfully connected to the target resource client based on the authorized field, and returns the prompt information to the application client. When receiving the prompt information, the application client can generate a business component call request for the first business. In addition, determining the target business interface matching the first business may be to obtain a business interface for indicating an interface interaction component from the business interface indicated by the first business source code, and using the obtained business interface for indicating an interface interaction component as the target business interface matching the first business.

[0201] The first service may include one or more extended sub-services, one of which may be used as the first extended service for service signature through the target resource client. For example, when the application client generates a transaction to be uploaded to the chain and sends the transaction to the blockchain node associated with the newly developed blockchain by the developer, the transaction to be uploaded to the chain needs to be signed by the target resource client first. Here, the login connection process of the target resource client is described by taking the first extended service as an example. Specifically, the process may be as follows: when receiving the first login connection request sent by the business object through the application client, the first extended service requested to be executed by the business object is parsed from the first login connection request; the first extended service is queried from the services managed by the target resource client to obtain a first query result; the services managed by the target resource client include the first service; when the first query result indicates that the first extended service is queried from the services managed by the target resource client, it is determined that the target resource client is integrated with the first extended service source code corresponding to the first extended service, and the first extended service field configured for the first extended service is obtained from the first extended service source code; the first extended service field is used as the first field to be authorized for the first extended service, and the first field to be authorized is displayed in the client connection request interface of the target resource client; in response to the confirmation operation of the business object on the first field to be authorized on the client connection interface, the first field to be authorized is used as the first authorized field, and first prompt information for indicating that the application client is successfully connected to the target resource client is generated based on the first authorized field, and the first prompt information is returned to the application client. It can be understood that when the first query result indicates that the first extended service is not found from the services managed by the target resource client, no subsequent operation is performed.

[0202] Among them, the services managed by the target resource client include the first service and the second service, and the service priority of the second service is higher than the service priority of the first service. Therefore, querying the first extended service from the services managed by the target resource client can be: querying the first extended service from the second service, and when the first extended service is not found from the second service, querying the first extended service from the first service; when the first extended service is found from the first service, a first query result is obtained. In other words, when the services managed by the target resource client include the services requested by the application client (that is, when detecting whether the target resource client has the service function requested by the application client), it is first detected from the services originally managed by the target resource client (original services). When it is not detected from the original services, it is then detected from the first services managed by the target resource client.

[0203] Among them, when querying the first extended service from the first service, it is specifically to query whether there is a first extended service source code corresponding to the first extended service in the first service source code integrated by the target resource client. Therefore, querying the first extended service from the service managed by the target resource client and obtaining the first query result can be that when the service source code for executing the first extended service is queried from the first service source code, the service source code for executing the first extended service in the first service source code is used as the first extended service source code corresponding to the first extended service, and it is determined that the first extended service is queried from the service managed by the target resource client, and the first query result is generated. At this time, the first query result is used to indicate that the first extended service is queried from the service managed by the target resource client.

[0204] Before executing the first extended service, a display interface for service confirmation can be generated through the first extended service source code, and the display interface is used to prompt the service object whether to execute the first extended service. Therefore, the first extended service source code defines the interface interaction component that needs to be called, and the interface interaction component is used to generate the display interface. Therefore, determining the target service interface that matches the first service can be to obtain the service interface for indicating the interface interaction component from the service interface indicated by the first extended service source code, and use the obtained service interface for indicating the interface interaction component as the first target service interface that matches the first extended service.

[0205] Optionally, the first service may include a second extended service for performing asset query through the target resource client. For example, the application client requests the target resource client to query the asset information of the assets of the business object on the newly developed blockchain (such as asset balance query, electronic bill quantity query, etc., not limited here). Here, the login connection process of the target resource client is described by taking the second extended service as an example. Specifically, the process may be as follows: when receiving the second login connection request sent by the business object through the application client, the second extended service requested to be executed by the business object is parsed from the second login connection request; the second extended service is queried from the services managed by the target resource client to obtain a second query result; the services managed by the target resource client include the first service; when the second query result indicates that the second extended service is queried from the services managed by the target resource client, it is determined that the target resource client is integrated with the second extended service source code corresponding to the second extended service, and the second extended service field configured for the second extended service is obtained from the second extended service source code; the second extended service field is used as the second field to be authorized for the second extended service, and the second field to be authorized is displayed in the client connection request interface of the target resource client; in response to the confirmation operation of the business object on the second field to be authorized on the client connection interface, the second field to be authorized is used as the second authorized field, and second prompt information for indicating that the application client is successfully connected to the target resource client is generated based on the second authorized field, and the second prompt information is returned to the application client.

[0206] Among them, the services managed by the target resource client include the first service and the second service, and the service priority of the second service is higher than the service priority of the first service. Therefore, querying the first extended service from the services managed by the target resource client can be: querying the second extended service from the second service, and when the second extended service is not queried from the second service, querying the second extended service from the first service; when the second extended service is queried from the first service, obtaining the second query result.

[0207] Among them, when querying the second extended service from the first service, it is specifically to query whether there is a second extended service source code corresponding to the second extended service in the first service source code integrated by the target resource client. Therefore, querying the second extended service from the service managed by the target resource client and obtaining the second query result can be to query the service source code for executing the second extended service from the first service source code corresponding to the first service included in the service managed by the target resource client; when the service source code for executing the second extended service is queried from the first service source code, the service source code for executing the second extended service in the first service source code is used as the second extended service source code corresponding to the second extended service, and it is determined that the second extended service is queried from the service managed by the target resource client, and a second query result is generated. At this time, the second query result is used to indicate that the second extended service is queried from the service managed by the target resource client.

[0208] Before executing the second extended service, a display interface for service confirmation can be generated through the second extended service source code, and the display interface is used to prompt the service object whether to execute the second extended service. Therefore, the interface interaction component that needs to be called is defined in the second extended service source code, and the interface interaction component is used to generate the display interface. Therefore, determining the target service interface that matches the first service can be to obtain the service interface for indicating the interface interaction component from the service interface indicated by the second extended service source code, and use the obtained service interface for indicating the interface interaction component as the second target service interface that matches the second extended service.

[0209] Among them, the interface interaction component can be a business component that the target resource client can originally provide, or it can be said that when writing the first business source code, the interface interaction component and related interface methods provided by the target resource client can be combined. For example, the interface interaction component provided by the target resource client can be plugin_dialog, which can display a fixed style display interface when called, and the interface interaction component can provide two parameter inputs (such as title title and text box content). It can be understood that the two parameters are the two business fields that the interface interaction component needs to display, and the specific meanings of the two parameters are determined by different businesses. For example, for the first extended business, the business field represented by the title parameter can be a signature prompt field (such as a field that displays "apply for business signature"), and the business field represented by the text box parameter can be a business content field (such as a field that displays business information to be signed). For another example, for the second extended business, the business field represented by the title parameter can be a query prompt field (such as a field that displays "apply for asset query"), and the business field represented by the text box parameter can be a business content field (such as a field that displays the asset address to be queried). It can be understood that the above-mentioned interface interaction component can also be other components (plugin_xxx), which can support more fields to be filled in.

[0210] For example, Figure 6 As shown, Figure 61 is a flowchart of a login connection provided by an embodiment of the present application; wherein, the source code file of the target resource client includes a first business source code and source code other than the first business source code, namely, an original business source code (determined by a development dependency package of the original resource client), and the original business source code includes a second business source code corresponding to a second business; S21, the application client generates a first login connection request for a first extended business; S22, the application client sends the first login connection request to the target resource client; S23, when the target resource client obtains the first extended business from the first login connection request, it queries the first extended business from the second business managed by the target resource client; S24, when the target resource client fails to obtain the first extended business from the second business managed by the target resource client, it queries the first extended business from the first business managed by the target resource client, that is, it queries whether the target resource client supports the business function requested by the application client; S25, when the target resource client obtains the first extended business from the first business managed by the target resource client, it queries the first extended business from the first business managed by the target resource client. When the target resource client extends the service, a client connection interface for service authorization is generated; for example, the target resource client obtains the first extended service source code corresponding to the first extended service from the first service source code integrated by the target resource client, and obtains the first extended service field configured for the first extended service from the first extended service source code, the first extended service field is the first field to be authorized, and the first field to be authorized can be displayed on the client connection interface, that is, the client connection interface can be used to prompt the business object whether to agree to the connection between the application client and the target resource client, and the authority required to execute the first extended service (such as the business field information involved, the business component to be called, etc.), and the generation rule of the client connection interface can be configured by relevant business personnel according to the actual scenario; S26, the target resource client responds to the confirmation operation of the business object on the client connection interface (that is, authorizing the authority required to execute the first extended service), and generates a first prompt information for indicating a successful connection; S27, the target resource client sends the first prompt information to the application client.

[0211] Among them, the client connection request interface can be as follows Figure 7 As shown, Figure 7It is a schematic diagram of a client connection request interface provided by an embodiment of the present application; wherein, the client connection request interface can display "application client request connection" and the application client address requesting connection, and the application client address can be parsed from the client connection request, and the client connection request interface can display information to be authorized, such as the first extended business field, the business component to be called (such as the interface interaction component to be called indicated in the first extended business source code), etc., and display confirmation controls and rejection controls at the same time. It can be understood that the confirmation operation of the business object on the client connection interface for the first extended business field can be a touch operation on the confirmation control. Correspondingly, the rejection operation of the business object on the client connection interface for the first extended business field can be a touch operation on the rejection control. Thus, the first extended business realizes business extension through the interface interaction component and interface method provided by the target resource client, thereby obtaining an extended page of the business signature.

[0212] It is understandable that different extended services have different configured extended service fields. The prompt information generated based on the authorized field may carry parameter fields that need to be passed in by the application client. For example, taking the first extended service as an example, the first extended service field configured for the first extended service may include a service content field, and the field value of the service content field needs to be generated by the application client, so the generated first prompt information may carry the service content field, and the service component call request generated by the application client based on the first prompt information carries the field value of the service content field, that is, the service information to be signed.

[0213] It can be understood that the client connection interface is used to prompt the business object that the application client is requesting a connection and the permissions required to execute the business requested by the application client (for example, the business fields involved in executing the requested business, the components required to be called when executing the requested business, etc.), and the permissions required to be used are authorized by the business object. The content that needs to be authorized displayed on the client connection interface varies according to the specific business and can be configured by the developer.

[0214] S203: Based on the interface method provided by the target service interface, call the interface interaction component of the target resource client, and output the service content indicated by the first service on the display interface corresponding to the interface interaction component.

[0215] It can be understood that the first business has a configured first business field, which can be determined by the first business source code, and the field value of the first business field can be obtained, and the field value of the first business field is used as the business content indicated by the first business, and when the first component calling parameter is determined based on the business content indicated by the first business, the component calling parameter is passed into the interface interaction component based on the interface method provided by the target business interface, so that the interface interaction component outputs the business content indicated by the first business in the interface interaction component based on the component calling parameter.

[0216] Among them, when the first service includes a first extended service for performing service signature through a target resource client, outputting the service content indicated by the first service may be: obtaining the field value of the first extended service field configured for the first extended service through the first extended service source code, and using the field value of the first extended service field configured for the first extended service as the first service content indicated by the first extended service; when determining the first component call parameter based on the service content indicated by the first extended service, based on the interface method provided by the first target service interface, the first component call parameter is passed to the interface interaction component, so that the interface interaction component outputs the first service content indicated by the first extended service on the display interface based on the first component call parameter. The first component call parameter includes the service content indicated by the first extended service.

[0217] Among them, the first extended business field may include a business content field, and obtaining the field value of the first extended business field configured for the first extended business through the first extended business source code may be: parsing the business information to be signed from the business component call request through the first extended business source code, and using the business information to be signed as the field value of the business content field. In addition, the first extended business field may include a business signature prompt field, and obtaining the field value of the first extended business field configured for the first extended business through the first extended business source code may be: obtaining the field value of the business signature prompt field configured for the first extended business from the first extended business source code.

[0218] The display interface displays the field value of the first extended service field and a confirmation control for the first extended service field, and the business object can determine whether to continue to execute the first extended service through the display interface. Figure 8 As shown, Figure 8 It is a schematic diagram of a display interface provided in an embodiment of the present application; wherein the display interface displays the field value of the business signature prompt field (i.e., the corresponding title parameter) (such as the application client applying for a signature) and the field value of the business content field (i.e., the corresponding text box parameter) (such as the business information to be signed, i.e., the transaction to be signed), and also displays a confirmation control and a rejection control.

[0219] Wherein, when the first service includes a second extended service for performing asset query through a target resource client, outputting the service content indicated by the first service may be: obtaining the field value of the second extended service field configured for the second extended service through the second extended service source code, and using the field value of the second extended service field configured for the second extended service as the second service content indicated by the second extended service; when determining the second component call parameter based on the service content indicated by the second extended service, based on the interface method provided by the second target service interface, the second component call parameter is passed to the interface interaction component, so that the interface interaction component outputs the second service content indicated by the second extended service in the interface interaction component based on the second component call parameter. The second component call parameter includes the service content indicated by the second extended service.

[0220] Among them, the second extended business field may include an asset address field, and obtaining the field value of the second extended business field configured for the second extended business through the second extended business source code may be: parsing the asset address information of the asset to be queried from the business component call request through the second extended business source code, and using the asset address information as the field value of the asset address field. In addition, the second extended business field may include an asset query prompt field, and obtaining the field value of the second extended business field configured for the second extended business through the second extended business source code may be: obtaining the field value of the asset query prompt field configured for the second extended business from the second extended business source code. Optionally, the field value of the asset query prompt field may also be empty, that is, no information is displayed.

[0221] The display interface displays the field value of the second extended service field and a confirmation control for the second extended service field, and the business object can determine whether to continue to execute the second extended service through the display interface. Fig. 9 As shown, Fig. 9 It is a schematic diagram of a display interface provided in an embodiment of the present application; wherein the display interface displays the field value of the asset query prompt field (i.e., the corresponding title parameter) (for example, "Query asset information, the asset address is:") and the field value of the asset address field (i.e., the corresponding text box parameter) (for example, asset address XX), and also displays confirmation controls and rejection controls.

[0222] S204. In response to the confirmation operation of the business object on the business content indicated by the first business, based on the source code in the first business source code that matches the business content, execute the first business, obtain a first business execution result, and return the first business execution result to the application client.

[0223] Therefore, upon detecting a confirmation operation of the business object on the business content indicated by the first business (such as a touch operation on the confirmation control in the above display interface), it is determined that the business object agrees to continue executing the first business.

[0224] Among them, when the first business includes a first extended business for signing a business through a target resource client, executing the first business can be: obtaining the source code for executing the business information signature from the first extended business source code, and using the source code for executing the business information signature as the first matching source code in the first extended business source code that matches the first business content; signing the business information to be signed by using the first matching source code that matches the first business content, and using the signed business information as the first business execution result corresponding to the first extended business.

[0225] Among them, the business interface indicated by the first matching source code matching the first business content includes a key acquisition interface and a transaction signature interface; signing the business information to be signed by the first matching source code matching the first business content can be: calling the key acquisition interface indicated by the first matching source code matching the first business content to obtain the key information used for signing the business information; based on the key information, calling the transaction signature interface indicated by the first matching source code matching the first business content, signing the business information, and using the signed business information as the first business execution result corresponding to the first extended business. It can be understood that the key acquisition interface can be an interface method originally provided by the target resource client. The transaction signature interface encapsulates the signature algorithm logic indicated by the first extended business.

[0226] Among them, when the first service includes a second extended service for performing asset query through a target resource client, executing the first service may be: obtaining a source code for performing asset information query from the second extended service source code, and using the source code for performing asset information query as a second matching source code in the second extended service source code that matches the second service content; querying the asset information of the asset indicated by the asset address information through the asset information query interface indicated by the second matching source code that matches the second service content, and using the queried asset information as the first service execution result corresponding to the second extended service. The asset information query interface encapsulates the asset information query method.

[0227] For example, Figure 10-11 As shown, Figure 10-11 Schematic diagram of a business execution scenario provided in an embodiment of the present application; wherein user X is the above-mentioned business object, and the client 21a (ie, Figure 2 The client 21a in the example may be the target resource client, and the running client 21b (i.e. Figure 2The client 21b in the example is the above-mentioned application client. The terminal device 20 can access the blockchain network. The first service can be a first extended service for service signature (i.e., transaction signature). It can be understood that when the client 21b sends the transaction to be put on the blockchain to the blockchain network, the target resource client needs to sign the transaction to be put on the blockchain first. Therefore, the client 21b can generate a transaction to be uploaded to the chain in response to the transaction initiation operation of the business object, and generate a business component call request 31 for the first extended business based on the transaction to be uploaded to the chain, and send the business component call request 31 carrying the transaction to be uploaded to the chain to the client 21a. The client 21a calls the first business component 32 based on the business component call request 31, and obtains the target business interface 34 matching the first extended business from the business interface indicated by the first business source code 33 (it can be understood that the first business source code includes the first extended business source code 33 of the first extended business, so the first business component 32 is called to obtain the target business interface matching the first extended business from the business interface indicated by the first extended business source code 33), and based on the interface method provided by the target business interface 34, the interface interaction component of the client 21a is called, and the first extended business is output on the client 21a. The display interface 35 of the indicated business content, that is, the display interface 35 displaying the transaction content to be signed (that is, the business content to be signed), responds to the confirmation operation of the business object on the display interface for the transaction content to be signed (that is, the business content to be signed) indicated by the first extended business, and executes the first extended business based on the source code 36 (that is, the business logic source code matching the transaction content to be signed) that matches the transaction content to be signed (that is, the business content to be signed) in the first business source code, that is, signing the transaction content to be signed to obtain the signed transaction content, and returning the obtained signed transaction content 37 (that is, the signed business content) to the client 21b; the client 21b can send the signed transaction content to the blockchain node (such as blockchain node 200a) in the blockchain network, and the blockchain node will put the transaction on the chain (that is, business on the chain) after successfully verifying the transaction content to be signed.

[0228] Optionally, the first business may also be a second extended business for asset query (such as asset balance query). It is understandable that the client 21b can query the asset information of the business object through the client 21a. Therefore, the client 21b can respond to the asset query operation of the business object, obtain the asset address associated with the business object, and generate a business component call request 41 for the second extended business based on the asset address, and send the business component call request 41 carrying the asset address to the client 21a. The client 21a calls the first business component 42 based on the business component call request 41, and obtains the target business interface 44 matching the second extended business from the business interface indicated by the first business source code 43 (it is understandable that the first business source code includes the second extended business source code 43 of the second extended business, so that the first business component 42 is called to obtain the target business interface matching the second extended business from the business interface indicated by the second extended business source code 43). Based on the interface method provided by the target business interface, the interface interaction component of the client 21a is called, and a display interface 45 displaying the business content indicated by the second extended business is output on the client 21a, that is, a display interface displaying the asset address information. In response to the confirmation operation of the business object on the display interface for the asset address information indicated by the second extended business, the second extended business is executed based on the source code 46 matching the asset address information in the first business source code (that is, the business logic source code matching the asset address information), that is, the asset information 47 (such as the asset balance) of the asset indicated by the asset address is queried from the blockchain node in the blockchain network (such as the blockchain node 200a), and the queried asset information is returned to the client 21b.

[0229] For example, Fig.12 As shown, Fig.12It is a flowchart of a business execution provided by an embodiment of the present application; wherein, S31, the application client sends a business component call request to the target resource client; S32, the target resource client parses the business component call request to obtain the first extended business requested to be executed; S33, the target resource client obtains the first extended business source code of the first extended business from the first business source code of the first business, and calls the interface interaction component based on the first extended business source code; S34, the target resource client outputs the business content indicated by the first extended business on the display interface through the interface interaction component; S35, the target resource client responds to the confirmation operation of the business object for the business content indicated by the first extended business, based on the first matching source code in the first extended business source code that matches the business content, executes the first extended business, and obtains the first business execution result of the first extended business, that is, the signed business content (signed transaction); S36, the target resource client returns the first business execution result to the application client; S37, the application client sends the first business execution result to the blockchain node, and the blockchain node uploads the first business execution result to the chain.

[0230] Among them, the first business will implement the interface interaction component provided by the target resource client, and generate the corresponding display interface, such as a pop-up box, text box, etc. through the interface interaction component. Developers can select appropriate interface interaction components according to the specific type of the first business. When the target resource client detects that the first business needs to be executed, it calls the corresponding interface interaction component to execute the display logic of the relevant display interface. Taking the first business including the first extended business for business signature through the target resource client and the second extended business for asset query through the target resource client as an example, the example of the first business source code is as follows:

[0231] switch(request.method){ / / Statement 1

[0232] case'new_chain_sign': / / Statement 2

[0233] let result=await plugin.request({ / / Statement 3

[0234] method:'plugin_dialog', / / statement 4

[0235] params:{ / / Statement 5

[0236] Title:'Application client application signature' / / Statement 6

[0237] content:request.params / / Statement 7

[0238] },

[0239] });

[0240] if(result == true){ / / Statement 8

[0241] return newChainSign(getPriKey()) / / Statement 9

[0242] }

[0243] case'new_chain_address_balance': / / Statement 10

[0244] let result=await plugin.request({ / / Statement 11

[0245] method:'plugin_dialog', / / statement 12

[0246] Title:'Query address balance, asset address is:' / / Statement 13

[0247] content:request.params / / Statement 14

[0248] })

[0249] if(result == true) / / Statement 15

[0250] return queryChainAddressBalance(request.params)}, / / Statement 16

[0251] });

[0252] Among them, statements 1, 2, and 10 are judgment statements (indicating an interface method for matching services), indicating whether the service requested by the application client is supported. "request.method" in statement 1 is used to indicate the interface method corresponding to the first service, that is, it indicates the start statement of the first service source code. When it is necessary to inquire from the first service whether there is a service requested by the application client, statement 1 is executed. At the same time, statements 2 and 10 represent different extended sub-services. That is to say, when it is inquired from the first service whether there is a service requested by the application client, it is determined whether the extended sub-services indicated in statements 2 and 10 match the service requested by the application client. It can be understood that the extended sub-service indicated by statement 2 is the above-mentioned first extended service (for example, the interface method name of the first extended service is "new_chain_sign"), and the extended sub-service indicated by statement 10 is the above-mentioned second extended service (for example, the interface method name of the first extended service is "new_chain_address_balance"); statements 2- Statement 9 is the first extended business source code corresponding to the first extended business; statement 3 indicates calling the interface interaction component and waiting for the result returned by the interface interaction component; statement 4 indicates the specific interface interaction component to be called (its component name is "plugin_dialog"); statements 5 and 6 indicate the first extended business field configured for the first extended business (for example, title indicates the business signature prompt field, i.e., the corresponding title parameter, the field value of which is configured in the first extended business source code, which is "application client application signature"; content indicates the business content field, i.e., the corresponding text box parameter, the field value of which is parsed from the business component call request, and "request.params" indicates the business information to be signed passed in the business component call request); statement 8 indicates that when the result returned by the interface interaction component is the user's confirmation operation, the business signature logic indicated by statement 9 is executed to obtain the signed business information; "getPriKey()" in statement 9 indicates the key acquisition interface, and "newChainSign" indicates the transaction signature interface.

[0253] Correspondingly, statements 10 to 16 are the second extended business source code corresponding to the second extended business; statement 11 indicates calling the interface interaction component and waiting for the result returned by the interface interaction component; statement 12 indicates the specific interface interaction component to be called (its component name is "plugin_dialog"); statements 13 and 14 indicate the second extended business fields configured for the second extended business (for example, title indicates the asset query prompt field, i.e., the corresponding title parameter, the field value of which is configured in the second extended business source code, which is "query asset information, asset address is:"; content indicates the asset address field, i.e., the corresponding text box parameter, the field value of which is parsed from the business component call request, and "request.params" indicates the asset address to be queried passed in the business component call request); statement 15 indicates that when the result returned by the interface interaction component is the user's confirmation operation, the business signature logic indicated by statement 16 is executed to obtain the queried asset information; "queryChainAddressBalance" in statement 16 indicates the asset information query interface, the input parameter of which is the asset address parsed from the business component call request. It is understandable that when more business expansion is needed, case logic can continue to be added.

[0254] In the embodiment of the present application, it can be learned through the acquisition method of the target resource client that the target resource client is integrated with a first business component for business extension, and the first business component is obtained after component encapsulation of the first business source code corresponding to the first business, that is, when the business of the target resource client is extended, the first business source code is encapsulated as a component and integrated into the target resource client, so that the business extension can be quickly realized without changing the original source code file of the target resource client, that is, the access of new business functions, thereby enriching the business processing capabilities of the target resource client; it can be understood that when executing the extended business, part of the execution process of the extended business can be realized through the interface interaction components and interface methods provided by the target resource client, which can save the data volume of the first business source code and reduce the memory occupied by the first business component; at the same time, the execution logic of the extended business is defined in the first business source code, and the first business can be executed based on the source code (that is, the execution logic) matching the business content in the first business source code to obtain the corresponding execution result.

[0255] For further information, see Fig.13 , Fig.13 Schematic diagram of a service execution device provided in an embodiment of the present application. Fig.13As shown, the service execution device 1 can be applied to a computer device. It should be understood that the service execution device 1 can be a computer program (including program code) running in a computer device, for example, the service execution device 1 can be an application software; it can be understood that the service execution device 1 can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Fig.13 As shown, the service execution device 1 may include: a component calling module 11, a content output module 12, and a service execution module 13;

[0256] The component calling module 11 is used to call the first business component based on the business component calling request when receiving the business component calling request sent by the business object through the application client for the first business, and obtain the target business interface matching the first business from the business interface indicated by the first business source code;

[0257] The content output module 12 is used to call the interface interaction component of the target resource client based on the interface method provided by the target service interface, and output the service content indicated by the first service on the display interface corresponding to the interface interaction component;

[0258] The business execution module 13 is used to respond to the confirmation operation of the business object on the business content indicated by the first business, execute the first business based on the source code in the first business source code that matches the business content, obtain the first business execution result, and return the first business execution result to the application client.

[0259] The first service includes a first extended service for performing service signing through a target resource client;

[0260] The component calling module 11 also includes:

[0261] The request parsing unit 111 is used to parse the first login connection request sent by the business object through the application client to obtain the first extended business requested to be executed by the business object from the first login connection request;

[0262] The service query unit 112 is used to query the first extended service from the services managed by the target resource client to obtain a first query result; the services managed by the target resource client include the first service;

[0263] The field acquisition unit 113 is used to determine that the target resource client integrates the first extended service source code corresponding to the first extended service when the first query result indicates that the first extended service is queried from the services managed by the target resource client, and acquire the first extended service field configured for the first extended service from the first extended service source code;

[0264] A field display unit 114, configured to use the first extended service field as a first field to be authorized for the first extended service, and display the first field to be authorized in a client connection request interface of a target resource client;

[0265] The business confirmation unit 115 is used to respond to the confirmation operation of the business object on the client connection interface for the first field to be authorized, use the first field to be authorized as the first authorized field, and generate a first prompt message indicating that the application client is successfully connected to the target resource client based on the first authorized field, and return the first prompt message to the application client.

[0266] The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service;

[0267] The service query unit 112 is specifically used for:

[0268] querying the first extended service from the second service, and querying the first extended service from the first service if the first extended service is not found from the second service;

[0269] When the first extended service is queried from the first service, a first query result is obtained.

[0270] The service query unit 112 is specifically used for:

[0271] Searching for a business source code for executing a first extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0272] When a business source code for executing the first extended business is queried from the first business source code, the business source code for executing the first extended business in the first business source code is used as the first extended business source code corresponding to the first extended business, and it is determined that the first extended business is queried from the business managed by the target resource client, and a first query result is generated.

[0273] The component calling module 11 is specifically used for:

[0274] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the first extended business source code, and the obtained business interface for indicating the interface interaction component is used as a first target business interface matching the first extended business.

[0275] Wherein, the content output module 12 includes:

[0276] The service content determination unit 121 is used to obtain a field value of a first extended service field configured for the first extended service through the first extended service source code, and use the field value of the first extended service field configured for the first extended service as a first service content indicated by the first extended service;

[0277] The business content output unit 122 is used to transfer the first component calling parameter to the interface interaction component based on the interface method provided by the first target business interface when determining the first component calling parameter based on the business content indicated by the first extended business, so that the interface interaction component outputs the first business content indicated by the first extended business on the display interface based on the first component calling parameter.

[0278] Wherein, the first extended service field is a service content field;

[0279] The service content determination unit 122 is specifically used for:

[0280] The business information to be signed is parsed from the business component call request through the first extended business source code, and the business information to be signed is used as the field value of the business content field.

[0281] The service execution module 13 includes:

[0282] The source code acquisition unit 131 is used to acquire the source code for executing the business information signature from the first extended business source code, and use the source code for executing the business information signature as the first matching source code in the first extended business source code that matches the first business content;

[0283] The service signing unit 132 is used to sign the service information to be signed by using a first matching source code that matches the first service content, and use the signed service information as a first service execution result corresponding to the first extended service.

[0284] The business interface indicated by the first matching source code matching the first business content includes a key acquisition interface and a transaction signature interface;

[0285] The business signature unit 132 includes:

[0286] The key acquisition subunit 1321 is used to call the key acquisition interface indicated by the first matching source code matching the first service content to acquire key information used for signing the service information;

[0287] The business signature subunit 1322 is used to call the transaction signature interface indicated by the first matching source code matching the first business content based on the key information, sign the business information, and use the signed business information as the first business execution result corresponding to the first extended business.

[0288] The first service includes a second extended service for performing asset query via a target resource client;

[0289] The component calling module 11 also includes:

[0290] The request parsing unit 111 is used to parse the second login connection request from the business object to obtain the second extended business requested to be executed by the business object when receiving the second login connection request sent by the business object through the application client;

[0291] The service query unit 112 is used to query the second extended service from the services managed by the target resource client to obtain a second query result; the services managed by the target resource client include the first service;

[0292] The field acquisition unit 113 is used to determine that the target resource client has integrated the second extended service source code corresponding to the second extended service when the second query result indicates that the second extended service is queried from the services managed by the target resource client, and to acquire the second extended service field configured for the second extended service from the second extended service source code;

[0293] A field display unit 114, configured to use the second extended service field as a second field to be authorized for the second extended service, and display the second field to be authorized in the client connection request interface of the target resource client;

[0294] The business confirmation unit 115 is used to respond to the confirmation operation of the business object on the client connection interface for the second field to be authorized, use the second field to be authorized as the second authorized field, and generate second prompt information based on the second authorized field to indicate that the application client is successfully connected to the target resource client, and return the second prompt information to the application client.

[0295] The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service;

[0296] The service query unit 112 is specifically used for:

[0297] querying the second extended service from the second service, and querying the second extended service from the first service if the second extended service is not found from the second service;

[0298] When the second extended service is queried from the first service, a second query result is obtained.

[0299] The service query unit 112 is specifically used for:

[0300] Querying a business source code for executing a second extended business from a first business source code corresponding to a first business included in the business managed by the target resource client;

[0301] When the business source code for executing the second extended business is queried from the first business source code, the business source code for executing the second extended business in the first business source code is used as the second extended business source code corresponding to the second extended business, and it is determined that the second extended business is queried from the business managed by the target resource client, and a second query result is generated.

[0302] The component calling module 11 is specifically used for:

[0303] A business interface for indicating an interface interaction component is obtained from the business interface indicated by the second extended business source code, and the obtained business interface for indicating an interface interaction component is used as a second target business interface matching the second extended business.

[0304] Wherein, the content output module 12 includes:

[0305] The service content determination unit 121 is used to obtain a field value of a second extended service field configured for the second extended service through the second extended service source code, and use the field value of the second extended service field configured for the second extended service as the second service content indicated by the second extended service;

[0306] The business content output unit 122 is used to determine the second component calling parameter based on the business content indicated by the second extended business, and transmit the second component calling parameter to the interface interaction component based on the interface method provided by the second target business interface, so that the interface interaction component outputs the second business content indicated by the second extended business in the interface interaction component based on the second component calling parameter.

[0307] Wherein, the second extended business field is an asset address field;

[0308] The service content determination unit 122 is specifically used for:

[0309] The asset address information of the asset to be queried is parsed from the business component call request through the second extended business source code, and the asset address information is used as the field value of the asset address field.

[0310] The service execution module 13 includes:

[0311] The source code acquisition unit 131 is used to acquire the source code for executing the asset information query from the second extended business source code, and use the source code for executing the asset information query as the second matching source code in the second extended business source code that matches the second business content;

[0312] The asset query unit 132 is used to query the asset information of the asset indicated by the asset address information through the asset information query interface indicated by the second matching source code matching the second business content, and use the queried asset information as the first business execution result corresponding to the second extended business.

[0313] Among them, the component calling module 11 also includes:

[0314] The data acquisition unit 116 is used to acquire the development dependency package of the original resource client and the first service source code of the target resource client when the service managed by the original resource client does not support the first service;

[0315] The data packaging unit 117 is used to package the first business source code and the development dependency package through a packaging tool, and package the first business source code into components during the packaging process, and use the packaged components corresponding to the obtained first business source code as the first business component;

[0316] The data integration unit 118 is used to perform component integration on the first business component and the original resource client based on the development dependency package, and use the original resource client after component integration as the target resource client.

[0317] The specific implementation of the component calling module 11, the content output module 12, and the service execution module 13 can refer to the relevant description in the above embodiment, which will not be described here. It should be understood that the description of the beneficial effects obtained by adopting the same method will not be repeated.

[0318] For further information, see Fig.14 , Fig.14 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.14 As shown, the computer device 1400 can be a user terminal or a server, which will not be limited here. For ease of understanding, this application takes the computer device as a user terminal as an example. The computer device 1400 may include: a processor 1401, a network interface 1404 and a memory 1405. In addition, the computer device 1400 may also include: a user interface 1403, and at least one communication bus 1402. Among them, the communication bus 1402 is used to realize the connection and communication between these components. Among them, the user interface 1403 may also include a standard wired interface and a wireless interface. The network interface 1404 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1405 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1405 may optionally also be at least one storage device located away from the aforementioned processor 1401. As Fig.14 As shown, the memory 1405 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0319] The network interface 1404 in the computer device 1400 can also provide a network communication function. Fig.14 In the computer device 1400 shown, the network interface 1404 can provide a network communication function; the user interface 1403 is mainly used to provide an input interface for the user; and the processor 1401 can be used to call the device control application stored in the memory 1405 to execute the above Figure 3 or Figure 4 The description of the service execution method in the corresponding embodiment can also be performed as described above. Fig.13 The description of the service execution device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0320] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the business execution device 1 mentioned above, and the computer program includes computer instructions. When the processor executes the computer instructions, it can execute the above-mentioned Figure 3 or Figure 4 The description of the business execution method in the corresponding embodiment will therefore not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, computer instructions may be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.

[0321] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 3 or Figure 4The description of the service execution method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0322] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0323] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0324] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0325] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0326] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A service execution method, characterized in that: The method is executed by a target resource client, wherein the target resource client is obtained by integrating and running the first service component on an original resource client; The first business component is obtained by encapsulating the first business source code corresponding to the first business into a component; the method includes: Upon receiving a business component call request sent by a business object through an application client for the first business, calling the first business component based on the business component call request, and acquiring a target business interface matching the first business from the business interface indicated by the first business source code; Based on the interface method provided by the target service interface, calling the interface interaction component of the target resource client, and outputting the service content indicated by the first service on the display interface corresponding to the interface interaction component; In response to a confirmation operation of the business object on the business content indicated by the first business, based on the source code in the first business source code that matches the business content, the first business is executed to obtain a first business execution result, and the first business execution result is returned to the application client.

2. The method according to claim 1, characterized in that The first service includes a first extended service for performing service signing through the target resource client; The method further comprises: When receiving a first login connection request sent by the business object through the application client, parsing the first login connection request to obtain a first extended business requested to be executed by the business object; Querying the first extended service from the services managed by the target resource client to obtain a first query result; the services managed by the target resource client include the first service; When the first query result indicates that the first extended service is queried from the services managed by the target resource client, determining that the target resource client integrates a first extended service source code corresponding to the first extended service, and acquiring a first extended service field configured for the first extended service from the first extended service source code; using the first extended service field as a first field to be authorized for the first extended service, and displaying the first field to be authorized in a client connection request interface of the target resource client; In response to the confirmation operation of the business object on the client connection interface for the first field to be authorized, the first field to be authorized is used as the first authorized field, and based on the first authorized field, a first prompt message is generated to indicate that the application client is successfully connected to the target resource client, and the first prompt message is returned to the application client.

3. The method according to claim 2, characterized in that The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service; The querying the first extended service from the services managed by the target resource client to obtain a first query result includes: querying the first extended service from the second service, and querying the first extended service from the first service when the first extended service is not found from the second service; When the first extended service is queried from the first service, the first query result is obtained.

4. The method according to claim 2, characterized in that: The querying the first extended service from the services managed by the target resource client to obtain a first query result includes: querying a business source code for executing the first extended business from a first business source code corresponding to the first business included in the business managed by the target resource client; When a business source code for executing the first extended business is queried from the first business source code, the business source code for executing the first extended business in the first business source code is used as the first extended business source code corresponding to the first extended business, and it is determined that the first extended business is queried from the business managed by the target resource client, and the first query result is generated.

5. The method according to claim 2, characterized in that: The calling of the first business component based on the business component calling request, and acquiring a target business interface matching the first business from a business interface indicated by the first business source code, includes: A business interface for indicating the interface interaction component is obtained from the business interface indicated by the first extended business source code, and the obtained business interface for indicating the interface interaction component is used as a first target business interface matching the first extended business.

6. The method according to claim 5, characterized in that The calling of the interface interaction component of the target resource client based on the interface method provided by the target service interface, and outputting the service content indicated by the first service on the display interface corresponding to the interface interaction component, includes: acquiring a field value of a first extended service field configured for the first extended service through the first extended service source code, and using the field value of the first extended service field configured for the first extended service as a first service content indicated by the first extended service; When determining a first component calling parameter based on the business content indicated by the first extended business, the first component calling parameter is passed to the interface interaction component based on an interface method provided by the first target business interface, so that the interface interaction component outputs the first business content indicated by the first extended business on the display interface based on the first component calling parameter.

7. The method according to claim 6, characterized in that The first extended service field is a service content field; The acquiring, through the first extended service source code, a field value of a first extended service field configured for the first extended service includes: The business information to be signed is parsed from the business component call request through the first extended business source code, and the business information to be signed is used as the field value of the business content field.

8. The method according to claim 7, characterized in that The executing the first service based on the source code matching the service content in the first service source code to obtain the first service execution result includes: Acquire a source code for executing the service information signature from the first extended service source code, and use the source code for executing the service information signature as a first matching source code in the first extended service source code that matches the first service content; The business information to be signed is signed by using the first matching source code that matches the first business content, and the signed business information is used as the first business execution result corresponding to the first extended business.

9. The method according to claim 1, characterized in that: The first service includes a second extended service for performing asset query via the target resource client; The method further comprises: When receiving a second login connection request sent by the business object through the application client, parsing the second login connection request to obtain a second extended business requested to be executed by the business object; Querying the second extended service from the services managed by the target resource client to obtain a second query result; the services managed by the target resource client include the first service; When the second query result indicates that the second extended service is queried from the services managed by the target resource client, determining that the target resource client is integrated with a second extended service source code corresponding to the second extended service, and acquiring a second extended service field configured for the second extended service from the second extended service source code; using the second extended service field as a second field to be authorized for the second extended service, and displaying the second field to be authorized in a client connection request interface of the target resource client; In response to the confirmation operation of the business object on the client connection interface for the second field to be authorized, the second field to be authorized is used as a second authorized field, and based on the second authorized field, a second prompt message is generated to indicate that the application client is successfully connected to the target resource client, and the second prompt message is returned to the application client.

10. The method according to claim 9, characterized in that The service managed by the target resource client includes a second service provided by the original resource client, and the service priority of the second service is higher than the service priority of the first service; The querying the second extended service from the services managed by the target resource client to obtain a second query result includes: querying the second extended service from the second service, and querying the second extended service from the first service when the second extended service is not found from the second service; When the second extended service is queried from the first service, the second query result is obtained.

11. The method according to claim 9, characterized in that The querying the second extended service from the services managed by the target resource client to obtain a second query result includes: Querying a business source code for executing the second extended business from a first business source code corresponding to the first business included in the business managed by the target resource client; When a business source code for executing the second extended business is queried from the first business source code, the business source code for executing the second extended business in the first business source code is used as the second extended business source code corresponding to the second extended business, and it is determined that the second extended business is queried from the business managed by the target resource client, and the second query result is generated.

12. The method according to claim 9, characterized in that The calling of the first business component based on the business component calling request, and acquiring a target business interface matching the first business from a business interface indicated by the first business source code, includes: A business interface for indicating the interface interaction component is obtained from the business interface indicated by the second extended business source code, and the obtained business interface for indicating the interface interaction component is used as a second target business interface matching the second extended business.

13. The method according to claim 12, characterized in that The calling of the interface interaction component of the target resource client based on the interface method provided by the target service interface, and outputting the service content indicated by the first service on the display interface corresponding to the interface interaction component, includes: acquiring a field value of a second extended service field configured for the second extended service through the second extended service source code, and using the field value of the second extended service field configured for the second extended service as a second service content indicated by the second extended service; When determining a second component calling parameter based on the business content indicated by the second extended business, the second component calling parameter is passed to the interface interaction component based on an interface method provided by the second target business interface, so that the interface interaction component outputs the second business content indicated by the second extended business in the interface interaction component based on the second component calling parameter.

14. The method according to claim 13, characterized in that The second extended business field is an asset address field; The acquiring, through the second extended service source code, a field value of a second extended service field configured for the second extended service includes: The asset address information of the asset to be queried is parsed from the business component call request through the second extended business source code, and the asset address information is used as the field value of the asset address field.

15. The method according to claim 14, characterized in that The executing the first service based on the source code matching the service content in the first service source code to obtain the first service execution result includes: Acquire a source code for executing asset information query from the second extended service source code, and use the source code for executing asset information query as a second matching source code in the second extended service source code that matches the second service content; The asset information of the asset indicated by the asset address information is queried through the asset information query interface indicated by the second matching source code matching the second business content, and the queried asset information is used as the first business execution result corresponding to the second extended business.

16. The method according to claim 1, characterized in that The method further comprises: When the service managed by the original resource client does not support the first service, obtaining a development dependency package of the original resource client and obtaining the first service source code of the target resource client; The first business source code and the development dependency package are packaged by a packaging tool, the first business source code is packaged as a component during the packaging process, and the packaged component corresponding to the first business source code is obtained as the first business component; The first business component and the original resource client are integrated based on the development dependency package, and the original resource client after component integration is used as the target resource client.

17. A service execution device, characterized in that: The device runs on a target resource client, and the target resource client is obtained by integrating and running the first service component on an original resource client; The first service component is obtained by encapsulating the first service source code corresponding to the first service into a component; the device includes: a component calling module, configured to, upon receiving a business component calling request sent by a business object through an application client for the first business, call the first business component based on the business component calling request, and obtain a target business interface matching the first business from the business interface indicated by the first business source code; A content output module, configured to call the interface interaction component of the target resource client based on the interface method provided by the target service interface, and output the service content indicated by the first service on the display interface corresponding to the interface interaction component; A business execution module is used to respond to the confirmation operation of the business object on the business content indicated by the first business, execute the first business based on the source code in the first business source code that matches the business content, obtain a first business execution result, and return the first business execution result to the application client.

18. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 16.

20. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 16 when executed by a processor.