CN109840146B - Service processing method, device, terminal and storage medium - Google Patents

Service processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN109840146B
CN109840146B CN201910046540.6A CN201910046540A CN109840146B CN 109840146 B CN109840146 B CN 109840146B CN 201910046540 A CN201910046540 A CN 201910046540A CN 109840146 B CN109840146 B CN 109840146B
Authority
CN
China
Prior art keywords
application
sub
target service
service item
parameter information
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
CN201910046540.6A
Other languages
Chinese (zh)
Other versions
CN109840146A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910046540.6A priority Critical patent/CN109840146B/en
Publication of CN109840146A publication Critical patent/CN109840146A/en
Application granted granted Critical
Publication of CN109840146B publication Critical patent/CN109840146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a service processing method, a device, a terminal and a medium, wherein the method comprises the following steps: responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, and acquiring parameter information of the target service item; switching from the first application to a second application, the second application comprising a second sub-application; displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item; and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. The embodiment of the invention can enrich the service functions of the application, improve the service processing capacity of the application and reduce the development cost.

Description

Service processing method, device, terminal and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to the field of data processing technologies, and in particular, to a service processing method, a service processing device, a terminal, and a computer storage medium.
Background
With the development of computer technology, the application in terminals is becoming more and more widespread. The terminal may install and run various applications, where different applications provide different services for the user, for example, an instant messaging Application provides an instant messaging service for the user, a shopping Application provides a shopping service for the user, a mail Application provides a mailing service for the user, and a navigation Application provides a navigation service for the user. At present, if a user wants to perform a certain service in a certain application, the application is required to support the service function, otherwise, the application cannot respond to the service requirement of the user; for example, if a user wants to pay in an instant messaging application, the instant messaging application is required to have a payment function, otherwise, the payment operation of the user cannot be responded to by the instant messaging application. It can be seen that, in order to meet the increasingly abundant business demands of users, application developers are required to continually disconnect new functions of the application and continuously upgrade to enrich the business functions of the application, which increases more development costs.
Disclosure of Invention
The embodiment of the invention provides a service processing method, a device, a terminal and a computer storage medium, which can enrich service functions of an application, improve service processing capacity of the application and reduce development cost.
In one aspect, an embodiment of the present invention provides a service processing method, where the service processing method includes:
responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, and acquiring parameter information of the target service item;
switching from the first application to a second application, the second application comprising a second sub-application;
displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
On the other hand, the embodiment of the invention provides a service processing method, which comprises the following steps:
the method comprises the steps that a first application responds to triggering operation for a target service item detected in a service page of a first sub-application in the first application, and parameter information of the target service item is obtained;
and triggering a terminal to switch and run a second application by using a switching function in a terminal system by the first application, and transmitting parameter information of the target service item to the second application, so that the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and when a service request operation is received in the detail page of the target service item, the second application executes a service request corresponding to the service request operation.
In still another aspect, an embodiment of the present invention provides a service processing method, where the service processing method includes:
the method comprises the steps that a second application obtains parameter information of a target service item transmitted by a first application, the parameter information of the target service item is obtained by a terminal in response to triggering operation for the target service item detected in a service page of a first sub-application in the first application, and the terminal is switched from the first application to the second application;
the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation by the second application.
In still another aspect, an embodiment of the present invention provides a service processing apparatus, provided in a terminal, where the terminal runs a first application and a second application, where the service processing apparatus includes:
the acquisition unit is used for responding to the triggering operation for the target service item detected in the service page of the first sub-application in the first application and acquiring the parameter information of the target service item;
A switching unit, configured to switch from the first application to a second application, where the second application includes a second sub-application;
the display unit is used for displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and the processing unit is used for responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
In still another aspect, an embodiment of the present invention provides a service processing apparatus, including:
the acquisition unit is used for responding to the triggering operation for the target service item detected in the service page of the first sub-application in the first application and acquiring the parameter information of the target service item;
the processing unit is used for calling a switching function in the terminal system to trigger the terminal to switch and run a second application and transmitting the parameter information of the target service item to the second application, so that the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and when a service request operation is received in the detail page of the target service item, the second application executes the service request corresponding to the service request operation.
In still another aspect, an embodiment of the present invention provides a service processing apparatus, including:
the terminal comprises an acquisition unit, a first application and a second application, wherein the acquisition unit is used for acquiring parameter information of a target service item transmitted by the first application, the parameter information of the target service item is acquired by the terminal in response to a triggering operation for the target service item detected in a service page of a first sub-application in the first application, and the terminal is switched from the first application to the second application;
the display unit is used for displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and the processing unit is used for responding to the service request operation received in the detail page of the target service item and executing the service request corresponding to the service request operation.
In still another aspect, an embodiment of the present invention provides a terminal, where the terminal runs a first application and a second application, and the terminal includes an input device and an output device, and further includes:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
Responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, and acquiring parameter information of the target service item;
switching from the first application to a second application, the second application comprising a second sub-application;
displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
In yet another aspect, embodiments of the present invention provide a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the above-mentioned business processing method.
The embodiment of the invention can acquire the parameter information of the target service item after the triggering operation aiming at the target service item is detected in the service page of the first sub-application in the first application. And switching from the first application to the second application, and displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. In the business processing process, the first application is switched to the second application, the terminal is triggered to display the detail page of the target service item in the second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application, and the process enables the first application to realize business processing by means of the second application through interaction between the first application and the second application, enriches business functions of the first application, improves business processing capacity of the first application, and can reduce development cost of the first application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a relationship between a first application and a second application according to an embodiment of the present invention;
fig. 2a is an application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
fig. 2b is an application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
fig. 2c is an application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
fig. 2d is an application scenario diagram of a service processing scheme provided in an embodiment of the present invention;
fig. 3 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 4 is a flow chart of a service processing method according to another embodiment of the present invention;
FIG. 5a is a schematic diagram of a shear plate for a data writing system according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of reading data from a system shear plate according to an embodiment of the present invention;
fig. 6 is a flow chart of a service processing method according to another embodiment of the present invention;
FIG. 7 is a schematic diagram of a method for application switching according to another embodiment of the present invention;
fig. 8 is a flow chart of a service processing method according to another embodiment of the present invention;
FIG. 9 is a schematic flow chart of a business process according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a service processing device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a service processing device according to another embodiment of the present invention;
fig. 12 is a schematic structural diagram of a service processing device according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
With the development of internet technology, an applet (Mini Program) is a kind of application Program that can be used without downloading and installing. In order to provide more diversified business services to users, developers can develop corresponding applets for applications (such as instant messaging applications, shopping applications, mail applications, etc.) of the terminal, the applets can be embedded into the applications of the terminal as sub-applications, and the corresponding business services can be provided for the users by running the sub-applications (i.e., corresponding applets) in the applications; for example: the shopping sub-application (namely the corresponding shopping applet) in the instant messaging application can enable the instant messaging application to have a shopping function, and shopping services such as displaying a shopping page, displaying a commodity detail page or purchasing a page and the like can be provided for a user by running the shopping sub-application in the instant messaging application. Based on this, the embodiment of the present invention proposes a service processing scheme, which may be applied in a terminal, where the terminal may include, but is not limited to: smart phones, desktop computers, notebook computers, laptop computers, and the like. The terminal can run a first application and a second application, wherein the first application comprises a first sub-application, and the second application comprises a second sub-application; wherein the first sub-application and the second sub-application are associated. The first application and the second application respectively have a set of independent sub-application frameworks to support the running of corresponding sub-applications, wherein the sub-application frameworks are a set of convenient development frameworks independent of Native (Native methods) and can enable codes of css-like and html-like languages to run smoothly on a Native interface; by native interface is meant an interface that can be run and displayed directly in the first application or the second application. A software development kit (Software Development Kit, SDK) of a second application is embedded in the first application, and the second application can be started to run through the SDK of the second application, so that switching from a first sub-application in the first application to a second sub-application in the second application is realized, as shown in fig. 1.
The terminal may apply the service processing scheme to different service scenarios according to actual service requirements, for example: business scenarios for merchandise purchase, business scenarios for information query, and the like. Taking the service processing scheme applied to the service scenario of commodity purchase as an example, a first sub-application in a first application in the service scenario may be a commodity preview sub-application, and a second sub-application in a second application may be a commodity purchase sub-application, for example: the first application may be an enterprise WeChat application that temporarily does not support a payment function; the second application may be a micro-letter application that supports a payment function, and the micro-letter application may pre-store payment information of the user, such as address information, a payment account, etc., and support the user to edit the payment information online in real time. As shown in fig. 2a, the user may open a first application and click "add third party application" in "workbench"; the first application may then present a user interface for the user that includes a plurality of third party applications and sub-applications. Then, the user can click on the "intelligent hardware device" in the user interface to open the commodity previewing sub-application, and after the terminal detects the click operation of the user, the commodity previewing sub-application can be started to run in the first application, and a plurality of commodities are displayed in a service page of the commodity previewing sub-application, as shown in fig. 2 b.
The user can select a target commodity from a plurality of commodities in a service page of the commodity preview sub-application; and after the terminal detects the selection operation of the target commodity, acquiring the parameter information of the target commodity. Since the first application temporarily does not support the payment function, after detecting the selection operation of the target commodity, it is possible to switch to the second application supporting the payment function so as to complete the subsequent payment operation. When the terminal is switched from the first application to the second application, a prompt message "forward to the second application" may be output, as shown in fig. 2 c. Then, the terminal may start to run the commodity purchasing sub-application in the second application, and display a detail page of the target commodity in the commodity purchasing sub-application according to the parameter information of the target commodity, as shown in fig. 2 d. The user can click on 'purchase' on the detail page of the target commodity to complete the ordering operation; the terminal can also output order information through the second application, and the order information can contain pre-stored payment information of the user, so that the user does not need to repeatedly fill in information such as addresses, accounts and the like after placing an order, and the purchasing process is simplified. After confirming the order information of the target commodity, the user can perform payment operation, so that the purchasing process is completed.
Therefore, under the business scene of commodity purchase, the embodiment of the invention can enable the user to browse each commodity in the commodity preview sub-application in the first application, jump to the second application after the user selects the target commodity, start the commodity purchase sub-application in the second application to display the detail page of the target commodity, and complete the shopping closed loop in the second application. The business processing flow of commodity purchase enables a user to start a shopping flow without reinstalling a shopping application, registration, login and other operations, simplifies the shopping flow and improves shopping efficiency; and depending on the payment function of the second application, the user does not need to execute operations such as rebinding a bank card, short message verification and the like in the payment link, and the payment can be completed rapidly.
Based on the above description, the embodiments of the present invention provide a service processing method, which may be performed by the above-mentioned terminal. Referring to fig. 3, the service processing method may include the following steps S301 to S304:
s301, responding to the triggering operation for the target service item detected in the service page of the first sub-application in the first application, and acquiring the parameter information of the target service item.
The terminal may provide one or more service items in a service page of a first sub-application in the first application, where the service items refer to service contents provided by the first sub-application for the user to meet the service requirements of the user, and for example, the service items may include: goods for satisfying the shopping needs of the user, query options for satisfying the information query needs of the user, and the like. The target service item is a service item determined according to a selection instruction of a user among a plurality of service items displayed on a service page of the first sub-application. For example, the service page of the first sub-application includes 3 service items, which are respectively: service item 1, service item 2, and service item 3; and the user selects the service item 1, the service item 1 can be determined as the target service item according to the selection instruction of the user.
The terminal can detect trigger operation aiming at a target service item in a service page of a first sub-application in a first application; the triggering operation may include, but is not limited to: click operation, press operation, voice operation, or the like. If the triggering operation for the target service item is detected in the service page of the first sub-application in the first application, the parameter information of the target service item can be acquired in response to the triggering operation; the parameter information of the target service item may include at least address information of a detail page of the target service item. In other embodiments, when the terminal detects a selection operation of the target service item in the service page of the first sub-application in the first application, the selection operation may also be used as a trigger operation, so as to obtain parameter information of the target service item.
S302, switching from the first application to the second application.
The first application has embedded therein a software development kit of the second application, and the first application has the right to use the software development kit of the second application. Therefore, the terminal can start and run the corresponding second application through the SDK of the second application embedded in the first application. The second application comprises a second sub-application; optionally, the first sub-application is associated with a second sub-application, and the service page of the second sub-application includes the target service item. Wherein the first sub-application being associated with the second sub-application comprises: the first sub-application and the second sub-application belong to the same developer; or alternatively; the similarity between the program code of the first sub-application and the program code of the second sub-application is greater than a preset threshold, which may be set according to an empirical value or an actual service requirement, for example, the preset threshold is set to 90%; alternatively, the first sub-application and the second sub-application each include at least a target service item. The implementation of the invention adopts the associated first sub-application and second sub-application to be respectively operated in the first application and the second application, so that the development cost of the sub-application can be reduced.
Optionally, after detecting the triggering operation for the target service item in the service page of the first sub-application in the first application, the terminal may determine whether the first application has a function of executing the service request operation related to the target service item. If so, the terminal can display the detail page of the target service item in the first sub-application in the first application, execute the service request corresponding to the service request operation in the first application after receiving the service request operation in the detail page, and end the flow. If not, the terminal can switch from the first application to the second application, so that the service request corresponding to the service request operation related to the target service item is executed in the second application.
S303, displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item.
S304, responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
In steps S303-S304: from the foregoing, it can be seen that the first application has the right to use the software development kit of the second application, so that the terminal can control the first application to send the sub-application identifier of the first sub-application to the second application through the software development kit of the second application, so that the second application starts to run the second sub-application associated with the first sub-application according to the sub-application identifier. And, since the parameter information of the target service item includes at least address information of a detail page of the target service item. Therefore, the terminal can acquire the detail page of the target service item according to the address information of the detail page of the target service item, and display the detail page of the target service item in the second sub-application in the second application. The terminal may receive a service request operation for the target service item on a detail page of the target service item, which may include, but is not limited to: purchase request operations, collection request operations, information query request operations, and so forth. After receiving the service request operation in the detail page of the target service item, the service request corresponding to the service request operation can be executed in the second application in response to the service operation request.
The embodiment of the invention can acquire the parameter information of the target service item after the triggering operation aiming at the target service item is detected in the service page of the first sub-application in the first application. And switching from the first application to the second application, and displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. In the business processing process, the first application is switched to the second application, the terminal is triggered to display the detail page of the target service item in the second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application, and the process enables the first application to realize business processing by means of the second application through interaction between the first application and the second application, enriches business functions of the first application, improves business processing capacity of the first application, and can reduce development cost of the first application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Fig. 4 is a schematic flow chart of another service processing method according to an embodiment of the present invention. The service processing method may be performed by the above-mentioned terminal. Referring to fig. 4, the service processing method may include the following steps S401 to S406:
s401, responding to the triggering operation for the target service item detected in the service page of the first sub-application in the first application, and acquiring the parameter information of the target service item.
S402, switching from the first application to a second application, wherein the second application comprises a second sub-application.
Because any application in the terminal can access the system clipboard in the terminal, the embodiment of the invention can realize information transfer in the first application and the second application through the system clipboard, thereby realizing switching from the first application to the second application. The System clipboard herein refers to a clipboard provided by an Operating System (OS) inside the terminal; the so-called operating system is a computer program that manages and controls the terminal hardware and software resources, which may include, but is not limited to: IOS operating system, android operating system (Android operating system), linux operating system, windows operating system (Windows operating system), etc. The IOS operating system is described in the following embodiments of the present invention unless specifically indicated.
In the implementation process, firstly, the terminal can perform positive serialization processing on the parameter information of the target service item according to the writing request of the first application, and then write the parameter information into the system clipboard. Specifically, the terminal may perform data format conversion on the parameter information of the target service item according to the write request of the first application, so that the data format of the parameter information of the target service item is converted into the key-value data format; and then sequentially writing the parameter information after the data format conversion into a system shear plate. Optionally, the terminal may also write the specific switching command corresponding to the switching from the first application to the second application and the data such as the application identifier of the first application into the system clipboard, as shown in fig. 5 a. The method comprises the steps of using a command key to represent a specific switching command corresponding to switching a first application to a second application, using a message ext key to represent parameter information of a target service item, and using an app id key to represent an application identifier of the first application. Then, the terminal may start to run the second application, and perform deserialization processing on the parameter information of the target service item in the system clipboard according to the read request of the second application, and send the processed parameter information to the second application, as shown in fig. 5 b.
S403, displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item.
The parameter information of the target service item comprises address information of a detail page of the target service item; the detail page comprises a native page or a webpage page; the address information of the detail page of the target service item includes native address information and web page address information. The original page refers to a detail page displayed under a sub-application frame corresponding to the second sub-application, and the webpage refers to a detail page displayed in the browser; correspondingly, the original address information refers to the address information corresponding to the original page, and the webpage address information refers to the address information corresponding to the webpage.
When the detail page of the target service item is displayed in a second sub-application in the second application according to the parameter information of the target service item, the terminal can acquire the original page of the target service item according to the original address information; and if the acquisition is successful, displaying a native page of the target service item in a second sub-application in the second application. And if the acquisition fails, calling a browser in a second sub-application in the second application, and acquiring and displaying the webpage of the target service item in the browser according to the webpage address information. In other embodiments, when the terminal successfully obtains the native page, but the current version of the second application is not compatible with the native page, and the native page cannot be normally displayed, the web page of the target service item may also be obtained according to the web address information, and the web page may be displayed.
Therefore, the embodiment of the invention can provide two detail pages (the original page and the webpage) of the target service item, so that the webpage can be normally displayed when the original page is not acquired or can not be normally displayed, a user can view the detail page of the complete target service item, the user experience is improved, and the terminal is more compatible.
S404, responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
In one embodiment, the service request operation may include a purchase request operation; the first sub-application may include a merchandise preview sub-application, the second sub-application may include a merchandise purchase sub-application, and the target service item may include a target merchandise. Correspondingly, responding to the purchase request operation received in the detail page of the target commodity, and generating a commodity order in the second application according to the purchase request operation; displaying the commodity order in a second sub-application within the second application; and acquiring a payment instruction for the commodity order, and executing a payment operation according to the payment instruction in the second application.
In another embodiment, the business request operation may include a collection request operation; accordingly, in response to the collection request operation received at the details page of the target service item, the target service item is added to the favorites in the second application so that the user can subsequently find the target service item in the favorites. In yet another embodiment, the service request operation may include an information inquiry request operation; correspondingly, responding to the information inquiry request operation received on the detail page of the target service item, and executing a service request corresponding to the information inquiry operation in the second application.
And S405, if a return instruction is detected in the detail page of the target service item, switching from the second application to the first application.
S406, displaying the service page of the first sub-application in the first application.
In steps S405 to S406: the terminal may provide the user with a function of returning from the detail page of the target service item to the service page of the first sub-application. Specifically, after the terminal displays the detail page of the target service item in the second sub-application in the second application, the user may input a return instruction in the detail page of the target service item; if the terminal detects the return instruction in the detail page of the target service item, the terminal can switch from the second application to the first application, and the service page of the first sub-application is displayed in the first application.
The embodiment of the invention can acquire the parameter information of the target service item after the triggering operation aiming at the target service item is detected in the service page of the first sub-application in the first application. And switching from the first application to the second application, and displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. In the business processing process, the first application is switched to the second application, the terminal is triggered to display the detail page of the target service item in the second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application, and the process enables the first application to realize business processing by means of the second application through interaction between the first application and the second application, enriches business functions of the first application, improves business processing capacity of the first application, and can reduce development cost of the first application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the above description, the embodiment of the invention further provides a flow diagram of a service processing method. The service processing method may be performed by the first application mentioned above. Referring to fig. 6, the service processing method may include the following steps S601 to S602:
s601, the first application responds to the triggering operation for the target service item detected in the service page of the first sub-application in the first application, and acquires the parameter information of the target service item.
S602, the first application calls a switching function in the terminal system to trigger the terminal to switch and run the second application, and transmits parameter information of the target service item to the second application, so that the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and when a service request operation is received in the detail page of the target service item, the second application executes a service request corresponding to the service request operation.
The first application embeds the SDK of the second application, and applies a developer identifier (represented by OpenID) on the development platform of the second application, where the OpenID may identify the developer of the first application, and the developer of the first application may use the OpenID to develop Web, sub-applications, and so on. The development platform of the second application may assign an application identifier (denoted by URL Scheme) to the first application, which URL Scheme is used to mark the first application.
The implementation process of step S602 may be referred to in fig. 7: when the first application is started, the first application can register with the SDK of the second application through a registration interface by using OpenID, wherein the registration interface can comprise: a + (boil) register app: (nsting) app id interface. After the registration is successful, the first application has the right to use the SDK of the second application. When the first application needs to be switched to the second application, the first application can acquire an application identifier of the second application and a switching function in the terminal system, wherein the switching function can comprise an OpenURL; and adding the application identifier of the second application to the switching function to trigger the terminal to switch to run the second application. Optionally, the switching function may further include an application identifier of the first application, so that the subsequent triggering terminal switches from the second application to the first application.
In the process that the first application transmits parameter information of a target service item to the second application, front-end JavaScript code of a first sub-application in the first application can call a native layer logic code through a # miniprogram function (a function provided by an interface layer of the first application), so that a WXMIProgrammObject object is constructed by calling a software development kit of the second application through the native layer logic code, and the WXMIProgrammObject object can comprise parameter information such as Path, webpageURL, wherein Path is used for representing the native address information of a detail page of the target service item; the webageurl is used to represent web page address information of a detail page of a target service item. And then, writing the parameter information in the WXMIProgrammObject object into the system clipboard in a positive serialization mode so that the second application can read the parameter information from the system clipboard in a negative serialization mode, thereby realizing the transfer of the parameter information of the target service item to the second application.
Optionally, the WXMiniProgramObject object may further include a child application identifier (expressed by userName) of the first child application. By transferring the userName of the first sub-application to the second application, the second application can determine the associated second sub-application according to the userName of the first sub-application, display the detail page of the target service item in the second sub-application associated with the first sub-application according to the parameter information of the target service item, and execute the service request corresponding to the service request operation by the second application when the service request operation is received in the detail page of the target service item.
In the embodiment of the invention, a first application responds to the triggering operation for a target service item detected in a service page of a first sub-application in the first application, and acquires the parameter information of the target service item. And calling a switching function in the terminal system to trigger the terminal to switch and run the second application, and transmitting the parameter information of the target service item to the second application. In the business processing process, the terminal is triggered to switch from the first application to the second application through the switching function, so that a detail page of a target service item is displayed in a second sub-application in the second application, and a business request corresponding to a business request operation is executed in the second application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the above description, the embodiment of the invention further provides a flow diagram of a service processing method. The service processing method may be performed by the second application mentioned above. Referring to fig. 8, the service processing method may include the following steps S801 to S803:
s801, the second application acquires parameter information of a target service item transmitted by the first application.
The parameter information of the target service item is acquired by the terminal in response to the triggering operation for the target service item detected in the service page of the first sub-application in the first application; and the terminal switches from the first application to the second application. The second application can acquire the parameter information of the target service item transmitted by the first application from the system clipboard.
S802, the second application displays the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item.
The parameter information of the target service item comprises address information of a detail page of the target service item; the detail page comprises a native page or a webpage page; the address information of the detail page of the target service item includes native address information and web page address information. Accordingly, step S802 has the following embodiments: acquiring a native page of a target service item according to the native address information; if the acquisition is successful, displaying a native page of the target service item in a second sub-application in the second application; and if the acquisition fails, calling a browser in a second sub-application in the second application, and acquiring and displaying the webpage of the target service item in the browser according to the webpage address information.
S803, responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation by the second application.
In one embodiment, the service request operation may include a purchase request operation. In response to the purchase request operation received in the detail page of the target commodity, the second application may generate a commodity order according to the purchase request operation and display the commodity order in the second sub-application. Then, a payment instruction for the commodity order is acquired, and a payment operation is performed in the second application according to the payment instruction. In other embodiments, the business request operations may also include collection request operations, information query request operations, and so forth.
The following describes in detail, taking the service request operation as a purchase request operation as an example, the flow of executing the service request corresponding to the purchase request operation by the second application with reference to fig. 9:
(1) requesting order payment: the user may place an order in a detail page displayed by a second sub-application within the second application to purchase the target commodity. At this time, the second application may receive the purchase request operation and call the second sub-application to request the order payment from the merchant system selling the target commodity.
(2) Applying for pre-order information: after receiving the order placing request sent by the second sub-application, the merchant system in the second application can generate a commodity order according to the order placing request; the payment unification ordering API (Application Programming Interface ) is then invoked to apply for pre-order information to the server. When the payment system ordering API is called to apply for the pre-order information, the following information is needed:
interface address: https:// api. Mch. Weixin. Qq. Com/pay/uniiedorder;
the request mode is as follows: a POST;
whether a certificate is required: if not, then judging whether the current is equal to or greater than the preset threshold;
sub-application ID: the method can be obtained from a public number configuration page;
merchant number (mch _id): the page acquisition can be configured at the merchant;
random string (nonce_str): random string, 32 bits;
signature (sign): a signature generation algorithm may be viewed;
commodity description (body): parameter specification with reference to a second application;
merchant order number (out_track_no): an order number generated by a server of the second application;
total amount (total_fee): the actual total amount of the order takes the score as a measuring unit;
terminal IP (spin_create_ip): an IP (Internet Protocol Address, IP address) of the terminal running the second application;
notification address (notify_url): after successful payment, the second application recalls the notification address;
Transaction type (trade_type): the value of the second sub-application: JSAPI.
The pre-order information may include the following fields:
return_code: the method is used for indicating whether communication is successful or not, and the value is success or fail;
return_msg: information representing returns;
result_code: the method is used for indicating whether the transaction is successful or not, and the value is success or fail;
err_code: requesting an error code;
err_code_des: information description returned by errors;
trade_type: the transaction type returns when the return_code and the result_code are success;
prepay_id: the payment ID of the pre-order, the validity period can be set according to the actual requirement, for example, set to 2 hours. If the user cancels the payment after generating this ID, the ID can be multiplexed when the user pays again within 2 hours. The return is made when both return_code and result_code are success.
(3) Signature: after acquiring the pre-order information, the merchant system may store the pre-order information for multiplexing within 2 hours. The merchant system may sign again after obtaining the pre-order information and return the payment parameters to the second sub-application. Wherein the payment parameters may include the following parameters:
app id: the method can be obtained from a public number configuration page;
timeStamp: a time stamp, which may be in units of seconds;
nonceStr: a 32-bit random number;
package: prepay_id= ×× (payment ID of the pre-order mentioned above);
signType:MD5;
paySign: and regenerating the signature.
(4) And (3) payment: after the second sub-application obtains the payment parameters, wx.request Payment (OBJECT) can be called to initiate payment to a server of the second application; after the server finishes the payment operation, the payment result can be returned to the second sub-application, so that the second sub-application displays the payment result. Optionally, the server may also push the payment result to the merchant system, so that the merchant system updates the order status according to the payment result.
In the embodiment of the invention, the second application can display the detail page of the target service item in the second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation. In the business processing process, the terminal is switched from the first application to the second application, the detail page of the target service item is triggered to be displayed in a second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the description of the method embodiment, the embodiment of the invention also provides a service processing device, which is arranged in a terminal, wherein the terminal runs a first application and a second application. The service processing means may be a computer program (comprising program code) running in the terminal. The service processing apparatus may perform the methods shown in fig. 3 to 4. Referring to fig. 10, the service processing apparatus may operate the following units:
an obtaining unit 101, configured to obtain parameter information of a target service item in response to a triggering operation for the target service item detected in a service page of a first sub-application in a first application;
a switching unit 102, configured to switch from the first application to a second application, where the second application includes a second sub-application;
a display unit 103, configured to display a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and the processing unit 104 is configured to respond to a service request operation received in the detail page of the target service item, and execute a service request corresponding to the service request operation in the second application.
In one embodiment, the switching unit 102 may be further configured to: if a return instruction is detected in the detail page of the target service item, switching from the second application to the first application;
the display unit 103 may be further configured to display a service page of the first sub-application in the first application.
In yet another embodiment, the switching unit 102, when configured to switch from the first application to the second application, may be specifically configured to:
carrying out positive serialization processing on the parameter information of the target service item according to the writing request of the first application, and writing the parameter information into a system shear plate;
and starting the second application, performing deserialization processing on the parameter information of the target service item in the system shear plate according to the reading request of the second application, and sending the parameter information to the second application.
In yet another embodiment, the parameter information of the target service item includes address information of a detail page of the target service item;
wherein the detail page comprises a native page or a webpage page; the address information of the detail page of the target service item comprises the original address information and the webpage address information.
In still another embodiment, the display unit 103, when configured to display a detail page of the target service item in a second sub-application within the second application according to the parameter information of the target service item, may be specifically configured to:
acquiring a native page of the target service item according to the native address information;
and if the acquisition is successful, displaying the original page of the target service item in a second sub-application in the second application.
In still another embodiment, the display unit 103, when configured to display a detail page of the target service item in a second sub-application within the second application according to the parameter information of the target service item, may be further specifically configured to:
and if the acquisition fails, calling a browser in a second sub-application in the second application, and acquiring and displaying the webpage of the target service item in the browser according to the webpage address information.
In yet another embodiment, the first sub-application comprises a merchandise preview sub-application and the second sub-application comprises a merchandise purchase sub-application; the target service item comprises a target commodity, and the business request operation comprises a purchase request operation;
The processing unit 104, when configured to respond to the service request operation received in the detail page of the target service item, may specifically be configured to:
generating a commodity order in the second application according to the purchase request operation in response to the purchase request operation received in the detail page of the target commodity;
displaying the commodity order in a second sub-application within the second application;
and acquiring a payment instruction aiming at the commodity order, and executing a payment operation according to the payment instruction in the second application.
In yet another embodiment, the first sub-application is associated with the second sub-application, the associating comprising: the first sub-application and the second sub-application belong to the same developer; or alternatively; the similarity between the program codes of the first sub-application and the program codes of the second sub-application is larger than a preset threshold; or, the first sub-application and the second sub-application at least comprise the target service item.
In yet another embodiment, the first application has embedded therein a software development kit of the second application, and the first application has the right to use the software development kit of the second application;
The processing unit 104 may be further configured to: and controlling the first application to send the sub-application identification of the first sub-application to the second application through the software development kit of the second application, so that the second application starts to run the second sub-application associated with the first sub-application according to the sub-application identification.
According to an embodiment of the present invention, the steps involved in the methods shown in fig. 3 to 4 may be performed by the units in the service processing apparatus shown in fig. 10. For example, steps S301 to S304 shown in fig. 3 may be performed by the acquisition unit 101, the switching unit 102, the display unit 103, and the processing unit 104 shown in fig. 10, respectively; as another example, steps S401 to S404 shown in fig. 4 may be performed by the acquisition unit 101, the switching unit 102, the display unit 103, and the processing unit 104 shown in fig. 10, respectively, step S405 may be performed by the switching unit 102 shown in fig. 10, and step S406 may be performed by the display unit 103 shown in fig. 10.
According to another embodiment of the present invention, each unit in the service processing apparatus shown in fig. 10 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, the service-based processing device may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, a service processing apparatus device as shown in fig. 10 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 3 to 4 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and implementing the service processing method of the embodiment of the present invention. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the above-described computing device via the computer-readable recording medium.
The embodiment of the invention can acquire the parameter information of the target service item after the triggering operation aiming at the target service item is detected in the service page of the first sub-application in the first application. And switching from the first application to the second application, and displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. In the business processing process, the first application is switched to the second application, the terminal is triggered to display the detail page of the target service item in the second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application, and the process enables the first application to realize business processing by means of the second application through interaction between the first application and the second application, enriches business functions of the first application, improves business processing capacity of the first application, and can reduce development cost of the first application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the description of the above method embodiments, the embodiments of the present invention further provide a service processing apparatus, which may be a first application or may be a computer program (including program code) running in the first application. The service processing device may perform the method shown in fig. 6. Referring to fig. 11, the service processing apparatus may operate the following units:
an obtaining unit 201, configured to obtain parameter information of a target service item in response to a triggering operation for the target service item detected in a service page of a first sub-application in a first application;
and the processing unit 202 is configured to invoke a switching function in the terminal system to trigger the terminal to switch and run a second application, and transfer parameter information of the target service item to the second application, so that the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and when a service request operation is received in the detail page of the target service item, the second application executes a service request corresponding to the service request operation.
According to an embodiment of the present invention, the steps involved in the method shown in fig. 6 may be performed by the units in the service processing apparatus shown in fig. 11. For example, steps S601 to S602 shown in fig. 6 may be performed by the acquisition unit 201 and the processing unit 202 shown in fig. 11, respectively. According to another embodiment of the present invention, each unit in the service processing apparatus shown in fig. 11 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, the service-based processing device may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, a service processing apparatus device as shown in fig. 11 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 6 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and implementing the service processing method of the embodiment of the present invention. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the above-described computing device via the computer-readable recording medium.
In the embodiment of the invention, a first application responds to the triggering operation for a target service item detected in a service page of a first sub-application in the first application, and acquires the parameter information of the target service item. And calling a switching function in the terminal system to trigger the terminal to switch and run the second application, and transmitting the parameter information of the target service item to the second application. In the business processing process, the terminal is triggered to switch from the first application to the second application through the switching function, so that a detail page of a target service item is displayed in a second sub-application in the second application, and a business request corresponding to a business request operation is executed in the second application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the description of the above method embodiments, the embodiments of the present invention also provide a service processing apparatus, which may be a second application or may be a computer program (including program code) running in the second application. The service processing device may perform the method shown in fig. 8. Referring to fig. 12, the service processing apparatus may operate the following units:
An obtaining unit 301, configured to obtain parameter information of a target service item transferred by a first application, where the parameter information of the target service item is obtained by a terminal in response to a triggering operation for the target service item detected in a service page of a first sub-application in the first application; the terminal is switched from the first application to the second application;
a display unit 302, configured to display a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and the processing unit 303 is configured to respond to a service request operation received in the detail page of the target service item, and execute a service request corresponding to the service request operation.
According to one embodiment of the present invention, the steps involved in the method shown in fig. 8 may be performed by the units in the service processing apparatus shown in fig. 12. For example, steps S801 to S803 shown in fig. 8 may be performed by the acquisition unit 301, the display unit 302, and the processing unit 303 shown in fig. 12, respectively. According to another embodiment of the present invention, each unit in the service processing apparatus shown in fig. 12 may be separately or completely combined into one or several other units, or some unit(s) thereof may be further split into a plurality of units with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present invention. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present invention, the service-based processing device may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, a service processing apparatus device as shown in fig. 12 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods as shown in fig. 8 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and implementing the service processing method of the embodiment of the present invention. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and executed by the above-described computing device via the computer-readable recording medium.
In the embodiment of the invention, the second application can display the detail page of the target service item in the second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation. In the business processing process, the terminal is switched from the first application to the second application, the detail page of the target service item is triggered to be displayed in a second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a terminal. Referring to fig. 13, the terminal includes at least a processor 401, an input device 402, an output device 403, and a computer storage medium 404. Wherein the processor 401, input device 402, output device 403, and computer storage medium 404 in the terminal may be connected by a bus or other means. The terminal can also comprise an application module, wherein the application module comprises a first application and a second application; the first application comprises a first sub-application, and the second application comprises a second sub-application.
A computer storage medium 404 may be stored in a memory of the terminal, the computer storage medium 404 being for storing a computer program comprising program instructions, the processor 401 being for executing the program instructions stored by the computer storage medium 404. The processor 401 (or CPU (Central Processing Unit, central processing unit)) is a computing core and a control core of the terminal, which are adapted to implement one or more instructions, in particular to load and execute one or more instructions to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 401 of the present invention may be configured to perform a series of service processes, including: responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, and acquiring parameter information of the target service item; switching from the first application to a second application, the second application comprising a second sub-application; displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item; responding to the service request operation received in the detail page of the target service item, executing the service request corresponding to the service request operation in the second application, and the like.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It will be appreciated that the computer storage medium herein may include both a built-in storage medium in the terminal and an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 401. The computer storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory; optionally, at least one computer storage medium remote from the processor may be present.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 401 to implement the corresponding steps of the methods described above in connection with the business process embodiments of FIGS. 3-4; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 401 and perform the steps of:
Responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, and acquiring parameter information of the target service item;
switching from the first application to a second application, the second application comprising a second sub-application;
displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
In one implementation, the one or more instructions may also be loaded by the processor 401 and perform the steps of:
if a return instruction is detected in the detail page of the target service item, switching from the second application to the first application;
and displaying the service page of the first sub-application in the first application.
In yet another embodiment, upon switching from the first application to the second application, the one or more instructions may be loaded by processor 401 and perform the steps of:
Carrying out positive serialization processing on the parameter information of the target service item according to the writing request of the first application, and writing the parameter information into a system shear plate;
and starting the second application, performing deserialization processing on the parameter information of the target service item in the system shear plate according to the reading request of the second application, and sending the parameter information to the second application.
In yet another embodiment, the parameter information of the target service item includes address information of a detail page of the target service item;
wherein the detail page comprises a native page or a webpage page; the address information of the detail page of the target service item comprises the original address information and the webpage address information.
In yet another embodiment, the one or more instructions may be loaded and executed by the processor 401 when displaying a detail page of the target service item in a second sub-application within the second application according to parameter information of the target service item, as follows:
acquiring a native page of the target service item according to the native address information;
and if the acquisition is successful, displaying the original page of the target service item in a second sub-application in the second application.
In yet another embodiment, the one or more instructions may be further loaded and executed by the processor 401 when displaying the detail page of the target service item in a second sub-application within the second application according to the parameter information of the target service item, as follows:
and if the acquisition fails, calling a browser in a second sub-application in the second application, and acquiring and displaying the webpage of the target service item in the browser according to the webpage address information.
In yet another embodiment, the first sub-application comprises a merchandise preview sub-application and the second sub-application comprises a merchandise purchase sub-application; the target service item comprises a target commodity, and the business request operation comprises a purchase request operation;
in response to a service request operation received in the detail page of the target service item, when executing a service request corresponding to the service request operation in the second application, the one or more instructions may further be loaded by the processor 401 and execute the following steps:
generating a commodity order in the second application according to the purchase request operation in response to the purchase request operation received in the detail page of the target commodity;
Displaying the commodity order in a second sub-application within the second application;
and acquiring a payment instruction aiming at the commodity order, and executing a payment operation according to the payment instruction in the second application.
In yet another embodiment, the first sub-application is associated with the second sub-application, the associating comprising: the first sub-application and the second sub-application belong to the same developer; or alternatively; the similarity between the program codes of the first sub-application and the program codes of the second sub-application is larger than a preset threshold; or, the first sub-application and the second sub-application at least comprise the target service item.
In yet another embodiment, the first application has embedded therein a software development kit of the second application, and the first application has the right to use the software development kit of the second application; the one or more instructions may also be loaded by the processor 401 and perform the steps of:
and controlling the first application to send the sub-application identification of the first sub-application to the second application through the software development kit of the second application, so that the second application starts to run the second sub-application associated with the first sub-application according to the sub-application identification.
In yet another embodiment, the processor 401 may also load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps of the method described above in connection with the business process embodiment of fig. 6; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 401 and perform the steps of:
the method comprises the steps that a first application responds to triggering operation for a target service item detected in a service page of a first sub-application in the first application, and parameter information of the target service item is obtained;
and triggering a terminal to switch and run a second application by using a switching function in a terminal system by the first application, and transmitting parameter information of the target service item to the second application, so that the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and when a service request operation is received in the detail page of the target service item, the second application executes a service request corresponding to the service request operation.
In yet another embodiment, the processor 401 may also load and execute one or more instructions stored in a computer storage medium to implement the corresponding steps of the method in the embodiment of business process described above with respect to fig. 8; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 401 and perform the steps of:
The method comprises the steps that a second application obtains parameter information of a target service item transmitted by a first application, wherein the parameter information of the target service item is obtained by a terminal in response to triggering operation for the target service item detected in a service page of a first sub-application in the first application; the terminal is switched from the first application to the second application;
the second application displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation by the second application.
The embodiment of the invention can acquire the parameter information of the target service item after the triggering operation aiming at the target service item is detected in the service page of the first sub-application in the first application. And switching from the first application to the second application, and displaying the detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item. And responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application. In the business processing process, the first application is switched to the second application, the terminal is triggered to display the detail page of the target service item in the second sub-application in the second application, and the business request corresponding to the business request operation is executed in the second application, and the process enables the first application to realize business processing by means of the second application through interaction between the first application and the second application, enriches business functions of the first application, improves business processing capacity of the first application, and can reduce development cost of the first application; in addition, the service processing process does not need a user to manually switch pages, the service operation is simple and efficient, and the service processing efficiency is high.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (14)

