Data management method, device and equipment
By providing data management functions through a common program between the host application and the parasitic application, it solves the security and controllability issues when the mini program obtains data from the host application, reduces development costs, and improves user experience and page loading speed. .
Patent Information
- Application Number
- CN202110815672.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-07-19
AI Technical Summary
In the existing technology, when mini programs obtain data from host applications, there are data security and controllability issues. At the same time, mini program development costs are high.
Develop a common program between the host application and the parasitic application, provide data management functions through the common program, avoid the data management page provided by the parasitic application, reduce development costs, and limit the host data through the common program to ensure the security and controllability of the data sex.
It realizes the security and controllability of the data provided by the host application to the mini program, reduces the development cost of the mini program developer, and improves the user experience and page loading speed.
Smart Images

Figure CN113687891B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data management method, device and equipment. Background Art
[0002] A mini program is an application that does not need to be downloaded and installed and relies on a host application to run.
[0003] Usually, a mini program running on a host application needs to provide a data management page. On the one hand, the mini program can obtain data through the data management page provided by it, and on the other hand, the mini program needs to obtain data from the host application. To ensure the security and controllability of the data provided to the mini program by the host application, as well as to reduce the development costs of the mini program developers, these are issues that the developers providing the host application need to solve. Summary of the invention
[0004] The embodiments of the present application provide a data management method, apparatus and device to solve the problem in the prior art of how to ensure the security and controllability of data provided by the host application to the mini program, and to reduce the development cost of the mini program developers.
[0005] In a first aspect, an embodiment of the present application provides a data management method, including:
[0006] Displaying a page of a parasitic application, the page including a control for triggering the parasitic application to call a public program, the public program being located between the parasitic application and its host application and being used to provide a data management function;
[0007] In response to the interactive operation on the control, the public program is called and run, and data management is implemented through the public program.
[0008] In a second aspect, an embodiment of the present application provides a data management device, including:
[0009] A display module, used for displaying a page of a parasitic application, wherein the page includes a control for triggering the parasitic application to call a public program, wherein the public program is located between the parasitic application and its host application and is used for providing a data management function;
[0010] The calling module is used to call and run the public program in response to the interactive operation on the control, and realize data management through the public program.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method described in any one of the first aspects.
[0012] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of any one of the methods described in the first aspect.
[0013] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes at least one section of code, and the at least one section of code can be executed by a computer to control the computer to execute the method as described in any one of the first aspects.
[0014] In an embodiment of the present application, the developer of the host application can develop a public program on top of the host application for providing data management functions. The public program is located between the parasitic application and the host application. Data management is implemented through the public program, and the parasitic application does not need to provide a data management page, thereby reducing the development cost of the parasitic application. The public program can also restrict the parasitic application from obtaining host data, preventing the host data from being arbitrarily obtained by the parasitic application, thereby ensuring the security and controllability of the data provided by the host application to the parasitic application. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 A flowchart of a data management method provided in one embodiment of the present application;
[0017] Figure 2 A schematic diagram of the relationship between a parasitic application, a public program, and a host application provided in an embodiment of the present application;
[0018] Figure 3 A schematic diagram of the relationship between a parasitic application, a public program and a host application provided in another embodiment of the present application;
[0019] Figure 4 A schematic diagram of the flow of interaction between a parasitic application, a public program, a host application and a server provided in an embodiment of the present application;
[0020] Figure 5A-5D A schematic diagram of a page provided for an embodiment of the present application;
[0021] Figure 6 A schematic diagram of the structure of a data management device provided in one embodiment of the present application;
[0022] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said", and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0025] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0026] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0027] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0028] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0029] In order to facilitate those skilled in the art to understand the technical solution provided by the embodiments of the present application, the technical environment in which the technical solution is implemented is described below.
[0030] In the related art, the mini program obtains data from the host application by calling the interface function provided by the host application, or the mini program provides a data management page and obtains data through the data management page provided by it. However, the former method has the problem that the data in the host application can be obtained by the mini program at will, resulting in the problem that the data is out of control and the security is reduced. The latter method has the problem of high cost of mini program development. Therefore, the related art urgently needs a data management method that can ensure the security and controllability of the data provided by the host application to the mini program and reduce the development cost of the mini program developer.
[0031] Based on actual technical requirements similar to those described above, the data management method provided in this application can use technical means to ensure the security and controllability of data provided by the host application to the mini program, and reduce the development costs of the mini program developers.
[0032] The data management method provided in the embodiment of the present application can be applied to any type of electronic device that can deploy an application (Application, APP). An electronic device can be deployed with an application that can serve as a host for other applications, i.e., a host application. An application that parasitizes in a host application and relies on the host application to run is a parasitic application. In one embodiment, the parasitic application can specifically be a mini-program.
[0033] It should be noted that when the application includes a client application and a server application, the host application in the embodiment of the present application specifically refers to the application client that serves as the host.
[0034] In order to ensure the controllability of the parasitic application obtaining data from the host application and reduce the development cost of the parasitic application developer, in an embodiment of the present application, the host application developer can develop a public program on top of the host application to provide data management functions. The public program is located between the parasitic application and the host application. Data management is implemented through the public program, and there is no need for the parasitic application to provide a data management page, thereby reducing the development cost of the parasitic application. The public program can also restrict the parasitic application from obtaining host data, preventing the host data from being arbitrarily obtained by the parasitic application, thereby ensuring the security and controllability of the data provided by the host application to the parasitic application.
[0035] It should be noted that the embodiments of the present application are mainly illustrated by taking the parasitic application as a mini-program as an example.
[0036] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0037] Figure 1 This is a flow chart of a data management method provided by an embodiment of the present application. The execution subject of this embodiment may be the aforementioned electronic device. Figure 1 As shown, the method of this embodiment may include:
[0038] Step 11, displaying a page of the parasitic application, wherein the page includes a control for triggering the parasitic application to call a public program, wherein the public program is located between the parasitic application and its host application and is used to provide a data management function;
[0039] Step 12: In response to the interactive operation on the control, calling and running the public program, and implementing data management through the public program.
[0040] In the embodiments of the present application, the specific form of the public program can be flexibly implemented. In one embodiment, the public program can be implemented in the form of a small program. In another embodiment, the public program can be implemented in the form of a plug-in.
[0041] The relationship between the host application, parasitic application and public program can be described as follows: Figure 2 Reference Figure 2 , the public program 21 is located between the host application 22 and the parasitic application 23, the parasitic application 23 can call the public program 21 under the triggering of the interactive operation, and the public program 21 can call the interface function of the host application 22 as needed. It should be noted that the number of parasitic applications parasitizing the same host application can be one or more. When the number of parasitic applications is multiple, such as Figure 3 As shown, multiple parasitic applications can call a common program at different times.
[0042] In the embodiment of the present application, the control in the page of the parasitic application for triggering the parasitic application to call the public program can be, for example, a button control. Of course, in other embodiments, it can also be other types of controls, which are not limited in the present application. It can be understood that the type of interactive operation for the control corresponds to the type of the control. For example, when the control is a button control, the interactive operation for the control can be, for example, a click operation.
[0043] In an embodiment of the present application, a public program can provide data management functions in a page manner. The page in the public program can be rendered by a web view (webview), for example. In one embodiment, the page layout of the public program can be fixed, which is conducive to simplifying the implementation.
[0044] Optionally, the page of the public program includes a return button for returning to the page of the parasitic application, so that the user can regard the page of the public program as the page of the parasitic application, so that the public program is not perceived by the user, which is conducive to improving the user's experience.
[0045] In the embodiment of the present application, the public program can provide data management functions that can be flexibly implemented according to requirements. Exemplarily, the data management function may include at least one of the following: adding function, querying function, modifying function, deleting function or authorizing function.
[0046] Among them, the query function refers to a function for providing query host data. Based on this, the data management implemented through the public program can specifically include: calling the first interface function of the host application through the public program to obtain host data from the host application, and displaying the host data in the page of the public program. This can avoid users from repeatedly entering data that already exists in the host application, which is conducive to improving the user experience. Among them, the first interface function is an interface function provided by the host application for querying data.
[0047] The authorization function refers to a function for providing authorization data. In one embodiment, the authorization function can be used to authorize the queried host data. Based on this, the page of the public program can include an authorization control, such as an authorization button. The data management implemented by the public program can also include: when obtaining the authorization operation instruction for the queried host data through the authorization control, generating an authorization identifier for the host data; sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host program according to the authorization identifier; and, in response to the binding success indication returned by the server, passing the host data as a call return value to the parasitic application. This allows the user to choose whether to authorize the queried host data to the parasitic application, avoiding the problem that the parasitic application obtains the queried host data without the user's authorization. Among them, the authorization identifier can be obtained, for example, by taking the message-digest algorithm 5 (MD5, Message-Digest Algorithm 5) from the queried host data, which is conducive to improving the security of the host data.
[0048] Furthermore, if the authorization operation instruction is not obtained, the preset authorization failure data can be used as the call return value, so that the parasitic application can know that the reason for the failure to successfully obtain the data is the authorization failure, that is, the user does not agree to the authorization.
[0049] Furthermore, if the binding success indication returned by the server is not received, the preset internal exception data can be used as the call return value, so that the parasitic application can know that the reason for the failure to obtain data is an internal exception, that is, the user agrees to the authorization, but the data cannot be returned due to an exception in the authorization process.
[0050] The modification function refers to a function for providing a function for modifying the queried host data. Based on this, the page of the public program may include a modification control; the data management implemented by the public program may also include: when a modification operation instruction for the queried host data is obtained through the modification control, the queried host data is modified accordingly according to the modification operation instruction to obtain the modified host data.
[0051] Furthermore, the data management implemented through the public program may also include: when a modification operation instruction for the queried host data is obtained through the modification control, the second interface function of the host application is called through the public program to modify the host data in the host application accordingly. In this way, the modification of the queried host data by the user in the process of using the public program can be stored locally in the host application, and the user does not need to repeat the modification in the process of using the host application, which is conducive to improving the user experience. Among them, the second interface function is an interface function provided by the host application for modifying data.
[0052] In one embodiment, the authorization function can be used to authorize the modified host data. Similarly, the data management implemented through the public program may also include: when obtaining the authorization operation instruction for the modified host data through the authorization control, generating an authorization identifier for the modified host data; sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host program according to the authorization identifier; and, in response to the binding success indication returned by the server, passing the modified host data to the parasitic application as a call return value. This allows the user to choose whether to authorize the modified host data to the parasitic application, avoiding the problem of the parasitic application obtaining the modified host data without the user's authorization.
[0053] The adding function refers to a function for providing adding data. Based on this, the implementing data management through the public program may include: acquiring input data through the displayed page of the public program.
[0054] Furthermore, the data management implemented by the public program may also include: calling the third interface function of the host application through the public program to pass the input data to the host application. Thus, the data added by the user in the process of using the public program can be applied to the host application and stored locally in the host application, without the need for the user to repeatedly add in the process of using the host application, which is conducive to improving the user experience. Among them, the third interface function is an interface function provided by the host application for adding new data.
[0055] In one embodiment, the authorization function can be used to authorize input data. Similarly, the data management implemented through the public program may also include: when obtaining the authorization operation instruction for the input data through the authorization control, generating an authorization identifier for the input data; sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host program according to the authorization identifier; and, in response to the binding success indication returned by the server, passing the input data to the parasitic application as a call return value. This allows the user to choose whether to authorize the input data to the parasitic application, avoiding the problem that the parasitic application does not authorize the user to obtain the input data.
[0056] The delete function is a function for providing a function for deleting the queried host data. Based on this, the page of the public program may include a delete control; the data management implemented by the public program may also include: when a delete operation instruction for the queried host data is obtained through the delete control, the queried host data is deleted according to the delete operation instruction.
[0057] Furthermore, the data management implemented through the public program may also include: when a deletion operation for the queried host data is obtained through the deletion control, the fourth interface function of the host application is called through the public program to delete the host data in the host application. In this way, when the user deletes the queried host data in the process of using the public program, it can act on the host application and be deleted locally from the host application, without the need for the user to delete repeatedly in the process of using the host application, which is conducive to improving the user experience. Among them, the fourth interface function is an interface function provided by the host application for deleting data.
[0058] In the embodiment of the present application, the page layout of the public program can also be variable, so as to improve the flexibility of page display. Based on this, the calling and running of the public program can include: calling and running the public program using target parameters; the implementing data management through the public program can also include: using the display logic corresponding to the target parameters to render and display the page of the public program.
[0059] Taking the function of querying host data from the host application through the public program and letting the user decide whether to authorize the queried host data to the parasitic application as an example, the interaction between the parasitic application, the public program, the host application and the server can be as follows: Figure 4 Reference Figure 4 In step 41, the user inputs an interactive operation for a specific control in the page of the parasitic application for triggering the calling of a public program. Figure 5A As shown, the host application is a map application, and the parasitic application is a small program x that provides a vehicle violation query function. Figure 5A The "Add Vehicle" button in the example may represent a specific control for triggering the calling of a public program. The user inputs a click operation on the "Add Vehicle" button, which may trigger the mini program x to call the public program. It is understandable that Figure 5A The page shown is the page of mini program x.
[0060] Next, in step 42, in response to the interactive operation for the specific control, the parasitic application calls the public program. In step 43, the public program calls the first interface function of the host application, and in step 44, the host application passes the queried host data to the public program as the call return value. In step 45, the public program can display the queried host data in the page of the public program to request the user to authorize the queried host data. After steps 42 to 45, the public program can be Figure 5A The page shown in the figure jumps to Figure 5B The page shown. Figure 5B The license plate number "123" and the engine number "123456" represent the queried host data, the "Authorize Now" button can represent the authorization control, and the "<" button in the upper left corner can represent the aforementioned return button.
[0061] Afterwards, if the public program obtains the user's authorization operation instruction for the queried host data, then in step 46, the public program may send a binding request to the server for requesting to bind the queried host data to the parasitic application. Figure 5B By clicking the "Authorize Now" button, a binding request can be sent to the server to request that the mini program x be bound to the license plate number "123" and the engine number "123456".
[0062] If the server successfully binds the queried host data to the parasitic application, the server returns a successful binding indication to the public program in step 47. Further, in step 48, the public program can pass the queried host data to the parasitic application as a call return value. Thereafter, in step 411, the parasitic application can perform corresponding processing and display according to the returned data (i.e., host data). For example, in Figure 5B On the basis of, if the public program first obtains the user's click operation on the "Immediate Authorization" button, and then obtains the user's click operation on the "<" button, the public program can pass the license plate number "123" and the engine number "123456" to the parasitic application, and the parasitic application can query the corresponding violation information based on the license plate number "123" and the engine number "123456", and display the obtained violation information on the display. Figure 5C In the page shown, the violation information may include, for example, the number of violations, pending fines, and deduction points. Figure 5C The page shown is also the page of applet x.
[0063] If the public program does not receive the binding success indication returned by the server, the public program can pass the internal exception data as the call return value to the parasitic application in step 49. Thereafter, in step 411, the parasitic application can perform corresponding processing and display according to the returned data (ie, the internal exception data).
[0064] If the public program does not obtain the authorization operation instruction for the queried authorization data, then in step 410, the public program can pass the authorization failure data as the call return value to the parasitic application. Then, in step 411, the parasitic application can perform corresponding processing and display according to the returned data (i.e., the authorization failure data). Figure 5B On the basis of, if the public program does not obtain the click operation instruction for the "Immediate Authorization" button before obtaining the click operation instruction for the "<" button, the public program can pass the authorization failure data to the parasitic application, and the parasitic application can determine the authorization failure based on the authorization failure data, and display the prompt information for prompting the authorization failure on the Figure 5D In the page shown, the prompt message of authorization failure may be, for example, "Unauthorized". It is understandable that Figure 5D The page shown is also the page of applet x.
[0065] It should be noted that FIG. 5A to FIG. 5D The pages shown are examples only.
[0066] The data management method provided in the embodiment of the present application displays a page of a parasitic application, wherein the page includes a control for triggering the parasitic application to call a public program, wherein the public program is located between the parasitic application and its host application, and in response to interactive operations on the control, the public program is called and run, and data management is implemented through the public program, thereby implementing data management by the public program located between the host application and the parasitic application, eliminating the need for the parasitic application to provide a data management page, reducing the development cost of the parasitic application, and enabling the public program to restrict the parasitic application from obtaining host data, thereby ensuring the security and controllability of the data provided by the host application to the parasitic application.
[0067] In addition, by implementing data management through public programs, the user interface (UI) style of the data management page can be unified, improving the user experience. When multiple host applications are running in the same host application, by providing data management functions through public programs, it is also possible to save resources required to run parasitic applications and improve the page loading speed of parasitic applications.
[0068] Figure 6 A schematic diagram of the structure of a data management device provided in one embodiment of the present application; see attached Figure 6 As shown, this embodiment provides a data management device, which can execute the above data management method. Specifically, the data management device may include:
[0069] A display module 61, used for displaying a page of a parasitic application, wherein the page includes a control for triggering the parasitic application to call a public program, wherein the public program is located between the parasitic application and its host application and is used for providing a data management function;
[0070] The calling module 62 is used to call and run the public program in response to the interactive operation on the space, and realize data management through the public program.
[0071] Optionally, the data management function includes at least one of the following: an adding function, a querying function, a modifying function, a deleting function or an authorizing function.
[0072] Optionally, the calling module 62 is used to implement data management through the public program, including: calling the first interface function of the host application through the public program to obtain host data from the host application, and displaying the host data in the page of the public program.
[0073] Optionally, the page of the public program includes an authorization control; the calling module 62 is used to implement data management through the public program, and also includes: when obtaining an authorization operation instruction for the host data through the authorization control, generating an authorization identifier for the host data; sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host program according to the authorization identifier; and, in response to a binding success indication returned by the server, passing the host data to the parasitic application as a call return value.
[0074] Optionally, the page of the public program includes a modification control; the calling module 62 is used to implement data management through the public program, and also includes: when a modification operation instruction for the host data is obtained through the modification control, the second interface function of the host application is called through the public program to make corresponding modifications to the host data in the host application.
[0075] Optionally, the calling module 62 is used to implement data management through the public program, including: obtaining input data through the displayed page of the public program; and calling the third interface function of the host application through the public program to pass the input data to the host application.
[0076] Optionally, the calling module 62 is used to call and run the public program, including: calling and running the public program using target parameters; the calling module 62 is used to implement data management through the public program, and also includes: using display logic corresponding to the target parameters to render and display the page of the public program.
[0077] Figure 6 The device shown can perform Figure 1 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1 The implementation process and technical effects of this technical solution refer to Figure 1 The description in the illustrated embodiment will not be repeated here.
[0078] In one possible implementation, Figure 6 The structure of the data management device shown can be implemented as an electronic device. Figure 7 As shown, the electronic device may include: a processor 71 and a memory 72. The memory 72 is used to store the electronic device to perform the above Figure 1 The program of the data management method provided in the illustrated embodiment, the processor 71 is configured to execute the program stored in the memory 72 .
[0079] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the processor 71, the following steps can be implemented:
[0080] Displaying a page of a parasitic application, the page including a control for triggering the parasitic application to call a public program, the public program being located between the parasitic application and its host application and being used to provide a data management function;
[0081] In response to the interactive operation on the control, the public program is called and run, and data management is implemented through the public program.
[0082] Optionally, the processor 71 is further configured to execute the aforementioned Figure 1 All or part of the steps in 1 in the embodiment shown.
[0083] The structure of the electronic device may further include a communication interface 73 for the electronic device to communicate with other devices or a communication network.
[0084] In addition, the present application embodiment provides a computer storage medium for storing computer software instructions used by the electronic device, which includes instructions for executing the above Figure 1 The data management method of the illustrated method embodiment involves a program.
[0085] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0086] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0087] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data management method, wherein: The method comprises: Displaying a page of a parasitic application, the page including a control and an authorization control for triggering the parasitic application to call a public program, the public program being located between the parasitic application and its host application and being used to provide a data management function, the data management function including an authorization function; In response to the interactive operation on the control that calls the public program, calling and running the public program, and implementing data management through the public program; Wherein, the data management is realized through the public program, including: When obtaining the authorization operation instruction for the host data through the authorization control, generating the authorization identifier of the host data; Sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host application according to the authorization identifier; In response to a binding success indication returned by the server, the host data is passed to the parasitic application as a call return value.
2. The method according to claim 1, wherein: The data management function includes at least one of the following: an adding function, a querying function, a modifying function, a deleting function or an authorizing function.
3. The method according to claim 2, wherein: The data management is realized by the public program, and further includes: The first interface function of the host application is called by the public program to obtain host data from the host application, and the host data is displayed in the page of the public program.
4. The method according to claim 3, wherein: The page of the public program includes a modification control; and the data management is implemented through the public program, further comprising: When a modification operation instruction for the host data is obtained through the modification control, the second interface function of the host application is called through the public program to modify the host data in the host application accordingly.
5. The method according to claim 2, wherein: The data management is realized through the public program, including: Acquiring input data through the displayed page of the public program; The third interface function of the host application is called through the public program to pass the input data to the host application.
6. The method according to claim 3 or 5, wherein: The calling and running of the public program includes: calling and running the public program using a target parameter; The implementing of data management through the public program further includes: using a display logic corresponding to the target parameter to render and display a page of the public program.
7. A data management device, wherein: The device comprises: A display module, used for displaying a page of a parasitic application, wherein the page includes a control and an authorization control for triggering the parasitic application to call a public program, wherein the public program is located between the parasitic application and its host application and is used for providing a data management function; A calling module, for calling and running the public program in response to an interactive operation on the control for calling the public program, and realizing data management through the public program; Wherein, the data management is realized through the public program, including: When obtaining the authorization operation instruction for the host data through the authorization control, generating the authorization identifier of the host data; Sending a binding request for requesting to bind the authorization identifier with the parasitic application to the server of the host application according to the authorization identifier; In response to a binding success indication returned by the server, the host data is passed to the parasitic application as a call return value.
8. An electronic device, comprising: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method as described in any one of claims 1 to 6.
9. A computer program product comprising computer instructions, wherein: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
