CN114385939A - Application display method, application display system, application display device and application display equipment - Google Patents

Application display method, application display system, application display device and application display equipment Download PDF

Info

Publication number
CN114385939A
CN114385939A CN202011140445.1A CN202011140445A CN114385939A CN 114385939 A CN114385939 A CN 114385939A CN 202011140445 A CN202011140445 A CN 202011140445A CN 114385939 A CN114385939 A CN 114385939A
Authority
CN
China
Prior art keywords
page
host program
page description
information
description information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011140445.1A
Other languages
Chinese (zh)
Inventor
张峰
史卉萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011140445.1A priority Critical patent/CN114385939A/en
Publication of CN114385939A publication Critical patent/CN114385939A/en
Pending legal-status Critical Current

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
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The application discloses an application display method, an application display system, an application display device and application display equipment, and belongs to the technical field of computers. The method comprises the following steps: responding to an access request sent by user equipment, and sending a page display request to application providing equipment according to a host program identifier in the access request, wherein the host program identifier is used for identifying a host program providing service in the application providing equipment; receiving page description information sent by application providing equipment, wherein the page description information is used for describing page elements in a first user interface displayed on user equipment; generating first front-end information based on a conversion rule according to the page description information; and sending first front-end information to the user equipment, wherein the first front-end information is used for displaying a first user interface on the user equipment. The process of displaying the user interface is the process of generating the Web application, and the application providing device can generate the Web application only by providing the page description information. The process of generating a Web application is simplified.

Description