1. A method for processing a service, comprising:
responding to triggering operation for a target service item detected in a service page of a first sub-application in a first application, acquiring parameter information of the target service item, wherein a software development kit of a second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, the first application is an enterprise application, and the second application is a personal application;
switching from the first application to the second application, and controlling the first application to send a sub-application identification of the first sub-application to the second application through a software development kit of the second application based on a system clipboard, so that the second application starts to run a second sub-application associated with the first sub-application according to the sub-application identification, wherein the second application comprises the second sub-application, and the first sub-application and the second sub-application are application programs running on respective sub-application frameworks of the first application and the second application respectively;
Displaying a detail page of the target service item in the second sub-application in the second application according to the parameter information of the target service item;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
2. The method of claim 1, wherein the switching from the first application to the second application comprises:
carrying out positive serialization processing on the parameter information of the target service item according to the writing request of the first application, and writing the parameter information into a system shear plate;
and starting the second application, performing deserialization processing on the parameter information of the target service item in the system shear plate according to the reading request of the second application, and sending the parameter information to the second application.
3. The method of claim 1, wherein the parameter information of the target service item includes address information of a detail page of the target service item;
wherein the detail page comprises a native page or a webpage page; the address information of the detail page of the target service item comprises the original address information and the webpage address information.
4. The method of claim 3, wherein the displaying the detail page of the target service item in a second sub-application within the second application according to the parameter information of the target service item comprises:
acquiring a native page of the target service item according to the native address information;
and if the acquisition is successful, displaying the original page of the target service item in a second sub-application in the second application.
5. The method of claim 4, wherein displaying the detail page of the target service item in a second sub-application within the second application according to the parameter information of the target service item, further comprises:
and if the acquisition fails, calling a browser in a second sub-application in the second application, and acquiring and displaying the webpage of the target service item in the browser according to the webpage address information.
6. The method of any of claims 1-5, wherein the first sub-application comprises a merchandise preview sub-application and the second sub-application comprises a merchandise purchase sub-application; the target service item comprises a target commodity, and the business request operation comprises a purchase request operation;
The responding to the service request operation received in the detail page of the target service item, executing the service request corresponding to the service request operation in the second application, and comprises the following steps:
generating a commodity order in the second application according to the purchase request operation in response to the purchase request operation received in the detail page of the target commodity;
displaying the commodity order in a second sub-application within the second application;
and acquiring a payment instruction aiming at the commodity order, and executing a payment operation according to the payment instruction in the second application.
7. The method of any one of claims 1-5, wherein the associating comprises: the first sub-application and the second sub-application belong to the same developer; or alternatively; the similarity between the program codes of the first sub-application and the program codes of the second sub-application is larger than a preset threshold; or, the first sub-application and the second sub-application at least comprise the target service item.
8. A method for processing a service, comprising:
a first application responds to a triggering operation for a target service item detected in a service page of a first sub-application in the first application, and parameter information of the target service item is obtained, wherein a software development kit of a second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, the first application is an enterprise application, and the second application is a personal application;
And triggering a terminal to switch and run the second application by a switching function in the first application calling terminal system, transmitting parameter information of the target service item and a sub-application identification of the first sub-application to the second application through a software development kit of the second application based on a system clipboard, so that the second application starts and runs a second sub-application associated with the first sub-application according to the sub-application identification, displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and executing a service request corresponding to the service request operation by the second application when the service request operation is received in the detail page of the target service item, wherein the first sub-application and the second sub-application are application programs running on respective sub-application frameworks of the first application and the second application respectively.
9. A method for processing a service, comprising:
the method comprises the steps that a second application obtains a first application based on a sub-application identifier of a first sub-application and parameter information of a target service item, wherein the sub-application identifier of the first sub-application and the parameter information of the target service item are obtained by a terminal in response to a triggering operation for the target service item detected in a service page of the first sub-application in the first application, the terminal is switched from the first application to the second application, a software development kit of the second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, the first application is an enterprise application, and the second application is a personal application;
The second application starts a second sub-application which is related to the first sub-application according to the sub-application identification, and displays a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, wherein the first sub-application and the second sub-application are application programs which are respectively operated on sub-application frameworks of the first application and the second application;
and responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation by the second application.
10. A service processing apparatus provided in a terminal, the terminal running a first application and a second application, comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, acquiring parameter information of the target service item, wherein a software development kit of a second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, the first application is an enterprise application, and the second application is a personal application;
A switching unit, configured to switch from the first application to the second application, and control the first application to send a sub-application identifier of the first sub-application to the second application through a software development kit of the second application, where the second application starts to run a second sub-application associated with the first sub-application according to the sub-application identifier, and the second application includes the second sub-application, and the first sub-application and the second sub-application are application programs running on respective sub-application frameworks of the first application and the second application respectively;
the display unit is used for displaying a detail page of the target service item in the second sub-application in the second application according to the parameter information of the target service item;
and the processing unit is used for responding to the service request operation received in the detail page of the target service item, and executing the service request corresponding to the service request operation in the second application.
11. A service processing apparatus, comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for responding to the triggering operation for a target service item detected in a service page of a first sub-application in a first application, acquiring parameter information of the target service item, wherein a software development kit of a second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, the first application is an enterprise application, and the second application is a personal application;
The processing unit is used for calling a switching function in a terminal system to trigger the terminal to switch and run the second application, transmitting parameter information of the target service item and a sub-application identification of the first sub-application to the second application through a software development kit of the second application based on a system clipboard, so that the second application starts and runs a second sub-application associated with the first sub-application according to the sub-application identification, displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, and executing a service request corresponding to the service request operation by the second application when the service request operation is received in the detail page of the target service item, wherein the first sub-application and the second sub-application are application programs running on respective sub-application frameworks of the first application and the second application respectively.
12. A service processing apparatus, comprising:
the system comprises an acquisition unit, a first application and a second application, wherein the acquisition unit is used for acquiring a sub-application identifier of a first sub-application and parameter information of a target service item, which are transmitted by a system clipboard, of the first application, the sub-application identifier of the first sub-application and the parameter information of the target service item are acquired by a terminal in response to a triggering operation for the target service item detected in a service page of the first sub-application in the first application, the terminal is switched from the first application to the second application, a software development kit of the second application is embedded in the first application, the first application has the authority of using the software development kit of the second application, and the first application is an enterprise application and the second application is a personal application;
The display unit is used for starting and running a second sub-application related to the first sub-application according to the sub-application identification, displaying a detail page of the target service item in a second sub-application in the second application according to the parameter information of the target service item, wherein the first sub-application and the second sub-application are application programs running on respective sub-application frameworks of the first application and the second application;
and the processing unit is used for responding to the service request operation received in the detail page of the target service item and executing the service request corresponding to the service request operation.
13. A terminal running a first application and a second application, the terminal comprising an input device and an output device, the terminal further comprising:
a processor adapted to implement one or more instructions; the method comprises the steps of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the business processing method of any of claims 1-7.
14. A computer storage medium, characterized in that it stores computer program instructions adapted to be loaded by a processor and to perform the service processing method according to any of claims 1-7; alternatively, the computer program instructions are adapted to be loaded by a processor and to perform the service processing method of claim 8; alternatively, the computer program instructions are adapted to be loaded by a processor and to perform the service processing method according to claim 9.
CN201910046540.6A 2019-01-16 2019-01-16 Service processing method, device, terminal and storage medium Active CN109840146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910046540.6A CN109840146B (en) 2019-01-16 2019-01-16 Service processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910046540.6A CN109840146B (en) 2019-01-16 2019-01-16 Service processing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109840146A CN109840146A (en) 2019-06-04
CN109840146B true CN109840146B (en) 2023-05-09

