CN108920366B - Sub-application debugging method, device and system - Google Patents
Sub-application debugging method, device and system Download PDFInfo
- Publication number
- CN108920366B CN108920366B CN201810691583.5A CN201810691583A CN108920366B CN 108920366 B CN108920366 B CN 108920366B CN 201810691583 A CN201810691583 A CN 201810691583A CN 108920366 B CN108920366 B CN 108920366B
- Authority
- CN
- China
- Prior art keywords
- application
- parent application
- parent
- sub
- child
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of computers, in particular to a method, a device and a system for debugging a child application, wherein an operation instruction of the child application is received through a first parent application; wherein, the operation instruction at least comprises a sub-application identifier; sending at least the child application identification to the first parent application server; receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, wherein the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform; and downloading the sub-application according to the download address of the sub-application, running the sub-application after the download is finished, and debugging the sub-application according to the running result, so that a download running interface is provided between the first parent application and a second parent application developer tool through a second parent application open platform, and the direct running and debugging of the sub-application developed based on the first parent application developer tool through the second parent application are realized.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a system for debugging sub-application.
Background
With the development of computer technology, more and more application programs are developed and used, and users can install different application programs on computer equipment according to their needs to realize different functions. Often after an application is developed, it needs to be debugged to be able to perfect and repair the application as much as possible at the development stage.
However, in the prior art, development tools of different applications are generally independent from each other and belong to different application systems, and functions developed by the development tool based on the first application cannot be directly run and debugged by using the second application.
Disclosure of Invention
The embodiment of the invention provides a sub-application debugging method, a device and a system, which are used for solving the problem that development tools of different application programs are independent from the application program in the prior art, and the development functions of developer tools based on other application programs cannot be operated and debugged through the application program.
The embodiment of the invention provides the following specific technical scheme:
one embodiment of the present invention provides a sub-application debugging method, including: the method comprises the following steps:
receiving an operation instruction of a child application through a first parent application; wherein, the running instruction at least comprises a sub-application identifier;
sending at least the child application identification to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, wherein the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform;
and downloading the sub-application according to the download address of the sub-application, running the sub-application after the download is finished, and debugging the sub-application according to a running result.
With reference to an embodiment of the present invention, receiving, by a first parent application, an operation instruction of a child application specifically includes:
scanning the two-dimensional code of the sub application through a first parent application, and receiving an operation instruction of the sub application; and the two-dimensional code is generated by a second parent application developer tool according to the received development code of the child application.
In connection with one embodiment of the invention, further comprising:
sending the user identity information of the first parent application to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, specifically including:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to a second parent application open platform and the second parent application open platform authenticates the child application identifier and the user identity information of the first parent application;
with reference to an embodiment of the present invention, after the authentication result indicates that the first parent application server calls the second parent application open platform to determine to obtain the user identity information of the second parent application corresponding to the user identity information of the first parent application, at least the user identity information of the second parent application and the child application identifier are sent to the second parent application open platform, and the second parent application open platform authenticates at least the user identity information of the second parent application and the child application identifier.
With reference to an embodiment of the present invention, the execution instruction further includes time information for generating a two-dimensional code;
the authentication result is obtained after the second parent application open platform judges whether the user identity information of the second parent application has the access right to the child application corresponding to the child application identifier, and/or judges whether the two-dimensional code is valid according to the time information of generating the two-dimensional code; and the time information for generating the two-dimensional code is sent to the second parent application open platform after the first parent application server receives the time information sent by the first parent application.
An embodiment of the present invention provides a sub-application debugging apparatus, including:
the first receiving module is used for receiving the running instruction of the child application through the first parent application; wherein, the running instruction at least comprises a sub-application identifier;
a sending module, configured to send at least the child application identifier to a first parent application server;
a second receiving module, configured to receive a download address of a sub-application corresponding to the sub-application identifier, where the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform;
and the processing module is used for downloading the sub-application according to the download address of the sub-application, running the sub-application after the download is finished, and debugging the sub-application according to a running result.
With reference to an embodiment of the present invention, the first parent application receives an operation instruction of a child application, and the first receiving module is specifically configured to:
scanning the two-dimensional code of the sub application through a first parent application, and receiving an operation instruction of the sub application; and the two-dimensional code is generated by a second parent application developer tool according to the received development code of the child application.
In combination with an embodiment of the present invention, the sending module is further configured to:
sending the user identity information of the first parent application to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, where the second receiving module is specifically configured to:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; and the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to a second parent application open platform and performs authentication by the second parent application open platform.
With reference to an embodiment of the present invention, after the authentication result indicates that the first parent application server calls the second parent application open platform to determine to obtain the user identity information of the second parent application corresponding to the user identity information of the first parent application, at least the user identity information of the second parent application and the child application identifier are sent to the second parent application open platform, and the second parent application open platform authenticates at least the user identity information of the second parent application and the child application identifier.
One embodiment of the present invention provides a sub-application debugging system, which at least includes: a first parent application client, a first parent application server and a second parent application open platform, wherein,
the first parent application client is used for receiving an operation instruction of a child application through the first parent application, at least sending a child application identifier to the first parent application server, receiving a download address of the child application corresponding to the child application identifier returned by the first parent application server, downloading the child application according to the download address of the child application, operating the child application after the download is completed, and debugging the child application according to an operation result, wherein the operation instruction at least comprises the child application identifier;
the first parent application server is used for receiving the child application identifier at least sent by the first parent application client, sending the child application identifier to the second parent application open platform at least, and returning the download address of the child application to the first parent application client when receiving the download address of the child application returned by the second parent application open platform;
and the second parent application open platform is used for obtaining the download address of the child application corresponding to the received child application identifier and returning the download address of the child application to the first parent application server.
In connection with one embodiment of the invention, further comprising: a second parent application developer tool;
the second parent application developer tool is used for generating the two-dimensional code of the child application according to the received development code of the child application;
when the running instruction of the child application is received through the first parent application, the first parent application client is specifically configured to:
and scanning the two-dimensional code of the sub-application through the first parent application, and receiving the operation instruction of the sub-application.
In connection with an embodiment of the invention, the first parent application client is further configured to:
sending the user identity information of the first parent application to a first parent application server;
the second parent application open platform is further configured to:
before obtaining the download address of the sub-application corresponding to the sub-application identifier, at least authenticating the received sub-application identifier and the user identity information of the first parent application, and determining that the authentication result is authenticated; and the user identity information of the first parent application is sent to the second parent application open platform after the first parent application server receives the information sent by the first parent application client.
In connection with an embodiment of the invention, the first parent application server is further configured to:
calling the second parent application open platform to determine to acquire user identity information of a second parent application corresponding to the user identity information of the first parent application, and then sending at least the user identity information of the second parent application and the child application identifier to the second parent application open platform;
when authenticating at least the received child application identifier and the user identity information of the first parent application, the second parent application opens the platform, which is specifically configured to:
and authenticating at least the user identity information and the sub-application identification of the second parent application.
With reference to an embodiment of the present invention, the execution instruction further includes time information for generating a two-dimensional code;
the first parent application client is further configured to: sending the time information of the generated two-dimensional code to the second parent application open platform through the first parent application server;
when authenticating at least the user identity information and the sub-application identifier of the second parent application, the second parent application opens the platform, which is specifically configured to:
and judging whether the user identity information of the second parent application has the access right to the child application corresponding to the child application identifier, and/or judging whether the two-dimensional code is valid according to the time information of generating the two-dimensional code, if so, determining that the authentication result is authentication passing, and otherwise, determining that the authentication result is authentication failure.
Another embodiment of the present invention provides an electronic device, including:
at least one memory for storing program instructions;
and the at least one processor is used for calling the program instructions stored in the memory and executing any one of the seed application debugging methods according to the obtained program instructions.
Another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of any of the above-mentioned methods for debugging a seed application.
In the embodiment of the invention, an operation instruction of a child application is received through a first parent application; wherein, the running instruction at least comprises a sub-application identifier; sending at least the child application identification to a first parent application server; receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, wherein the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform; downloading the sub-application according to the download address of the sub-application, and running the sub-application after the download is completed, debugging the child application according to the operation result, so as to provide a downloading operation interface between the first parent application and a developer tool of the second parent application through the open platform of the second parent application, the download address of the sub-application of the second parent application can be provided for the first parent application, the sub-application can be directly run in the second parent application, so that the running effect of the sub-application in the first parent application can be intuitively known, the method achieves the purpose of debugging and developing according to the operation effect, realizes the intercommunication of the child application in different application programs, realizes the operation and debugging of the child application developed based on the developer tool of the first parent application through the second parent application, and provides an effective way for the developer to debug the child application in the second parent application.
Drawings
FIG. 1 is a schematic structural diagram of a sub-application debugging system according to an embodiment of the present invention;
FIG. 2 is a timing diagram of a sub-application debugging method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a sub-application debugging apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 5 is a schematic diagram of a client structure 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate an understanding of the embodiments of the present invention, a few concepts are briefly introduced below:
the small program: the WeChat applet is an application which can be used without downloading and installing, the application becomes accessible, and a user can use the application quickly and conveniently through a plurality of entrances such as scanning two-dimensional codes, searching, public numbers and the like.
Enterprise WeChat: is a mobile office communication tool which is introduced by Tencent and is created for enterprises.
WeChat: an instant messaging tool for individuals.
WeChat developer tool: the integrated development environment provided by the WeChat team for the applet developers can integrate the functions of coding, debugging, compiling, previewing and uploading and the like.
WeChat open platform: the method provides an interface for the third-party application program, so that the user can publish the content of the third-party application program to friends or share the content to a friend circle, and the content of the third-party application program can be spread more widely by means of a WeChat platform.
At present, generally, development tools of different application programs are independent from each other and belong to different application systems, and functions developed by a development tool based on a first application program cannot be directly operated and debugged by using a second application program, for example, a user-issued applet can be operated not only in a WeChat mode but also in a WeChat mode by associating the WeChat applet with an enterprise WeChat mode, so that after the applet is developed by a WeChat developer tool, the operating effects of the applet on the WeChat mode and the enterprise WeChat mode need to be debugged, but the debugging applet can be operated by the WeChat developer tool and the WeChat developer tool does not support a user login interface of the enterprise WeChat mode, so that the developer cannot effectively debug the developed applet in the enterprise WeChat mode and cannot debug the operating effects of the applet in the enterprise WeChat mode in a development stage, there is no relevant technical solution for this in the prior art. In the embodiment of the invention, the transfer interface is provided for the WeChat developer tool and the enterprise WeChat client mainly through the WeChat opening platform, so that the small program developed by the WeChat developer tool can be operated on the enterprise WeChat client, and the debugging of the small program in the enterprise WeChat client is realized according to the operation effect of the small program on the enterprise WeChat client.
Fig. 1 is a schematic structural diagram of a child application debugging system according to an embodiment of the present invention, which at least includes a second parent application developer tool, a first parent application client, a first parent application server, and a second parent application open platform.
The second parent application developer tool and the first parent application client are user-oriented terminals, and the terminals can be any intelligent device such as a smart phone, a tablet computer and a portable personal computer. Various Applications (APP) can be installed on the terminal, such as enterprise wechat, wechat developer tools, etc., and the second parent Application developer tool, the first parent Application client, the first parent Application server, and the second parent Application open platform shown in fig. 1 are only one possible schematic.
The first parent application server and the second parent application open platform can be servers for providing corresponding services, wherein the first parent application server represents a background server for providing services for the first parent application client, and the second parent application open platform represents a background server for providing interfaces and services for the third-party application program.
The terminal and the server are connected through the Internet to realize mutual communication.
The server may be one server, a server cluster formed by a plurality of servers, or a cloud computing center.
Wherein the parent application is a native application program that runs directly on the operating system. The parent application may be an application program carrying child applications, and provides an environment for implementing the child applications. For example, an operating system may be run on the terminal, a parent application may be run on the operating system, and a child application may be generated in an environment provided by the parent application. The terminal can obtain the sub-application identification from a local or server through the parent application.
An Operating System (OS) is a computer program for managing and controlling hardware and software resources of a terminal, and is the most basic System software directly running on a bare computer of a user terminal, and an application program needs to run under the support of the Operating System. The operating system may be a desktop operating system such as a Windows (Windows) operating system, a Linux operating system, or a Mac OS (apple desktop operating system), or may be a mobile operating system such as an iOS (apple mobile terminal operating system) or an Android operating system. The parent application may be a social application, a dedicated application that specifically supports the child applications, a file management application, a mail application, or a gaming application, among others. The Social application includes an instant messaging application, an SNS (Social Network Service) application, or a live application.
The child application is an application that can run in the environment provided by the parent application. The sub-application may specifically be a social application, a file management application, a mail application, or a game application, etc. For example, the parent application may be a WeChat program (WeChat) or an enterprise WeChat, and the corresponding child application may be referred to as an applet.
For example, the first parent application is an enterprise wechat application, the second parent application is a wechat application, and the child application is an applet, so that a developer can download a wechat developer tool to a terminal, development of the applet is performed on the terminal through the wechat developer tool, and for example, the developer can download the enterprise wechat in the terminal.
Referring to fig. 1, in a possible embodiment, a developer develops an applet through a WeChat developer tool, for example, the development includes writing a development code of the applet, compiling the development code, and the like, and after the developer develops the applet, the developer needs to debug the applet and then issue the applet after debugging is completed, so that errors of the applet can be checked and repaired as much as possible in a development stage, and reliability of actual operation of the issued applet is improved.
In order to solve the problem that development tools of different application programs are independent from the application program in the prior art and functions developed by developer tools based on other application programs cannot be operated and debugged through the application program, namely the problem that small programs developed by developer tools based on WeChat cannot be directly operated and debugged through WeChat of enterprises, the embodiment of the invention provides a sub-application debugging system, which specifically comprises:
1) a second parent application developer tool.
And the second parent application developer tool is used for generating the two-dimensional code of the child application according to the received development code of the child application.
That is to say, in the embodiment of the present invention, in the development phase, the developer may upload the development code of the child application to the second parent application developer tool, and the second parent application developer tool may generate the two-dimensional code of the child application, where the two-dimensional code at least carries the child application identifier, and the two-dimensional code may also be regarded as the debugging two-dimensional code of the child application.
Furthermore, the two-dimensional code can also carry developer identity information, time information for generating the two-dimensional code and the like.
2) A first parent application client.
The first parent application client is used for receiving an operation instruction of the child application through the first parent application, at least sending the identifier of the child application to the first parent application server, receiving a download address of the child application corresponding to the identifier of the child application returned by the first parent application server, downloading the child application according to the download address of the child application, operating the child application after the download is completed, and debugging the child application according to an operation result, wherein the operation instruction at least comprises the identifier of the child application.
The embodiment of the present invention provides a possible implementation manner for a first parent application client to receive an operation instruction of a child application through a first parent application, where the first parent application client is specifically configured to: scanning the two-dimensional code of the sub-application through the first parent application, and receiving an operation instruction of the sub-application; and the two-dimensional code is generated by the second parent application developer tool according to the received development code of the child application.
That is to say, the first parent application client may scan the generated two-dimensional code, that is, may be considered to receive the operation instruction of the child application, and may analyze information such as the child application identifier in the two-dimensional code.
Further, the first parent application client is further configured to: and sending the user identity information of the first parent application to the first parent application server.
When receiving the download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, the method specifically includes:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; and the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to the second parent application open platform and the second parent application open platform performs authentication.
That is to say, in the embodiment of the present invention, the second parent application open platform may directly return the download address of the child application, or may perform authentication, and only when the authentication is passed, the download address of the child application is returned, so that the reliability of running and debugging of the child application may be improved.
And the authentication result is obtained by calling a second parent application open platform for the first parent application server to determine to obtain the user identity information of the second parent application corresponding to the user identity information of the first parent application, at least sending the user identity information and the child application identifier of the second parent application to the second parent application open platform, and authenticating at least the user identity information and the child application identifier of the second parent application by the second parent application open platform.
In the embodiment of the invention, at least the user identity information and the sub-application identifier of the second parent application are authenticated aiming at the second parent application open platform, and a plurality of possible implementation modes are provided, wherein the authentication result is that the second parent application open platform judges whether the user identity information of the second parent application has the access right to the sub-application corresponding to the sub-application identifier; and/or judging whether the two-dimensional code is valid according to the time information of the two-dimensional code; the operation instruction further comprises time information for generating the two-dimensional code, and the time information for generating the two-dimensional code is sent to the first parent application server by the first parent application client through the first parent application and then sent to the second parent application open platform by the first parent application server. Specifically, the detailed description will be made later when the first parent application server and the second parent application open platform are described.
3) A first parent application server.
And the first parent application server is used for receiving the child application identifier at least sent by the first parent application client, sending the child application identifier to the second parent application open platform at least, and returning the download address of the child application to the first parent application client when receiving the download address of the child application returned by the second parent application open platform.
Further, the first parent application server is further configured to: and after receiving the user identity information of the first parent application corresponding to the user identity information of the second parent application sent by the first parent application client, sending the corresponding user identity information of the first parent application to the second parent application open platform.
4) The second parent application opens the platform.
And the second parent application open platform is used for obtaining the download address of the child application corresponding to the received child application identifier and returning the download address of the applet to the first parent application server.
Further, in the embodiment of the present invention, the second parent application open platform performs authentication, obtains the download address of the child application after the authentication is passed, and returns the download address to the first parent application server, and specifically, the second parent application open platform is further configured to: before obtaining the download address of the sub-application corresponding to the sub-application identifier, at least authenticating the received sub-application identifier and the user identity information of the first parent application, and determining that the authentication result is that the authentication is passed; and the user identity information of the first parent application is sent to the second parent application open platform after the first parent application server receives the information sent by the first parent application client.
Further, in this embodiment of the present invention, the first parent application server is further configured to: and after the second parent application open platform is called to determine to acquire the user identity information of the second parent application corresponding to the user identity information of the first parent application, at least the user identity information and the child application identifier of the second parent application are sent to the second parent application open platform.
When authenticating at least the received child application identifier and the user identity information of the first parent application, the second parent application opens the platform, which is specifically configured to: and authenticating at least the user identity information and the sub-application identification of the second parent application.
In the embodiment of the present invention, the second parent application open platform may be considered as a second parent application open platform, a transfer interface is provided between the second parent application developer tool and the first parent application client, authentication is performed based on the second parent application open platform, and a download interface is provided, specifically, when authentication is performed, a possible implementation manner is provided, and the operation instruction further includes time information for generating the two-dimensional code; the second parent application open platform is specifically configured to: and judging whether the user identity information of the second parent application has the access authority of the child application corresponding to the child application identifier, and/or judging whether the two-dimensional code is valid according to the time information for generating the two-dimensional code, if so, determining that the authentication result is authentication passing, otherwise, determining that the authentication result is authentication failure.
That is to say, in the embodiment of the present invention, several possible authentication manners are provided, and the access right of the user identity information of the second parent application corresponding to the user identity information of the first parent application is authenticated, or the validity of the two-dimensional code is authenticated, or both of them need to be authenticated.
Therefore, if the authentication is passed, the second parent application open platform returns the download address of the child application to the first parent application server, the first parent application server sends the download address of the child application to the first parent application client, and the first parent application client can obtain the download address of the child application, download and run the child application.
Further, if the authentication fails, a possible implementation manner is provided in the embodiment of the present invention, where the authentication result returned by the second parent application open platform is authentication failure, and the first parent application client is further configured to prompt an abnormal message if it is determined that the authentication result is authentication failure.
The reason is that the two-dimensional code of the child application may be invalid or incorrect, or the user identity of the corresponding first parent application does not have access right to the child application, and at this time, the child application cannot be run and debugged through the first parent application, and abnormal information is prompted, so that the security and effectiveness of debugging can be improved, and other people can be prevented from tampering and debugging the child application.
Thus, in the embodiment of the invention, the second parent application opens the platform, the authentication is carried out, and a downloading operation interface is provided between the first parent application and the second parent application developer tool, when the first parent application client runs the child application, the second parent application opens the platform to authenticate, when the authentication is passed, the download address of the sub-application is issued, after the first parent application client receives the download address, the sub-application can be downloaded and operated, the sub-application developed based on the developer tool of the second parent application can be directly operated on the first parent application, so that the operation effect of the sub-application on the first parent application can be intuitively known, the method achieves the purpose of debugging and developing according to the operation effect, provides an effective way for a developer to debug the child application of the first parent application, and lays a foundation for further and deep exploration of the child application of the first parent application.
Optionally, the internet described above uses standard communication techniques and/or protocols. The internet is typically the internet, but can be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline or wireless Network, a private Network, or any combination of virtual private networks. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperTextMark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
It should be noted that the schematic diagram of the system structure in the embodiment of the present invention is to more clearly illustrate the technical solution in the embodiment of the present invention, and does not limit the technical solution provided in the embodiment of the present invention, and for other system structures and service applications, the technical solution provided in the embodiment of the present invention is also applicable to similar problems.
In each embodiment of the present invention, a sub-application debugging method is schematically illustrated by taking an example of a system structure diagram shown in fig. 1.
Based on the above embodiment, taking the first parent application as an enterprise wechat, the second parent application as a wechat, and the child application as an applet, the first parent application server is an enterprise wechat server, the first parent application client is an enterprise wechat client, the second parent application developer tool is a wechat developer tool, and the second parent application open platform is a wechat open platform, which is shown in fig. 2 and is a sequence diagram of a child application debugging method in the embodiment of the present invention, where the method includes:
step 200: the developer uploads the development code of the applet to the WeChat developer tool.
For example, after the developer writes the development code in the WeChat developer tool, that is, after the basic code is completed, the developer can upload the development code by clicking a preset "preview" button.
Step 201: the WeChat developer tool returns the generated two-dimensional code.
Specifically, in the embodiment of the present invention, after receiving the development code, the wechat developer tool may perform operations such as compiling, and generate a two-dimensional code corresponding to the applet.
The two-dimensional code at least comprises an applet identifier, developer identity information and the like, and can also comprise time information for generating the two-dimensional code and the like.
Further, to improve security, when generating the two-dimensional code, the embodiment of the present invention further includes: at least the applet identification and the developer identity information are encrypted.
In this way, what the WeChat developer tool returns is an encrypted two-dimensional code carrying at least the applet identifier and the developer identity information, where an encryption algorithm is used in encryption, which is not limited in the embodiment of the present invention.
Step 202: and the enterprise wechat client receives the running instruction of the small program by scanning the two-dimensional code of the small program.
For example, the developer scans the two-dimensional code using a "scan" function in the enterprise WeChat client. Thus, the operation instruction is sent through the two-dimensional code, and the information of the two-dimensional code is also the information in the operation instruction, that is, the operation instruction at least includes the applet identifier and the developer identity information.
Thus, the enterprise wechat client acquires the applet identifier and the developer identity information at least included in the running instruction.
Step 203: and the enterprise wechat client side at least sends the applet identification and the user identity information of the enterprise wechat corresponding to the enterprise wechat client side to the enterprise wechat server.
Specifically, after scanning the two-dimensional code, the enterprise wechat client analyzes the information in the two-dimensional code to obtain the applet identification and the developer identity information, and sends the user identity information of the enterprise wechat corresponding to the enterprise wechat client to the enterprise wechat server together.
The enterprise wechat client can decrypt and obtain the applet identification and the developer identity information in the two-dimensional code by adopting a corresponding decryption algorithm.
Furthermore, since the final authentication is performed by the WeChat open platform, a possible implementation manner is provided in the embodiment of the invention when decrypting, the enterprise WeChat client does not decrypt, and directly sends the encrypted data in the two-dimensional code, which is related to the applet identifier and the developer identity information, to the enterprise WeChat server, and simultaneously sends the encrypted data of the user identity information of the enterprise WeChat corresponding to the enterprise WeChat client to the enterprise WeChat server together, so that the enterprise WeChat server sends the encrypted data to the WeChat open platform again to decrypt the related information and authenticate.
Step 204: and the enterprise WeChat server calls the WeChat opening platform to authenticate.
When step 204 is executed, the method specifically includes:
firstly, the enterprise wechat server calls a wechat open platform to acquire wechat user identity information corresponding to the user identity information of the enterprise wechat.
Specifically, a mapping relationship between the user identity information of the enterprise wechat and the user identity information of the wechat is preset, and the user identity information of the corresponding wechat can be obtained according to the user identity information of the enterprise wechat, where the user identity information of the wechat is, for example, user information (uin).
And then, after successfully obtaining the identity information, the small program identification of the WeChat are at least sent to the WeChat open platform, so that the WeChat open platform carries out authentication operation.
Further, the enterprise wechat server can also send the identity information of the developer to the wechat open platform.
Step 205: and the micro-letter opening platform at least authenticates the user identity information of the micro-letter and the small program identification corresponding to the user identity information of the enterprise micro-letter.
Further, the time information for generating the two-dimensional code can also be sent to the wechat open platform.
Then, when step 205 is executed, the method specifically includes: and judging whether the user identity information of the corresponding WeChat has the access authority to the applet identification, and/or judging whether the two-dimensional code is valid according to the time information for generating the two-dimensional code, if so, determining that the authentication result is authentication passing, otherwise, determining that the authentication result is authentication failure.
When judging whether the user identity information of the WeChat has the access right to the applet identification, the embodiment of the invention provides the following modes:
the first mode is as follows: further, in the embodiment of the present invention, when the developer develops the applet in the applet developer tool, the user identity information of the applet having the access right to the applet may also be preset, and may be the own applet or the set applet of another person, for example, the developer may deliver the debugging job of the applet to a debugger for debugging, and at this time, the user identity information of the applet of the debugger may be set to have the access right to the applet. Furthermore, one or more user identity information of the WeChat with the access right may be set, which is not limited in the embodiment of the present invention.
Thus, when determining whether the user identity information of the corresponding WeChat has the access right to the applet identifier, the method specifically includes: and judging whether the user identity information of the WeChat is the preset user identity information of the WeChat with the access authority, if so, determining that the user identity information of the WeChat has the access authority to the small program identifier, and otherwise, not having the access authority.
That is to say, in the first mode of the embodiment of the present invention, the user identity information of the WeChat with the access right may be preset, and then matching is performed according to the preset user identity information of the WeChat with the access right, so as to determine whether the user identity information of the WeChat corresponding to the user identity information of the enterprise WeChat has the access right for the applet.
The second mode is as follows: and the enterprise wechat server sends the identity information of the developer to the wechat open platform.
The WeChat opening platform judges whether the user identity information and the developer identity information of the corresponding WeChat are consistent, if so, the WeChat opening platform judges that the WeChat has the access right, otherwise, the WeChat does not have the access right.
That is to say, in the second mode of the embodiment of the present invention, it is not necessary for the developer to set the user identity information of the WeChat with the access right in advance, and it is also possible to directly determine whether the user identity information of the WeChat corresponding to the user identity information of the enterprise WeChat has the access right through the developer identity information.
The embodiment of the invention also provides a possible implementation mode when judging whether the two-dimensional code is valid according to the time information for generating the two-dimensional code, presetting a time length threshold value, acquiring the current time, determining the time length between the time information for generating the two-dimensional code and the current time, judging whether the time length is not greater than the preset time length threshold value, if so, determining that the two-dimensional code is valid, otherwise, determining that the two-dimensional code is invalid.
Of course, the embodiments of the present invention are not limited to the above authentication methods, and for example, whether the two-dimensional code is correct or not may also be determined.
Step 206: and the micro-trust opening platform returns an authentication result to the enterprise micro-trust server.
Specifically, if the authentication result is that the authentication is passed, the download address of the applet corresponding to the applet identifier is obtained, and the download address of the applet corresponding to the applet identifier is returned, and if the authentication result is that the authentication is failed, an authentication failure message is returned.
The downloading address of the applet is the downloading address of the debugging (debug) version of the applet, namely the downloading address of the applet version developed by the WeChat developer tool.
Step 207: and the enterprise wechat server sends the authentication result to the enterprise wechat client.
Step 208: and the enterprise WeChat client downloads and runs the small program or prompts abnormal information according to the authentication result.
Specifically, two cases can be classified:
in the first case: and if the authentication result is determined to be that the authentication is passed, downloading the applet according to the download address of the applet carried in the authentication result, and operating the applet after the download is completed.
And further, debugging the small program according to the operation result.
Therefore, if the authentication is passed, the enterprise wechat client can directly run the developed small program, the running effect of the small program on the enterprise wechat client can be obtained according to the running result, and then the running of the small program on the enterprise wechat client can be debugged.
In the second case: and if the authentication result is determined to be authentication failure, prompting abnormal information.
It should be noted that, in the foregoing embodiment, the description is given by taking an example that the enterprise wechat client determines to receive the operation instruction of the applet by scanning the two-dimensional code corresponding to the developed applet, but other embodiments may also be provided, such as searching, or linking, and the embodiments of the present invention are not limited thereto.
Based on the foregoing embodiment, referring to fig. 3, a schematic structural diagram of a sub-application debugging apparatus in an embodiment of the present invention specifically includes:
a first receiving module 30, configured to receive an operation instruction of a child application through a first parent application; wherein, the running instruction at least comprises a sub-application identifier;
a sending module 31, configured to send at least the child application identifier to a first parent application server;
a second receiving module 32, configured to receive a download address of a sub-application corresponding to the sub-application identifier, where the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform;
and the processing module 33 is configured to download the sub-application according to the download address of the sub-application, run the sub-application after the download is completed, and debug the sub-application according to a running result.
Optionally, the first parent application receives an operation instruction of the child application, and the first receiving module 30 is specifically configured to:
scanning the two-dimensional code of the sub application through a first parent application, and receiving an operation instruction of the sub application; and the two-dimensional code is generated by a second parent application developer tool according to the received development code of the child application.
Optionally, the sending module 31 is further configured to: sending the user identity information of the first parent application to a first parent application server;
then, the download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server is received, and the second receiving module 32 is specifically configured to:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; and the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to a second parent application open platform and performs authentication by the second parent application open platform.
Optionally, after the authentication result is that the first parent application server calls the second parent application open platform to determine to obtain user identity information of a second parent application corresponding to the user identity information of the first parent application, at least the user identity information of the second parent application and the child application identifier are sent to the second parent application open platform, and the second parent application open platform authenticates at least the user identity information of the second parent application and the child application identifier.
Based on the above embodiments, referring to fig. 4, a schematic structural diagram of an electronic device in an embodiment of the present invention is shown.
An embodiment of the present invention provides an electronic device, which may include a processor 410 (CPU), a memory 420, an input device 430, an output device 440, and the like, wherein the input device 430 may include a keyboard, a mouse, a touch screen, and the like, and the output device 440 may include a display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
The processor 410 is used for executing the sub-application debugging method in the embodiment of the present invention according to the obtained program instructions by calling the program instructions stored in the memory 420.
It should be noted that the electronic device in the embodiment of the present invention may be a terminal or a server, and the sub-application debugging method in the embodiment of the present invention is correspondingly executed.
For convenience of illustration, the portable multifunction device 500 including a touch screen is used as an example of the embodiments of the present invention, and those skilled in the art will appreciate that the embodiments of the present invention are also applicable to other devices, such as handheld devices, vehicle-mounted devices, wearable devices, computing devices, and various forms of User Equipment (UE), Mobile Stations (MS), terminals (Terminal), Terminal Equipment (Terminal Equipment), and the like.
Fig. 5 shows a block diagram of a portable multifunction device 500 including a touch screen according to some embodiments, the device 500 may include an input unit 530, a display unit 540, a gravitational acceleration sensor 551, a proximity light sensor 552, an ambient light sensor 553, a memory 520, a processor 590, a radio frequency unit 510, an audio circuit 560, a speaker 561, a microphone 562, a WiFi (wireless fidelity) module 570, a bluetooth module 580, a power supply 593, an external interface 597, and the like.
Those skilled in the art will appreciate that fig. 5 is merely an example of a portable multifunction device and is not intended to be limiting and that more or fewer components than those shown, or some components in combination, or different components may be included.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the portable multifunction device. Specifically, the input unit 530 may include a touch screen 531 and other input devices 532. The touch screen 531 may collect touch operations performed by a user on or near the touch screen (e.g., operations performed by the user on or near the touch screen using any suitable object such as a finger, a joint, a stylus, etc.) and drive the corresponding connection device according to a preset program. The touch screen can detect a touch action of a user on the touch screen, convert the touch action into a touch signal and send the touch signal to the processor 590, and can receive and execute a command sent by the processor 590; the touch signal includes at least contact point coordinate information. The touch screen 531 may provide an input interface and an output interface between the apparatus 500 and a user. In addition, the touch screen may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 530 may include other input devices in addition to the touch screen 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the apparatus 500. Further, the touch screen 531 may overlay the display panel, and when the touch screen 531 detects a touch operation on or near the touch screen 531, the touch screen is transmitted to the processor 590 to determine the type of the touch event, and then the processor 590 provides a corresponding visual output on the display panel according to the type of the touch event. In this embodiment, the touch screen and the display unit may be integrated into one component to implement the input, output, and display functions of the apparatus 500; for convenience of description, the embodiment of the present invention represents a functional set of a touch screen and a display unit by the touch screen; in some embodiments, the touch screen and the display unit may also be provided as two separate components.
The gravitational acceleration sensor 551 can detect the magnitude of acceleration in each direction (generally, three axes), and meanwhile, the gravitational acceleration sensor 551 can also be used for detecting the magnitude and direction of gravity when the terminal is stationary, and can be used for applications for recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like.
The apparatus 500 may also include one or more proximity light sensors 552 for turning off and disabling the touch screen when the apparatus 500 is closer to the user (e.g., near the ear when the user is on a phone) to avoid user malfunction of the touch screen; the device 500 may also include one or more ambient light sensors 553 for keeping the touch screen off when the device 500 is in a user's pocket or other dark area to prevent unnecessary battery power consumption or malfunction of the device 500 when in a locked state, and in some embodiments, the proximity light sensor and the ambient light sensor may be integrated into one component or may be provided as two separate components. As for the apparatus 500, other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor may be further configured, and will not be described herein. Although fig. 5 shows a proximity light sensor and an ambient light sensor, it is understood that they do not belong to the essential constitution of the apparatus 500 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The memory 520 may be configured to store instructions and data, and the memory 520 may mainly include an instruction storage area and a data storage area, where the data storage area may store an association relationship between a joint touch gesture and an application function; the storage instruction area can store an operating system, instructions required by at least one function and the like; the instructions may cause processor 590 to perform the sub-application debugging method in embodiments of the present invention.
The processor 590 is a control center of the apparatus 500, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the apparatus 500 and processes data by operating or executing instructions stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 590 may include one or more processing units; preferably, the processor 590 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 590. In some embodiments, the processor, memory, and/or the like may be implemented on a single chip, or in some embodiments, they may be implemented separately on separate chips. In this embodiment of the present invention, the processor 590 is further configured to call an instruction in the memory to implement the sub-application debugging method in this embodiment of the present invention.
The rf unit 510 may be configured to receive and transmit information or receive and transmit signals during a call, and in particular, receive downlink information of a base station and then process the downlink information to the processor 590; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the radio unit 510 may also communicate with network devices and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
WiFi belongs to short-range wireless transmission technology, and the apparatus 500 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 570, which provides the user with wireless broadband internet access. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the apparatus 500, and may be omitted entirely as needed within the scope not changing the essence of the invention.
Bluetooth is a short-range wireless communication technology. By using the bluetooth technology, the communication between mobile communication terminal devices such as a palm computer, a notebook computer, and a mobile phone can be effectively simplified, and the communication between the above devices and the Internet (Internet) can also be successfully simplified, so that the device 500 can make the data transmission between the device 500 and the Internet more rapid and efficient through the bluetooth module 580, thereby widening the way for wireless communication. Bluetooth technology is an open solution that enables wireless transmission of voice and data. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the apparatus 500, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The apparatus 500 further includes a power supply 593 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 590 via a power management system 594, such that the power management system 594 may be used to manage charging, discharging, and power consumption.
The device 500 also includes an external interface 597, which may be a standard Micro USB interface, or may be a multi-pin connector, which may be used to connect the device 500 for communication with other devices, or may be used to connect a charger for charging the device 500.
Although not shown, the device 500 may also include a camera, a flash, etc., which are not described in detail herein.
Based on the foregoing embodiments, in an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the sub-application debugging method in any of the above-described method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (15)
1. A sub-application debugging method is characterized by comprising the following steps: the method comprises the following steps:
receiving an operation instruction of a child application through a first parent application; wherein, the running instruction at least comprises a sub-application identifier;
sending at least the child application identification to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, wherein the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform;
and downloading the sub-application according to the download address of the sub-application, running the sub-application after the download is finished, and debugging the sub-application according to a running result.
2. The method of claim 1, wherein receiving, by the first parent application, the execution instruction of the child application specifically comprises:
scanning the two-dimensional code of the sub application through a first parent application, and receiving an operation instruction of the sub application; and the two-dimensional code is generated by a second parent application developer tool according to the received development code of the child application.
3. The method of claim 1 or 2, further comprising:
sending the user identity information of the first parent application to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, specifically including:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; and the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to a second parent application open platform and performs authentication by the second parent application open platform.
4. The method according to claim 3, wherein the authentication result is obtained by the first parent application server invoking the second parent application open platform to determine that the user identity information of the second parent application corresponding to the user identity information of the first parent application is obtained, and then at least sending the user identity information of the second parent application and the child application identifier to the second parent application open platform, and the second parent application open platform authenticating at least the user identity information of the second parent application and the child application identifier.
5. The method of claim 4, wherein the execution instruction further comprises time information for generating a two-dimensional code;
the authentication result is obtained after the second parent application open platform judges whether the user identity information of the second parent application has the access right to the child application corresponding to the child application identifier, and/or judges whether the two-dimensional code is valid according to the time information of generating the two-dimensional code; and the time information of the generated two-dimensional code is sent to the second parent application open platform after the first parent application server receives the time information of the generated two-dimensional code sent by the first parent application.
6. A sub-application debugging apparatus, comprising:
the first receiving module is used for receiving the running instruction of the child application through the first parent application; wherein, the running instruction at least comprises a sub-application identifier;
a sending module, configured to send at least the child application identifier to a first parent application server;
a second receiving module, configured to receive a download address of a sub-application corresponding to the sub-application identifier, where the download address of the sub-application is obtained by the second parent application open platform and the first parent application server at least sends the sub-application identifier to the second parent application open platform;
and the processing module is used for downloading the sub-application according to the download address of the sub-application, running the sub-application after the download is finished, and debugging the sub-application according to a running result.
7. The apparatus of claim 6, wherein the first parent application receives an execution instruction of the child application, and the first receiving module is specifically configured to:
scanning the two-dimensional code of the sub application through a first parent application, and receiving an operation instruction of the sub application; and the two-dimensional code is generated by a second parent application developer tool according to the received development code of the child application.
8. The apparatus of claim 6 or 7, wherein the sending module is further to:
sending the user identity information of the first parent application to a first parent application server;
receiving a download address of the sub-application corresponding to the sub-application identifier returned by the first parent application server, where the second receiving module is specifically configured to:
receiving an authentication result returned by the first parent application server, and if the authentication result is determined to be authenticated, receiving a download address of the child application corresponding to the child application identifier carried in the authentication result; and the authentication result is obtained after the first parent application server at least sends the child application identifier and the user identity information of the first parent application to a second parent application open platform and performs authentication by the second parent application open platform.
9. A sub-application debugging system, comprising at least: a first parent application client, a first parent application server and a second parent application open platform, wherein,
the first parent application client is used for receiving an operation instruction of a child application through the first parent application, at least sending a child application identifier to the first parent application server, receiving a download address of the child application corresponding to the child application identifier returned by the first parent application server, downloading the child application according to the download address of the child application, operating the child application after the download is completed, and debugging the child application according to an operation result, wherein the operation instruction at least comprises the child application identifier;
the first parent application server is used for receiving the child application identifier at least sent by the first parent application client, sending the child application identifier to the second parent application open platform at least, and returning the download address of the child application to the first parent application client when receiving the download address of the child application returned by the second parent application open platform;
and the second parent application open platform is used for obtaining the download address of the child application corresponding to the received child application identifier and returning the download address of the child application to the first parent application server.
10. The system of claim 9, further comprising: a second parent application developer tool;
the second parent application developer tool is used for generating the two-dimensional code of the child application according to the received development code of the child application;
when the running instruction of the child application is received through the first parent application, the first parent application client is specifically configured to:
and scanning the two-dimensional code of the sub-application through the first parent application, and receiving the operation instruction of the sub-application.
11. The system of claim 9 or 10, wherein the first parent application client is further to:
sending the user identity information of the first parent application to a first parent application server;
the second parent application open platform is further configured to:
before obtaining the download address of the sub-application corresponding to the sub-application identifier, at least authenticating the received sub-application identifier and the user identity information of the first parent application, and determining that the authentication result is authenticated; and the user identity information of the first parent application is sent to the second parent application open platform after the first parent application server receives the information sent by the first parent application client.
12. The system of claim 11, wherein the first parent application server is further to:
calling the second parent application open platform to determine to acquire user identity information of a second parent application corresponding to the user identity information of the first parent application, and then sending at least the user identity information of the second parent application and the child application identifier to the second parent application open platform;
when authenticating at least the received child application identifier and the user identity information of the first parent application, the second parent application opens the platform, which is specifically configured to:
and authenticating at least the user identity information and the sub-application identification of the second parent application.
13. The system of claim 12, wherein the execution instruction further includes time information for generating a two-dimensional code;
the first parent application client is further configured to: sending the time information of the generated two-dimensional code to the second parent application open platform through the first parent application server;
when authenticating at least the user identity information and the sub-application identifier of the second parent application, the second parent application opens the platform, which is specifically configured to:
and judging whether the user identity information of the second parent application has the access right to the child application corresponding to the child application identifier, and/or judging whether the two-dimensional code is valid according to the time information of generating the two-dimensional code, if so, determining that the authentication result is authentication passing, and otherwise, determining that the authentication result is authentication failure.
14. An electronic device, comprising:
at least one memory for storing program instructions;
at least one processor for calling program instructions stored in said memory and for executing the method of any of the preceding claims 1-5 in accordance with the program instructions obtained.
15. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program realizing the steps of the method according to any of claims 1-5 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810691583.5A CN108920366B (en) | 2018-06-28 | 2018-06-28 | Sub-application debugging method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810691583.5A CN108920366B (en) | 2018-06-28 | 2018-06-28 | Sub-application debugging method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108920366A CN108920366A (en) | 2018-11-30 |
CN108920366B true CN108920366B (en) | 2020-09-29 |
Family
ID=64422212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810691583.5A Active CN108920366B (en) | 2018-06-28 | 2018-06-28 | Sub-application debugging method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108920366B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743161B (en) * | 2018-12-29 | 2022-04-26 | 上海掌门科技有限公司 | Information encryption method, electronic device and computer readable medium |
CN109976832A (en) * | 2019-03-28 | 2019-07-05 | 上海连尚网络科技有限公司 | It is a kind of that the method and apparatus of boarding program is provided |
CN110032512B (en) * | 2019-03-28 | 2021-04-20 | 腾讯科技(深圳)有限公司 | Debugging method of small program, related equipment and terminal |
CN111796799B (en) * | 2019-04-09 | 2021-09-07 | 广州腾讯科技有限公司 | Sub-application development method and device, computer equipment and storage medium |
CN110098998B (en) * | 2019-04-30 | 2021-11-30 | 上海掌门科技有限公司 | Method and apparatus for processing information |
CN110333868B (en) * | 2019-06-12 | 2023-12-19 | 创新先进技术有限公司 | Method and system for generating installation packages of sub-applications |
CN111478849B (en) * | 2020-04-08 | 2022-04-08 | 腾讯科技(深圳)有限公司 | Service access method, device and storage medium |
CN113722204A (en) * | 2020-05-26 | 2021-11-30 | 华为技术有限公司 | Application debugging method, system, device and medium |
CN113971124B (en) * | 2020-07-24 | 2024-06-25 | 腾讯科技(深圳)有限公司 | Sub-application debugging method and device, computer equipment and storage medium |
CN112835801B (en) * | 2021-02-08 | 2024-05-31 | 上海连尚网络科技有限公司 | Method and equipment for preparing environment before small game debugging |
CN113656789B (en) * | 2021-10-18 | 2022-04-22 | 北京新氧科技有限公司 | Debugging tool starting control method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043649A (en) * | 2009-10-23 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Plug-in downloading control method and plug-in downloading control system |
CN102638473A (en) * | 2012-05-04 | 2012-08-15 | 盛趣信息技术(上海)有限公司 | User data authorization method, device and system |
CN106502736A (en) * | 2016-10-18 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Applied program processing method and device |
CN107645474A (en) * | 2016-07-20 | 2018-01-30 | 腾讯科技(深圳)有限公司 | Log in the method for open platform and log in the device of open platform |
CN107704396A (en) * | 2017-10-20 | 2018-02-16 | 平安科技(深圳)有限公司 | The method of testing and device of application program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9021438B2 (en) * | 2013-06-20 | 2015-04-28 | Sap Portals Israel Ltd | Automatic framework for parallel testing on multiple testing environments |
-
2018
- 2018-06-28 CN CN201810691583.5A patent/CN108920366B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043649A (en) * | 2009-10-23 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Plug-in downloading control method and plug-in downloading control system |
CN102638473A (en) * | 2012-05-04 | 2012-08-15 | 盛趣信息技术(上海)有限公司 | User data authorization method, device and system |
CN107645474A (en) * | 2016-07-20 | 2018-01-30 | 腾讯科技(深圳)有限公司 | Log in the method for open platform and log in the device of open platform |
CN106502736A (en) * | 2016-10-18 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Applied program processing method and device |
CN107704396A (en) * | 2017-10-20 | 2018-02-16 | 平安科技(深圳)有限公司 | The method of testing and device of application program |
Also Published As
Publication number | Publication date |
---|---|
CN108920366A (en) | 2018-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108920366B (en) | Sub-application debugging method, device and system | |
US20210336780A1 (en) | Key updating method, apparatus, and system | |
CN112733107B (en) | Information verification method, related device, equipment and storage medium | |
CN109600223B (en) | Verification method, activation method, device, equipment and storage medium | |
WO2017118437A1 (en) | Service processing method, device, and system | |
WO2015101273A1 (en) | Security verification method, and related device and system | |
WO2017185711A1 (en) | Method, apparatus and system for controlling smart device, and storage medium | |
CN110198301B (en) | Service data acquisition method, device and equipment | |
CN107483213B (en) | Security authentication method, related device and system | |
CN111066284A (en) | Service certificate management method, terminal and server | |
CN108475304B (en) | Method and device for associating application program and biological characteristics and mobile terminal | |
CN108881103B (en) | Network access method and device | |
CN109416800B (en) | Authentication method of mobile terminal and mobile terminal | |
WO2015062425A1 (en) | User identity verification method and system, password protection apparatus and storage medium | |
CN106534324B (en) | A kind of data sharing method and Cloud Server | |
CN111478849B (en) | Service access method, device and storage medium | |
WO2016192511A1 (en) | Method and apparatus for remotely deleting information | |
CN106599698B (en) | A kind of method and apparatus for encrypting picture, decrypting picture | |
CN108616499A (en) | A kind of method for authenticating of application program, terminal and computer readable storage medium | |
CN108234124A (en) | Auth method, device and system | |
CN109600340B (en) | Operation authorization method, device, terminal and server | |
CN107786423B (en) | A kind of method and system of instant messaging | |
CN107592289B (en) | Password setting method and device | |
CN108234412A (en) | Auth method and device | |
CN108234113A (en) | Auth method, device and system |
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 |