CN114217866B - Application method and device of applet and electronic equipment - Google Patents

Application method and device of applet and electronic equipment Download PDF

Info

Publication number
CN114217866B
CN114217866B CN202111315892.0A CN202111315892A CN114217866B CN 114217866 B CN114217866 B CN 114217866B CN 202111315892 A CN202111315892 A CN 202111315892A CN 114217866 B CN114217866 B CN 114217866B
Authority
CN
China
Prior art keywords
applet
container
browser
target
page
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
CN202111315892.0A
Other languages
Chinese (zh)
Other versions
CN114217866A (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.)
Ali Health Technology China Co ltd
Original Assignee
Ali Health Technology China 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 Ali Health Technology China Co ltd filed Critical Ali Health Technology China Co ltd
Priority to CN202111315892.0A priority Critical patent/CN114217866B/en
Publication of CN114217866A publication Critical patent/CN114217866A/en
Application granted granted Critical
Publication of CN114217866B publication Critical patent/CN114217866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification provides a method and a device for using an applet and electronic equipment. A preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the method comprises the following steps: acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link; responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel; displaying the target page in the applet; the target page comprises a webpage which is not located in a domain name white list of the applet configuration.

Description

Application method and device of applet and electronic equipment
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and an apparatus for using an applet, and an electronic device.
Background
With the continuous development of computer technology, various applications have been put into daily life, and applets have been widely paid attention to by various industries as an application that can be used without downloading and installing.
In the related art, when operating in a management applet, different activity links may be configured for the applet so that a user using the applet participates in different activities through the above-mentioned activity links.
Because the security restriction of the applet is strict, if the active link corresponds to an active page, the operation needs to apply for the domain name corresponding to the active page to be added into the domain name white list in advance. Only pages in the domain name whitelist can be opened by the applet. However, as applets grow more, so does the audit time required to apply for domain whitelists, which severely impacts the proper operation of the applet.
Disclosure of Invention
The embodiment of the specification provides a use method and device of an applet and electronic equipment.
According to a first aspect of embodiments of the present disclosure, a method for using an applet is provided, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
displaying the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
Optionally, the method further comprises:
determining whether the domain name of the target page corresponding to the target link is positioned in a domain name white list configured by the applet;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the trigger request based on a container interface corresponding to the target link under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet.
Optionally, the method further comprises:
performing identity verification on the applet;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the triggering request based on the container interface corresponding to the target link under the condition that the applet is an authenticated applet.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a second aspect of embodiments of the present disclosure, there is provided a method for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address into the webpage container so that the webpage container can call a third party application corresponding to the application address which is locally installed through a browser of a kernel;
and responding to a confirmation operation for calling the third party application, opening the third party application and transmitting the page address into the third party application so that the third party application displays a target page corresponding to the page address.
Optionally, the method further comprises:
performing identity verification on the applet;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the triggering request based on the container interface corresponding to the target link under the condition that the applet is an authenticated applet.
Optionally, the calling the third party application corresponding to the access address installed locally includes:
and calling the third party application corresponding to the access address installed locally based on the deep link technology.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a third aspect of embodiments of the present disclosure, there is provided a device for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the device comprises:
the acquisition unit acquires a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
the response unit is used for responding to the trigger request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses the target page corresponding to the access address based on the browser of the kernel;
the display unit displays the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
Optionally, the apparatus further includes:
a determining unit, configured to determine whether a domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet.
Optionally, the apparatus further includes:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a fourth aspect of embodiments of the present disclosure, there is provided a device for using an applet, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the device comprises:
the acquisition unit acquires a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit is used for responding to the trigger request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the application address into the webpage container so that the webpage container can call a third party application corresponding to the application address which is locally installed through a browser of a kernel;
and the display unit is used for responding to the confirmation operation for calling the third party application, opening the third party application and transmitting the page address into the third party application so that the third party application displays the target page corresponding to the page address.
Optionally, the apparatus further includes:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
Optionally, in the response unit, calling a third party application corresponding to the access address installed locally, including:
and calling the third party application corresponding to the access address installed locally based on the deep link technology.
Optionally, the browser includes a system browser, and the web page container includes a webview container of the system browser.
According to a fifth aspect of embodiments of the present specification, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to use any of the applets described above.
According to the application scheme of the applet, a preset container interface is configured in the applet, the container interface is used for calling a webpage container taking a browser as a kernel, and a target page corresponding to a target link configured in the applet is opened by using the webpage container. When the webpage container taking the browser as the kernel opens the target page, the method is not limited by the small program (namely, the application of adding the domain name of the target page into the domain name white list is required), so that the target link corresponding to the target page which is not positioned in the domain name white list can be configured in the small program. Thus, the flexibility of the operation configuration of the small program can be improved because the application of a domain name white list is not needed.
Drawings
FIG. 1 is a flow chart of a method of using an applet provided in one embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a mutual group of applets according to one embodiment of the disclosure;
FIG. 3 is a schematic diagram of an interface for opening a web page in an applet according to one embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of using an applet provided in one embodiment of the present disclosure;
FIG. 5 is a hardware configuration diagram of an apparatus for using an applet according to an embodiment of the present invention;
FIG. 6 is a block diagram of an applet utilizing apparatus provided in one embodiment of the present disclosure;
fig. 7 is a block diagram of an apparatus for using an applet according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present description as detailed in the accompanying claims.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
With the continuous development of computer technology, various applications have been put into daily life, and applets have been widely paid attention to by various industries as an application that can be used without downloading and installing.
In the related art, an operator may configure different active links for an applet when managing the applet, so that a user using the applet participates in different activities through the active links.
Taking the group chat interface provided by the applet as an example, operators can configure different activity links for the plug-in buttons of the group chat in the background, so that members in the group chat participate in different activities. After any member triggers the active link, an active page corresponding to the active link may be displayed in the applet, where the active page may be an H5 page or another applet.
In the existing applet mechanism, the applet is more strict in safety limit, and if the active link corresponds to an active page, the operation needs to apply for the domain name corresponding to the active page to be added into a domain name white list in advance. Only pages in the domain name whitelist can be opened by the applet. However, as applets grow more, so does the audit time required to apply for domain whitelists, which severely impacts the proper operation of the applet.
In addition, in some activity requirements, there may be a need to jump from the applet to other third party applications, such as operating pages in other third party applications that it is desired to call up by triggering an activity link. However, existing applet mechanisms do not support the invocation of other third party applications by the applet. I.e., other third party applications cannot be invoked in existing applets.
In order to solve any technical problem, the present disclosure provides a use scheme of the applet, by improving the existing applet, the web page can be opened in the applet without applying a domain name white list, or other applet can be opened in the current applet without configuring other applet, or other third party application can be evoked in the applet.
The following describes, with reference to fig. 1, a flowchart of a method for using an applet provided in the present specification, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method may include:
step 110: acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
step 120: responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
step 130: displaying the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
Wherein, the applet is the applet opened by the user on the client. Such as some applications APP with applet functionality.
The client may refer to a client device on hardware, such as a desktop computer, laptop computer, tablet computer, smart phone, handheld computer, personal digital assistant ("PDA"), or any other wired or wireless processor driven device.
Typically, a user may log into an existing user account on a client or use an applet service provided by an application with the identity of a guest.
With a mutual-help applet that can provide a group chat service for a mutual-help group of users that need help. Any user that needs assistance can chat with other users in the community of mutual assistance provided by the applet.
As shown in the schematic diagram of the interaction group of the applet in fig. 2, the group chat interface of the interaction group, similar to a general IM group chat, may include a to-be-sent area 20 and a sent area 30. An input box 21 may be included in the area to be transmitted 20, and the user may input chat information to be transmitted into the input box 21. A send action is then triggered (e.g. clicking on the "send" button 22 in the area to be sent 20) to send the chat information entered in the input box 21.
After the user triggers the sending action, the chat information in the input box 21 is displayed in the sent area 30, and the chat information input in the input box 21 is cleared. At this time, the chat information in the transmitted area 30 can be seen by all users participating in the chat and cannot be modified.
In this embodiment of the present disclosure, the group chat interface is further provided with a group plug-in button 40, and after the user triggers the group plug-in button 40, a plurality of active links may be displayed in the group chat interface.
As shown in fig. 2, the group chat interface displays an active link 1, an active link 2, an active link 3, and an active link N …. The active links may be configured by the operator of the applet, different active links may correspond to different mutual activities, and the user may participate in the corresponding interactive activities by clicking on the active links. Such as application crowd funding, application donation, and the like.
It should be noted that the above-mentioned mutual-assistance applet and mutual-assistance group are only examples, and any applet may fall into the technical solution to be protected in the present specification in practical application.
In the present specification, a preset container interface is configured in the applet, and the container interface is used for calling a web page container using a browser as a kernel.
As previously described, a user may trigger any link in an applet, which may be referred to as a target link.
The client acquires a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link. The access address may be pre-configured by the operator of the applet.
In an embodiment, the client may determine whether the domain name of the target page corresponding to the target link is located in the domain name white list configured by the applet;
in general, the domain name whitelist may be stored in a server corresponding to the applet, so the client may determine, to the server corresponding to the applet, whether the domain name of the target page corresponding to the target link is located in the domain name whitelist configured by the applet. Alternatively, the domain name whitelist may be issued and stored in the applet by the server; therefore, the client can also determine whether the domain name of the target page corresponding to the target link is in the domain name white list configured by the applet.
If the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet, the target page cannot be opened in the traditional applet; thus, a web page for such a target page may be opened by a browser-centric web page container provided herein.
When the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet, responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses the target page corresponding to the access address based on a browser of a kernel;
in addition, if the domain name of the target page corresponding to the target link is located in the domain name white list configured by the applet, the target page can be opened in the traditional applet; thus, a web page that is not browser-centric for such a target page may be opened by a traditional applet; of course, the web page container with the browser as the kernel provided in the specification can be opened.
In an embodiment, the client may perform identity verification on the applet, and determine whether the applet is an authenticated applet based on the identity verification result;
in implementation, when the applet is configured with a preset container interface so that a web page container with a browser as a kernel can be invoked, the applet may be an authenticated applet. Typically, the unique identification of these authenticated applets (e.g., the applet ID) may be stored in an authentication library for identity verification.
Thus, after the client acquires the trigger request, the unique identification of the applet can be subjected to identity verification to determine whether the unique identification of the applet is positioned in the authentication library; if the authentication library is located, the identity verification result is determined to pass, and then the applet is determined to be the authenticated applet; if the identity verification result is not in the authentication library, the identity verification result is determined to be not passed, and then the applet is determined to be a non-authentication applet.
In this embodiment, the authentication library may be stored in an application server corresponding to the application in which the applet is located, and the application server may maintain all the authentication applets in the application, and unique identifiers of the authentication applets are recorded in the authentication library. Thus, the client may send the unique identification of the applet to the application server, which determines whether the applet is an authenticated applet. Alternatively, the authentication library may be stored in the client so that the client can determine if the applet is an authenticated applet locally.
In either way, after determining whether the applet is an authenticated applet, if the applet is an authenticated applet, it is illustrated that the applet may open a target page with a browser-kernel webpage container; thus, the browser-oriented web page container provided by the present specification can be opened.
If the applet is not an authenticated applet, it is indicated that the applet does not have a container interface and therefore cannot open the target page with the browser-kernel webpage container.
In one embodiment, the browser may comprise a system browser and the web page container may comprise a webview container of the system browser.
By applying the embodiment, the webpage container takes the system browser as the kernel, and the system browser is higher in safety than the third-party browser, so that the container interface of the webpage container taking the system browser as the content is configured for the applet, the application of a domain name white list is omitted for the applet, the safety of the applet can be still ensured, and double safety and flexible guarantee are realized.
In this specification, when a web page is opened for a web page container with a browser as a content for an applet, as shown in the lower part of fig. 3, when a web page is opened by calling a web page view (web page container) with a browser as a core, the web page can be displayed as a full-screen web page in the interface of the applet. And when the traditional webview is called to open the webpage, the webpage can only be displayed in the interface of the applet by the webview which is not full screen. According to the method and the device for displaying the web pages, as shown in fig. 3, the web page container with the browser as the kernel can display the web pages in full screen, so that the web page browsing experience is better for users.
According to the application scheme of the applet, a preset container interface is configured in the applet, the container interface is used for calling a webpage container taking a browser as a kernel, and a target page corresponding to a target link configured in the applet is opened by using the webpage container. When the webpage container taking the browser as the kernel opens the target page, the method is not limited by the small program (namely, the application of adding the domain name of the target page into the domain name white list is required), so that the target link corresponding to the target page which is not positioned in the domain name white list can be configured in the small program. Thus, the flexibility of the operation configuration of the small program can be improved because the application of a domain name white list is not needed.
Next, a flowchart of a method for using an applet provided in the present specification is described with reference to fig. 4, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the method may include:
step 410, acquiring a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
step 420, responding to the triggering request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the application address into the webpage container, so that the webpage container calls a third party application corresponding to the application address installed locally through a browser of a kernel;
and step 430, in response to the confirmation operation for calling the third party application, opening the third party application and transmitting the page address to the third party application, so that the third party application displays the target page corresponding to the page address.
This embodiment differs from the previous embodiment of fig. 1 in that in this embodiment, the target link corresponds to a locally installed third party application, and thus the access address corresponding to the target link may include the application address of the third party application, and the web page address of the target page that needs to be opened in the third party application.
In addition, when the web page container invokes the third party application corresponding to the application address installed locally through the browser of the kernel, an interactive interface for confirmation by the user can be jumped out, for example, a prompting message of "whether to call the third party application" and "confirm" and "cancel" buttons are displayed in the interactive interface. If the user clicks the confirm button, a confirm operation for invoking the third party application may be generated, and step 430 is performed; and if the user clicks the cancel button, generating a cancel operation for calling the third party application, and terminating calling the third party application.
By applying the embodiment, based on the secondary confirmation, the request of remotely opening the malicious third-party application caused by the false touch of the user or the malicious software attack is avoided, so that the safe operation of the applet is ensured.
In an embodiment, the client may perform identity verification on the applet, and determine whether the applet is an authenticated applet based on the identity verification result; in the case that the applet is an authenticated applet, step 420 is performed. This embodiment is the same as the identity verification described in fig. 1, and will not be described here again.
In an embodiment, in step 420, the calling the third party application corresponding to the access address installed locally includes:
and calling a third party application corresponding to the access address installed locally based on a deep link (deep) technology.
The deep link technology is a technology for jumping to a third party application (installed locally) corresponding to a triggered link in an object with a jump restriction such as an application, a applet or a short message. The deep link technology breaks the barriers between applications and becomes a bridge for realizing the mutual jump between the applications and the web.
In one embodiment, similar to the foregoing FIG. 1, the browser may comprise a system browser and the web page container may comprise a webview container of the system browser.
According to the application scheme, a preset container interface is configured in the applet, the container interface is used for calling a webpage container taking a browser as an inner core, a third party application corresponding to a target link configured in the applet is called by the webpage container, and a target page is displayed in the third party application. This may enable the invocation of other third party applications in the applet.
Corresponding to the previous embodiments of the method of using the applet, the present description also provides embodiments of an apparatus for using the applet. The embodiment of the device can be implemented by software, or can be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, the device in a logic sense is formed by reading corresponding computer service program instructions in the nonvolatile memory into the memory by the processor of the device where the device is located for operation. In terms of hardware, as shown in fig. 5, a hardware structure diagram of a device where the applet using apparatus is located in the present specification is shown, and in addition to the processor, the network interface, the memory and the nonvolatile memory shown in fig. 5, the device where the apparatus is located in the embodiment generally includes other hardware according to the actual use function of the applet, which is not described herein.
Referring to fig. 6, a block diagram of an apparatus for using an applet according to an embodiment of the present disclosure corresponds to the embodiment shown in fig. 1, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the device comprises:
an acquiring unit 610, configured to acquire a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
the response unit 620, in response to the trigger request, calls the web page container based on the container interface corresponding to the target link, and transmits the access address to the web page container, so that the web page container accesses the target page corresponding to the access address based on the browser of the kernel;
a display unit 630 for displaying the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
In an exemplary embodiment, the apparatus further comprises:
a determining unit, configured to determine whether a domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet.
In an exemplary embodiment, the apparatus further comprises:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
In an exemplary embodiment, the browser comprises a system browser and the web page container comprises a webview container of the system browser.
Referring to fig. 7, a block diagram of an apparatus for using an applet according to an embodiment of the present disclosure corresponds to the embodiment shown in fig. 4, where a preset container interface is configured in the applet, and the container interface is used to call a web page container using a browser as a kernel; the device comprises:
an obtaining unit 710, configured to obtain a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit 720 is used for responding to the trigger request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the application address into the webpage container so that the webpage container can call the third party application corresponding to the application address which is locally installed through the browser of the kernel;
and the display unit 730 is used for responding to the confirmation operation for calling the third party application, opening the third party application and transmitting the page address into the third party application so that the third party application displays the target page corresponding to the page address.
In an exemplary embodiment, the apparatus further comprises:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
In an exemplary embodiment, the responding unit 720 invokes a third party application corresponding to the access address installed locally, including:
and calling the third party application corresponding to the access address installed locally based on the deep link technology.
In an exemplary embodiment, the browser comprises a system browser and the web page container comprises a webview container of the system browser.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Fig. 6 and 7 above describe internal functional modules and structural schematic of the applet using apparatus, the substantial execution subject of which may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform an embodiment of a method of using any of the applets described above.
In the above embodiment of the electronic device, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the aforementioned memory may be a read-only memory (ROM), a random access memory (random access memory, RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the electronic device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims (17)

1. The application method of the applet comprises the steps that a preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses a target page corresponding to the access address based on a browser of a kernel;
displaying the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
2. The method of claim 1, the method further comprising:
determining whether the domain name of the target page corresponding to the target link is positioned in a domain name white list configured by the applet;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the trigger request based on a container interface corresponding to the target link under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet.
3. The method of claim 1, the method further comprising:
performing identity verification on the applet;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the triggering request based on the container interface corresponding to the target link under the condition that the applet is an authenticated applet.
4. The method of claim 1, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
5. The application method of the applet comprises the steps that a preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the method comprises the following steps:
acquiring a trigger request generated after a target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
responding to the trigger request, calling the webpage container based on a container interface corresponding to the target link, and transmitting the application address into the webpage container so that the webpage container can call a third party application corresponding to the application address which is locally installed through a browser of a kernel;
and responding to a confirmation operation for calling the third party application, opening the third party application and transmitting the page address into the third party application so that the third party application displays a target page corresponding to the page address.
6. The method of claim 5, the method further comprising:
performing identity verification on the applet;
determining whether the applet is an authenticated applet based on the identity verification result;
the responding to the triggering request, based on the container interface corresponding to the target link, comprises the following steps:
and responding to the triggering request based on the container interface corresponding to the target link under the condition that the applet is an authenticated applet.
7. The method of claim 5, the invoking the third party application corresponding to the access address installed locally, comprising:
and calling the third party application corresponding to the access address installed locally based on the deep link technology.
8. The method of claim 5, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
9. The device for using the applet is characterized in that a preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the device comprises:
the acquisition unit acquires a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link;
the response unit is used for responding to the trigger request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the access address into the webpage container so that the webpage container accesses the target page corresponding to the access address based on the browser of the kernel;
the display unit displays the target page in the applet; the target page comprises a page which is not located in a domain name white list of the applet configuration.
10. The apparatus of claim 9, the apparatus further comprising:
a determining unit, configured to determine whether a domain name of the target page corresponding to the target link is located in a domain name white list configured by the applet; and executing the response unit under the condition that the domain name of the target page corresponding to the target link is not located in the domain name white list configured by the applet.
11. The apparatus of claim 9, the apparatus further comprising:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
12. The apparatus of claim 9, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
13. The device for using the applet is characterized in that a preset container interface is configured in the applet, and the container interface is used for calling a webpage container taking a browser as a kernel; the device comprises:
the acquisition unit acquires a trigger request generated after the target link in the applet is triggered; the triggering request carries an access address corresponding to the target link, wherein the access address comprises an application address and a page address;
the response unit is used for responding to the trigger request, calling the webpage container based on the container interface corresponding to the target link, and transmitting the application address into the webpage container so that the webpage container can call a third party application corresponding to the application address which is locally installed through a browser of a kernel;
and the display unit is used for responding to the confirmation operation for calling the third party application, opening the third party application and transmitting the page address into the third party application so that the third party application displays the target page corresponding to the page address.
14. The apparatus of claim 13, the apparatus further comprising:
the verification unit is used for verifying the identity of the applet; determining whether the applet is an authenticated applet based on the identity verification result; and executing the response unit in case the applet is an authenticated applet.
15. The apparatus of claim 13, wherein the response unit invokes a third party application corresponding to the access address installed locally, including:
and calling the third party application corresponding to the access address installed locally based on the deep link technology.
16. The apparatus of claim 13, the browser comprising a system browser, the web page container comprising a webview container of the system browser.
17. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of the preceding claims 1-4 and/or 5-8.
CN202111315892.0A 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment Active CN114217866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111315892.0A CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111315892.0A CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Publications (2)

Publication Number Publication Date
CN114217866A CN114217866A (en) 2022-03-22
CN114217866B true CN114217866B (en) 2023-09-19

Family

ID=80696662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111315892.0A Active CN114217866B (en) 2021-11-08 2021-11-08 Application method and device of applet and electronic equipment

Country Status (1)

Country Link
CN (1) CN114217866B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516885A (en) * 2013-09-26 2015-04-15 腾讯科技(深圳)有限公司 Implementation method and device of browse program double-kernel assembly
WO2015176435A1 (en) * 2014-05-21 2015-11-26 广州市动景计算机科技有限公司 Method and terminal for javascript-based page customization
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN110020338A (en) * 2017-08-17 2019-07-16 腾讯科技(深圳)有限公司 Browser, webpage deployment method and equipment
CN110489041A (en) * 2019-07-12 2019-11-22 北京字节跳动网络技术有限公司 Method, apparatus, equipment and the medium of small routine dragging element automatic aligning
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device
CN110795663A (en) * 2019-10-10 2020-02-14 上海上湖信息技术有限公司 Webpage loading method and equipment
CN110825451A (en) * 2019-09-30 2020-02-21 五八有限公司 Method and device for configuring and verifying small program page address
CN112162871A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 Method, device and storage medium for data exchange between applet and webview
CN112416496A (en) * 2020-11-24 2021-02-26 平安普惠企业管理有限公司 Page display method and device and storage medium
CN112817656A (en) * 2021-01-29 2021-05-18 北京百度网讯科技有限公司 Applet running method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500210A (en) * 2013-09-27 2014-01-08 北京奇虎科技有限公司 Method, device and browser for carrying out webpage loading

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516885A (en) * 2013-09-26 2015-04-15 腾讯科技(深圳)有限公司 Implementation method and device of browse program double-kernel assembly
WO2015176435A1 (en) * 2014-05-21 2015-11-26 广州市动景计算机科技有限公司 Method and terminal for javascript-based page customization
WO2017133499A1 (en) * 2016-02-05 2017-08-10 腾讯科技(深圳)有限公司 Webpage access method and device
CN110020338A (en) * 2017-08-17 2019-07-16 腾讯科技(深圳)有限公司 Browser, webpage deployment method and equipment
CN110489041A (en) * 2019-07-12 2019-11-22 北京字节跳动网络技术有限公司 Method, apparatus, equipment and the medium of small routine dragging element automatic aligning
CN110750761A (en) * 2019-09-20 2020-02-04 阿里巴巴集团控股有限公司 Applet access control method and device
CN110825451A (en) * 2019-09-30 2020-02-21 五八有限公司 Method and device for configuring and verifying small program page address
CN110795663A (en) * 2019-10-10 2020-02-14 上海上湖信息技术有限公司 Webpage loading method and equipment
CN112162871A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 Method, device and storage medium for data exchange between applet and webview
CN112416496A (en) * 2020-11-24 2021-02-26 平安普惠企业管理有限公司 Page display method and device and storage medium
CN112817656A (en) * 2021-01-29 2021-05-18 北京百度网讯科技有限公司 Applet running method and device

Also Published As

Publication number Publication date
CN114217866A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
US10834102B2 (en) Client-side attack detection in web applications
US10929266B1 (en) Real-time visual playback with synchronous textual analysis log display and event/time indexing
US11158207B1 (en) Context-aware cybersecurity training systems, apparatuses, and methods
Felt et al. Phishing on mobile devices
US9824609B2 (en) Mock attack cybersecurity training system and methods
Roesner et al. Securing embedded user interfaces: Android and beyond
Chin et al. Measuring user confidence in smartphone security and privacy
Krol et al. Don't work. Can't work? Why it's time to rethink security warnings
EP3454248A1 (en) Application decryption method, terminal and non-transitory computer-readable storage medium
CN107872438B (en) Verification method, device and terminal
CN102902580B (en) A kind of program callback method and device
Crager et al. Information leakage through mobile motion sensors: User awareness and concerns
EP3955107B1 (en) Sub-application development method, apparatus, computer device, and storage medium
Tuncay et al. See no evil: phishing for permissions with false transparency
Jakobsson et al. Spoofkiller: You can teach people how to pay, but not how to pay attention
Marforio et al. Hardened setup of personalized security indicators to counter phishing attacks in mobile banking
Harkin et al. Operating-system design and its implications for victims of family violence: the comparative threat of smart phone spyware for Android versus iPhone users
WO2023020619A1 (en) Content display method and apparatus, device, computer-readable storage medium, computer program and computer program product
CN113949560A (en) Network security identification method, device, server and storage medium
JP5563951B2 (en) Information input method, information input system, information input device, and computer program
Javed et al. Look before you authorize: Using eye-tracking to enforce user attention towards application permissions
EP3667527A1 (en) Client server system
CN114217866B (en) Application method and device of applet and electronic equipment
US20190156071A1 (en) Using decoy icons to prevent unwanted user access to applications on a user computing device
Luo Attacks and countermeasures for WebView on mobile systems

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