Family

ID=66883900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910046540.6A Active CN109840146B (en) 2019-01-16 2019-01-16 Service processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109840146B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753110A (en) * 2019-10-23 2020-02-04 秒针信息技术有限公司 Resource information distribution method, device and system based on small program
CN111026475A (en) * 2019-11-19 2020-04-17 上海博泰悦臻电子设备制造有限公司 Vehicle, vehicle equipment and vehicle service processing method based on map software
CN111641606B (en) * 2020-05-16 2022-11-22 中信银行股份有限公司 Data processing method, device, equipment and storage medium based on pseudo protocol
CN112804330B (en) * 2021-01-14 2023-04-18 京东科技控股股份有限公司 Application communication method and device
CN113254237A (en) * 2021-06-11 2021-08-13 海尔数字科技(青岛)有限公司 Front-end application calling method, device, storage medium and program product
CN113821750B (en) * 2021-11-23 2022-03-04 北京交研智慧科技有限公司 Page data processing method and system, electronic equipment and readable storage medium
CN114968460A (en) * 2022-05-27 2022-08-30 金蝶软件(中国)有限公司 Page switching method and related equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10146512B1 (en) * 2015-08-28 2018-12-04 Twitter, Inc. Feature switching kits
CN107067244B (en) * 2016-11-03 2020-09-29 阿里巴巴集团控股有限公司 Service implementation method, payment method, service implementation device and payment server
CN107092475B (en) * 2016-12-21 2020-12-08 阿里巴巴集团控股有限公司 Calling method and device of interactive control
CN108733991B (en) * 2017-04-19 2021-04-06 腾讯科技(深圳)有限公司 Webpage application access method and device and storage medium
CN109102267A (en) * 2017-06-21 2018-12-28 百联电子商务有限公司 A kind of method and apparatus of polymerization payment
CN107590723A (en) * 2017-09-19 2018-01-16 深圳市优户科技有限公司 Increase method, system and server that wechat is ordered goods in online lower operation system
CN108846657B (en) * 2018-05-28 2023-08-08 广州腾讯科技有限公司 Electronic transfer method and related device
CN108829528B (en) * 2018-06-11 2021-06-25 腾讯科技(深圳)有限公司 Content sharing method and device, and message processing method and device
CN108880992B (en) * 2018-06-29 2021-09-24 腾讯科技(深圳)有限公司 Data transmission method, computer device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于MapReduce的任务算子框架在大数据分析平台上的设计和实现;李浩波;《中国优秀硕士学位论文全文数据库信息科技辑》;I138-988 *
容灾应用平台与数据比较子系统的设计与实现;陈亚堂;《中国优秀硕士学位论文全文数据库信息科技辑》;I138-1803 *

Also Published As

Publication number Publication date
CN109840146A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN109840146B (en) Service processing method, device, terminal and storage medium
US11341478B2 (en) Payment processing method and apparatus, and intelligent device
EP2494804B1 (en) Method and apparatus for recovery during authentication
CN106873961B (en) Method and device for awakening APP through mobile browser
US9961181B2 (en) Systems and methods for customizing mobile applications based upon user associations with one or more entities
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN109922132B (en) Form request processing method and device, electronic equipment and storage medium
US20130104038A1 (en) Method for automatic url shortening
US20130066942A1 (en) Systems and Methods for Customizing Mobile Applications Based Upon User Associations with One or More Entities
WO2018120892A1 (en) Method for accessing point of sale terminal, terminal, and non-volatile readable storage medium
CN105871785B (en) Service processing method, device and system
JP6877343B2 (en) Handling unstructured messages
CN104955005A (en) Method and device for depositing for communication terminal
US20170346952A1 (en) Telephone number based information loading method and device
CN106095886B (en) Data processing method and device
CN111784481B (en) Code scanning ordering method, service code creating method, device and electronic equipment
CN116016632A (en) Resource collection device binding method and device based on social application and storage medium
CN116436633B (en) Platform login method and system for receiving and transmitting verification code based on instant messaging
CN115080186A (en) Applet loading method and related device
CN115334061A (en) Information processing method and system
CN115905738A (en) Application memory snapshot obtaining method and device and computer readable storage medium
CN116405455A (en) Interaction method, device, equipment and storage medium of chat group and stream end
CN116980862A (en) Information prompting method, device, equipment and storage medium
CN117807157A (en) Transaction execution method, apparatus, program product, device and medium for blockchain
CN117764571A (en) Payment processing method, device, electronic equipment and storage 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