CN115017436A - Data interaction method and device of application program, computer equipment and storage medium - Google Patents

Data interaction method and device of application program, computer equipment and storage medium Download PDF

Info

Publication number
CN115017436A
CN115017436A CN202210936200.2A CN202210936200A CN115017436A CN 115017436 A CN115017436 A CN 115017436A CN 202210936200 A CN202210936200 A CN 202210936200A CN 115017436 A CN115017436 A CN 115017436A
Authority
CN
China
Prior art keywords
target
webpage data
calling
service system
target webpage
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.)
Granted
Application number
CN202210936200.2A
Other languages
Chinese (zh)
Other versions
CN115017436B (en
Inventor
朱芝洁
刘丰
徐伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
Original Assignee
Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch filed Critical Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
Priority to CN202210936200.2A priority Critical patent/CN115017436B/en
Publication of CN115017436A publication Critical patent/CN115017436A/en
Application granted granted Critical
Publication of CN115017436B publication Critical patent/CN115017436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The application relates to a data interaction method and device of an application program, computer equipment and a storage medium. The method comprises the following steps: responding to a trigger operation on a native page of an application program, sending a webpage data acquisition request carrying an identification of a service system and an identification of target webpage data corresponding to the service system to a server, receiving a response instruction which is sent by the server based on the identification of the service system and the identification of the target webpage data and is used for indicating whether the service system has the authority of calling a target calling method (the target calling method is used for acquiring the target webpage data), and determining whether the target webpage data are acquired for the service system or not according to the response instruction and displaying the target webpage data; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same; the data interaction process can be simplified, the data interaction efficiency can be improved, and the safety and the reliability of the data interaction can be improved.

Description

Data interaction method and device of application program, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data interaction method and apparatus for an application program, a computer device, and a storage medium.
Background
With the development of the mobile internet, most of mobile Application programs (APPs) currently adopt a mixed development mode of native and HTML5 to develop APPs, wherein native development refers to APPs which are developed by development languages suitable for different terminal operating systems and can run on terminals of corresponding operating systems, HTML5 development refers to APPs which are realized by HTML5 language in combination with JavaScript and CSS and can run on a browser, and in the mixed development mode, page display of each service function in APPs can be realized by HTML5 through a basic logic framework of native realization APPs.
In the conventional technology, for an APP developed by using a hybrid development mode, when interaction between a native source and HTML5 is performed, HTML5 needs to determine a corresponding interaction method according to a difference of client operating systems to which the native source belongs to perform data interaction, so as to generate an HTML5 page for presentation.
However, the existing native and HTML5 interaction process is cumbersome, resulting in inefficient data presentation of APPs developed by such hybrid development model.
Disclosure of Invention
In view of the above, it is necessary to provide a data interaction method, apparatus, computer device, computer readable storage medium, and computer program product for an application, which can simplify the interaction process between native and HTML5 and improve the data interaction and data presentation efficiency of the application.
In a first aspect, the present application provides a data interaction method for an application, including:
responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the method comprises the following steps that an application program calls required webpage data for the same service system under different terminal operating systems by the same calling method;
receiving a response instruction sent by the server based on the identification of the service system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the service system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In one embodiment, determining whether to acquire and display target webpage data for the service system according to the response instruction includes:
under the condition that the response instruction indicates that the service system has the authority of calling the target calling method, determining to adopt the target calling method to obtain target webpage data for the service system and displaying the target webpage data on the target webpage;
and under the condition that the response instruction indicates that the business system cannot call the target calling method, outputting prompt information to a user, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
In one embodiment, the application program includes a native module and an HTML5 module, and in the case that the response instruction indicates that the business system has the right to execute the target calling method, determining to adopt the target calling method to acquire the target web page data for the business system and display the target web page data on the target web page includes:
under the condition that the response instruction indicates that the service system has the authority of calling the target calling method, indicating the native module to acquire target webpage data through the target calling method;
and sending the target webpage data to an HTML5 module, so that an HTML5 module renders a target webpage according to the target webpage data and displays the target webpage.
In one embodiment, the application is developed based on a list of calling methods on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
In one embodiment, the list of calling methods specifically includes calling methods corresponding to HTML5 modules of different business systems when acquiring web page data through a native module.
In one embodiment, the obtaining of the target webpage data for the service system by using the target calling method includes:
and acquiring target webpage data for the service system from the system-level application or the non-system-level application by adopting a target calling method.
In a second aspect, the present application further provides a data interaction method for an application, where the method includes:
receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In one embodiment, sending a response instruction to the terminal according to the identifier of the service system and the identifier of the target webpage data includes:
determining an authorization method list corresponding to the service system according to the identification of the service system;
judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result;
and sending a response instruction to the terminal based on the judgment result.
In a third aspect, the present application further provides an apparatus for data interaction of an application, where the apparatus includes:
the sending module is used for responding to triggering operation on a native page of an application program and sending a webpage data acquisition request to the server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
the receiving module is used for receiving a response instruction sent by the server based on the identification of the service system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the service system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In a fourth aspect, the present application further provides an apparatus for data interaction of an application, where the apparatus includes:
the receiving module is used for receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
the sending module is used for sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In a fifth aspect, the present application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method of the first aspect and the second method described above when executing the computer program.
In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of the first and second aspects described above.
In a seventh aspect, the present application further provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of the first aspect and the second method described above.
The terminal sends a webpage data acquisition request carrying an identification of a service system and an identification of target webpage data corresponding to the service system to the server by responding to a trigger operation on a native page of the application program, then receives a response instruction which is sent by the server based on the identification of the service system and the identification of the target webpage data and is used for indicating whether the service system has the authority of calling a target calling method (the target calling method is used for acquiring the target webpage data) or not, and determines whether the target webpage data are acquired for the service system or not according to the response instruction and displays the target webpage data; the calling method is the same when the application program in the terminal calls the needed webpage data for the same service system under different terminal operating systems; that is to say, in the present application, the same calling method is used for application programs under different operating systems to obtain the web page data corresponding to the same service system, that is, there is no need to distinguish the operating systems when performing data interaction, there is no need to select a calling method corresponding to an operating system according to the types of different operating systems to obtain the web page data, and only the target web page data needs to be obtained according to a preset target calling method for obtaining the target web page data, so that the process of data interaction can be simplified, and the efficiency of data interaction is improved; in addition, the calling authority of different service systems to the calling method can be set, the target calling method is called to obtain and display the target webpage data under the condition that the service system has the authority of calling the target calling method, unauthorized use of the calling method and unauthorized access to the webpage data by the service system can be avoided, and the safety of user data and the reliability of the application program can be improved by limiting the calling authority of different service systems to the calling method.
Drawings
FIG. 1 is a diagram of an application environment in which a method for data interaction by an application is implemented, according to an embodiment;
FIG. 2 is a flowchart illustrating a data interaction method of an application in one embodiment;
FIG. 3 is a flowchart illustrating a data interaction method of an application according to another embodiment;
FIG. 4 is a flowchart illustrating a data interaction method of an application according to another embodiment;
FIG. 5 is a flowchart illustrating a data interaction method of an application in one embodiment;
FIG. 6 is a flowchart illustrating a data interaction method of an application according to another embodiment;
FIG. 7 is a block diagram showing the structure of a data interaction device of an application program according to an embodiment;
FIG. 8 is a block diagram showing the structure of a data interaction device of an application program according to an embodiment;
FIG. 9 is a diagram showing an internal structure of a computer device in one embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data interaction method of the application program provided by the embodiment of the application program can be applied to the application environment shown in fig. 1. Wherein the terminal 10 communicates with the server 11 through a network. The terminal 10 may be a terminal device employing different operating systems, such as: the terminal of the android system or the terminal of the IOS system, etc., where the terminal may be installed with a plurality of application programs 101 developed in a hybrid development mode, the application programs may further include different business systems, and a page display in each business system is developed by using an HTML5 technology, that is, the application program 101 may include a native module 1011 and an HTML5 module 1012 corresponding to different business systems, and when the HTML5 module 1012 performs page display, page data in the displayed page may be acquired from a background server by using a JavaScript technology, may also be acquired from the background server by calling an API method interface of the native module 1011, or may be acquired from a system-level application or a non-system-level application by calling an API method interface of the native module 1011, etc. In addition, the terminal 10 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 11 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a data interaction method for an application program is provided, which is described by taking the application method as an example of the terminal in fig. 1, and includes the following steps:
step 201, responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server.
The webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system is the same under different terminal operating systems. In the development stage of the application program, aiming at the application programs corresponding to different operating systems (such as android or IOS), in the development process, the application program is developed by adopting the same calling method list, and the same calling method list comprises a plurality of methods for performing data interaction with HTML5 and development templates corresponding to the methods.
Optionally, the calling method list may be maintained by the API management platform and stored in the server, and in a development process, an application program of a different operating system may acquire the calling method list maintained by the API management platform from the server through a preset interface, and may traverse the calling method list in a for-loop manner, and register and declare (or register and implement) each calling method in the calling method list, so that the HTML5 may call the calling method in the calling method list.
Optionally, the API management platform may further add the calling method list to a JavaScript file, and store the JavaScript file in a server, so that the HTML5 may refer to the JavaScript file and introduce the JavaScript file to the development project of the application program to be mounted on the window, and at this point, the HTML5 may interact with the native through the JavaScript file. Optionally, the API management platform may also configure a unique identifier for each service system for different service systems related to the application program, where the identifier may be a unique ID (for example, appID of the service system is set), or may be a unique character string composed of numbers and/or characters, and the form of the identifier of the service system is not limited in the present application; in addition, the API management platform may further set or modify a call permission of each service system to each call method in the call method list, and add the identifier of each service system and the call permission of each service system to each call method to the JavaScript file.
That is to say, for the same application program, when developing the native end of the android version, the calling method list is obtained from the server of the API management platform in an interface calling manner to develop the application program of the android version; when developing the native end of the IOS version, acquiring the calling method list from a server of the API management platform in an interface calling mode and developing an application program of the IOS version; for the development of the HTML5 ends corresponding to different operating systems, the calling method list is obtained in the same way for development; by the method, development templates of a native terminal, an HTML5 terminal and different operating systems can be unified, code logic is concentrated, redundancy is extremely low, maintenance and reading of codes are facilitated, differences of operating system platforms do not need to be distinguished, coding rules are standardized, calling processing logic of the HTML5 terminal is reduced, and feasibility and interaction efficiency of data interaction are greatly improved.
In other words, the same application under different operating systems is developed based on the calling method list on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems; optionally, the calling method list may specifically include calling methods corresponding to HTML5 modules of different service systems when acquiring web page data through a native module.
After the application program is developed, the application program is started and a native page is entered, the native page is realized through native function development and comprises page elements, styles and layouts, interaction logic of users and the page, a native page generated by calling background data to process the page and the like, buttons or elements for jumping to different webpages (pages developed by using HTML 5) can be further included in the native page, and the users can jump to different target webpages from the native page by triggering the buttons or elements. When a terminal detects a trigger operation of a user on a native page of the application program, responding to the trigger operation, and sending a webpage data acquisition request of a target webpage to be accessed to a server, wherein the webpage data acquisition request carries an identifier of a service system to which the target webpage to be accessed belongs and an identifier of target webpage data of the target webpage to be accessed, which corresponds to the service system, optionally, the webpage data acquisition request may further include an identifier of a target calling method for acquiring the target webpage data; the webpage data acquisition request can carry at least one identification of target webpage data.
Step 202, receiving a response instruction sent by the server based on the identifier of the service system and the identifier of the target webpage data, and determining whether to acquire and display the target webpage data for the service system according to the response instruction.
The response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
Optionally, the server may pre-store a corresponding relationship between different service systems and the authorized calling methods corresponding to the service systems, or pre-store a JavaScript file including the corresponding relationship, where one service system may correspond to multiple authorized calling methods; in addition, the JavaScript file may also include the calling method list, where the calling method list may include an identifier of each calling method and an identifier of web page data corresponding to each calling method, and one calling method may also correspond to an identifier of at least one web page data; the server can determine the identifier of a target calling method for acquiring the target webpage data from a calling method list in the JavaScript file according to the identifier of the target webpage data, and then determine whether the service system has the authority to call the target calling method or not from the corresponding relationship between the different service systems and the authorized calling methods corresponding to the service systems through the identifier of the target calling method and the identifier of the service system, so as to obtain a judgment result; the server generates a response instruction according to the judgment result and sends the response instruction to the terminal; the response instruction may include an identifier used to indicate whether the service system has the right to invoke the target invocation method, where the identifier may be a number or a character string, for example: 1 indicates that the service system has the authority to call the target calling method, and 0 indicates that the service system does not have the authority to call the target calling method.
Optionally, after receiving a response instruction for the web page data acquisition request sent by the server, the terminal may determine whether to acquire and display target web page data for the service system according to the response instruction; optionally, the terminal may adopt the target calling method to obtain the target webpage data for the service system and display the target webpage data on the target webpage under the condition that the terminal confirms that the service system has the right to call the target calling method according to the response instruction.
In the data interaction method of the application program, a terminal sends a webpage data acquisition request carrying an identifier of a service system and an identifier of target webpage data corresponding to the service system to a server by responding to a trigger operation on a native page of the application program, then receives a response instruction which is sent by the server based on the identifier of the service system and the identifier of the target webpage data and is used for indicating whether the service system has the authority of calling a target calling method (the target calling method is used for acquiring the target webpage data) or not, and determines whether the target webpage data are acquired for the service system or not according to the response instruction and then displayed; the calling method adopted by the application program in the terminal for calling the required webpage data for the same service system under different terminal operating systems is the same; that is to say, in the present application, the same calling method is used for application programs under different operating systems to obtain the web page data corresponding to the same service system, that is, there is no need to distinguish the operating systems when performing data interaction, there is no need to select a calling method corresponding to an operating system according to the types of different operating systems to obtain the web page data, and only the target web page data needs to be obtained according to a preset target calling method for obtaining the target web page data, so that the process of data interaction can be simplified, and the efficiency of data interaction is improved; in addition, the calling authority of different service systems to the calling method can be set, the target calling method is called to obtain and display the target webpage data under the condition that the service system has the authority to call the target calling method, unauthorized use of the calling method and unauthorized access to the webpage data by the service system can be avoided, and the safety of user data can be improved and the reliability of the application program can be improved by limiting the calling authority of different service systems to the calling method.
In an optional embodiment of the present application, for an application to be developed or already developed, if a new service system is needed and the new service system also adopts a calling method in the calling method list, a system identifier may be set for the new service system through the API management platform, and a calling authority of the new service system to different calling methods is added to generate a new JavaScript file; or, the API management platform may also modify the call permission of the current service system to the call method in the call method list, and generate a new JavaScript file; then, the API management platform can upload the new JavaScript file to a server to replace the prestored JavaScript file, so that the application program can adopt the new JavaScript file to expand the service function; that is to say, when the application needs to perform service expansion and the introduced new service system does not relate to a new calling method, the service expansion can be realized by only adding the appID of the new service system in the API management platform and authorizing the calling method with the calling authority to the new service system without rewriting the code by the native terminal, so that the development and update efficiency of the application can be improved, the risk caused by frequent change of the native terminal and the change of the native terminal due to frequent change of the service requirement can be avoided, and the maintenance cost of the application can be reduced.
Fig. 3 is a flowchart illustrating a data interaction method of an application program according to another embodiment. The present embodiment relates to an optional implementation process in which the terminal determines whether to acquire and display target web page data for the service system according to the response instruction, on the basis of the foregoing embodiment, as shown in fig. 3, step 202 includes:
step 301, under the condition that the response instruction indicates that the service system has the authority to call the target calling method, determining to adopt the target calling method to obtain the target webpage data for the service system and displaying the target webpage data on the target webpage.
Step 302, when the response instruction indicates that the service system cannot call the target calling method, outputting prompt information to the user, where the prompt information is used to indicate that the target webpage data cannot be displayed currently.
Optionally, when a plurality of target web page data need to be acquired from a target page of a service system to be accessed by a user, the plurality of target web page data may correspond to a plurality of target calling methods (where one calling method may correspond to at least one piece of web page data), and when a plurality of target calling methods are determined according to the plurality of target web page data, it may be determined whether the service system has a calling authority for each target calling method, and accordingly, the response instruction may also include an identifier of the calling authority of the service system for each target calling method. According to the response instruction, for the target calling method with the calling authority of the business system, the terminal can adopt the target calling method to obtain target webpage data for the business system and display the target webpage data on the target webpage; for a target calling method that a service system does not have calling authority, the target calling method indicates a target page that a user wants to access currently, and for the service system, the service system does not have the access authority, the terminal can output prompt information to the user at the moment, and the prompt information can be used for telling the user that the current target page does not support obtaining the target webpage data.
In this embodiment, when the terminal indicates that the service system has the right to call the target calling method in response to the instruction, it is determined to acquire target webpage data for the service system by using the target calling method and display the target webpage data on the target webpage, and when the service system indicates that the target calling method cannot be called in response to the instruction, prompt information is output to the user, where the prompt information is used to indicate that the target webpage data cannot be displayed currently; that is to say, the application program in this embodiment has authority control over the calling method, and thus, the occurrence of unauthorized access is avoided, that is, the situation that any business system can access and acquire target webpage data is avoided, and the reliability of the application program and the security of user data are improved.
In an optional embodiment of the present application, the application program developed in the hybrid development mode may include a native module and an HTML5 module, and optionally, each business system may correspond to an HTML5 module, the HTML5 module may obtain, by calling an API interface of the native module (i.e., the above-mentioned calling method), web page data that cannot be obtained by the HTML5 module, where the web page data may be obtained from a system-level application through the API interface of the native module, for example: the picture data in the local gallery, the sensor data built in the system, and the like may also be interaction data acquired from a non-system-level application (for example, a third-party application or a server, and the like), and the like, for example: location data, payment data, etc.
Alternatively, as shown in fig. 4, in the case that the application program includes a native module and an HTML5 module, the step 301 includes:
step 401, in case that the response instruction indicates that the service system has the authority to call the target calling method, indicating the native module to obtain the target webpage data through the target calling method.
Optionally, in a case that the service system has a right to call a target call method, the target call method may be called by a native module to obtain the target web page data; optionally, before the native module calls the target calling method, it may also be determined whether the target calling method of the registered statement (or registered implementation) exists in the native module, if the target calling method of the registered statement (or registered implementation) exists, the target calling method is called to obtain the target webpage data, and if the target calling method of the registered statement (or registered implementation) does not exist in the native module, the native module cannot obtain the target webpage data by calling the target calling method, that is, the method call fails, and cannot obtain the target webpage data.
Step 402, sending the target webpage data to an HTML5 module for an HTML5 module to render a target webpage according to the target webpage data and display the target webpage.
Optionally, when the native module acquires the target web page data by calling the target calling method, the target web page data is sent to the HTML5 module, and when the HTML5 module acquires the target web page data, the target web page data is rendered into the target web page, so that the target web page is obtained and displayed.
In this embodiment, when the application includes a native module and an HTML5 module, and when the terminal indicates that the service system has the right to call the target call method in response to the instruction, the native module is instructed to obtain target web page data by the target call method, and send the target web page data to the HTML5 module, so that the HTML5 module renders a target web page according to the target web page data, and displays the target web page; that is to say, in the embodiment of the application, the HTML5 module does not need to determine the type of the operating system, or select a calling method corresponding to the operating system according to the type of the operating system, and only needs to obtain the target web page data according to a preset target calling method for obtaining the target web page data, so that the interaction process between the native module and the HTML5 module is simplified, and the efficiency of data interaction is improved; in addition, the present embodiment may further set the calling authority of the HTML5 module for different calling methods, which can avoid unauthorized use of the calling method and unauthorized access to the web page data by the service system, and can improve the security of the user data and the reliability of the application program by limiting the calling authority of the calling method by the different service systems.
In an optional embodiment of the present application, in a case that the application includes a native module and an HTML5 module, in a case that a user triggers a button, an element, a control, or the like for jumping to a target web page in a native page of the application, the terminal may detect the triggering operation through the native module of the application, and send a page display request carrying an identifier of the target page to an HTML5 module corresponding to the target page; the HTML5 module responds to the page display request, determines the identification of a service system corresponding to the target page and the identification of target webpage data corresponding to the target page under the service system according to the identification of the target page, and sends a webpage data acquisition request carrying the identification of the service system and the identification of the target webpage data to a server so as to indicate the server to determine whether the service system has the authority of calling a target calling method for acquiring the target webpage data according to the identification of the service system and the identification of the target webpage data; then, the HTML5 module may receive a response instruction sent by the server in response to the web page data acquisition request, and send a call request carrying an identifier of the target call method to the native module when the response instruction indicates that the service system has a right to call the target call method; the native module calls the target calling method according to the identification of the target calling method in the calling request, and sends the target webpage data to an HTML5 module under the condition that the target webpage data are successfully acquired by calling the target calling method; and the HTML5 module renders the target webpage according to the target webpage data and displays the target webpage.
In one embodiment, as shown in fig. 5, a data interaction method for an application program is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step 501, receiving a webpage data acquisition request sent by a terminal based on a current application program.
The webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system is the same under different terminal operating systems.
The detailed description can refer to the related discussion of step 201 above, and will not be repeated here.
Step 502, according to the identifier of the service system and the identifier of the target webpage data, sending a response instruction to the terminal.
The response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
Reference may be made to the related discussion of step 202 above, and details are not repeated here.
In the data interaction method of the application program, a server receives a webpage data acquisition request which is sent by a terminal based on a current application program and carries an identification of a service system and an identification of target webpage data corresponding to the service system, and sends a response instruction which indicates whether the service system has the authority of calling a target calling method or not to the terminal according to the identification of the service system and the identification of the target webpage data, wherein the target calling method is used for acquiring the target webpage data, and in addition, the calling methods adopted by the application program in the terminal when calling the required webpage data for the same service system under different terminal operating systems are the same; that is to say, in the present application, the same calling method is used for application programs under different operating systems to obtain the web page data corresponding to the same service system, that is, there is no need to distinguish the operating systems when performing data interaction, there is no need to select a calling method corresponding to an operating system according to the types of different operating systems to obtain the web page data, and only the target web page data needs to be obtained according to a preset target calling method for obtaining the target web page data, so that the process of data interaction can be simplified, and the efficiency of data interaction is improved; in addition, the calling authority of different service systems to the calling method can be set, the target calling method is called to obtain and display the target webpage data under the condition that the service system has the authority of calling the target calling method, unauthorized use of the calling method and unauthorized access to the webpage data by the service system can be avoided, and the safety of user data and the reliability of the application program can be improved by limiting the calling authority of different service systems to the calling method.
Fig. 6 is a flowchart illustrating a data interaction method of an application program according to another embodiment. This embodiment relates to an optional implementation process in which a server sends a response instruction to a terminal according to an identifier of a service system and an identifier of target web page data, where, on the basis of the foregoing embodiment, as shown in fig. 6, step 502 includes:
step 601, determining an authorization method list corresponding to the service system according to the identifier of the service system.
Optionally, the server may pre-store a correspondence between different service systems and authorized authorization method lists respectively corresponding to the service systems, and the server may determine the authorization method list corresponding to the service system according to the identifier of the service system and the correspondence.
Step 602, according to the identifier of the target webpage data, determining whether a target calling method for acquiring the target webpage data exists in the authorization method list, and obtaining a determination result.
Optionally, the corresponding relationship further includes web page data corresponding to each authorized calling method in each authorization method list, and further, after the authorization method list corresponding to the service system is determined, it may be determined whether a target calling method for acquiring the target web page data exists in the authorization method list according to the identifier of the acquired target web page data from the authorization method list corresponding to the service system, so as to obtain a determination result; the judgment result includes that a target calling method for acquiring the target webpage data exists in the authorization method list, which indicates that the service system has the authority to call the target calling method, and that a target calling method for acquiring the target webpage data does not exist in the authorization method list, which indicates that the service system does not have the authority to call the target calling method.
Step 603, sending a response instruction to the terminal based on the judgment result.
Optionally, the server may generate a response instruction corresponding to the web page data obtaining request by using a preset rule based on the determination result, and optionally, the preset rule may be a correspondence between different determination results and corresponding identifiers indicating the determination results, for example: for example, in the step 202, 1 indicates that the service system has the right to call the target calling method, and 0 indicates that the service system does not have the right to call the target calling method.
In this embodiment, the server determines an authorization method list corresponding to the service system according to the identifier of the service system, then determines whether a target calling method for acquiring the target webpage data exists in the authorization method list according to the identifier of the target webpage data to obtain a determination result, and sends a response instruction to the terminal based on the determination result; that is to say, in this embodiment, permission setting is performed on different calling methods called by the service system, so that the problem of data leakage caused by random calling of the calling methods by the service system can be avoided, and the security and reliability of data interaction are improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application further provides a data interaction device of the application program, wherein the data interaction device is used for realizing the data interaction method of the application program. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the data interaction device embodiments of one or more application programs provided below can refer to the limitations on the data interaction method of the application program, and are not described herein again.
In one embodiment, as shown in fig. 7, there is provided a data interaction device for an application program, including: a sending module 701 and a receiving module 702, wherein:
a sending module 701, configured to send, in response to a trigger operation on a native page of an application, a web page data acquisition request to a server, where the web page data acquisition request carries an identifier of a service system and an identifier of target web page data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same.
A receiving module 702, configured to receive a response instruction sent by the server based on the identifier of the service system and the identifier of the target webpage data, and determine whether to acquire and display the target webpage data for the service system according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In one embodiment, the receiving module 702 includes a first display unit and a second display unit; the first display unit is used for determining that a target calling method is adopted to obtain target webpage data for the service system and displaying the target webpage data on a target webpage under the condition that a response instruction indicates that the service system has the authority of calling the target calling method; and the second display unit is used for outputting prompt information to the user under the condition that the response instruction indicates that the business system cannot call the target calling method, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
In one embodiment, the application program includes a native module and an HTML5 module, where the first presentation unit is specifically configured to instruct the native module to obtain target web page data through a target calling method when a response instruction indicates that the service system has a right to call the target calling method; and sending the target webpage data to an HTML5 module for an HTML5 module to render a target webpage according to the target webpage data and display the target webpage.
In one embodiment, the application is developed based on a list of calling methods on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
In one embodiment, the list of calling methods specifically includes calling methods corresponding to HTML5 modules of different business systems when acquiring web page data through a native module.
In one embodiment, the first display unit is specifically configured to obtain the target webpage data for the service system from the system-level application or the non-system-level application by using a target calling method.
In one embodiment, as shown in fig. 8, there is provided a data interaction device for an application program, including: a receiving module 801 and a sending module 802, wherein:
a receiving module 801, configured to receive a webpage data obtaining request sent by a terminal based on a current application program, where the webpage data obtaining request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
a sending module 802, configured to send a response instruction to the terminal according to the identifier of the service system and the identifier of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In one embodiment, the sending module 802 is specifically configured to determine, according to the identifier of the service system, an authorization method list corresponding to the service system; judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result; and sending a response instruction to the terminal based on the judgment result.
The modules in the data interaction device of the application program can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data interaction method for an application. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may also be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as a calling method list corresponding to the application program maintained by the API management platform and a JavaScript file corresponding to the application program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data interaction method for an application.
Those skilled in the art will appreciate that the configurations shown in fig. 9 and 10 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device, the computer device being a terminal comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
receiving a response instruction sent by the server based on the identification of the business system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the business system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: under the condition that the response instruction indicates that the service system has the authority of calling the target calling method, determining to adopt the target calling method to obtain target webpage data for the service system and displaying the target webpage data on the target webpage; and under the condition that the response instruction indicates that the business system cannot call the target calling method, outputting prompt information to a user, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the application program comprises a native module and an HTML5 module, and under the condition that a response instruction indicates that the service system has the authority of calling a target calling method, the native module is indicated to acquire target webpage data through the target calling method; and sending the target webpage data to an HTML5 module, so that an HTML5 module renders a target webpage according to the target webpage data and displays the target webpage.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the application program is developed based on a calling method list on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the calling method list specifically includes calling methods corresponding to the HTML5 modules of different service systems when acquiring the web page data through the native modules.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and acquiring target webpage data for the service system from the system-level application or the non-system-level application by adopting a target calling method.
In one embodiment, there is provided a computer device, the computer device being a server comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In one embodiment, the processor when executing the computer program further performs the steps of: determining an authorization method list corresponding to the service system according to the identification of the service system; judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result; and sending a response instruction to the terminal based on the judgment result.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
receiving a response instruction sent by the server based on the identification of the service system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the service system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the response instruction indicates that the service system has the authority of calling the target calling method, determining to adopt the target calling method to obtain target webpage data for the service system and displaying the target webpage data on the target webpage; and under the condition that the response instruction indicates that the business system cannot call the target calling method, outputting prompt information to a user, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
In one embodiment, the computer program when executed by the processor further performs the steps of: the application program comprises a native module and an HTML5 module, and under the condition that a response instruction indicates that the service system has the authority of calling a target calling method, the native module is indicated to acquire target webpage data through the target calling method; and sending the target webpage data to an HTML5 module, so that an HTML5 module renders a target webpage according to the target webpage data and displays the target webpage.
In one embodiment, the computer program when executed by the processor further performs the steps of: the application program is developed based on a calling method list on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
In one embodiment, the computer program when executed by the processor further performs the steps of: the calling method list specifically includes calling methods corresponding to the HTML5 modules of different service systems when acquiring web page data through a native module.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring target webpage data for the service system from the system-level application or the non-system-level application by adopting a target calling method.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining an authorization method list corresponding to the service system according to the identification of the service system; judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result; and sending a response instruction to the terminal based on the judgment result.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
receiving a response instruction sent by the server based on the identification of the service system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the service system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring target webpage data.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the response instruction indicates that the business system has the authority of calling the target calling method, determining to adopt the target calling method to obtain target webpage data for the business system and display the target webpage data on the target webpage; and under the condition that the response instruction indicates that the business system cannot call the target calling method, outputting prompt information to a user, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
In one embodiment, the computer program when executed by the processor further performs the steps of: the application program comprises a native module and an HTML5 module, and under the condition that a response instruction indicates that the service system has the authority of calling a target calling method, the native module is indicated to acquire target webpage data through the target calling method; and sending the target webpage data to an HTML5 module, so that an HTML5 module renders a target webpage according to the target webpage data and displays the target webpage.
In one embodiment, the computer program when executed by the processor further performs the steps of: the application program is developed based on a calling method list on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
In one embodiment, the computer program when executed by the processor further performs the steps of: the calling method list specifically includes calling methods corresponding to the HTML5 modules of different service systems when acquiring the web page data through the native modules.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring target webpage data for the service system from the system-level application or the non-system-level application by adopting a target calling method.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling method adopted by the application program for calling the required webpage data for the same service system under different terminal operating systems is the same;
sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring target webpage data.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining an authorization method list corresponding to the service system according to the identification of the service system; judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result; and sending a response instruction to the terminal based on the judgment result.
It should be noted that the web page data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are all information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (13)

1. A data interaction method for an application program, the method comprising:
responding to a trigger operation on a native page of an application program, and sending a webpage data acquisition request to a server, wherein the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling methods adopted by the application programs for calling the required webpage data for the same service system under different terminal operating systems are the same;
receiving a response instruction sent by the server based on the identification of the service system and the identification of the target webpage data, and determining whether the target webpage data is acquired for the service system and displayed according to the response instruction; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring the target webpage data.
2. The method of claim 1, wherein the determining whether to obtain and display the target webpage data for the business system according to the response instruction comprises:
if the response instruction indicates that the business system has the authority of calling the target calling method, determining to adopt the target calling method to obtain the target webpage data for the business system and display the target webpage data on a target webpage;
and if the response instruction indicates that the business system cannot call the target calling method, outputting prompt information to a user, wherein the prompt information is used for indicating that the target webpage data cannot be displayed currently.
3. The method of claim 2, wherein the application program comprises a native module and an HTML5 module, and wherein if the response instruction indicates that the business system has the right to execute the target calling method, determining to acquire the target webpage data for the business system by using the target calling method and display the target webpage data on a target webpage comprises:
if the response instruction indicates that the service system has the authority of calling the target calling method, indicating the native module to acquire the target webpage data through the target calling method;
and sending the target webpage data to the HTML5 module, so that the HTML5 module renders the target webpage according to the target webpage data and displays the target webpage.
4. The method of any of claims 1 to 3, wherein the application is developed based on a list of calling methods on the server; the calling method list comprises calling methods for acquiring webpage data through a native module of an application program, and the calling method list is oriented to different terminal operating systems.
5. The method according to claim 4, wherein the list of calling methods specifically includes calling methods corresponding to HTML5 modules of different business systems when the native modules acquire the web page data.
6. The method of claim 2, wherein the obtaining the target web page data for the business system using the target calling method comprises:
and acquiring the target webpage data for the service system from a system-level application or a non-system-level application by adopting the target calling method.
7. A data interaction method for an application program, the method comprising:
receiving a webpage data acquisition request sent by a terminal based on a current application program, wherein the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling methods adopted by the application programs for calling the required webpage data for the same service system under different terminal operating systems are the same;
sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring the target webpage data.
8. The method according to claim 7, wherein the sending a response instruction to the terminal according to the identifier of the service system and the identifier of the target webpage data comprises:
determining an authorization method list corresponding to the service system according to the identification of the service system;
judging whether a target calling method for acquiring the target webpage data exists in the authorization method list or not according to the identification of the target webpage data to obtain a judgment result;
and sending a response instruction to the terminal based on the judgment result.
9. An apparatus for data interaction of an application, the apparatus comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for responding to triggering operation on a native page of an application program and sending a webpage data acquisition request to a server, and the webpage data acquisition request carries an identifier of a service system and an identifier of target webpage data corresponding to the service system; the calling methods adopted by the application programs for calling the required webpage data for the same service system under different terminal operating systems are the same;
the receiving module is used for receiving a response instruction sent by the server based on the identification of the business system and the identification of the target webpage data, and determining whether the target webpage data are acquired for the business system or not according to the response instruction and displaying the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method, and the target calling method is used for acquiring the target webpage data.
10. An apparatus for data interaction of an application, the apparatus comprising:
the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a webpage data acquisition request sent by a terminal based on a current application program, and the webpage data acquisition request carries an identification of a service system and an identification of target webpage data corresponding to the service system; the calling methods adopted by the application programs for calling the required webpage data for the same service system under different terminal operating systems are the same;
the sending module is used for sending a response instruction to the terminal according to the identification of the service system and the identification of the target webpage data; the response instruction is used for indicating whether the service system has the authority of calling a target calling method or not to the terminal, and the target calling method is used for acquiring the target webpage data.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202210936200.2A 2022-08-05 2022-08-05 Data interaction method and device of application program, computer equipment and storage medium Active CN115017436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210936200.2A CN115017436B (en) 2022-08-05 2022-08-05 Data interaction method and device of application program, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210936200.2A CN115017436B (en) 2022-08-05 2022-08-05 Data interaction method and device of application program, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115017436A true CN115017436A (en) 2022-09-06
CN115017436B CN115017436B (en) 2023-01-10

Family

ID=83066298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210936200.2A Active CN115017436B (en) 2022-08-05 2022-08-05 Data interaction method and device of application program, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115017436B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662016A (en) * 2023-07-25 2023-08-29 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103917951A (en) * 2012-09-19 2014-07-09 华为技术有限公司 Application invocation method, operating system and browser
US20170331915A1 (en) * 2016-05-13 2017-11-16 Sap Se Providing an offline mode for applications and interfaces across multiple platforms
CN107870821A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The cross-platform call method and system of application program
CN110399578A (en) * 2018-04-17 2019-11-01 腾讯科技(深圳)有限公司 Page access method and device
CN111950001A (en) * 2020-07-31 2020-11-17 银盛支付服务股份有限公司 Authority control method and system based on H5 application in APP
CN113778391A (en) * 2021-01-28 2021-12-10 北京京东拓先科技有限公司 Page processing method, device and equipment for native application program
CN113778566A (en) * 2021-01-29 2021-12-10 北京京东拓先科技有限公司 Native application calling method and device, electronic equipment and computer readable medium
CN114036422A (en) * 2021-11-17 2022-02-11 平安壹钱包电子商务有限公司 Data calling method, device, equipment and storage medium based on cache technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103917951A (en) * 2012-09-19 2014-07-09 华为技术有限公司 Application invocation method, operating system and browser
US20170331915A1 (en) * 2016-05-13 2017-11-16 Sap Se Providing an offline mode for applications and interfaces across multiple platforms
CN107870821A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The cross-platform call method and system of application program
CN110399578A (en) * 2018-04-17 2019-11-01 腾讯科技(深圳)有限公司 Page access method and device
CN111950001A (en) * 2020-07-31 2020-11-17 银盛支付服务股份有限公司 Authority control method and system based on H5 application in APP
CN113778391A (en) * 2021-01-28 2021-12-10 北京京东拓先科技有限公司 Page processing method, device and equipment for native application program
CN113778566A (en) * 2021-01-29 2021-12-10 北京京东拓先科技有限公司 Native application calling method and device, electronic equipment and computer readable medium
CN114036422A (en) * 2021-11-17 2022-02-11 平安壹钱包电子商务有限公司 Data calling method, device, equipment and storage medium based on cache technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662016A (en) * 2023-07-25 2023-08-29 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product
CN116662016B (en) * 2023-07-25 2023-10-20 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product

Also Published As

Publication number Publication date
CN115017436B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
US11119812B2 (en) Method and device for processing application program page according to a common interface container
CN107832099B (en) Method and device for client version compatibility and storage medium
US10546126B2 (en) Method for detecting the tampering of application code and electronic device supporting the same
US20120317172A1 (en) Mobile web app infrastructure
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
CN104704468A (en) Cross system installation of WEB applications
US9852119B2 (en) Device for securing contents of a web page
CN111552535A (en) Interface picture replacing method and device, computer equipment and storage medium
CN115017436B (en) Data interaction method and device of application program, computer equipment and storage medium
CN104050412A (en) Font delivery service
CN107895120B (en) Data processing method and device in cross-platform application, electronic equipment and storage medium
US9397995B2 (en) Information processing apparatus and user authentication method
US20180203941A1 (en) Electronic device and method for creating shortcut to web page in electronic device
CN111158777B (en) Component calling method, device and computer readable storage medium
CN112035113A (en) Navigation bar loading method, device, equipment and medium of H5 page
CN114780497B (en) Batch file processing method, apparatus, computer device, medium, and program product
US20140298456A1 (en) Securing applications for computing devices
CN114296793A (en) Anti-obfuscation method and device for obfuscated codes, readable medium and electronic device
CN114296833A (en) Business interface component configuration method and device, equipment and medium thereof
CN114238806A (en) Page display method, page display device, computer equipment, storage medium and program product
CN114461223A (en) Code generation method and device and terminal equipment
CN112579236A (en) Function button display method and device, computer equipment and storage medium
CN111124932A (en) Scheme verification method, system, device, computer equipment and storage medium
WO2022193142A1 (en) Behavior monitoring method and apparatus, terminal device, and computer readable storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium

Legal Events

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