Application display method, application display system, application display device and application display equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application display method, an application display system, an application display apparatus, and an application display device.
Background
A World Wide Web application is an application host program that is accessible through the World Wide Web. The user can use the Web application by only accessing the website of the Web application through the Web browser.
When developing the Web application, it is first necessary to develop a back-end service logic of the Web application and a front-end page of the Web application, and then configure a server of the Web application and deploy the Web application on the server, so that the development of the Web application can be completed.
At present, the Web application is usually developed in the above manner, and the Web application for the user can be generated. The entire generation process of the Web application is cumbersome.
Disclosure of Invention
The application display method, the application display system, the application display device and the application display equipment can simplify the generation process of Web application. The technical scheme is as follows:
according to an aspect of the present application, there is provided an application display method, the method including:
responding to an access request sent by user equipment, sending a page display request to the application providing equipment according to a host program identifier in the access request, wherein the access request carries a target address, the target address comprises the host program identifier, the target address points to an intermediate server, and the host program identifier is used for identifying a host program providing service in the application providing equipment;
receiving page description information sent by the application providing equipment, wherein the page description information is sent by the application providing equipment according to the host program identifier and is used for describing page elements in a first user interface displayed on the user equipment;
generating first front-end information based on a conversion rule according to the page description information;
and sending the first front-end information to the user equipment, wherein the first front-end information is used for displaying the first user interface on the user equipment.
According to another aspect of the present application, there is provided an application display system, the system including: the system comprises an intermediate server, application providing equipment and user equipment, wherein the intermediate server is connected with the application providing equipment through a network, and the intermediate server is connected with the user equipment through the network;
the intermediate server is configured to send, in response to receiving an access request sent by the user equipment, a page display request to the application providing equipment according to a host program identifier in the access request, where the access request carries a target address, the target address includes the host program identifier, the target address points to the intermediate server, and the host program identifier is used to identify a host program providing a service in the application providing equipment;
the application providing device is used for responding to the page display request sent by the intermediate server and sending page description information to the intermediate server, wherein the page description information is used for describing page elements in a first user interface displayed on the user equipment;
the intermediate server is used for generating first front-end information based on a conversion rule according to the page description information;
the intermediate server is used for sending the first front-end information to the user equipment;
the user equipment is used for displaying the first user interface according to the first front-end information.
Optionally, the user equipment is configured to send, in response to receiving the touch operation in the first user interface, operation information corresponding to the touch operation to the intermediate server; the intermediate server is configured to generate, in response to receiving the operation information sent by the user equipment, an operation instruction according to the host program identifier corresponding to the first user interface, where the operation instruction includes the host program path and the operation information, and the host program path is determined according to the host program identifier; the intermediate server is used for sending the operation instruction to the application providing equipment; the application providing device is used for responding to the received operation instruction sent by the intermediate server, operating the host program according to the host program path to process the operation information, and obtaining returned page description information; the application providing device is used for sending the return page description information to the intermediate server; the intermediate server is used for generating second front-end information based on the conversion rule according to the returned page description information, and the second front-end information is used for displaying a second user interface on the user equipment; the intermediate server is used for sending the second front-end information to the user equipment; and the user equipment is used for displaying the second user interface according to the second front-end information.
Optionally, the application providing device is configured to receive the page display request sent by the intermediate server through a standard input file in the application providing device; the application providing device is used for sending the page description information to the intermediate server through a standard output file in the application providing device.
According to another aspect of the present application, there is provided an application display apparatus, the apparatus including:
a first sending module, configured to send, in response to receiving an access request sent by user equipment, a page display request to the application providing equipment according to a host program identifier in the access request, where the access request carries a target address, the target address includes the host program identifier, the target address points to an intermediate server, and the host program identifier is used to identify a host program that provides a service in the application providing equipment;
a receiving module, configured to receive page description information sent by the application providing device, where the page description information is sent by the application providing device according to the host program identifier, and the page description information is used to describe a page element in a first user interface displayed on the user device;
the first generation module is used for generating first front-end information based on a conversion rule according to the page description information;
a second sending module, configured to send the first front-end information to the user equipment, where the first front-end information is used to display the first user interface on the user equipment.
Optionally, the conversion rule includes a page element identification rule and a front-end information conversion rule; the first generating module is configured to:
analyzing the page description information according to the page element identification rule to obtain the page element;
and determining the first front-end information corresponding to the page element according to the front-end information conversion rule.
Optionally, the page element identification rule includes a correspondence between an element identifier in the element identifier set and a preset page element; the first generating module is configured to:
determining a target element identifier in the page description information based on the element identifier set;
and determining the preset page element corresponding to the target element identifier as the page element according to the corresponding relation.
Optionally, the apparatus further comprises:
a second generating module, configured to generate an operation instruction according to the host program identifier corresponding to the first user interface in response to receiving operation information in the first user interface sent by the user equipment;
the first sending module is configured to send the operation instruction to the application providing device, where the operation instruction includes a host program path and the operation information, where the host program path is used to indicate a storage location of the host program, and the host program path is determined according to the host program identifier;
the receiving module is configured to receive returned page description information sent by the application providing device, where the returned page description information is determined by the application providing device according to a running result of the host program running through the host program path to process the operation information;
the first generating module is used for generating second front-end information based on the conversion rule according to the returned page description information;
the second sending module is configured to send the second front-end information to the user equipment, where the second front-end information is used to display a second user interface on the user equipment.
Optionally, the conversion rule further includes an execution success judgment rule; the first generating module is configured to:
analyzing the returned page description information according to the execution success judgment rule to obtain an execution return value;
and in response to the return value indicating that the operation instruction is successfully executed, generating the second front-end information based on the conversion rule according to the return page description information.
Optionally, the conversion rule further includes an execution success judgment rule; the first generating module is configured to:
analyzing the returned page description information according to the execution success judgment rule to obtain an execution return value;
and determining front-end information corresponding to failure prompt as the second front-end information in response to the return value indicating that the execution of the operation instruction fails.
Optionally, the conversion rule further includes a prompt element identification rule and a conversion rule of returning page description information; the first generating module is configured to:
analyzing the returned page description information according to the prompt element identification rule to obtain a page prompt element;
and determining the second front-end information corresponding to the page prompt element according to the conversion rule of the returned page description information.
Optionally, the first sending module includes:
an obtaining sub-module, configured to obtain registration information of the application providing device in the intermediate server corresponding to the host program identifier, where the registration information includes a communication address of the application providing device and a host program path, and the host program path is used to indicate a storage location of the host program;
the first sending module is configured to send the page display request to the application providing device according to the communication address.
Optionally, the apparatus further comprises:
and the third generating module is used for generating the target address according to the domain name of the intermediate server and the host program identifier.
According to another aspect of the present application, there is provided a computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one host program, set of codes, or set of instructions, which is loaded and executed by the processor to implement an application display method as described above.
According to another aspect of the present application, there is provided a computer readable storage medium having stored therein at least one instruction, at least one host program, set of codes, or set of instructions, which is loaded and executed by a processor to implement an application display method as described above.
According to another aspect of the present application, there is provided a computer host program product or a computer host program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the application display method provided in the various alternative implementations of the above aspects.
The beneficial effect that technical scheme that this application provided brought includes at least:
according to the request of the user equipment for accessing the target address, the intermediate server acquires the page description information from the application providing equipment so as to generate first front-end information, and the first user interface is displayed in the user equipment. The destination address points to an intermediate server. The process of displaying the user interface is the process of generating the Web application, and the application providing device can generate the Web application only by providing the page description information and can access the Web application through the target address. The process of generating a Web application is simplified.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application display system according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of a display application provided by an embodiment of the present application;
fig. 3 is a schematic flowchart of an application display method according to an embodiment of the present application;
FIG. 4 is a schematic flowchart of another application display method provided in the embodiments of the present application;
FIG. 5 is a schematic diagram of an implementation process for generating first front-end information according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a first user interface provided by an embodiment of the application;
FIG. 7 is a schematic diagram of an implementation process for generating second front-end information according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a second user interface provided by an embodiment of the present application;
FIG. 9 is a block diagram of an application display system provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an application display device according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of another application display device provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of a first sending module according to an embodiment of the present application;
FIG. 13 is a schematic structural diagram of another application display device provided in the embodiments of the present application;
fig. 14 is a schematic structural diagram of a server provided in an embodiment of the present application;
fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present application.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an application display system according to an exemplary embodiment of the present application. As shown in fig. 1, the application display system 100 includes an intermediate server 110, a user device 120, and an application providing device 130.
Optionally, the intermediate server 110 is a server, or a server cluster composed of several servers, or a virtual server in a cloud computing service center, and the like, which is not limited herein. The user device 120 is a smart phone, a tablet computer, a desktop computer, a notebook computer, etc. installed with a browser. The application providing device 130 is a server, or a server cluster composed of a plurality of servers, or a virtual server in a cloud computing service center, and the like, and the application providing device 130 can also be a tablet computer, a desktop computer, a notebook computer, and the like. The intermediate server 110 and the user device 120 are connected through a wired network or a wireless network. The intermediate server 110 and the application providing apparatus 120 are connected through a wired network or a wireless network.
The application providing apparatus 130 has a host program running therein, and the host program is used to provide a service to the outside. The application providing apparatus 130 is configured to transmit page description information to the intermediate server 110, and transmit return page description information for running the host program to the intermediate server 110. The intermediate server 110 can generate first front-end information from the page description information and can generate second front-end information from the returned page description information. When the user device 120 accesses the target address corresponding to the application providing device 130 through the browser, the first user interface can be displayed according to the first front-end information. When the user device 120 receives the operation information in the first user interface, the second user interface can be displayed according to the received second front-end information.
In one example, the host program in the application providing device 130 is an enterprise management system that the user device 120 can access and invoke through a browser and a target address. In another example, the host program in the application providing device 130 is a payment host program that the user device 120 can use through a browser and a two-dimensional code corresponding to the target address. In yet another example, the host program in the application providing device 130 is a financial client that the user device 120 can access and invoke through a browser and a destination address.
Fig. 2 is a schematic diagram of a display application provided in an embodiment of the present application, and as shown in fig. 2, when the intermediate server 202 receives a request for the user equipment 201 to access a target address through a browser, a page display request is sent to the application providing device 203 according to the host program identifier of the application providing device 203 in the target address. The application providing device 203 transmits page description information to the intermediate server 202 according to the page display request. The intermediate server 202 generates first front-end information based on the conversion rule according to the page description information and sends the first front-end information to the user equipment 201. The user device 201 is capable of displaying a first user interface according to the first front-end information. The first user interface is a service providing interface corresponding to a host program providing a service in the application providing device 203.
When the user device 201 receives a touch operation in the first user interface, operation information corresponding to the touch operation is sent to the intermediate server 202. The intermediate server 202 can generate an operation instruction according to the operation information and transmit it to the application providing apparatus 203. The application providing device 203 operates the host program corresponding to the host program path according to the host program path in the operation instruction to process the operation information in the operation instruction, obtains the returned page description information, and sends the returned page description information to the intermediate server 202. The intermediate server 202 generates second front-end information based on the conversion rule according to the return page description information and sends the second front-end information to the user equipment 201. The user device 201 is able to display a second user interface according to the second front-end information. The second user interface is a feedback interface after the host program providing the service in the application providing device 203 processes the operation information.
According to the request of the user equipment for accessing the destination address, the intermediate server 202 can obtain the page description information to generate the first front-end information, so that the first user interface is displayed in the user equipment 201. The destination address points to an intermediate server. According to the operation information of the user equipment 201 in the first user interface, the intermediate server 202 can obtain the returned page description information to generate second front-end information, so that the second user interface is displayed in the user equipment 201. The process of displaying the user interface is a process of generating the Web application, and the application providing device 203 can generate the Web application only by providing the page description information, and can realize accessing the Web application through the target address and using the service provided by the Web application. The process of generating a Web application is simplified.
Fig. 3 is a schematic flowchart of an application display method according to an embodiment of the present application. The method may be used for an intermediate server in a system as shown in fig. 1. As shown in fig. 3, the method includes:
step 301, in response to receiving an access request sent by a user device, sending a page display request to an application providing device according to a host program identifier in the access request.
The access request carries a target address, which includes a host program identification. The destination address points to an intermediate server. The target address is an address in a Uniform Resource Locator (URL) format, an address in a short URL format, and an Internet Protocol (IP) address. The domain name of the destination address points to the intermediate server. The user equipment accesses the target address through a browser in the user equipment, and when the user equipment accesses the target address, the access request is sent to the intermediate server.
The host program identification is used to identify a host program that provides a service in the application providing apparatus. The application providing apparatus can provide a service to the outside through the host program. Optionally, the host program is based on a Command Line Interface (CLI), such as a Script (Script) and an executable file (executable file). The host program identification of the host program in the application providing apparatus means information including a name of the host program, an identification number (id), a number in the intermediate server, and information capable of uniquely identifying the host program. When the application providing device registers in the intermediate server for the host program, the intermediate server generates a host program identifier of the host program.
Step 302, receiving page description information sent by the application providing device, where the page description information is sent by the application providing device according to the host program identifier.
The page description information is used to describe a page element in a first user interface displayed on the user device. Optionally, the page description information is established by an administrator of the application providing device according to a page description rule issued by an administrator of the intermediate server. The page description rules include definitions of the format in which the different page elements are described. The intermediate server can generate corresponding front-end information for display according to the page description information established based on the page description rule. For example, in the page description rule, "title": for defining the title elements in the page. The field after "title" is used to display the content of the page title. "title": hello, world "is used to describe the page with the title" Hello, world ". The page description information is based on Extensible Markup Language (XML) and on JS Object Notation (JSON).
And 303, generating first front-end information based on the conversion rule according to the page description information.
The user equipment can display the first front-end information through a browser, and the first front-end information is based on Hyper Text Markup Language (HTML). Optionally, the conversion rule includes a page element identification rule and a front-end information conversion rule. The page element identification rule is used for determining a page element corresponding to the page description information, and the front-end information conversion rule is used for determining first front-end information corresponding to the page element.
And step 304, sending the first front-end information to the user equipment.
The first front-end information is used to display a first user interface on the user device.
To sum up, according to the application display method provided in the embodiment of the present application, according to a request for accessing a destination address of the user equipment, the intermediate server obtains the page description information from the application providing device to generate the first front-end information, thereby implementing displaying of the first user interface in the user equipment. The destination address points to an intermediate server. The process of displaying the user interface is the process of generating the Web application, and the application providing device can generate the Web application only by providing the page description information and can access the Web application through the target address. The generation process of the Web application is simplified.
Fig. 4 is a schematic flowchart of another application display method provided in the embodiment of the present application. The method may be used in a system as shown in fig. 1. As shown in fig. 4, the method includes:
step 401, in response to receiving an access request sent by the user equipment, the intermediate server sends a page display request to the application providing equipment according to the host program identifier in the access request.
The access request carries a target address, the target address points to the intermediate server, and the target address is an address in a URL format, an address in a short URL format and an IP address. When the user equipment accesses the target address through the browser, the access request is sent to the intermediate server. The target address includes a host program identification for identifying a host program that provides a service in the application providing apparatus. The host program runs in the application providing equipment, can receive and execute the specified instruction, and outputs the corresponding execution result so as to meet the requirements of users. Optionally, the host program is based on a Command Line Interface (CLI), such as a Script (Script) and an executable file (executable file). The host program is developed based on Python language, Java language, C language, and the like. The host program identifier includes a name of the host program, an identification number (id), a number in the intermediate server, and information capable of uniquely identifying the host program.
The intermediate server can provide a cloud service for generating an application, and when the application providing device needs to generate the application through the intermediate server, an administrator of the application providing device needs to register in the intermediate server. The intermediate server generates a host program identifier for the host program of the application providing device, and generates a target address according to the domain name of the intermediate server and the host program identifier. The user can use the service provided by the host program in the application providing device by accessing the target address through the browser.
When the intermediate server sends a page display request to the application providing equipment according to the host program identifier in the access request, the intermediate server acquires the registration information of the application providing equipment corresponding to the host program identifier in the intermediate server. The registration information includes a communication address of the application providing apparatus and a host program path. The communication address is an address in a URL format, an address in a short URL format, and an IP address. The host program path is used to indicate a storage location of the host program, and the application providing apparatus is able to determine the host program for providing the service according to the host program path. And then the intermediate server sends a page display request to the application providing device according to the communication address.
Step 402, in response to receiving a page display request sent by an intermediate server, an application providing device sends page description information to the intermediate server.
The page description information is used to describe a page element in a first user interface displayed on a user device. Optionally, the page description information is established by an administrator of the application providing device according to a page description rule issued by an administrator of the intermediate server. The page description rules include definitions of the format in which the different page elements are described. The page description information established according to the page description rule can describe the type of at least one page element, the display content of the page element, the display mode of the page element, the arrangement among the page elements and the interaction event of the page element in the first user interface. For example, the page description information describes that the first user interface includes a text input box and a submit button corresponding to the input box, the text input box displays an input prompt of 'please input a name', the submit button is a circular button, and the submit button displays 'confirm', and the circular button is located right below the text input box. The page description information is based on Extensible Markup Language (XML) and on JS Object Notation (JSON). When a plurality of host programs exist in the application providing device, the page display request further comprises a host program path of the host program for providing the service, and the application providing device can determine the host program according to the host program path so as to determine the page description information corresponding to the host program. The page display request further includes a contract parameter between the intermediate server and the application providing device, the contract parameter being used to instruct the application providing device to send the page description information to the intermediate server. For example, the contract parameter is "info".
The application providing apparatus receives a page display request transmitted from the intermediate server through a standard input file (stdin) in the application providing apparatus. The page description information is sent to the intermediate server via a standard output file (stdout) in the application providing device. Illustratively, the operating system of the application providing device is a Windows system or a Linux system, and when the application providing device receives a page display request, the page display request is saved in a standard input file and is read and processed by a host program providing services. When the application providing device transmits the page description information, the page description information is stored in a standard output file by the host program providing the service and transmitted to the intermediate server by the application providing device.
Optionally, the intermediate server implements information transmission with the application providing device through a Secure Shell (SSH), where an SSH client is deployed in the application providing device. The intermediate server can also realize information transmission with the application providing device through a HyperText Transfer Protocol (HTTP), and at this time, the application providing device is deployed with an HTTP service.
And step 403, the intermediate server generates first front-end information based on the conversion rule according to the page description information.
Optionally, the conversion rule includes a page element identification rule and a front-end information conversion rule. The page element identification rule is used for identifying page elements in the page description information, and the front-end information conversion rule is used for determining front-end information corresponding to the page elements. As shown in fig. 5, the implementation process of step 403 includes the following steps 4031 and 4032:
in step 4031, the page description information is parsed according to the page element identification rule to obtain the page elements.
Optionally, the page element identification rule includes a correspondence between an element identifier in the element identifier set and a preset page element. The page description information is established by an administrator of the application providing device according to the element identification set and the preset page elements. The element identification refers to the name of the page element, the sequence number of the page element in the server, and a specific page element field. The preset page elements are set by an administrator of the intermediate server, and include buttons, input boxes, selection boxes, forms, and the like.
The intermediate server determines a target element identifier in the page description information based on the set of element identifiers. For example, an element identification title is included in the element identification set to identify a title element in the user interface. And the intermediate server determines that the page description information comprises the element identifier title according to the element identifier set, and determines the page description information as the target element identifier.
And the intermediate server determines the preset page element corresponding to the target element identifier as a page element according to the corresponding relation. For example, the intermediate server determines a target element identifier "title" in the page description information according to the element identifier set, and according to a corresponding relationship between the element identifier and a preset page element, the intermediate server can determine that the page element corresponding to the target element identifier is a title element, and the title element is used for displaying a title of the user interface in the user interface.
Illustratively, table 1 shows the correspondence between the page description information and the page elements under the page element identification rule.
TABLE 1
Element identification type:text actions title
Preset page elements Input box Push button Title
As shown in table 1, when the intermediate server detects that the page description information includes type text, it is determined that the first user interface includes an input box; when the intermediate server detects that the page description information comprises actions, determining that the first user interface comprises a button; when the intermediate server detects that the title is included in the page description information, it is determined that the first user interface includes the page title.
In step 4032, the first front-end information corresponding to the page element is determined according to the front-end information conversion rule.
The intermediate server stores front-end information corresponding to the page elements, the front-end information is established by an administrator of the intermediate server, and the front-end information is based on Hyper Text Markup Language (HTML). The intermediate server can determine front-end information corresponding to each page element according to a front-end information conversion rule, and can determine the first front-end information according to the front-end information and the preset front-end information of the background of the user interface. Optionally, the intermediate server is preset with multiple types of front-end information conversion rules, for example, front-end information conversion rules of multiple color types, that is, page elements of different colors can be displayed. When the application providing device registers, the application providing device selects a type of front-end information conversion rule, and the intermediate server generates first front-end information according to the front-end information conversion rule of the type selected by the application providing device in the registration information of the application providing device. Or, the page description information also carries information indicating that a type of front-end information conversion rule is selected, and the intermediate server generates the first front-end information according to the type of front-end information conversion rule corresponding to the information.
Illustratively, table 2 shows the correspondence between the preset page elements and the front-end information under the front-end information conversion rule.
TABLE 2
Figure BDA0002738053920000131
As shown in table 2, the intermediate server determines, from the input box, that the front end information for displaying the input box in the first front end information is input type ═ text. The intermediate server determines that the front-end information used for displaying the button in the first front-end information is button type ═ button "> button name ^ button according to the button. And the button name is determined according to name information corresponding to the button element identifier in the page description information. The intermediate server determines, from the title, that the front end information for displaying the title in the first front end information is < h1 align ═ center "> title name [ < h1 ]. And the title name is determined according to name information corresponding to the title element identifier in the page description information. The intermediate server can also preset different front-end information for the same preset page element. The intermediate server can determine the corresponding front-end information according to the selection identification of the front-end information in the page description information.
Step 404, the intermediate server sends the first front-end information to the user equipment.
The first front-end information is used to display a first user interface on the user device.
Step 405, the user equipment displays a first user interface according to the first front-end information.
The first front-end information is based on HTML, and the user equipment displays the first user interface through a browser according to the first front-end information. Illustratively, fig. 6 is a schematic diagram of a first user interface provided by an embodiment of the present application. As shown in fig. 6, a title 602, an input box 603, a button 604, and author information 605 are included in the first user interface 601. The page description information corresponding to the first user interface 601 is:
{ form _ elements "[ {" require ":" True "," type ": text", "name": your _ name "," tube ":" name: "} ]," title ": Hello, world", "actions" [ { "name": click "," title ": dot I" } ], "" author ": ravingzhang" }.
The element of the title 602 is identified as title, and corresponds to "title" in the page description information. The element identification of input box 603 is type: text, corresponding to "type": text "in the page description information. The element of the name of the input box 603 is labeled label, corresponding to "label": name: "in the page description information. The elements of button 604 are identified as actions, corresponding to "actions" in the page description information. The element of the name of button 604 is identified as title, corresponding to "title": point me "in the page description information. The element of author information 605 is identified as author, corresponding to "author": ravenzhang "in the page description information. "require" True "indicates that the entry box 603 is a mandatory item.
Step 406, in response to receiving the touch operation in the first user interface, the user equipment sends operation information corresponding to the touch operation to the intermediate server.
The touch operation includes a single-click operation, a double-click operation, a long-press operation, a slide operation, and the like. For example, a user clicks on a button 604 in a first user interface 601 shown in fig. 6 displayed in the user device. The operational information also includes information entered by the user in the first user interface and entered information.
Step 407, in response to receiving the operation information in the first user interface sent by the user equipment, the intermediate server generates an operation instruction according to the host program identifier corresponding to the first user interface.
The host program identifier corresponding to the first user interface refers to a host program identifier in a target address corresponding to the first user interface. The operation instruction comprises a host program path and operation information, wherein the host program path is used for indicating the storage position of the host program. The intermediate server can acquire the storage location from the registration information of the application providing device according to the host program identifier.
Optionally, after receiving the operation information, the intermediate server analyzes the operation information, and converts the operation information into the target operation information according to the operation instruction generation rule. The operation instruction generation rule is set by an administrator of the intermediate server to ensure that the operation instruction generated by the intermediate server can be read and executed by the application providing apparatus.
Step 408, the intermediate server sends an operation instruction to the application providing device.
After the intermediate server generates the operation instruction, the operation instruction is sent to the application providing device. Optionally, the intermediate server sends the operation instruction to the application providing device through SSH, or the intermediate server sends the operation instruction to the application providing device through HTTP, so as to enable the application providing device to execute the operation instruction.
Step 409, in response to receiving the operation instruction sent by the intermediate server, the application providing device runs the host program according to the host program path to process the operation information, and obtains the returned page description information.
The method comprises the steps that a host program providing service in application providing equipment is based on a CLI, when the application providing equipment receives an operation instruction, the CLI operates the host program of a host program path according to the host program path in the operation instruction to process operation information, and therefore the return page description information is obtained. Optionally, the application providing device receives the operation instruction sent by the intermediate server through a standard input file.
Illustratively, the operation information is click { "your _ name": three sheets "}, wherein click represents that a button with the name of click is clicked," your _ name ": three sheets" represents that "three sheets" are input in an input box corresponding to the field your _ name. The host program in the application providing apparatus handles the single click operation of "zhang san" input in the input box and the button named click.
Step 410, the application providing device sends the return page description information to the intermediate server.
After obtaining the return page description information, the application providing device sends the return page description information to the intermediate server. Optionally, the returned page description information is generated by a returned page description information generation rule established by an administrator of the application providing device according to a returned page description rule issued by an administrator of the intermediate server. The return page description rule includes a definition of a format for describing the page prompt element corresponding to different return page description information. The returned page description information generated according to the returned page description information generation rule can describe the type of the page prompt element, the display content of the page prompt element, the display mode of the page prompt element, the arrangement among the page prompt elements and the interaction event of the page prompt element in the second user interface. For example, the returned page description information describes that the second user interface includes a popup, and a prompt of "submit successfully" is displayed in the popup. The application providing device sends the return page description information to the intermediate server through the standard output file.
Step 411, the intermediate server generates second front-end information based on the conversion rule according to the returned page description information.
Optionally, the conversion rule further comprises an execution success judgment rule. The intermediate server analyzes the returned page description information according to the execution success judgment rule to obtain an execution return value. The execution success judgment rule includes a return value identification. When the application providing device generates the return page description information, the return value identification and the return value are added into the return page description information. The intermediate server can determine the return value in the return page description information according to the return value identification. For example, if the return value is identified as ret and the return page description information includes "ret":0, then the return value determined by the intermediate server is 0.
And in response to the return value indicating that the operation instruction is successfully executed, generating second front-end information based on the conversion rule according to the return page description information. And determining the front-end information corresponding to the failure prompt as second front-end information in response to the return value indicating that the operation instruction fails to execute. Illustratively, when the return value is 0, the intermediate server confirms that the return value indicates that the operation instruction execution is successful. When the return value is 1, the intermediate server confirms that the return value indicates that the operation instruction execution fails. The failure prompt is a page element for prompting the user to operate failure, and the second front-end information is used for displaying the failure prompt.
Optionally, the conversion rule further includes a prompt element identification rule and a return page description information conversion rule. When the return value obtained by the intermediate server parsing the return page description information indicates that the execution of the operation instruction is successful, as shown in fig. 7, the implementation process of step 411 includes the following steps 4111 and 4112:
in step 4111, the returned page description information is parsed according to the prompt element identification rule to obtain a page prompt element.
The page prompt element refers to a page element for prompting the user, such as a popup window. Optionally, the prompt element identification rule includes a correspondence between prompt element identifiers in the prompt element identifier set and preset page prompt elements. The intermediate server determines a target prompt element identifier in the returned page description information based on the prompt element identifier set. For example, the prompt element identification set includes a prompt element identification msg for identifying a prompt pop in the user interface. And the intermediate server determines that the returned page description information comprises the prompt element identifier msg according to the prompt element identifier set, and determines the returned page description information as a target prompt element identifier.
And the intermediate server determines the preset page prompt element corresponding to the target prompt element identifier as a page prompt element according to the corresponding relation between the prompt element identifier and the preset prompt element. For example, the intermediate server determines a target prompt element identifier msg in the returned page description information according to the prompt element identifier set, and according to the corresponding relationship between the prompt element identifier and the preset page prompt element, the intermediate server can determine that the page prompt element corresponding to the target prompt element identifier is a prompt pop-up window, and the prompt pop-up window is used for displaying prompt information for the user in the user interface.
Illustratively, table 3 shows the correspondence between the preset page elements and the front-end information under the prompt element identification rule.
TABLE 3
Prompt element identification msg msg1
Preset page prompt element Popup window with closing button Spring window without closing button
As shown in table 3, when the intermediate server detects that msg is included in the return page description information, it is determined that the second user interface includes a popup having a close button. When the intermediary server detects that the msg1 is included in the page description information, it is determined that the second user interface includes a popup without a close button. Namely, the pop-up window can be automatically hidden after a preset time length.
In step 4112, second front-end information corresponding to the page prompt element is determined according to the conversion rule of the returned page description information.
The intermediate server stores front-end information corresponding to the page prompt element. The intermediate server can determine the front-end information corresponding to the page prompt elements according to the conversion rule of the returned page description information, so that the second front-end information can be determined. Illustratively, the return page description information is { "msg": Hello, zhang san', "ret":0}, and the second front-end information determined by the intermediate server according to the return page description information can display a popup containing "Hello, zhang san".
Illustratively, table 4 shows the correspondence between the preset page hint elements and the front-end information under the conversion rule of the returned page description information.
TABLE 4
Figure BDA0002738053920000171
As shown in table 4, the intermediate server determines, according to the popup of the non-close button, the front-end information for displaying the popup in the second front-end information. And the intermediate server determines the front-end information used for displaying the popup window in the second front-end information according to the popup window with the closing button. And the prompt information is determined according to the prompt information corresponding to the popup element identifier in the returned page description information. It should be noted that the intermediate server can encapsulate the initial front-end information and send the initial front-end information to the user equipment when sending the front-end information. As shown in table 4, the generated front-end information is used to call the packaged initial front-end information, so as to display the second user interface.
And step 412, the intermediate server sends the second front-end information to the user equipment.
The second front-end information is used to display a second user interface on the user device.
And 413, the user equipment displays a second user interface according to the second front-end information.
The second user interface is used for feeding back the touch operation of the user in the first user interface. The second user interface may be the same as or different from the first user interface. And when the second user interface is different from the first user interface, namely the user operates in the first user interface, the user equipment skips and displays the first user interface as the second user interface. And when the second user interface is the same as the first user interface, the second user interface displayed by the user equipment is the user interface which displays the page prompt element on the first user interface in an overlapping mode. For example, a popup is displayed in the first user interface in an overlapping mode according to the second front-end information. Illustratively, fig. 8 is a schematic diagram of a second user interface provided by an embodiment of the present application. The second user interface is a user interface in which a page prompt element is displayed on the first user interface in an overlapping manner, and the page prompt element is a popup 606. The pop-up window 606 includes a reminder message and a smiley face expression. The prompt information is determined by the intermediate server according to the returned page description information of Hello, Zhang three in the 'msg': Hello, Zhang three 'and' ret ': 0'. When the intermediate server generates the front-end information corresponding to the pop-up window 606, the front-end information corresponding to the smiling face expression is added to prompt that the touch operation of the user is successful.
To sum up, according to the application display method provided in the embodiment of the present application, according to a request for accessing a destination address of the user equipment, the intermediate server obtains the page description information from the application providing device to generate the first front-end information, thereby implementing displaying of the first user interface in the user equipment. The destination address points to an intermediate server. The process of displaying the user interface is the process of generating the Web application, and the application providing device can generate the Web application only by providing the page description information and can access the Web application through the target address. The process of generating a Web application is simplified.
In addition, the application providing equipment can update the host program providing the service at any time, and when the user equipment needs to use the host program, the intermediate server calls the latest host program, so that the updating efficiency of the host program in the application providing equipment is improved. When the first user interface needs to be modified, only the page description information needs to be modified, and the maintenance operation is simplified. An administrator of the intermediate server can flexibly set conversion rules, different types of front-end information can be generated, and user experience is improved. An administrator of the intermediate server can expand the element identifier set according to requirements, flexible generation and application are achieved, and practicability is improved. The intermediate server generates the target address, so that the user can use the service provided by the host program in the application providing equipment through the target address, and the process of using the service by the user is simplified.
It should be noted that, the order of the steps of the method provided in the embodiments of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be covered by the protection scope of the present application, and therefore, the detailed description thereof is omitted.
Fig. 9 is a block diagram of an application display system according to an embodiment of the present application, and as shown in fig. 9, the system 90 includes: an intermediate server 901, an application providing device 902 and a user device 903. The intermediate server 901 and the application providing apparatus 902 are connected to each other via a network, and the intermediate server 901 and the user apparatus 903 are connected to each other via a network.
The intermediate server 901 is configured to, in response to receiving the access request sent by the user equipment 903, send a page display request to the application providing device 902 according to the host program identifier in the access request. The access request carries a target address including a host program identifier, the target address pointing to the intermediate server 901, the host program identifier being used to identify a host program that provides a service in the application providing apparatus 902.
The application providing apparatus 902 is configured to transmit page description information to the intermediate server 901 in response to receiving a page display request transmitted by the intermediate server 901. The page description information is used to describe a page element in the first user interface displayed on the user device 903.
And the intermediate server 901 is configured to generate the first front-end information based on the conversion rule according to the page description information.
The intermediate server 901 is configured to send the first front-end information to the user equipment 903.
And the user equipment 903 is used for displaying the first user interface according to the first front-end information.
Optionally, the user device 903 is configured to send operation information corresponding to the touch operation to the intermediate server 901 in response to receiving the touch operation in the first user interface. The intermediate server 901 is configured to generate an operation instruction according to the host program identifier corresponding to the first user interface in response to receiving the operation information sent by the user equipment 903. The operation instruction comprises a host program path and operation information, wherein the host program path is determined according to the host program identifier. An intermediate server 901 for sending an operation instruction to the application providing apparatus 902. The application providing device 902 is configured to, in response to receiving the operation instruction sent by the intermediate server 901, run the host program according to the host program path to process the operation information, and obtain the returned page description information. The application providing device 902 is configured to send the return page description information to the intermediate server. And the intermediate server 901 is configured to generate second front-end information based on the conversion rule according to the returned page description information, where the second front-end information is used to display a second user interface on the user equipment 903. And the intermediate server 901 is configured to send the second front-end information to the user equipment 903. And the user equipment 903 is used for displaying a second user interface according to the second front-end information.
Optionally, the application providing device 902 is configured to receive a page display request sent by the intermediate server through a standard input file in the application providing device 902. The application providing device 902 is used for sending the page description information to the intermediate server through the standard output file in the application providing device 902.
Fig. 10 is a schematic structural diagram of an application display device according to an embodiment of the present application. The apparatus may be used in an intermediate server in a system as shown in figure 1. As shown in fig. 10, the apparatus 100 includes:
a first sending module 1001, configured to, in response to receiving an access request sent by a user equipment, send a page display request to an application providing device according to a host program identifier in the access request. The access request carries a target address, the target address includes a host program identifier, the target address points to the intermediate server, and the host program identifier is used for identifying a host program providing services in the application providing device.
The receiving module 1002 is configured to receive page description information sent by an application providing apparatus. The page description information is sent by the application providing equipment according to the host program identification, and the page description information is used for describing page elements in the first user interface displayed on the user equipment.
A first generating module 1003, configured to generate first front-end information based on the conversion rule according to the page description information.
A second sending module 1004, configured to send the first front-end information to the user equipment, where the first front-end information is used to display the first user interface on the user equipment.
Optionally, the conversion rule includes a page element identification rule and a front-end information conversion rule. A first generating module 1003 for:
and analyzing the page description information according to the page element identification rule to obtain the page elements. And determining first front-end information corresponding to the page elements according to the front-end information conversion rule.
Optionally, the page element identification rule includes a correspondence between an element identifier in the element identifier set and a preset page element. A first generating module 1003 for:
and determining a target element identification in the page description information based on the element identification set. And determining the preset page elements corresponding to the target element identification as page elements according to the corresponding relation.
Optionally, as shown in fig. 11, the apparatus 100 further includes:
the second generating module 1005 is configured to, in response to receiving operation information in the first user interface sent by the user equipment, generate an operation instruction according to the host program identifier corresponding to the first user interface.
A first sending module 1001, configured to send an operation instruction to an application providing apparatus, where the operation instruction includes a host program path and operation information, the host program path is used to indicate a storage location of a host program, and the host program path is determined according to a host program identifier.
The receiving module 1002 is configured to receive return page description information sent by the application providing device, where the return page description information is determined by the application providing device according to a running result of the host program processing operation information executed by the host program path.
A first generating module 1003, configured to generate second front-end information based on the conversion rule according to the returned page description information.
A second sending module 1004, configured to send second front-end information to the user equipment, where the second front-end information is used to display a second user interface on the user equipment.
Optionally, the conversion rule further comprises an execution success judgment rule. A first generating module 1003 for:
and analyzing the returned page description information according to the execution success judgment rule to obtain an execution return value. And in response to the return value indicating that the operation instruction is successfully executed, generating second front-end information based on the conversion rule according to the return page description information.
Optionally, the conversion rule further comprises an execution success judgment rule. A first generating module 1003 for:
and analyzing the returned page description information according to the execution success judgment rule to obtain an execution return value. And determining the front-end information corresponding to the failure prompt as second front-end information in response to the return value indicating that the operation instruction fails to execute.
Optionally, the conversion rule further includes a prompt element identification rule and a return page description information conversion rule. A first generating module 1003 for:
and analyzing the returned page description information according to the prompt element identification rule to obtain the page prompt element. And determining second front-end information corresponding to the page prompt element according to the conversion rule of the returned page description information.
Alternatively, as shown in fig. 12, the first sending module 1001 includes:
the obtaining sub-module 1006 is configured to obtain registration information of the application providing device corresponding to the host program identifier in the intermediate server, where the registration information includes a communication address of the application providing device and a host program path, and the host program path is used to indicate a storage location of the host program.
A first sending module 1001 is configured to send a page display request to the application providing apparatus according to the communication address.
Optionally, as shown in fig. 13, the apparatus 100 further includes:
a third generating module 1007, configured to generate a destination address according to the domain name of the intermediate server and the host program identifier.
It should be noted that: the application display device provided in the above embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the application display device and the application display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Embodiments of the present application further provide a computer device, including: the application display system comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the application display method provided by the method embodiments.
Optionally, the computer device is a server. Illustratively, fig. 14 is a schematic structural diagram of a server provided in an embodiment of the present application.
The server 1400 includes a Central Processing Unit (CPU) 1401, a system Memory 1404 including a Random Access Memory (RAM) 1402 and a Read-Only Memory (ROM) 1403, and a system bus 1405 connecting the system Memory 1404 and the CPU 1401. The computer device 1400 also includes a basic Input/Output system (I/O system) 1406 that facilitates transfer of information between devices within the computer device, and a mass storage device 1407 for storing an operating system 1413, application programs 1414, and other program modules 1415.
The basic input/output system 1406 includes a display 1408 for displaying information and an input device 1409, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1408 and input device 1409 are both connected to the central processing unit 1401 via an input-output controller 1410 connected to the system bus 1405. The basic input/output system 1406 may also include an input/output controller 1410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1410 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1407 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable storage media provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer-readable storage medium (not shown) such as a hard disk or Compact disk-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable storage media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable storage instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory devices, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1404 and mass storage device 1407 described above may collectively be referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 1401, the one or more programs containing instructions for implementing the method embodiments described above, and the central processing unit 1401 executes the one or more programs to implement the methods provided by the various method embodiments described above.
The server 1400 may also operate as a remote server connected to a network through a network, such as the internet, according to various embodiments of the present application. That is, the server 1400 may be coupled to the network 1412 through a network interface unit 1411 coupled to the system bus 1405, or the network interface unit 1411 may be used to couple to other types of networks or remote server systems (not shown).
The memory also includes one or more programs, which are stored in the memory, and the one or more programs include instructions for performing the steps performed by the server in the methods provided by the embodiments of the present application.
Optionally, the user equipment in this embodiment of the present application is also a computer device, and the computer device is a terminal. Illustratively, fig. 15 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
In general, terminal 1500 includes: a processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1502 is used to store at least one instruction for execution by the processor 1501 to implement the steps performed by the user device in the embodiments of the present application.
In some embodiments, the terminal 1500 may further include: a peripheral interface 1503 and at least one peripheral. The processor 1501, memory 1502, and peripheral interface 1503 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1503 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display 1505, a camera assembly 1506, an audio circuit 1507, a positioning assembly 1508, and a power supply 1509.
The peripheral interface 1503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, memory 1502, and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on separate chips or circuit boards, which are not limited in this application.
The Radio Frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 1504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1504 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1504 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to capture touch signals on or over the surface of the display screen 1505. The touch signal may be input to the processor 1501 as a control signal for processing. In this case, the display screen 1505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1505 may be one, providing the front panel of terminal 1500; in other embodiments, display 1505 may be at least two, each disposed on a different surface of terminal 1500 or in a folded design; in still other embodiments, display 1505 may be a flexible display disposed on a curved surface or a folded surface of terminal 1500. Even further, the display 1505 may be configured in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1505 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 1506 is used to capture images or video. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal 1500 and the rear camera is disposed on the back of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1507 may include a microphone and speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1501 for processing or inputting the electric signals to the radio frequency circuit 1504 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of the terminal 1500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1507 may also include a headphone jack.
The positioning component 1508 is used to locate the current geographic position of the terminal 1500 for navigation or LBS (Location Based Service). The Positioning component 1508 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, or the russian galileo System.
Power supply 1509 is used to power the various components in terminal 1500. The power supply 1509 may be alternating current, direct current, disposable or rechargeable. When the power supply 1509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1500 also includes one or more sensors 1510. The one or more sensors 1510 include, but are not limited to: acceleration sensor 1511, gyro sensor 1512, pressure sensor 1513, fingerprint sensor 1514, optical sensor 1515, and proximity sensor 1516.
The acceleration sensor 1511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1500. For example, the acceleration sensor 1511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1501 may control the touch screen display 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 1512 can detect the body direction and the rotation angle of the terminal 1500, and the gyroscope sensor 1512 and the acceleration sensor 1511 cooperate to collect the 3D motion of the user on the terminal 1500. The processor 1501 may implement the following functions according to the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1513 may be disposed on a side bezel of terminal 1500 and/or underneath touch display 1505. When the pressure sensor 1513 is disposed on the side frame of the terminal 1500, the holding signal of the user to the terminal 1500 may be detected, and the processor 1501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is disposed at a lower layer of the touch display 1505, the processor 1501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1514 is configured to capture a fingerprint of the user, and the processor 1501 identifies the user based on the fingerprint captured by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user based on the captured fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1514 may be disposed on the front, back, or side of the terminal 1500. When a physical key or vendor Logo is provided on the terminal 1500, the fingerprint sensor 1514 may be integrated with the physical key or vendor Logo.
The optical sensor 1515 is used to collect ambient light intensity. In one embodiment, processor 1501 may control the brightness of the display on touch screen 1505 based on the intensity of ambient light collected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is turned down. In another embodiment, the processor 1501 may also dynamically adjust the shooting parameters of the camera assembly 1506 based on the ambient light intensity collected by the optical sensor 1515.
A proximity sensor 1516, also known as a distance sensor, is typically provided on the front panel of the terminal 1500. The proximity sensor 1516 is used to collect the distance between the user and the front surface of the terminal 1500. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually decreases, the processor 1501 controls the touch display 1505 to switch from the bright screen state to the dark screen state; when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually becomes larger, the processor 1501 controls the touch display 1505 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 15 does not constitute a limitation of terminal 1500, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be employed.
The embodiment of the present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and when the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor of a computer device, the application display method provided by the above method embodiments is implemented.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the application display method provided by the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the above readable storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only an example of the present application and should not be taken as limiting, and any modifications, equivalent switches, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An application display method, comprising:
responding to an access request sent by user equipment, sending a page display request to the application providing equipment according to a host program identifier in the access request, wherein the access request carries a target address, the target address comprises the host program identifier, the target address points to an intermediate server, and the host program identifier is used for identifying a host program providing service in the application providing equipment;
receiving page description information sent by the application providing equipment, wherein the page description information is sent by the application providing equipment according to the host program identifier and is used for describing page elements in a first user interface displayed on the user equipment;
generating first front-end information based on a conversion rule according to the page description information;
and sending the first front-end information to the user equipment, wherein the first front-end information is used for displaying the first user interface on the user equipment.
2. The method of claim 1, wherein the transformation rules include page element identification rules and front-end information transformation rules;
generating first front-end information based on a conversion rule according to the page description information, wherein the generating comprises:
analyzing the page description information according to the page element identification rule to obtain the page element;
and determining the first front-end information corresponding to the page element according to the front-end information conversion rule.
3. The method according to claim 2, wherein the page element identification rule comprises a correspondence between an element identifier in an element identifier set and a preset page element;
the analyzing the page description information according to the page element identification rule to obtain the page element includes:
determining a target element identifier in the page description information based on the element identifier set;
and determining the preset page element corresponding to the target element identifier as the page element according to the corresponding relation.
4. The method of claim 1, further comprising:
responding to received operation information in the first user interface sent by the user equipment, and generating an operation instruction according to the host program identifier corresponding to the first user interface;
sending the operation instruction to the application providing device, wherein the operation instruction comprises a host program path and the operation information, the host program path is used for indicating a storage location of the host program, and the host program path is determined according to the host program identifier;
receiving returned page description information sent by the application providing equipment, wherein the returned page description information is determined by the application providing equipment according to the running result of the host program running the host program to process the operation information;
generating second front-end information based on the conversion rule according to the returned page description information;
and sending the second front-end information to the user equipment, wherein the second front-end information is used for displaying a second user interface on the user equipment.
5. The method of claim 4, wherein the transformation rule further comprises executing a success judgment rule;
generating second front-end information based on the conversion rule according to the returned page description information, wherein the generating of the second front-end information comprises the following steps:
analyzing the returned page description information according to the execution success judgment rule to obtain an execution return value;
and determining front-end information corresponding to failure prompt as the second front-end information in response to the return value indicating that the execution of the operation instruction fails.
6. The method according to any one of claims 1 to 5, wherein the sending a page display request to the application providing device according to the host program identifier in the access request in response to receiving the access request sent by the user device, comprises:
acquiring registration information of the application providing equipment corresponding to the host program identification in the intermediate server, wherein the registration information comprises a communication address of the application providing equipment and a host program path, and the host program path is used for indicating a storage position of the host program;
and sending the page display request to the application providing equipment according to the communication address.
7. An application display system, the system comprising: the system comprises an intermediate server, application providing equipment and user equipment, wherein the intermediate server is connected with the application providing equipment through a network, and the intermediate server is connected with the user equipment through the network;
the intermediate server is configured to send, in response to receiving an access request sent by the user equipment, a page display request to the application providing equipment according to a host program identifier in the access request, where the access request carries a target address, the target address includes the host program identifier, the target address points to the intermediate server, and the host program identifier is used to identify a host program providing a service in the application providing equipment;
the application providing device is used for responding to the page display request sent by the intermediate server and sending page description information to the intermediate server, wherein the page description information is used for describing page elements in a first user interface displayed on the user equipment;
the intermediate server is used for generating first front-end information based on a conversion rule according to the page description information;
the intermediate server is used for sending the first front-end information to the user equipment;
the user equipment is used for displaying the first user interface according to the first front-end information.
8. An application display apparatus, characterized in that the apparatus comprises:
a first sending module, configured to send, in response to receiving an access request sent by user equipment, a page display request to the application providing equipment according to a host program identifier in the access request, where the access request carries a target address, the target address includes the host program identifier, the target address points to an intermediate server, and the host program identifier is used to identify a host program that provides a service in the application providing equipment;
a receiving module, configured to receive page description information sent by the application providing device, where the page description information is sent by the application providing device according to the host program identifier, and the page description information is used to describe a page element in a first user interface displayed on the user device;
the first generation module is used for generating first front-end information based on a conversion rule according to the page description information;
a second sending module, configured to send the first front-end information to the user equipment, where the first front-end information is used to display the first user interface on the user equipment.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement an application display method according to any one of claims 1 to 6.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the application display method of any of claims 1 to 6.
CN202011140445.1A 2020-10-22 2020-10-22 Application display method, application display system, application display device and application display equipment Pending CN114385939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011140445.1A CN114385939A (en) 2020-10-22 2020-10-22 Application display method, application display system, application display device and application display equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011140445.1A CN114385939A (en) 2020-10-22 2020-10-22 Application display method, application display system, application display device and application display equipment

Publications (1)

Publication Number Publication Date
CN114385939A true CN114385939A (en) 2022-04-22

Family

ID=81194789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011140445.1A Pending CN114385939A (en) 2020-10-22 2020-10-22 Application display method, application display system, application display device and application display equipment

Country Status (1)

Country Link
CN (1) CN114385939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794634A (en) * 2022-11-29 2023-03-14 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794634A (en) * 2022-11-29 2023-03-14 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium
CN115794634B (en) * 2022-11-29 2023-12-01 北京五八信息技术有限公司 Communication method and device of application program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN108717365B (en) Method and device for executing function in application program
CN112420217B (en) Message pushing method, device, equipment and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN111159604A (en) Picture resource loading method and device
CN110543350A (en) Method and device for generating page component
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN112749362A (en) Control creating method, device, equipment and storage medium
CN111737100A (en) Data acquisition method, device, equipment and storage medium
CN109800003B (en) Application downloading method, device, terminal and storage medium
CN111459466A (en) Code generation method, device, equipment and storage medium
CN109995804B (en) Target resource information display method, information providing method and device
CN107943484B (en) Method and device for executing business function
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN114385939A (en) Application display method, application display system, application display device and application display equipment
CN113204302B (en) Virtual robot-based operation method, device, equipment and storage medium
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN110390065B (en) Webpage acquisition method, device and system
CN110569064B (en) Interface identifier generation method, device, equipment and storage medium
CN111294320B (en) Data conversion method and device
CN113836426A (en) Information pushing method and device and electronic equipment
CN112052419A (en) Picture loading method, device and equipment and readable storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN112783533A (en) Version information updating method, version information updating device, terminal and storage medium

Legal Events

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