CN110389754B - Service processing method, system, server, terminal, electronic equipment and storage medium - Google Patents

Service processing method, system, server, terminal, electronic equipment and storage medium Download PDF

Info

Publication number
CN110389754B
CN110389754B CN201910528227.6A CN201910528227A CN110389754B CN 110389754 B CN110389754 B CN 110389754B CN 201910528227 A CN201910528227 A CN 201910528227A CN 110389754 B CN110389754 B CN 110389754B
Authority
CN
China
Prior art keywords
service
sub
replaced
target sub
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910528227.6A
Other languages
Chinese (zh)
Other versions
CN110389754A (en
Inventor
魏璐豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910528227.6A priority Critical patent/CN110389754B/en
Publication of CN110389754A publication Critical patent/CN110389754A/en
Application granted granted Critical
Publication of CN110389754B publication Critical patent/CN110389754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Abstract

The invention provides a service processing method, a service processing system, a server, a terminal, electronic equipment and a storage medium. The method comprises the following steps: splitting a first service to be processed by a server to obtain a sub-service sequence, and determining a target sub-service in the sub-service sequence; the programming language of the target sub-business is a script language; the server records the service component information to be replaced corresponding to each target sub-service; the server generates a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced, and sends the second service to be processed to the terminal; the terminal acquires service components to be replaced corresponding to each target sub-service; the programming language of the service component to be replaced is a native class language; the terminal uses each service component to be replaced to correspondingly replace each target sub-service to generate a target sub-service sequence; and the terminal executes the target sub-service sequence to obtain an execution result. The invention can improve the data transmission efficiency and reduce the first loading time of the page.

Description

Service processing method, system, server, terminal, electronic equipment and storage medium
Technical Field
The present invention relates to the field of service processing technologies, and in particular, to a service processing method, a system, a server, a terminal, an electronic device, and a storage medium.
Background
The dynamic scheme refers to the capability of the application program to realize dynamic update of the content without releasing a new version, and the content of the application program is not only limited to basic information (such as sold commodity information and the like), but also relates to deep information (such as page integral typesetting, layout and the like) of a main body framework, an information structure and the like of the application program.
Most of the existing dynamic schemes use js (Javascript ) or lua and other scripting languages to carry out logic control, while the use of the scripting language depends on a scripting analysis engine, when a server issues js or lua and other scripting languages to a terminal, the server needs to issue the scripting analysis engine at the same time, the package volume of an issued data packet must be increased, and after the terminal receives js or lua and other scripting languages, the corresponding scripting analysis engine needs to analyze js or lua and other scripting languages, so that the first loading time of a corresponding page must be increased.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a service processing method, a system, a server, a terminal, electronic equipment and a storage medium, so as to solve the technical problems that the volume of a downlink data packet is increased and the first loading time is increased by adopting a script language in a dynamic scheme in the prior art.
In order to solve the above problems, an embodiment of the present invention provides a service processing method, including: splitting a first service to be processed by a server to obtain a sub-service sequence, and determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; the server records the service component information to be replaced corresponding to each target sub-service; the server generates a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced, and sends the second service to be processed to a terminal; the terminal locally acquires the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced; the programming language corresponding to the service component to be replaced is a native class language; the terminal uses each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and the terminal executes the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
In order to solve the above problems, an embodiment of the present invention provides a service processing method, which is applied to a server, including: splitting a first service to be processed to obtain a sub-service sequence; determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; recording service component information to be replaced corresponding to each target sub-service; generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced; and sending the second service to be processed to a terminal.
Preferably, the determining at least one target sub-service to be replaced in the sub-service sequence includes: sequentially acquiring programming languages corresponding to the sub-services aiming at a plurality of sub-services in the sub-service sequence; and determining the sub-service with the programming language being the scripting language as a target sub-service.
Preferably, the recording service component information to be replaced corresponding to each target sub-service includes: identifying service processing information corresponding to each target sub-service according to script codes corresponding to each target sub-service; acquiring service component information to be replaced corresponding to each piece of service processing information according to a mapping relation between the service processing information and the service component information to be replaced; according to the execution sequence of each sub-service, triggering conditions corresponding to each target sub-service are sequentially obtained; recording service component information to be replaced corresponding to each target sub-service and each triggering condition; generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component to be replaced information, including: and packaging the sub-service sequence, each target sub-service, each service component information to be replaced and each triggering condition to generate the second service to be processed.
In order to solve the above problems, an embodiment of the present invention provides a service processing method, which is applied to a terminal, including: receiving a service to be processed sent by a server; the service to be processed comprises a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service; according to the information of each service component to be replaced, locally acquiring the service component to be replaced corresponding to each target sub-service; the programming language corresponding to the service component to be replaced is a native class language; using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and executing the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
Preferably, before the receiving the service to be processed sent by the server, the method further includes: creating a plurality of service components corresponding to at least one service type in advance; for each service type, storing at least one service component corresponding to the service type in a designated storage space corresponding to the service type; the step of locally acquiring the service component to be replaced corresponding to each target sub-service according to the service component to be replaced information comprises the following steps: acquiring a target service type of the service to be processed; and acquiring each service component to be replaced from a target storage space locally corresponding to the target service type according to the information of each service component to be replaced.
Preferably, the generating a target sub-service sequence by using each to-be-replaced service component to correspondingly replace each target sub-service in the sub-service sequence includes: receiving service components to be replaced selected by a user for each target sub-service on a designated page; and replacing each target sub-service with the service component to be replaced to generate the target sub-service sequence.
Preferably, the service to be processed further includes: the executing the target sub-service sequence according to the triggering condition corresponding to each piece of to-be-replaced service component information to obtain an executing result corresponding to the to-be-processed service, including: in the execution process of the target sub-service sequence, acquiring triggering conditions corresponding to the service components to be replaced according to the service component information to be replaced corresponding to the service components to be replaced in sequence for each service component to be replaced; when the triggering condition is met, the service component to be replaced is operated; and after the target sub-service sequence is executed, acquiring an execution result corresponding to the service to be processed.
In order to solve the above problems, an embodiment of the present invention provides a service processing system, where the system includes a server and a terminal, and the server includes: the target service determining module is used for splitting the first service to be processed to obtain a sub-service sequence and determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; the service component recording module is used for recording the service component information to be replaced corresponding to each target sub-service; the service to be processed sending module is used for generating a second service to be processed according to the sub-service sequence, each target sub-service and each service to be replaced assembly information, and sending the second service to be processed to the terminal; the terminal comprises: the to-be-replaced component acquisition module is used for locally acquiring to-be-replaced service components corresponding to the target sub-services according to the to-be-replaced service component information; the programming language corresponding to the service component to be replaced is a native class language; the target sequence generating module is used for correspondingly replacing each target sub-service in the sub-service sequence by utilizing each service component to be replaced to generate a target sub-service sequence; and the execution result acquisition module is used for executing the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
In order to solve the above problems, an embodiment of the present invention provides a server including: the sub-service sequence acquisition module is used for splitting the first service to be processed to obtain a sub-service sequence; a target sub-service determining module, configured to determine at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; the component information recording module is used for recording the to-be-replaced service component information corresponding to each target sub-service; the second service generating module is used for generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced; and the second service sending module is used for sending the second service to be processed to the terminal.
Preferably, the target sub-service determining module includes: the programming language acquisition sub-module is used for sequentially acquiring programming languages corresponding to the sub-services aiming at a plurality of sub-services in the sub-service sequence; and the target sub-service determining sub-module is used for determining the sub-service with the programming language being the scripting language as the target sub-service.
Preferably, the component information recording module includes: the service processing information identification sub-module is used for identifying service processing information corresponding to each target sub-service according to the script code corresponding to each target sub-service; the sub-module for obtaining the information of the to-be-replaced assembly is used for obtaining the information of the to-be-replaced service assembly corresponding to each piece of service processing information according to the mapping relation between the service processing information and the information of the to-be-replaced service assembly; the trigger condition acquisition sub-module is used for sequentially acquiring trigger conditions corresponding to the target sub-services according to the execution sequence of the sub-services; the component and condition recording sub-module is used for recording the service component information to be replaced corresponding to each target sub-service and each triggering condition; the second service generation module includes: and the second service generation sub-module is used for carrying out packaging processing on the sub-service sequence, each target sub-service, each service component information to be replaced and each triggering condition to generate the second service to be processed.
In order to solve the above problems, an embodiment of the present invention provides a terminal, including: the service receiving module is used for receiving the service to be processed sent by the server; the service to be processed comprises a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service; the replacement component acquisition module is used for locally acquiring the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced; the programming language corresponding to the service component to be replaced is a native class language; the target sub-sequence generating module is used for correspondingly replacing each target sub-service in the sub-service sequence by utilizing each service component to be replaced to generate a target sub-service sequence; and the service sequence execution module is used for executing the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
Preferably, the method further comprises: a service component creation module for creating a plurality of service components corresponding to at least one service type in advance; the service component storage module is used for storing at least one service component corresponding to the service type in a designated storage space corresponding to the service type for each service type; the replacement component acquisition module includes: a service type acquisition sub-module for acquiring the target service type of the service to be processed; and the replacement component acquisition sub-module is used for acquiring each service component to be replaced from a target storage space locally corresponding to the target service type according to the information of each service component to be replaced.
Preferably, the target subsequence generation module includes: the replacement component selection sub-module is used for receiving service components to be replaced selected by a user for each target sub-service on a designated page; and the target sub-sequence generation sub-module is used for replacing each target sub-service with the service component to be replaced to generate the target sub-service sequence.
Preferably, the service to be processed further includes: and the service sequence execution module comprises the following components: the trigger condition acquisition sub-module is used for acquiring trigger conditions corresponding to the service components to be replaced according to the service component information to be replaced corresponding to the service components to be replaced in sequence for each service component to be replaced in the execution process of the target sub-service sequence; a replacement service component operation submodule, configured to operate the service component to be replaced when the trigger condition is satisfied; and the execution result acquisition sub-module is used for acquiring an execution result corresponding to the service to be processed after the execution of the target sub-service sequence is completed.
In order to solve the above problems, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the business processing method of any of the above.
In order to solve the above-described problems, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the service processing method of any one of the above-described problems.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a first service to be processed is split into a sub-service sequence through a server, at least one target sub-service to be replaced in the sub-service sequence is determined, a programming language corresponding to the target sub-service is a script language, information of service components to be replaced corresponding to each target sub-service is recorded, a second service to be processed is generated according to the sub-service sequence, each target sub-service and the information of each service component to be replaced, the second service to be processed is sent to a terminal, the terminal locally acquires service components to be replaced corresponding to each target sub-service according to the information of each service component to be replaced, the programming language corresponding to each service component to be replaced is a primitive language, each target sub-service in the sub-service sequence is replaced correspondingly by utilizing each service component to be replaced, a target sub-service sequence is generated, and the terminal executes the target sub-service sequence, so that an execution result corresponding to the second service to be processed is obtained. According to the scheme provided by the invention, as the service components to be replaced of the original class language are preprogrammed on the terminal side and the target sub-service is replaced by the service components to be replaced on the terminal side, the server side only needs to record the information of the service components to be replaced of each target sub-service and send the information to the terminal, and a script analysis engine does not need to be issued at the same time, so that the volume is reduced and the data sending efficiency is improved. And the target sub-service is directly replaced by the preset service component to be replaced, the target sub-service using the script language is not contained after the replacement, the service component to be replaced is contained, and the programming language corresponding to the service component to be replaced is the original class language and can be directly operated at the terminal side, so that the analysis by the script analysis engine is not needed, and the first loading time of the page is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
Fig. 1 is a step flowchart of a service processing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a service configuration processing procedure according to an embodiment of the present application;
fig. 3 is a flowchart of steps of a service processing method according to an embodiment of the present application;
fig. 4 is a step flowchart of a service processing method according to an embodiment of the present application
Fig. 5 is a schematic diagram of a terminal performing service analysis according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a service processing system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that although the terms first, second, etc. may be used in embodiments of the present invention to describe alternative services, these alternative services should not be limited to these terms. These terms are only used to distinguish the replacement services from each other. For example, a first generation replacement service may also be referred to as a second replacement service, and similarly, a second replacement service may also be referred to as a first generation replacement service, without departing from the scope of embodiments of the present invention.
Referring to fig. 1, a service processing method provided by an embodiment of the present invention may specifically include the following steps:
step 101: the server splits the first service to be processed to obtain a sub-service sequence, and determines at least one target sub-service to be replaced in the sub-service sequence.
The embodiment of the invention can be applied to a scene that a server splits a service to be processed into a sub-service sequence, determines and records a target sub-service to be replaced in the sub-service sequence, and replaces the target sub-service with a service component with a programming language of a native class language by a terminal.
The first service to be processed refers to a service to be processed to be issued to the terminal by the server. The first pending service may be a user action, such as a payment action performed when the user shops, etc.
The sub-service sequence refers to a sub-service sequence obtained after the first service to be processed is split by the server, in the sub-service sequence, the sequence corresponding to each sub-service represents the execution sequence of each sub-service, for example, the sub-service sequence sequentially includes a sub-service a, a sub-service b and a sub-service c, and when the first service to be processed is executed, the sub-service a, the sub-service b and the sub-service c are sequentially executed to complete the execution process of the first service to be processed.
The target sub-service refers to a sub-service in which the programming language in the sub-service sequence is a scripting language.
Scripting languages, also known as dynamic languages, may be used to control software applications, scripts are typically saved in text form and interpreted or translated only when called.
Scripting languages may include js scripting language, lua scripting language, and the like, and in particular, may be practical, nor is the embodiment of the invention limited thereto.
When the server divides the first to-be-processed service, the first to-be-processed service can be analyzed to analyze the scripting language contained in the programming language corresponding to the first to-be-processed service, and further, according to the position of the sub-service corresponding to each scripting language in the first to-be-processed service, for example, the first to-be-processed service contains the scripting language a and the scripting language B, when the first to-be-processed service is divided, the service corresponding to the scripting language a can be divided into a single sub-service, and the service corresponding to the scripting language B can be divided into a single sub-service.
In the splitting process, the service corresponding to the non-script language may be divided into one sub-service, specifically, the division needs to be performed in combination with the position of the service corresponding to the script language in the first service to be processed, for example, according to the execution sequence of each sub-service in the sub-service sequence, the sub-service corresponding to the non-script language a, the sub-service corresponding to the script language b, the sub-service corresponding to the script language c, the sub-service corresponding to the non-script language d, and the sub-service corresponding to the script language e may be sequentially included, and when the first service to be processed is split, the first sub-service corresponding to the non-script language a, the second sub-service corresponding to the script language b, the third sub-service corresponding to the script language c, the fourth sub-service corresponding to the non-script language d, and the fifth sub-service corresponding to the script language e may be obtained, where the second sub-service, the third sub-service and the fifth sub-service are target sub-services.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
In the invention, the language identifier can be adopted to identify the programming languages corresponding to the plurality of sub-services, and in particular, the plurality of sub-services can be sequentially input into the language identifier, and the programming language corresponding to each sub-service can be output through the language identifier.
Of course, in practical application, other manners may be used to identify the programming language corresponding to each sub-service, and in particular, the embodiment of the present invention may be determined according to the service requirement, which is not limited in this way.
After splitting the first service to be processed by the server to obtain a sub-service sequence and determining at least one target sub-service to be replaced in the sub-service sequence, step 102 is performed.
Step 102: and the server records the service component information to be replaced corresponding to each target sub-service.
The service component information to be replaced refers to information of a target sub-service to be replaced in the sub-service sequence, for example, the target sub-service to be replaced in the sub-service sequence includes a sub-service a and a sub-service b, and the service component information to be replaced may include the sub-service a and the sub-service b, and information of the service component to be replaced that replaces the sub-service a and the sub-service b respectively, and so on.
In the present invention, the service component information to be replaced may be an identifier corresponding to the service component to be replaced on the terminal side, for example, the service component to be replaced on the terminal side is respectively provided with a corresponding component identifier, for example, the component a corresponds to the component identifier 1, the component b corresponds to the component identifier 2, and so on. When the server records the service component information to be replaced corresponding to each target sub-service, the component identifier can be used as the service component information to be replaced.
Of course, the service component information to be replaced may also be other information, such as a sequence number corresponding to the service component to be replaced at the terminal side, and the like, and specifically, the embodiment of the present invention may be determined according to the service requirement, which is not limited.
After determining at least one target sub-service to be replaced in the sub-services, a service component to be replaced corresponding to each target sub-service can be recorded, and the service component to be replaced information is formed by combining each target sub-service.
After the server records the service component information to be replaced corresponding to each target sub-service, step 103 is performed.
Step 103: the server generates a second service to be processed according to the sub-service sequence, each target sub-service and each service component to be replaced information, and sends the second service to be processed to a terminal.
In the present invention, the terminal may be a PC (Personal Computer ) terminal, or may be a mobile terminal, such as a mobile phone, a PAD (Portable Android Device, tablet computer), etc., and specifically may be determined according to practical situations.
After obtaining the information of each target sub-service and each service component to be replaced, the sub-service sequence, each target sub-service and the information of each service component to be replaced can be packaged, so that a second service to be processed is generated.
Of course, the second service to be processed may also include the triggering condition of each service component to be replaced.
In the above process, the triggering condition corresponding to each piece of service component information to be replaced may be further obtained, after the piece of service component information to be replaced corresponding to each target sub-service is determined according to each piece of service processing information, the piece of service component information to be replaced corresponding to each target sub-service and the triggering condition corresponding to each piece of service component information to be replaced may be recorded, so as to be used as a component for generating the second to-be-processed service subsequently.
And a second service to be processed can be generated according to the sub-service sequence, each target sub-service, each service component information to be replaced and each trigger condition.
According to the embodiment of the invention, the corresponding triggering conditions are added for replacing the service component, so that after the target sub-service is replaced subsequently, the triggering conditions of the replaced service component can be executed according to the triggering conditions, and the corresponding service component can be executed, so that the service to be processed can be executed sequentially, and complete processing logic is formed.
After the server generates the second service to be processed, the server may send the second service to be processed to the terminal for processing.
Step 104: and the terminal locally acquires the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced.
The service component to be replaced refers to a component of a local preset replacement target sub-service of the terminal, and the service component to be replaced has corresponding processing logic, for example, for a service component for acquiring order information, the service component can be executed, and then the corresponding order information can be acquired.
The programming language corresponding to the service component to be replaced is a native class language, wherein the native class language refers to a language with a data type of a basic data type in Java, and after a Java running environment is installed, the terminal side can directly run the native class language without adopting a parser for parsing.
After the service components to be replaced are preset at the terminal side, the service components to be replaced can be preset and stored in a designated storage space, specifically, the service components to be replaced corresponding to different service types can be stored in a distinguishing mode, and when the service components to be replaced corresponding to each target sub-service are obtained subsequently, the service components to be replaced corresponding to each target sub-service can be obtained from the designated storage space according to the service type of the target service.
Of course, when the service component information to be replaced is the component identifier corresponding to the service component to be replaced, the matched service component to be replaced can be searched in the designated storage space according to the component identifier, and the process of locally acquiring the service component to be replaced corresponding to the target sub-service is completed.
After the terminal obtains the service components to be replaced corresponding to each target sub-service from the local according to the service component information to be replaced, step 105 is executed.
Step 105: and the terminal correspondingly replaces each target sub-service in the sub-service sequence by utilizing each service component to be replaced to generate a target sub-service sequence.
After the terminal obtains the replacement service components corresponding to each target sub-service, the terminal can correspondingly replace each target sub-service in the sub-service sequence according to each service component to be replaced, so as to generate a target sub-service sequence.
The specific replacement process may be: after the service components to be replaced corresponding to each target sub-service are obtained, the target sub-service corresponding to the service components to be replaced can be sequentially searched from the sub-service sequence, and the target sub-service is replaced by the service components to be replaced, so that a target sub-service sequence can be obtained, for example, the sub-service sequence sequentially comprises, according to the execution sequence of each sub-service: sub-business 1, sub-business 2, sub-business 3, sub-business 4, sub-business 5 and sub-business 6, wherein sub-business 2, sub-business 3 and sub-business 5 are target sub-business, the business component to be replaced corresponding to sub-business 2 is component a, the business component to be replaced corresponding to sub-business 3 is component b, the business component to be replaced corresponding to sub-business 5 is component c, for the sub-business sequence, sub-business 2 is replaced with component a, sub-business 3 is replaced with component b, sub-business 5 is replaced with component c, and the target sub-business sequence obtained after the replacement is completed is: sub-service 1, component a, component b, sub-service 4, component c, and sub-service 6.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
And after the terminal uses each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence, executing step 106.
Step 106: and the terminal executes the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
After generating the target sub-service sequence, the terminal may execute the target sub-service sequence, and after execution is completed, an execution result corresponding to the service to be processed may be obtained, for example, the target sub-service sequence: sub-service 1, component a, component b, sub-service 4, component c and sub-service 6 are sequentially executed, and after execution is completed, corresponding execution results can be obtained.
For the above execution, the following description may be made in connection with fig. 2.
Referring to fig. 2, a schematic diagram of a service configuration processing procedure provided by the embodiment of the present invention is shown, where, as shown in fig. 2, pvg represents an installation package configuration file, a Web (World Wide Web, global Wide area network) (i.e., a Web Server), which may be used to configure a target service (i.e., a configuration behavior shown in fig. 2), such as a payment behavior performed when a user purchases a service, and control a front end (i.e., a terminal side) when the target service is performed, and it can be understood that, during the shopping process of the user, there is a purchase selection flow, a payment flow, a purchase exchange flow, and the like, for each process performed by the user, the Web Server may generate a corresponding target service and issue the corresponding target service to a Server, such as a Server in fig. 2.
The Server generates a corresponding JSON structure according to the target service issued by the web Server, namely, the target service is split in a fine granularity mode according to a data format, a plurality of fine granularity behavior objects (namely, sub-service sequences in the invention) are constructed, the Server extracts the target object to be replaced in the plurality of fine granularity behavior objects (namely, the corresponding programming language is a script language), the component to be replaced corresponding to the extracted target object is recorded, and the plurality of fine granularity behavior objects and the recorded information are packaged and sent to the front end.
The front end can acquire a target object to be replaced in a plurality of fine-grained behavior objects according to the record information, and acquire a matched component to be replaced from the local to replace, so that the target object is replaced by the component to be replaced (namely, the corresponding programming language is a native class language).
Because the programming language corresponding to the service component to be replaced preset at the terminal side is the original class language, the service component can be directly operated without being analyzed by an analyzer, and therefore the time for loading the page for the first time can be reduced.
According to the service processing method provided by the embodiment of the invention, a first service to be processed is split into a sub-service sequence through a server, at least one target sub-service to be replaced in the sub-service sequence is determined, a programming language corresponding to the target sub-service is a script language, information of service components to be replaced corresponding to each target sub-service is recorded, a second service to be processed is generated according to the sub-service sequence, each target sub-service and the information of service components to be replaced, the second service to be processed is sent to a terminal, the terminal locally acquires service components to be replaced corresponding to each target sub-service according to the information of service components to be replaced, the programming language corresponding to the service components to be replaced is a primitive language, each target sub-service in the sub-service sequence is replaced correspondingly by utilizing each service component to be replaced, a target sub-service sequence is generated, and the terminal executes the target sub-service sequence, so that an execution result corresponding to the second service to be processed is obtained. According to the scheme provided by the invention, as the service components to be replaced of the original class language are preprogrammed on the terminal side and the target sub-service is replaced by the service components to be replaced on the terminal side, the server side only needs to record the information of the service components to be replaced of each target sub-service and send the information to the terminal, and a script analysis engine does not need to be issued at the same time, so that the volume is reduced and the data sending efficiency is improved. And the target sub-service is directly replaced by the preset service component to be replaced, the target sub-service using the script language is not contained after the replacement, the service component to be replaced is contained, and the programming language corresponding to the service component to be replaced is the original class language and can be directly operated at the terminal side, so that the analysis by the script analysis engine is not needed, and the first loading time of the page is reduced.
Referring to fig. 3, a service processing method provided by an embodiment of the present invention is shown, where the service processing method is applied to a server, and specifically may include the following steps:
step 201: splitting the first service to be processed to obtain a sub-service sequence.
The embodiment of the invention can be applied to a scene that a server splits the service to be processed into a sub-service sequence and determines and records the target sub-service to be replaced in the sub-service sequence.
The first service to be processed refers to a service to be processed to be issued to the terminal by the server. The first pending service may be a user action, such as a payment action performed when the user shops, etc.
The sub-service sequence refers to a sub-service sequence obtained after splitting the first to-be-processed service, in which the sequence corresponding to each sub-service represents the execution sequence of each sub-service, for example, the sub-service sequence includes sub-service a, sub-service b and sub-service c in turn, and when the first to-be-processed service is executed, the sub-service a, sub-service b and sub-service c are executed in turn to complete the execution process of the first to-be-processed service.
When the first to-be-processed service is split, the first to-be-processed service can be analyzed to analyze the script language contained in the programming language corresponding to the first to-be-processed service, and further the first to-be-processed service can be split according to the position of the sub-service corresponding to each script language in the first to-be-processed service, for example, the first to-be-processed service contains the script language A and the script language B, when the first to-be-processed service is split, the service corresponding to the script language A can be divided into a single sub-service, and the service corresponding to the script language B can be divided into a single sub-service.
In the splitting process, the service corresponding to the non-script language may be divided into one sub-service, specifically, the division needs to be performed in combination with the position of the service corresponding to the script language in the first service to be processed, for example, according to the execution sequence of the sub-service sequence obtained by splitting the service to be processed, the service corresponding to the non-script language a, the service corresponding to the script language b, the service corresponding to the script language c, the service corresponding to the non-script language d, and the service corresponding to the script language e may be sequentially included, and when the first service to be processed is split, the first sub-service corresponding to the non-script language a, the second sub-service corresponding to the script language b, the third sub-service corresponding to the script language c, the fourth sub-service corresponding to the non-script language d, and the fifth sub-service corresponding to the script language e may be obtained.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After splitting the first service to be processed, a sub-service sequence is obtained, step 202 is performed.
Step 202: determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language.
After splitting the first service to be processed into the sub-service sequence, at least one target sub-service to be replaced in the sub-service sequence may be determined according to a programming language corresponding to each sub-service in the sub-service sequence, that is, a sub-service in which the programming language is a scripting language in the sub-service sequence is determined as a target sub-service, which is specifically described in detail in the following preferred embodiments.
In a preferred embodiment of the present invention, the step 202 may include:
substep A1: and sequentially acquiring programming languages corresponding to the sub-services aiming at a plurality of sub-services in the sub-service sequence.
In an embodiment of the invention, the programming language (Programming Language) is a formal language for defining a computer program, and the programming language is a standardized communication skill for issuing instructions to a computer.
The programming language can comprise different types of languages such as a script language, a Delphi language, a Java language and the like, and the invention aims to determine that the programming language is a sub-service of the script language in a sub-service sequence and does not consider other programming languages.
In the invention, the language identifier can be adopted to identify the programming languages corresponding to the plurality of sub-services, and in particular, the plurality of sub-services can be sequentially input into the language identifier, and the programming language corresponding to each sub-service can be output through the language identifier.
Of course, in practical application, other manners may be used to identify the programming language corresponding to each sub-service, and in particular, the embodiment of the present invention may be determined according to the service requirement, which is not limited in this way.
And executing the sub-step A2 after the programming languages corresponding to the sub-services are acquired in turn for a plurality of sub-services in the sub-service sequence.
Substep A2: and determining the sub-service with the programming language being the scripting language as a target sub-service.
Scripting languages, in turn, are dynamic languages that can be used to control software applications, scripts are typically saved in text form and interpreted or translated only when called.
Scripting languages may include js scripting language, lua scripting language, and the like, and in particular, may be practical, nor is the embodiment of the invention limited thereto.
For each sub-service, when the programming language corresponding to the sub-service is a scripting language, the sub-service can be determined as a target sub-service, for example, the plurality of sub-services include sub-service 1, sub-service 2, sub-service 3, sub-service 4 and sub-service 5, and when the programming language corresponding to the sub-service 2 and sub-service 5 is a scripting language, the sub-service 2 and sub-service 5 are determined as target sub-services.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After determining at least one target sub-service to be replaced in the sub-service sequence, step 203 is performed.
Step 203: and recording service component information to be replaced corresponding to each target sub-service.
The service component information to be replaced refers to information of a target sub-service to be replaced in the sub-service sequence, for example, the target sub-service to be replaced in the sub-service sequence includes a sub-service a and a sub-service b, and the service component information to be replaced may include the sub-service a and the sub-service b, and information of the service component to be replaced that replaces the sub-service a and the sub-service b respectively, and so on.
The service component information to be replaced may be an identifier corresponding to the service component to be replaced on the terminal side, for example, the service component to be replaced on the terminal side is respectively provided with a corresponding component identifier, for example, the component a corresponds to the component identifier 1, the component b corresponds to the component identifier 2, and so on. When the server records the service component information to be replaced corresponding to each target sub-service, the component identifier can be used as the service component information to be replaced.
Of course, the service component information to be replaced may also be other information, such as a sequence number corresponding to the service component to be replaced at the terminal side, and the like, and specifically, the embodiment of the present invention may be determined according to the service requirement, which is not limited.
After determining at least one target sub-service to be replaced in the sub-services, a service component to be replaced corresponding to each target sub-service can be recorded, and the service component to be replaced information is formed by combining each target sub-service.
And a process of recording service component information to be replaced corresponding to each target sub-service is described in detail in the following preferred embodiments.
In a preferred embodiment of the present invention, the step 203 may include:
substep B1: and identifying service processing information corresponding to each target sub-service according to the script code corresponding to each target sub-service.
In the embodiment of the invention, the service processing information refers to service execution process detail description information corresponding to the target sub-service, the service execution detail description information refers to execution of the target sub-service, what interface is displayed on the terminal side, which buttons, characters and the like are displayed on the interface, for example, for a payment behavior of a user, the detail description information of a page on which the target sub-service is input payment data can be obtained, such as information of a data payment frame, a confirmation button, a withdrawal button and the like.
In the invention, the business processing information of the target sub-business can be obtained by adopting a mode of simulating the script code corresponding to the running target sub-business.
The script code corresponding to the target sub-service can be analyzed, and the service processing information corresponding to the target sub-service can be determined according to the analysis result.
The manner of identifying the service processing information corresponding to each target sub-service may be determined according to the service requirement, which is not limited in the embodiment of the present invention.
After determining at least one target sub-service to be replaced in the sub-service sequence, service processing information corresponding to each target sub-service can be sequentially identified.
After identifying the service processing information corresponding to each target sub-service, a sub-step B2 is performed.
Substep B2: and acquiring the service component information to be replaced corresponding to each service processing information according to the mapping relation between the service processing information and the service component information to be replaced.
The mapping relation between the service processing information and the service component information to be replaced is pre-stored at the server side.
After the service processing information corresponding to each target sub-service is acquired, the service component information to be replaced corresponding to each target sub-service can be determined according to each service processing information, for example, when the service processing information corresponding to the target sub-service is order information acquisition, the service component information to be replaced corresponding to the order information acquisition, namely, the service component information corresponding to the order is acquired; when the service processing information corresponding to the target sub-service is payment information, acquiring service component information to be replaced corresponding to the payment, namely acquiring the service component information corresponding to the payment information; and when the service processing information corresponding to the target sub-service is the query order information, the service component information to be replaced corresponding to the query order information can be obtained, namely, the service component information corresponding to the query order is obtained.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the information of the service component to be replaced is obtained, the terminal side can obtain the corresponding service component to be replaced by combining the information of the service component to be replaced (the programming language corresponding to the service component to be replaced is the original class language), so that when the server side issues the service to be processed, a script analysis engine does not need to be issued at the same time.
And B3, after obtaining the service component information to be replaced corresponding to each service processing information according to the mapping relation between the service processing information and the service component information to be replaced, executing the substep.
Substep B3: and acquiring triggering conditions corresponding to the target sub-services in sequence according to the execution sequence of the sub-services.
In the invention, the triggering condition refers to a condition for triggering and operating the service component to be replaced in the service component information to be replaced, for example, when the service component to be replaced is a service component for checking user login information, the operation of user login can be used as the triggering condition corresponding to the service component for checking the user login information; and when the service component to be replaced is a service component for checking the network state, the starting operation for executing the service to be processed can be used as a trigger condition for checking the network state, and the like.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the sub-service sequence is acquired, the triggering condition of each target sub-service may be acquired according to the execution sequence of each sub-service in the sub-service sequence, for example, the plurality of sub-services in the sub-service sequence sequentially include: sub-service a, sub-service b, sub-service c and sub-service d, wherein sub-service c is a target sub-service, and after the execution of sub-service b is completed, sub-service c is executed, namely, the execution result of sub-service b is obtained as a trigger condition for executing sub-service c.
And executing the sub-step B4 after the triggering conditions of the target sub-services are acquired in sequence according to the execution sequence of the sub-services.
Substep B4: and recording the service component information to be replaced corresponding to each target sub-service and each triggering condition.
According to the embodiment of the invention, the corresponding trigger conditions are added for the target sub-service, so that after the target sub-service is replaced by the service component to be replaced, the corresponding service component to be replaced can be executed according to the trigger conditions corresponding to the target sub-service, and the service to be processed can be executed in sequence to form complete processing logic.
After recording the service component information to be replaced corresponding to each target sub-service, step 204 is performed.
Step 204: and generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced.
After obtaining the information of each target sub-service and each service component to be replaced, the sub-service sequence, each target sub-service and the information of each service component to be replaced can be packaged, so that a second service to be processed is generated.
Of course, the second service to be processed further includes a trigger condition of each service component to be replaced, which is specifically described in detail in the following preferred embodiments.
In a preferred embodiment of the present invention, the step 204 may include:
substep C: and packaging the sub-service sequence, each target sub-service, each service component information to be replaced and each triggering condition to generate the second service to be processed.
In the embodiment of the present invention, in the above process, trigger conditions corresponding to each target sub-service are also obtained in advance, and after the to-be-replaced service component information corresponding to each target sub-service is determined according to each service processing information, the to-be-replaced service component information corresponding to each target sub-service and the trigger conditions corresponding to each target sub-service may be recorded, so as to be used as a component for subsequently generating the second to-be-processed service.
And the sub-service sequence, each target sub-service, each service component information to be replaced and each triggering condition can be packaged to generate a second service to be processed.
According to the embodiment of the invention, the corresponding trigger condition is added for the target sub-service, so that after the target sub-service is replaced by the service component to be replaced, the service component to be replaced corresponding to the target sub-service can be executed according to the trigger condition, and the service to be processed can be executed in turn to form complete processing logic.
Step 205: and sending the second service to be processed to a terminal.
The terminal may be mobile electronic devices such as a mobile phone, a PAD (Portable Android Device, a tablet computer), or electronic devices such as a computer, a desktop computer, or the like, and specifically, may be determined according to a service requirement, which is not limited in the embodiment of the present invention.
After the second service to be processed is generated, the second service to be processed can be sent to the corresponding terminal for processing.
According to the service processing method provided by the embodiment of the invention, the first service to be processed is split to obtain the sub-service sequence, at least one target sub-service to be replaced in the sub-service sequence is determined, the programming language corresponding to the target sub-service is a scripting language, the information of the service component to be replaced corresponding to each target sub-service is recorded, the second service to be processed is generated according to the sub-service sequence, each target sub-service and the information of each service component to be replaced, and the second service to be processed is sent to the terminal. According to the embodiment of the invention, the service component information to be replaced corresponding to the target sub-service is recorded and sent to the terminal, and the target sub-service is directly replaced at the terminal side and replaced by the service component with the programming language of the original class language, so that the server only needs to record the service component information to be replaced of each target sub-service and send the service component information to the terminal, a script analysis engine is not required to be issued at the same time, the volume is reduced, and the data sending efficiency is improved.
Referring to fig. 4, a service processing method provided by an embodiment of the present invention is shown, where the service processing method is applied to a terminal, and specifically may include the following steps:
step 301: and receiving the service to be processed sent by the server.
The embodiment of the invention can be applied to a scene that the terminal replaces the target sub-service in the service to be processed with the service component to be replaced and executes the service component to be replaced according to the triggering condition.
The terminal may be mobile electronic devices such as a mobile phone, a PAD (Portable Android Device, a tablet computer), or electronic devices such as a computer, a desktop computer, or the like, and specifically, may be determined according to a service requirement, which is not limited in the embodiment of the present invention.
The service to be processed refers to a service to be executed, which is received by the terminal, and the service to be processed may be a user action, such as a payment action executed when the user shops, or a action executed by the user to acquire order information, etc.
The service to be processed can comprise a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service.
The service to be processed may be composed of a sub-service sequence, where each sub-service in the sub-service sequence has a corresponding execution sequence, for example, the sub-service sequence includes a sub-service a, a sub-service b, and a sub-service c in sequence, when the service to be processed is executed, the sub-service a needs to be executed first, then the sub-service b is executed, and finally the sub-service c is executed.
The service component information to be replaced refers to the information of the service component corresponding to the target sub-service.
The service component information to be replaced refers to information of a target sub-service to be replaced in the sub-service sequence, for example, the target sub-service to be replaced in the sub-service sequence includes a sub-service a and a sub-service b, and the service component information to be replaced may include the sub-service a and the sub-service b, and information of the service component to be replaced that replaces the sub-service a and the sub-service b respectively, and so on.
In the present invention, the service component information to be replaced may be an identifier corresponding to the service component to be replaced on the terminal side, for example, the service component to be replaced on the terminal side is respectively provided with a corresponding component identifier, for example, the component a corresponds to the component identifier 1, the component b corresponds to the component identifier 2, and so on. When the server records the service component information to be replaced corresponding to each target sub-service, the component identifier can be used as the service component information to be replaced.
Of course, the service component information to be replaced may also be other information, such as a sequence number corresponding to the service component to be replaced at the terminal side, and the like, and specifically, the embodiment of the present invention may be determined according to the service requirement, which is not limited.
A plurality of service components corresponding to different service types may be created and stored in advance at the terminal side, and in particular, detailed description will be given in the following preferred embodiments.
In a preferred embodiment of the present invention, before the step 301, the method may further include a step D1 and a step D2:
step D1: creating a plurality of service components corresponding to at least one service type in advance;
step D2: and storing at least one service component corresponding to the service type in a designated storage space corresponding to the service type for each service type.
In the embodiment of the invention, the service components are components with certain processing logic, and each service component is provided with corresponding processing logic, for example, for the service component for acquiring order information, corresponding order information can be acquired after the service component is executed; for the service component corresponding to the payment information, after the service component is executed, the corresponding information of successful payment or failure payment and the like can be obtained.
The service type refers to the type corresponding to different services, such as payment service, inquiry service, and the like.
A plurality of service components corresponding to at least one service type can be created in advance at the terminal side, and corresponding processing logic can be executed through the service components, so that the processing logic can be prevented from being executed by adopting a script language.
For each service type, at least one service component of a service type pair may be stored in a designated storage space corresponding to the service type.
That is, in the present invention, corresponding storage spaces may be preset for different service types, and after at least one service component corresponding to the different service types is created, the service component may be stored in the different storage spaces according to the difference of the service types. For example, the service type includes a and B, the service component corresponding to the service type a includes a, B and c, and the service component corresponding to the service type B includes s, d and f, then the component a, the component B and the component c may be stored in the storage space corresponding to a, and the component s, the component d and the component f may be stored in the storage space corresponding to B.
After creating and storing at least one service component corresponding to each service type, the corresponding service component to be replaced can be obtained from the designated storage space according to the service type corresponding to the service to be processed.
In the following process, description will be made with reference to fig. 5 for the present embodiment.
Referring to fig. 5, a schematic diagram of a terminal performing service analysis according to an embodiment of the present invention is shown.
As shown in fig. 5, task server analyzes a task, and after receiving a task to be processed sent by a server, an analysis process, such as a unpacking process, may be performed on the task to be processed, so as to obtain a sub-service sequence included in the sub-service sequence, at least one target sub-service included in the sub-service sequence, and information of a service component to be replaced corresponding to each target sub-service.
After receiving the pending service sent by the server, step 302 is performed.
Step 302: and acquiring the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced.
The service component to be replaced refers to a component of a target sub-service preset at the terminal side, and the service component to be replaced has corresponding processing logic, for example, for a service component for acquiring order information, the service component can be executed and then the corresponding order information can be acquired, and so on.
When the service components to be replaced are acquired, the service components to be replaced corresponding to the target sub-service may be acquired according to a plurality of service components preset by the terminal side and corresponding to different service types, and specifically, the following preferred embodiments are described in detail.
In a preferred embodiment of the present invention, the step 302 may include:
substep E1: and obtaining the target service type of the service to be processed.
In the embodiment of the present invention, the target service type refers to a service type corresponding to a service to be processed, for example, when the service to be processed is a payment service, the target service type of the service to be processed is a payment type; and when the service to be processed is a sales service, the target service type of the service to be processed is a sales type and the like.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the service to be processed is acquired, the code corresponding to the service to be processed can be identified, and the target service type of the service to be processed can be obtained according to the identification result.
After the target service type of the service to be processed is acquired, a sub-step E2 is performed.
Substep E2: and acquiring each service component to be replaced from a target storage space locally corresponding to the target service type according to the information of each service component to be replaced.
Different service types correspond to different storage spaces, and the target storage space refers to a storage space corresponding to the target service type.
After the information of each service component to be replaced is acquired, each service component to be replaced can be acquired from the target storage space corresponding to the target service type.
The specific obtaining process may be searching for the service component to be replaced with corresponding processing logic from the target storage space according to the processing logic of the target sub-service corresponding to the information of each service component to be replaced.
For this step, a task registration process shown in fig. 5 may be performed, and after the task registration process is performed, the target sub-service in the sub-service sequence and the information of the service component to be replaced corresponding to the target sub-service may be obtained according to analysis, so as to obtain the service component to be replaced corresponding to the target sub-service, and complete the operation of replacing the target sub-service by the service component to be replaced.
After obtaining the service components to be replaced corresponding to each target sub-service according to the service component information to be replaced, step 303 is performed.
Step 303: and carrying out corresponding replacement on each target sub-service in the sub-service sequence by utilizing each service component to be replaced to generate a target sub-service sequence.
The target sub-service sequence refers to that the sub-service sequence is obtained after the target sub-service in the sub-service sequence is replaced by the corresponding service component to be replaced.
After the service components to be replaced corresponding to each target sub-service are obtained, the target sub-service corresponding to the service components to be replaced can be sequentially searched from the sub-service sequence, and the target sub-service is replaced by the service components to be replaced, so that a target sub-service sequence can be obtained, for example, the sub-service sequence sequentially comprises, according to the execution sequence of each sub-service: sub-business 1, sub-business 2, sub-business 3, sub-business 4, sub-business 5 and sub-business 6, wherein sub-business 2, sub-business 3 and sub-business 5 are target sub-business, the business component to be replaced corresponding to sub-business 2 is component a, the business component to be replaced corresponding to sub-business 3 is component b, the business component to be replaced corresponding to sub-business 5 is component c, for the sub-business sequence, sub-business 2 is replaced with component a, sub-business 3 is replaced with component b, sub-business 5 is replaced with component c, and the target sub-business sequence obtained after the replacement is completed is: sub-service 1, component a, component b, sub-service 4, component c, and sub-service 6.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
Of course, in a specific implementation, a specific page may also be set in the background, and the user may specify the target sub-service that needs to be replaced in the specific page, which is specifically described in the following preferred embodiment.
In another preferred embodiment of the present embodiment, the upper sub-step 303 may include:
substep F1: receiving service components to be replaced selected by a user for each target sub-service on a designated page;
substep F2: and replacing each target sub-service with the service component to be replaced to generate the target sub-service sequence.
In the embodiment of the invention, the designated page refers to a preset page for displaying the service component to be replaced selected by the user, and the designated page can be an H5 page or other pages, specifically, can be determined according to the service requirement, and the embodiment of the invention is not limited to this.
The service components to be replaced selected by the user for each target sub-service can be displayed in the designated page, and each target sub-service is replaced by the service components to be replaced, so that a target sub-service sequence can be generated.
Specifically, after the service to be processed is acquired, the sub-service sequence included in the service to be processed may be displayed on a designated page, for example, the sub-service sequence is displayed on the designated page: sub-service 1, sub-service 2, sub-service 3, sub-service 4, sub-service 5 and sub-service 6, wherein sub-service 2, sub-service 3 and sub-service 5 are target sub-services, components a, b and c selected by a user for sub-service 2, sub-service 3 and sub-service 5 respectively can be displayed in a designated page, and then component replacement is performed, so that the generated target sub-service sequence is displayed in the designated page: sub-service 1, component a, component b, sub-service 4, component c, and sub-service 6.
The embodiment of the invention can be configured by the user through presetting the designated page without the need of the user having higher service level, thereby facilitating the configuration and execution of the service.
After replacing each target sub-service corresponding to each service component to be replaced in the sub-service sequence according to each service component to be replaced, generating a target sub-service sequence, step 304 is executed.
Step 304: and executing the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
After the target sub-service sequence is generated, the target sub-service sequence may be executed, and after execution is completed, an execution result corresponding to the service to be processed may be obtained, for example, the target sub-service sequence: sub-service 1, component a, component b, sub-service 4, component c and sub-service 6 are sequentially executed, and after execution is completed, corresponding execution results can be obtained.
The service components to be replaced have corresponding trigger conditions, and when the trigger conditions are met, the corresponding service components to be replaced can be executed, so that the execution process of the service to be processed is completed, and in particular, the following preferred embodiments are described in detail.
In a preferred embodiment of the present invention, the service to be processed further includes: the step 304 may include:
substep G1: and in the execution process of the target sub-service sequence, acquiring triggering conditions corresponding to the service components to be replaced according to the service component information to be replaced corresponding to the service components to be replaced in sequence for each service component to be replaced.
In the embodiment of the present invention, in the foregoing embodiment, since the trigger condition of the target sub-service is obtained in advance, after the target sub-service is replaced with the service component to be replaced, the trigger condition of the target sub-service may be regarded as the trigger condition of the service component to be replaced, that is, an association relationship between the service component to be replaced and the trigger condition is established, and when the trigger condition is satisfied, the service component to be replaced is executed.
Different service component information to be replaced has corresponding triggering conditions, in the process of executing the target sub-service sequence, the triggering conditions corresponding to the service components to be replaced can be acquired according to the target sub-service corresponding to the service components to be replaced in sequence for each service component to be replaced, and the sub-step G2 is executed.
Substep G2: and executing the service component to be replaced when the triggering condition is met.
When the trigger condition is met, a corresponding service component to be replaced can be executed, for example, the service component to be replaced comprises a component a and a component B, the trigger condition corresponding to the component a is the condition A, the trigger condition corresponding to the component B is the condition B, when the condition A is acquired, namely the component a is executed, and when the condition B is acquired, the condition B is executed.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
The process of adding the trigger condition is that the ITask (i.e. setting a service execution flow) shown in fig. 5, where the ITask includes preactives (before service operation), runActions (during service operation) and afterActions (after service operation is completed), trigger conditions before operation of the service component to be replaced corresponding to each target sub-service, real-time status information during operation, and which other sub-service in the sub-service sequence is processed after the execution of the service component to be replaced is completed are respectively set.
For the above preActions, runActions, afterActions, a triggering condition may be set, for example, an iaaction (i.e., corresponding to one sub-service), ifAction and ForAction, ifAction may be defined as conditional actions, different judging conditions may be issued, how to trigger the execution of the target sub-service, which sub-service is executed after the execution of the target sub-service is completed, and so on. The ForAction is a cyclic Action, that is, certain processing logic inside the process of repeatedly executing the service component to be replaced when a certain condition is met, for example, when the user pays, the process of executing the password input by the user can be circularly returned under the condition that the password input is wrong for a plurality of times.
After the setting, the action registry in fig. 5, that is, the registration process of the service component to be replaced, may be executed, and after the setting is executed, the target sub-service sequence fused with the service component to be replaced may be registered, so as to prompt that the current service to be processed is configured to be completed and is in a state to be operated. And further executing the actionParser, namely acquiring the configured service to be processed.
The terminal side performs the configuration process on the service to be processed issued by the server through a certain component or container and the like, and after the configuration is completed, the terminal can extract the service to be processed with the configuration completed from the certain component or container and the like, and then the expressParser executes the service to be processed with the configuration completed, and obtains a corresponding execution result.
After execution of the service component to be replaced, a sub-step G3 is executed.
Substep G3: and after the target sub-service sequence is executed, acquiring an execution result corresponding to the service to be processed.
After the execution of the target sub-service sequence is completed, an execution result corresponding to the service to be processed can be obtained.
According to the service processing method provided by the embodiment of the invention, the service to be processed sent by the server is received, the service to be processed comprises a sub-service sequence, the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service, the service components to be replaced corresponding to each target sub-service are locally acquired according to the service component information to be replaced, the programming language corresponding to the She Zu component to be replaced is a primitive language, the service components to be replaced are utilized to replace the sub-service sequence corresponding to each target sub-service, the target sub-service sequence is generated, and the target sub-service sequence is executed, so that an execution result corresponding to the service to be processed is obtained. According to the embodiment of the invention, the target sub-service is replaced by the preset service component to be replaced, the target sub-service using the script language is not contained after replacement, the service component to be replaced is contained, and the programming language corresponding to the service component to be replaced is the native language and can be directly operated at the terminal side, so that analysis by a script analysis engine is not needed, and the first loading time of the page is reduced.
Referring to fig. 6, there is shown a schematic structural diagram of a system provided in an embodiment of the present invention, the system 400 includes a server 410 and a terminal 420, wherein,
the server 410 may be configured to:
splitting a first service to be processed to obtain a sub-service sequence, and determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; and
recording service component information to be replaced corresponding to each target sub-service; and
generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component to be replaced information, and sending the second service to be processed to the terminal;
the terminal 420 may be configured to:
according to the information of each service component to be replaced, locally acquiring the service component to be replaced corresponding to each target sub-service; the programming language corresponding to the service component to be replaced is a native class language; and
using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and
and executing the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
According to the system provided by the embodiment of the invention, a first service to be processed is split into a sub-service sequence through a server, at least one target sub-service to be replaced in the sub-service sequence is determined, a programming language corresponding to the target sub-service is a script language, information of service components to be replaced corresponding to each target sub-service is recorded, a second service to be processed is generated according to the sub-service sequence, each target sub-service and the information of service components to be replaced, the second service to be processed is sent to a terminal, the terminal locally acquires service components to be replaced corresponding to each target sub-service according to the information of service components to be replaced, the programming language corresponding to the service components to be replaced is a native language, each target sub-service in the sub-service sequence is replaced correspondingly by utilizing each service component to generate a target sub-service sequence, and the terminal executes the target sub-service sequence, so that an execution result corresponding to the second service to be processed is obtained. According to the scheme provided by the invention, as the service components to be replaced of the original class language are preprogrammed on the terminal side and the target sub-service is replaced by the service components to be replaced on the terminal side, the server side only needs to record the information of the service components to be replaced of each target sub-service and send the information to the terminal, and a script analysis engine does not need to be issued at the same time, so that the volume is reduced and the data sending efficiency is improved. And the target sub-service is directly replaced by the preset service component to be replaced, the target sub-service using the script language is not contained after the replacement, the service component to be replaced is contained, and the programming language corresponding to the service component to be replaced is the original class language and can be directly operated at the terminal side, so that the analysis by the script analysis engine is not needed, and the first loading time of the page is reduced.
Referring to fig. 7, a schematic structural diagram of a server according to an embodiment of the present invention may specifically include:
a sub-service sequence obtaining module 510, configured to split a first service to be processed to obtain a sub-service sequence;
a target sub-service determining module 520, configured to determine at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language;
a component information recording module 530, configured to record service component information to be replaced corresponding to each of the target sub-services;
a second service generating module 540, configured to generate a second service to be processed according to the sub-service sequence, each target sub-service, and each service component to be replaced information;
and a second service sending module 550, configured to send the second service to be processed to a terminal.
Preferably, the target sub-service determining module 520 includes:
a programming language obtaining sub-module 521, configured to sequentially obtain, for a plurality of sub-services in the sub-service sequence, a programming language corresponding to each of the sub-services;
a target sub-service determination sub-module 522, configured to determine the sub-service in which the programming language is a scripting language as a target sub-service.
Preferably, the component information recording module 530 includes:
the service processing information identifying sub-module 531 is configured to identify service processing information corresponding to each target sub-service according to the script code corresponding to each target sub-service;
the to-be-replaced component information obtaining sub-module 532 is configured to obtain to-be-replaced service component information corresponding to each service processing information according to a mapping relationship between the service processing information and the to-be-replaced service component information;
a trigger condition obtaining sub-module 533, configured to sequentially obtain trigger conditions corresponding to each of the target sub-services according to an execution sequence of each of the sub-services;
a component and condition recording sub-module 534, configured to record service component information to be replaced corresponding to each target sub-service and each trigger condition;
the second service generating module 540 includes:
and a second service generating sub-module 541, configured to perform a packing process on the sub-service sequence, each target sub-service, each service component information to be replaced, and each trigger condition, to generate the second service to be processed.
The server provided by the embodiment of the invention obtains a sub-service sequence by splitting a first service to be processed, determines at least one target sub-service to be replaced in the sub-service sequence, records service component information to be replaced corresponding to each target sub-service, and generates a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced, and sends the second service to be processed to the terminal. According to the embodiment of the invention, the information of the service component to be replaced corresponding to the target sub-service is recorded and sent to the terminal, and the target sub-service is directly replaced at the terminal side and replaced by the service component with the programming language of the original class language, so that a script analysis engine is not required to be issued simultaneously when the server issues the service to be processed, the volume is reduced, and the data transmission efficiency is improved.
Referring to fig. 8, a schematic structural diagram of a terminal provided in an embodiment of the present invention may specifically include:
a service waiting receiving module 630, configured to receive a service waiting for processing sent by a server; the service to be processed comprises a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service;
a replacement component obtaining module 640, configured to obtain, locally, according to each service component information to be replaced, a service component to be replaced corresponding to each target sub-service; the programming language corresponding to the service component to be replaced is a native class language;
a target sub-sequence generating module 650, configured to correspondingly replace each target sub-service in the sub-service sequence by using each service component to be replaced, to generate a target sub-service sequence;
and the service sequence execution module 660 is configured to execute the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
Preferably, the method further comprises:
a service component creation module 610, configured to create a plurality of service components corresponding to at least one service type in advance;
A service component storage module 620, configured to store, for each service type, at least one service component corresponding to the service type in a designated storage space corresponding to the service type;
the replacement component acquisition module 640 includes:
a service type obtaining sub-module 641, configured to obtain a target service type of the service to be processed;
the replacing component obtaining sub-module 642 is configured to obtain each service component to be replaced from a target storage space locally corresponding to the target service type according to the information of each service component to be replaced.
Preferably, the target subsequence generating module 6500 includes:
a replacement component selection sub-module 651, configured to receive, on a designated page, service components to be replaced selected by a user for each of the target sub-services;
and the target sub-sequence generating sub-module 652 is configured to replace each target sub-service with the service component to be replaced, and generate the target sub-service sequence.
Preferably, the service to be processed further includes: the service sequence execution module 660 includes:
a trigger condition obtaining sub-module 661, configured to, for each service component to be replaced, obtain, in a process of executing the target sub-service sequence, a trigger condition corresponding to the service component to be replaced according to information of the service component to be replaced corresponding to the service component to be replaced in sequence;
A replacement service component operation submodule 662, configured to operate the service component to be replaced when the trigger condition is satisfied;
and the execution result obtaining sub-module 663 is used for obtaining the execution result corresponding to the service to be processed after the execution of the target sub-service sequence is completed.
According to the terminal provided by the embodiment of the invention, the to-be-processed service sent by the server is received, the to-be-processed service comprises a sub-service sequence, the sub-service sequence comprises at least one target sub-service and to-be-replaced service component information corresponding to each target sub-service, the to-be-replaced service components corresponding to each target sub-service are obtained locally according to the to-be-replaced service component information, the programming language corresponding to the to-be-replaced She Zu component is a primitive language, the to-be-replaced service components are utilized to replace the sub-service sequence corresponding to each target sub-service, the target sub-service sequence is generated, and the target sub-service sequence is executed, so that an execution result corresponding to the to-be-processed service is obtained. According to the embodiment of the invention, the target sub-service is replaced by the preset service component to be replaced, and the terminal side can directly operate the service component to be replaced without analyzing by the script analyzing engine because the programming language corresponding to the service component to be replaced is the original class language, so that the first loading time of the page is reduced.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Optionally, the present invention further provides an electronic device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the processes of the service processing method embodiment when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, and the description is omitted here.
Optionally, the present invention further provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps in the service processing method as described above. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In the embodiment of the invention, a first service to be processed is split into a sub-service sequence through a server, at least one target sub-service to be replaced in the sub-service sequence is determined, a programming language corresponding to the target sub-service is a script language, information of service components to be replaced corresponding to each target sub-service is recorded, a second service to be processed is generated according to the sub-service sequence, each target sub-service and the information of each service component to be replaced, the second service to be processed is sent to a terminal, the terminal locally acquires service components to be replaced corresponding to each target sub-service according to the information of each service component to be replaced, the programming language corresponding to each service component to be replaced is a primitive language, each target sub-service in the sub-service sequence is replaced correspondingly by utilizing each service component to be replaced, a target sub-service sequence is generated, and the terminal executes the target sub-service sequence, so that an execution result corresponding to the second service to be processed is obtained. According to the scheme provided by the invention, as the service components to be replaced of the original class language are preprogrammed on the terminal side and the target sub-service is replaced by the service components to be replaced on the terminal side, the server side only needs to record the information of the service components to be replaced of each target sub-service and send the information to the terminal, and a script analysis engine does not need to be issued at the same time, so that the volume is reduced and the data sending efficiency is improved. And the target sub-service is directly replaced by the preset service component to be replaced at the terminal side, the target sub-service using the script language is not contained after the replacement, the replacement service component is contained, and the programming language corresponding to the service component to be replaced is the original class language and can be directly operated at the terminal side, so that the analysis by the script analysis engine is not needed, and the first loading time of the page is reduced.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a business processing method, a system, a server, a terminal, an electronic device and a computer readable storage medium provided by the present invention, and specific examples have been applied to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (13)

1. A method for processing a service, comprising:
splitting a first service to be processed by a server to obtain a sub-service sequence, and determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language;
the server records the service component information to be replaced corresponding to each target sub-service;
the server generates a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced, and sends the second service to be processed to a terminal;
the terminal locally acquires the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced; the programming language corresponding to the service component to be replaced is a native class language;
the terminal uses each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence;
and the terminal executes the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
2. A service processing method applied to a server, comprising:
Splitting a first service to be processed to obtain a sub-service sequence;
determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language;
recording service component information to be replaced corresponding to each target sub-service;
generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced;
the second service to be processed is sent to the terminal, so that the terminal obtains service components to be replaced corresponding to the target sub-services from local according to the service component information to be replaced; and using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and executing the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
3. The method of claim 2, wherein the determining at least one target sub-service to be replaced in the sequence of sub-services comprises:
sequentially acquiring programming languages corresponding to the sub-services aiming at a plurality of sub-services in the sub-service sequence;
And determining the sub-service with the programming language being the scripting language as a target sub-service.
4. The method of claim 3, wherein the recording service component information to be replaced corresponding to each of the target sub-services comprises:
identifying service processing information corresponding to each target sub-service according to script codes corresponding to each target sub-service;
acquiring service component information to be replaced corresponding to each piece of service processing information according to a mapping relation between the service processing information and the service component information to be replaced;
according to the execution sequence of each sub-service, triggering conditions corresponding to each target sub-service are sequentially obtained;
recording service component information to be replaced corresponding to each target sub-service and each triggering condition;
generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component to be replaced information, including:
and packaging the sub-service sequence, each target sub-service, each service component information to be replaced and each triggering condition to generate the second service to be processed.
5. The service processing method is applied to the terminal and is characterized by comprising the following steps:
Receiving a service to be processed sent by a server; the service to be processed comprises a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service, and the target sub-service refers to a sub-service in which a programming language in the sub-service sequence is a scripting language;
according to the information of each service component to be replaced, locally acquiring the service component to be replaced corresponding to each target sub-service; the programming language corresponding to the service component to be replaced is a native class language;
using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence;
and executing the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
6. The method of claim 5, further comprising, prior to receiving the pending traffic sent by the server:
creating a plurality of service components corresponding to at least one service type in advance;
for each service type, storing at least one service component corresponding to the service type in a designated storage space corresponding to the service type;
The step of locally acquiring the service component to be replaced corresponding to each target sub-service according to the service component to be replaced information comprises the following steps:
acquiring a target service type of the service to be processed;
and acquiring each service component to be replaced from a target storage space locally corresponding to the target service type according to the information of each service component to be replaced.
7. The method of claim 5, wherein the generating the target sub-service sequence by using each to-be-replaced service component to correspondingly replace each target sub-service in the sub-service sequence comprises:
receiving service components to be replaced selected by a user for each target sub-service on a designated page;
and replacing each target sub-service with the service component to be replaced to generate the target sub-service sequence.
8. The method of claim 5, wherein the service to be processed further comprises: the executing the target sub-service sequence according to the triggering condition corresponding to each piece of to-be-replaced service component information to obtain an executing result corresponding to the to-be-processed service, including:
in the execution process of the target sub-service sequence, acquiring triggering conditions corresponding to the service components to be replaced according to the service component information to be replaced corresponding to the service components to be replaced in sequence for each service component to be replaced;
When the triggering condition is met, the service component to be replaced is operated;
and after the target sub-service sequence is executed, acquiring an execution result corresponding to the service to be processed.
9. A service processing system is characterized in that the system comprises a server and a terminal, wherein,
the server is used for splitting a first service to be processed to obtain a sub-service sequence, and determining at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language; recording service component information to be replaced corresponding to each target sub-service; generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component to be replaced information, and sending the second service to be processed to the terminal;
the terminal is used for locally acquiring the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced; the programming language corresponding to the service component to be replaced is a native class language; and using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and executing the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
10. A server, comprising:
the sub-service sequence acquisition module is used for splitting the first service to be processed to obtain a sub-service sequence;
a target sub-service determining module, configured to determine at least one target sub-service to be replaced in the sub-service sequence; the programming language corresponding to the target sub-service is a script language;
the component information recording module is used for recording the to-be-replaced service component information corresponding to each target sub-service;
the second service generating module is used for generating a second service to be processed according to the sub-service sequence, each target sub-service and each service component information to be replaced;
the second service sending module is used for sending the second service to be processed to the terminal so that the terminal locally acquires the service component to be replaced corresponding to each target sub-service according to the information of the service component to be replaced; and using each service component to be replaced to correspondingly replace each target sub-service in the sub-service sequence to generate a target sub-service sequence; and executing the target sub-service sequence to obtain an execution result corresponding to the second service to be processed.
11. A terminal, comprising:
the service receiving module is used for receiving the service to be processed sent by the server; the service to be processed comprises a sub-service sequence, wherein the sub-service sequence comprises at least one target sub-service and service component information to be replaced corresponding to each target sub-service, and the target sub-service refers to a sub-service in which a programming language in the sub-service sequence is a scripting language;
the replacement component acquisition module is used for locally acquiring the service components to be replaced corresponding to the target sub-services according to the service component information to be replaced; the programming language corresponding to the service component to be replaced is a native class language;
the target sub-sequence generating module is used for correspondingly replacing each target sub-service in the sub-service sequence by utilizing each service component to be replaced to generate a target sub-service sequence;
and the service sequence execution module is used for executing the target sub-service sequence to obtain an execution result corresponding to the service to be processed.
12. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the service processing method according to any of claims 1 to 8.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the service processing method according to any of claims 1 to 8.
CN201910528227.6A 2019-06-18 2019-06-18 Service processing method, system, server, terminal, electronic equipment and storage medium Active CN110389754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910528227.6A CN110389754B (en) 2019-06-18 2019-06-18 Service processing method, system, server, terminal, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910528227.6A CN110389754B (en) 2019-06-18 2019-06-18 Service processing method, system, server, terminal, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110389754A CN110389754A (en) 2019-10-29
CN110389754B true CN110389754B (en) 2023-12-15

Family

ID=68285554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910528227.6A Active CN110389754B (en) 2019-06-18 2019-06-18 Service processing method, system, server, terminal, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110389754B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113378532A (en) * 2021-06-04 2021-09-10 远光软件股份有限公司 Processing method of table file, processing device and storage medium thereof

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636147A (en) * 2015-03-09 2015-05-20 北京恒华伟业科技股份有限公司 Cross-platform mobile application implementation method and cross-platform mobile application implementation system
CN106775790A (en) * 2015-11-19 2017-05-31 腾讯科技(深圳)有限公司 A kind of control call method and device
CN108304205A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108345531A (en) * 2017-01-23 2018-07-31 阿里巴巴集团控股有限公司 A kind of test method, apparatus and system
CN108399074A (en) * 2018-01-30 2018-08-14 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium
CN108804100A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Create method, apparatus, storage medium and the mobile terminal of interface element
CN108804120A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of page makeup method, apparatus, equipment and storage medium
CN108845810A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of method, apparatus, electronic equipment and storage medium that application dynamic updates
CN109032606A (en) * 2018-07-10 2018-12-18 北京小米移动软件有限公司 The process of compilation method, apparatus and terminal of native applications program
CN109597661A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of service function configuration method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253020B2 (en) * 2009-06-11 2016-02-02 International Business Machines Corporation Web service interaction in a dynamically extensible business application

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636147A (en) * 2015-03-09 2015-05-20 北京恒华伟业科技股份有限公司 Cross-platform mobile application implementation method and cross-platform mobile application implementation system
CN106775790A (en) * 2015-11-19 2017-05-31 腾讯科技(深圳)有限公司 A kind of control call method and device
CN108345531A (en) * 2017-01-23 2018-07-31 阿里巴巴集团控股有限公司 A kind of test method, apparatus and system
CN108304205A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108399074A (en) * 2018-01-30 2018-08-14 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium
CN108804100A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 Create method, apparatus, storage medium and the mobile terminal of interface element
CN108804120A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of page makeup method, apparatus, equipment and storage medium
CN108845810A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of method, apparatus, electronic equipment and storage medium that application dynamic updates
CN109032606A (en) * 2018-07-10 2018-12-18 北京小米移动软件有限公司 The process of compilation method, apparatus and terminal of native applications program
CN109597661A (en) * 2018-10-26 2019-04-09 阿里巴巴集团控股有限公司 A kind of service function configuration method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于新型Web脚本样式框架构建城市规划编制信息平台――以ReactJS和Ant Design为例;毛炎等;《测绘与空间地理信息》;20170825(第08期);全文 *

Also Published As

Publication number Publication date
CN110389754A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN106919509B (en) Client generation method and device and electronic equipment
CN107844421B (en) Interface testing method and device, computer equipment and storage medium
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN107329861B (en) Multi-interface testing method and device
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN111782330B (en) Page data acquisition method, device and equipment based on Web application
CN110275831B (en) Mock data verification method and device of protocol interface
CN108415826B (en) Application testing method, terminal device and computer readable storage medium
CN111581083B (en) Interface testing method and device, electronic equipment and storage medium
CN111475161B (en) Method, device and equipment for accessing component
CN110597896A (en) Data display method, data display device and terminal equipment
CN113704110A (en) Automatic testing method and device for user interface
CN110990008B (en) Page updating method and device, storage medium and electronic equipment
CN110389754B (en) Service processing method, system, server, terminal, electronic equipment and storage medium
CN111695328A (en) Method, device, equipment and storage medium for generating simulation test message
CN111367690A (en) Method and device for supporting combined API service calling
CN108804120B (en) Page construction method, device, equipment and storage medium
CN112667204B (en) Data processing method and device for micro-service application and computer equipment
CN106681852B (en) A kind of method of adjustment and device of browser compatibility
CN109783606A (en) Data processing method, device, computer equipment and storage medium
CN107092474B (en) Program development method, ETL processing method and device
CN109740074B (en) Method, device and equipment for processing parameter configuration information
CN107402811B (en) Resource binding method and device
CN106528066B (en) Business process operation method and device
CN112181816B (en) Scene-based interface testing method and device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant