Data processing method, simulation server and timeliness application

文档序号:960716 发布日期:2020-11-03 浏览:30次 中文

阅读说明:本技术 一种数据处理方法、模拟服务器及时效性应用 (Data processing method, simulation server and timeliness application ) 是由 赵旸 翟灿东 邱旻峰 于 2020-07-13 设计创作,主要内容包括:本申请实施提供了一种数据处理方法、模拟服务器及时效性应用,涉及计算机技术领域,该方法包括:模拟服务器接收时效性应用发送的模拟操作请求,模拟服务器将模拟操作请求的响应数据发送至时效性应用,以使时效性应用根据模拟操作请求的响应数据生成模拟操作响应页面并显示,模拟操作请求的响应数据是从时效性应用在上线期间上传至模拟服务器的数据中获取的。在时效性应用下线后,模拟服务器采用时效性应用在上线期间上传至模拟服务器的数据,模拟在线服务器为时效性应用提供服务,使得时效性应用下线后依然能被用户访问和操作,从而给用户学习以及体验时效性应用带来便利。(The application provides a data processing method, a simulation server and timeliness application, and relates to the technical field of computers, wherein the method comprises the following steps: the simulation server receives a simulation operation request sent by the time-efficient application, the simulation server sends response data of the simulation operation request to the time-efficient application, so that the time-efficient application generates a simulation operation response page according to the response data of the simulation operation request and displays the simulation operation response page, and the response data of the simulation operation request is acquired from data uploaded to the simulation server during the time-efficient application is online. After the timeliness application is offline, the simulation server adopts data uploaded to the simulation server during the online period of the timeliness application, and the simulation online server provides service for the timeliness application, so that the timeliness application can still be accessed and operated by a user after being offline, and convenience is brought to the user for learning and experiencing the timeliness application.)

1. A data processing method, comprising:

the method comprises the steps that a simulation server receives a simulation operation request sent by a timeliness application, wherein the simulation operation request is sent after the timeliness application receives simulation operation input by a user through a simulation page;

and the simulation server sends the response data of the simulation operation request to the timeliness application so that the timeliness application generates a simulation operation response page according to the response data of the simulation operation request, wherein the response data of the simulation operation request is acquired from the data uploaded to the simulation server by the timeliness application during the online period.

2. The method of claim 1, wherein the simulation server performs deduplication and saving on the data uploaded by the time-efficient application during the online period after receiving the data uploaded by the time-efficient application during the online period, and the data uploaded to the simulation server by the time-efficient application during the online period comprises data of online pages, user operation data and response data of user operations.

3. The method of claim 2, wherein the data of the simulation page is generated by the simulation server after the time-sensitive application is offline, comprising:

the simulation server adds a simulation tool library in the data of the online page by adopting a task script, modifies the address information and the resource addressing path of the online page into simulation address information and a simulation resource addressing path, and generates data of the simulation page, wherein the simulation tool library is at least used for simulating the page function and the running environment of the online page and sending the received simulation operation request to the simulation server.

4. The method of claim 3, wherein the simulation address information is release address information of the simulation page in a simulation page release platform, and the simulation page release platform is used for releasing simulation pages of each time-sensitive application;

the simulation resource addressing path is a relative path pointing to the page resource in the simulation server or an absolute path pointing to the page resource in the online server.

5. The method of claim 1, wherein the response data of the simulation operation request is a screenshot of a logical branch result corresponding to the simulation operation;

determining the screenshot of the logic branch result corresponding to the simulation operation in the following way, which specifically comprises the following steps:

the simulation server generates a hierarchical structure of the simulation page according to the operation control in the simulation page;

and the simulation server adopts an operation script, sequentially simulates input simulation operations in the simulation page based on the hierarchical structure of the simulation page, and obtains the screenshot of the logic branch result corresponding to each simulation operation.

6. The method of any of claims 3 to 5, wherein before the simulation server receives the simulation operation request sent by the time-sensitive application, the method further comprises:

the method comprises the steps that a simulation server receives a simulation page opening request sent by a time-efficient application, wherein the simulation page opening request is sent after the time-efficient application receives a simulation page opening operation input by a user;

and the simulation server sends the data of the simulation page to the timeliness application so that the timeliness application generates and displays the simulation page according to the data of the simulation page.

7. A data processing method, comprising:

receiving a simulation operation input by a user through a simulation page;

sending a simulation operation request to a simulation server;

and receiving response data of the simulation operation request sent by the simulation server, and generating a simulation operation response page, wherein the response data of the simulation operation request is acquired by the simulation server from data uploaded to the simulation server during the online period of the time-efficient application.

8. The method of claim 7, wherein prior to the simulated page of the time sensitive application receiving the simulated operation, further comprising:

receiving a simulated page opening operation input by a user;

sending a simulation page opening request to a simulation server;

and receiving the data of the simulation page sent by the simulation server and generating the simulation page.

9. A simulation server, comprising:

the simulation operation system comprises a first receiving module, a second receiving module and a simulation operation processing module, wherein the first receiving module is used for receiving a simulation operation request sent by a time-efficient application, and the simulation operation request is sent after the time-efficient application receives a simulation operation input by a user through a simulation page;

the first processing module is used for sending response data of the simulation operation request to the timeliness application so that the timeliness application can generate a simulation operation response page according to the response data of the simulation operation request, and the response data of the simulation operation request is acquired from data uploaded to the simulation server by the timeliness application during an online period.

10. The simulation server of claim 9, wherein the first processing module is further to:

and after receiving the data uploaded by the time-efficient application during the online period, performing deduplication and storage on the data uploaded by the time-efficient application during the online period, wherein the data uploaded to the simulation server by the time-efficient application during the online period comprises data of an online page, user operation data and response data of user operation.

11. The simulation server of claim 10, wherein the first processing module is further to:

and adding a simulation tool library in the data of the online page by adopting a task script, modifying the address information and the resource addressing path of the online page into simulation address information and a simulation resource addressing path, and generating data of a simulation page, wherein the simulation tool library is at least used for simulating the page function and the running environment of the online page and sending the received simulation operation request to the simulation server.

12. A time-sensitive application, comprising:

the second receiving module is used for receiving the simulation operation input by the user through the simulation page;

the first sending module is used for sending a simulation operation request to the simulation server;

the second receiving module is configured to receive response data of the simulation operation request sent by the simulation server, where the response data of the simulation operation request is obtained by the simulation server from data uploaded to the simulation server during an online period of the time-efficient application;

and the second processing module is used for generating a simulation operation response page.

13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method of any one of claims 1 to 6 or any one of claims 7 to 8.

14. A computer-readable storage medium, storing a computer program executable by a computer device, the program, when executed on the computer device, causing the computer device to perform the steps of the method of any one of claims 1 to 6 or any one of claims 7 to 8.

Technical Field

The embodiment of the application relates to the technical field of computers, in particular to a data processing method, an analog server and a timeliness application.

Background

At present, many applications have timeliness, and a user accesses the applications within a specified starting time and a specified stopping time, and when the stopping time is reached, the application is offline, and the user cannot access the applications any more. For example, some games correspond to specific activity times, and a gamer can only participate when the game activity is online, and cannot participate when the game activity is offline. For a user who needs to know the timeliness application after the timeliness application is offline, the problem that the user cannot access the timeliness application after the timeliness application is offline brings inconvenience to the user.

Disclosure of Invention

The application provides a data processing method, a simulation server and a timeliness application, and is used for simulating the function of the timeliness application after the timeliness application is offline, so that a user can continue to experience the timeliness application after the timeliness application is offline.

In one aspect, an embodiment of the present application provides a data processing method, where the method includes:

the method comprises the steps that a simulation server receives a simulation operation request sent by a timeliness application, wherein the simulation operation request is sent after the timeliness application receives simulation operation input by a user through a simulation page;

and the simulation server sends the response data of the simulation operation request to the timeliness application so that the timeliness application generates a simulation operation response page according to the response data of the simulation operation request, wherein the response data of the simulation operation request is acquired from the data uploaded to the simulation server by the timeliness application during the online period.

In one aspect, an embodiment of the present application provides a data processing method, where the method includes:

receiving a simulation operation input by a user through a simulation page;

sending a simulation operation request to a simulation server;

receiving response data of the simulation operation request sent by the simulation server, and generating a simulation operation response page, wherein the response data of the simulation operation request is obtained by the simulation server from data uploaded to the simulation server during the online period of the time-sensitive application.

In one aspect, an embodiment of the present application provides a simulation server, including:

the simulation operation system comprises a first receiving module, a second receiving module and a simulation operation processing module, wherein the first receiving module is used for receiving a simulation operation request sent by a time-efficient application, and the simulation operation request is sent after the time-efficient application receives a simulation operation input by a user through a simulation page;

the first processing module is used for sending response data of the simulation operation request to the timeliness application so that the timeliness application can generate a simulation operation response page according to the response data of the simulation operation request, and the response data of the simulation operation request is acquired from data uploaded to the simulation server by the timeliness application during an online period.

Optionally, the first processing module is further configured to:

and after receiving the data uploaded by the time-efficient application during the online period, performing deduplication and storage on the data uploaded by the time-efficient application during the online period, wherein the data uploaded to the simulation server by the time-efficient application during the online period comprises data of an online page, user operation data and response data of user operation.

Optionally, the first processing module is further configured to:

and adding a simulation tool library in the data of the online page by adopting a task script, modifying the address information and the resource addressing path of the online page into simulation address information and a simulation resource addressing path, and generating data of a simulation page, wherein the simulation tool library is at least used for simulating the page function and the running environment of the online page and sending the received simulation operation request to the simulation server.

Optionally, the simulation address information is release address information of the simulation page in a simulation page release platform, where the simulation page release platform is used to release the simulation page of each timeliness application;

the simulation resource addressing path is a relative path pointing to the page resource in the simulation server or an absolute path pointing to the page resource in the online server.

Optionally, the response data of the simulation operation request is a screenshot of a logic branch result corresponding to the simulation operation;

the first processing module is further configured to:

generating a hierarchical structure of the simulation page according to the operation control in the simulation page;

and adopting an operation script, sequentially simulating input simulation operations in the simulation page based on the hierarchical structure of the simulation page, and obtaining a screenshot of a logic branch result corresponding to each simulation operation.

Optionally, the first receiving module is further configured to:

before receiving a simulation operation request sent by a time-efficient application, receiving a simulation page opening request sent by the time-efficient application, wherein the simulation page opening request is sent after the time-efficient application receives a simulation page opening operation input by a user;

the first processing module is further configured to:

and sending the data of the simulated page to the timeliness application so that the timeliness application generates and displays the simulated page according to the data of the simulated page.

In one aspect, an embodiment of the present application provides a time-sensitive application, including:

the second receiving module is used for receiving the simulation operation input by the user through the simulation page;

the first sending module is used for sending a simulation operation request to the simulation server;

the second receiving module is configured to receive response data of the simulation operation request sent by the simulation server, where the response data of the simulation operation request is obtained by the simulation server from data uploaded to the simulation server during an online period of the time-efficient application;

and the second processing module is used for generating a simulation operation response page.

Optionally, the second receiving module is further configured to receive a simulated page opening operation input by a user;

the first sending module is further used for sending a simulation page opening request to the simulation server;

the second receiving module is further configured to receive data of the simulation page sent by the simulation server;

the second processing module is further configured to generate a simulation page.

In one aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data processing method when executing the program.

In one aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, the computer device is caused to execute the steps of the data processing method.

In the embodiment of the application, after the timeliness application is offline, the simulation server is adopted to simulate the online server to provide service for the timeliness application, the timeliness application receives simulation operation through the simulation page, then the simulation operation request is sent to the simulation server, the simulation server sends response data of the simulation operation request to the timeliness application, the timeliness application generates the simulation operation response page according to the response data of the simulation operation request and displays the simulation operation response page, the timeliness application can still be accessed and operated by a user after being offline, and therefore convenience is brought to the user for learning and experiencing the timeliness application.

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 will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

FIG. 1 is a diagram of a system architecture according to an embodiment of the present application;

fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;

FIG. 3 is a schematic diagram of a simulation page provided in an embodiment of the present application;

FIG. 4 is a schematic diagram of a simulation page provided in an embodiment of the present application;

fig. 5 is a schematic diagram of a simulation operation response page provided in an embodiment of the present application;

fig. 6 is a schematic diagram of a simulation operation response page provided in an embodiment of the present application;

FIG. 7 is a schematic diagram of a game experience home page provided by an embodiment of the present application;

FIG. 8 is a schematic diagram of a game experience home page provided by an embodiment of the present application;

FIG. 9 is a schematic diagram of a game experience home page provided by an embodiment of the present application;

fig. 10 is a schematic diagram of a publication page of a simulation page publication platform according to an embodiment of the present application;

FIG. 11 is a schematic diagram illustrating a screenshot of a logical branch result according to an embodiment of the present application;

FIG. 12 is a schematic diagram illustrating a screenshot of a logical branch result according to an embodiment of the present application;

FIG. 13 is a schematic diagram illustrating a screenshot of a logical branch result according to an embodiment of the present application;

fig. 14 is a schematic flowchart of a data processing method according to an embodiment of the present application;

fig. 15 is a schematic structural diagram of a simulation server according to an embodiment of the present application;

FIG. 16 is a schematic structural diagram of a time-sensitive application provided by an embodiment of the present application;

fig. 17 is a schematic structural diagram of a computer device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

For convenience of understanding, terms referred to in the embodiments of the present application are explained below.

Simulating a server: and after the timeliness application is offline, the background server replaces the online server to provide service for the timeliness application.

Simulating a page: and after the time-efficient application is offline, converting the online page of the time-efficient application during the online period, adding specific functional logic, and regenerating the page.

Simulation operation: the operation entered in the simulation page is, for example, clicking a button in the simulation page.

Operating the script: a script that simulates user operations, such as Puppeneer script, which is an official interface-less Chrome tool of the Google Chrome team, is a Node library that provides high-level APIs to control interface-less Chrome or Chrome. The test system can run on a linux server and is commonly used for web application automation test.

UDP: the User Datagram Protocol is called User Datagram Protocol (UDP), is a connectionless transport layer Protocol, provides a method for sending encapsulated IP data packets without establishing connection for application programs, and has the characteristics of low resource consumption and high processing speed.

query string: i.e., a query string, is part of a Uniform Resource Locator (URL), and typically includes data that needs to be passed to a web backend application.

User Agent: in the HTTP protocol, the User Agent is a field of the HTTP header, and is used for the server to identify the application type, operating system, software developer, and version number of the client.

The following is a description of the design concept of the embodiments of the present application.

At present, many applications have timeliness, and a user can only use the applications within a specified starting time and a specified stopping time, and when the stopping time is reached, the application is offline, and the user cannot use the applications any more. This gives some users who want to experience the time sensitive application a chance to lose experience. In addition, the rules and logic of the timeliness application are carefully designed by a product manager or a plan in charge of the application, wherein a lot of originality and success experience are worth popularizing and using, and the fact that the timeliness application cannot be accessed after being taken off line can lead to the fact that some excellent cases are gradually buried.

Considering that time-efficient applications generate a lot of data during online, such as login data of a user, operation data in an online page, response data of an online server, and the like. In view of that, the embodiment of the present application provides a data processing method, which includes: the simulation server receives a simulation operation request sent by the timeliness application, wherein the simulation operation request is sent after the timeliness application receives the simulation operation through the simulation page, and data of the simulation page is generated after the simulation server is offline. And the simulation server sends the response data of the simulation operation request to the timeliness application so that the timeliness application generates and displays a simulation operation response page according to the response data of the simulation operation request, wherein the response data of the simulation operation request is acquired from the data uploaded to the simulation server by the timeliness application during the online period.

In the embodiment of the application, after the timeliness application is offline, the simulation server is adopted to simulate the online server to provide service for the timeliness application, the timeliness application receives simulation operation through the simulation page, then the simulation operation request is sent to the simulation server, the simulation server sends response data of the simulation operation request to the timeliness application, the timeliness application generates the simulation operation response page according to the response data of the simulation operation request and displays the simulation operation response page, the timeliness application can still be accessed and operated by a user after being offline, and therefore convenience is brought to the user for learning and experiencing the timeliness application.

The following describes an example of a scenario to which the simulation method applied for time-based applications in the embodiment of the present application is applied.

Scene one, game scene.

During online of the game, the game application receives user operation through the online game page, then sends an operation request to the online server, the online server sends response data of the operation request to the game application, and the game application generates and displays an operation response page according to the response data of the operation request. Meanwhile, the game application uploads data of the online game page, user operation data and response data of the user operation to the simulation server. After the game is off line, the simulation server adopts the task script to convert the data of the online game page of the game application into the data of the simulation game page. And when the game application receives the opening operation of the simulation game page input by the user, acquiring the data of the simulation game page from the simulation server, and generating and displaying the simulation game page according to the data of the simulation game page. Further, the game application receives simulation operation through the simulation game page and then sends a simulation operation request to the simulation server, the simulation server sends response data of the simulation operation request to the game application, and the game application generates and displays a simulation operation response page according to the response data of the simulation operation request.

Scene two, shopping scene.

During the promotion activity is on line, the shopping application receives user operation through the online activity page, then sends an operation request to the online server, the online server sends response data of the operation request to the shopping application, and the shopping application generates and displays an operation response page according to the response data of the operation request. Meanwhile, the shopping application uploads the data of the online activity page, the user operation data and the response data of the user operation to the simulation server. After the promotion activity is off-line, the simulation server converts the data of the online activity page of the shopping application into the data of the simulation activity page by adopting the task script. And when the shopping application receives the opening operation of the simulated activity page input by the user, acquiring the data of the simulated activity page from the simulation server, and generating and displaying the simulated activity page according to the data of the simulated activity page. Further, the shopping application receives simulation operation through the simulation activity page and then sends a simulation operation request to the simulation server, the simulation server sends response data of the simulation operation request to the shopping application, and the shopping application generates and displays a simulation operation response page according to the response data of the simulation operation request.

Referring to fig. 1, a system architecture diagram applicable to the embodiment of the present application is shown, where the system architecture includes at least a terminal device 101, an online server 102, and a simulation server 103.

The terminal device 101 may be installed with a time-sensitive application, where the time-sensitive application may be a web application or a client application pre-installed in the terminal device 101, and the time-sensitive application in this embodiment of the present application may be a game application, a shopping application, an instant messaging application, and the like. Terminal device 101 may include one or more processors 1011, memory 1012, I/O interface 1013 to interact with online server 102 and simulation server 103, and display panel 1014, among other things. The terminal device 101 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like.

The online server 102 is a background server for the time sensitive application, and provides services for the time sensitive application during the time sensitive application online. For example, during online, the time-efficient application presents an online page to a user, receives a user operation through the online page, then sends an operation request to the online server 102, the online server 102 sends response data of the operation request to the time-efficient application, and the time-efficient application generates an operation response page according to the response data of the operation request and displays the operation response page in the terminal device 101. The presence server 102 may include one or more processors 1021, memory 1022, and an I/O interface 1023 to interact with the terminal device 101, among other things. In addition, the presence server 102 may also configure the database 1024. The online server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The terminal device 101 and the presence server 102 may be directly or indirectly connected through wired or wireless communication, and the present application is not limited thereto.

The simulation server 103 is a background server for the time-sensitive application, and provides services for the time-sensitive application during the offline period of the time-sensitive application. The timeliness application uploads data of online pages, user operation data, and response data of user operations to the simulation server 103 during online. After the timeliness application is offline, the simulation server 103 converts the data of the online page of the timeliness application into the data of the simulation page by using the task script. When receiving a simulated page opening operation input by a user, the time-efficient application acquires data of the simulated page from the simulation server 103, generates the simulated page according to the data of the simulated page, and displays the simulated page in the terminal device 101. Further, the time-efficient application receives the simulation operation through the simulation page and then sends the simulation operation request to the simulation server 103, the simulation server 103 sends the response data of the simulation operation request to the time-efficient application, and the time-efficient application generates the simulation operation response page according to the response data of the simulation operation request and displays the simulation operation response page in the terminal device 101. Simulation server 103 can include one or more processors 1031, memory 1032, and I/O interface 1033 for interacting with terminal device 101, among other things. In addition, simulation server 103 may also configure database 1034. The simulation server 103 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The terminal device 101 and the simulation server 103 may be directly or indirectly connected through wired or wireless communication, and the present application is not limited thereto.

Based on the system architecture diagram shown in fig. 1, the embodiment of the present application provides a flow of a data processing method, as shown in fig. 2, the flow of the method is performed by interaction between a time-sensitive application and a simulation server, and includes the following steps:

in step S201, the time-sensitive application receives a simulation operation input by a user through a simulation page.

Specifically, the simulation page is a page obtained after conversion processing is performed on an online page of the time-efficient application. And when the timeliness application is offline, the simulation server adopts the task script to convert the data of the online page uploaded during the online period of the timeliness application into the data of the simulation page.

The method comprises the steps that after receiving a simulation page opening operation input by a user, the timeliness application responds to the simulation page opening operation and sends a simulation page opening request to a simulation server, the simulation server sends data of a simulation page to the timeliness application, and the timeliness application generates the simulation page according to the data of the simulation page.

Specifically, the simulated page opening operation may be submission after inputting a simulated page URL in a browser, or may be a click on an icon of a simulated page at a client of a time-efficient application, or a click on an icon of a simulated page in a published page of a unified simulated page publishing platform, or a click on a link of a simulated page, or the like. The simulation page can be any primary page in the timeliness application, such as a timeliness application home page displayed after clicking an timeliness application icon in a release page of the unlink platform, a timeliness application secondary page displayed after clicking a link in the timeliness application home page, a timeliness application tertiary page displayed after inputting a simulation page URL in a browser, and the like. The simulation operation may be a click operation, a double click operation, a slide operation, a long press operation, or the like.

Illustratively, taking a time-sensitive application as the game application, as shown in fig. 3, the simulation page is a game gift package pickup page, and the simulation operation is that the user clicks an "immediate pickup" button on the simulation page.

Step S202, the timeliness application responds to the simulation operation and sends a simulation operation request to the simulation server.

Specifically, during the time-sensitive application online, when the time-sensitive application receives a user operation through an online page, the time-sensitive application then sends an online operation request to an online server. And after the timeliness application is offline, the timeliness application receives the simulation operation input by the user through the simulation page, and the simulation operation request is not sent to the online server, but is sent to the simulation server.

In step S203, the simulation server transmits response data of the simulation operation request to the timeliness application.

Specifically, response data of the simulation operation request is acquired from data uploaded to the simulation server during the online period by the time-sensitive application. When the simulation server receives the simulation operation request, the relevant information of the simulation operation carried in the simulation operation request is firstly identified, and then the response data corresponding to the simulation operation is searched from the data uploaded by the time-sensitive application based on the relevant information of the simulation operation. For example, when the simulation operation is to click the "immediate get" button on the game gift package get page, the simulation operation request carries the attribute information of the button "immediate get" and the information of the operation "click". The simulation server can inquire the data uploaded by the time-sensitive application based on the attribute information of the button "immediate pick up" and the information of the operation "click" to obtain the pick-up result data of the game gift package as the response data of the simulation operation request.

In step S204, the time-sensitive application receives response data of the simulation operation request and generates a simulation operation response page.

Specifically, the logic branches corresponding to different operation controls in the simulation page are different, for example, one logic branch corresponding to the "view" button, that is, information of a role related to the simulation page is viewed; for another example, the two logical branches corresponding to the "immediate pick" button are "game gift package pick-up successful" and "game gift package pick-up failed", and therefore, the simulation operation input by the user based on different operation controls may also correspond to different logical branch results.

Illustratively, taking a time-sensitive application as a game application, for example, as shown in fig. 4, the simulation page introduces a page for a game character, the page includes two game characters, namely a game character a and a game character B, and each game character corresponds to a "view" button. The simulation operation is that the user clicks the "view" button corresponding to the game character a on the simulation page. The time-efficient application obtains the detailed description of the game character A from the simulation server, and then generates and displays an introduction page of the game character A, wherein the introduction page is shown in FIG. 5.

Illustratively, taking a time-sensitive application as the game application, as shown in fig. 3, the simulation page is a game gift package pickup page, and the simulation operation is that the user clicks an "immediate pickup" button on the simulation page. At this time, the simulation operation corresponds to two logic branch results, namely successful reception of the game gift bag and unsuccessful reception of the game gift bag. The timeliness application acquires the screenshot of successful game gift package pickup and the screenshot of unsuccessful game gift package pickup from the simulation server, and then generates a game gift package pickup response page according to the screenshot of successful game gift package pickup and the screenshot of unsuccessful game gift package pickup, wherein the game gift package pickup response page is shown in fig. 6.

In the embodiment of the application, after the timeliness application is offline, the simulation server is adopted to simulate the online server to provide service for the timeliness application, the timeliness application receives simulation operation through the simulation page, then the simulation operation request is sent to the simulation server, the simulation server sends response data of the simulation operation request to the timeliness application, the timeliness application generates the simulation operation response page according to the response data of the simulation operation request and displays the simulation operation response page, the timeliness application can still be accessed by a user after the timeliness application is offline, and therefore convenience is brought to the user for learning and experiencing the timeliness application.

Optionally, in step S201, after receiving the data uploaded by the time-efficient application during the online period, the simulation server performs deduplication and saves the data uploaded by the time-efficient application during the online period. The data uploaded to the simulation server during the online period by the timeliness application comprises data of online pages, user operation data and response data of user operation.

In particular, since there are a lot of repeated contents in the user operation data and the response data of the user operation during the time-sensitive application online period, if the data is stored in full, the system load is increased, and a serious resource waste is caused. Therefore, in the embodiment of the application, after the data uploaded during the online period of the time-efficient application is received, the data uploaded during the online period of the time-efficient application is deduplicated. In specific implementation, the data collection device receives data uploaded during the online period by using a UDP (user Datagram protocol) protocol, performs feature extraction on each piece of data to obtain a key value corresponding to each piece of data, removes repeated key values, and adopts a reserved key value to represent a logic branch result of the timeliness application. And then storing the reserved key value in a database, wherein the data collection device and the database can be devices independent of the simulation server or modules in the simulation server.

For example, when the time-efficient application is taken as the game application, the online page is taken as the game gift package getting page, and the user clicks the "get immediately" button on the online page, two operation results may occur, namely two logic branch results of the time-efficient application, one is that the game gift package getting condition is met and the game gift package is successfully got, and the other is that the game gift package getting condition is not met and the game gift package is failed to get. Suppose 10 users participate in the game gift package pickup activity, wherein 5 users successfully pick up the gift package and 5 users fail to pick up the gift package. The user operation data of 5 ten thousand users who successfully received the gift package and the response data of the user operation are the same, and the user operation data of 5 ten thousand users who failed to receive the gift package and the response data of the user operation are the same.

After the game application is offline, the user only needs to experience two logic branch results of successful gift package pickup and failure gift package pickup, namely the logic branch results respectively keep one piece of data. If the user operation data of these 10 ten thousand users and the response data of the user operation are stored, the system load will be increased, resulting in a serious waste of resources. In view of this, in the embodiment of the present application, one piece of user operation data and response data of the user operation is retained in the 5 ten thousand pieces of user operation data and response data of the user operation that have taken the gift package successfully, and the other 49999 pieces of user operation data and response data of the user operation are deleted. One piece of user operation data and user operation response data is reserved in the 5 ten thousand pieces of user operation data and user operation response data which fail to take the gift bag, and the other 49999 pieces of user operation data and user operation response data are deleted. In specific implementation, the simulation server extracts features of each piece of data to obtain a key value of each piece of data, wherein the key value comprises parameters such as an activity unique identifier, a module name, a method name, a request mode and a return value. And then removing repeated key values, reserving one key value in the key values corresponding to the 5 universal users who successfully receive the gift package, reserving one key value in the key values corresponding to the 5 universal users who fail to receive the gift package, and adopting the reserved two key values to represent two logic branch results of success of receiving the gift package and failure of receiving the gift package. And then storing the two reserved key values in a database of the simulation server. In the embodiment of the application, the simulation server saves the data uploaded during the online period after the time-efficient application is deduplicated, so that the system burden is reduced, and the resource waste is avoided.

Optionally, in step S201, after the time-sensitive application is offline, the simulation server converts the data of the online page of the time-sensitive application into the data of the simulation page by using the task script, which specifically includes:

and the simulation server adds a simulation tool library in the data of the online page by adopting the task script, modifies the address information and the resource addressing path of the online page into simulation address information and a simulation resource addressing path, and generates the data of the simulation page. Specifically, the simulation tool library is at least used for simulating a page function and a running environment of an online page and sending a received simulation operation request to the simulation server, wherein the page function comprises a login function, a skip function, a popup function, a payment function and the like.

The method comprises the steps that after receiving a simulation page opening operation input by a user, the timeliness application responds to the simulation page opening operation and sends a simulation page opening request to a simulation server, the simulation server sends data of a simulation page to the timeliness application, and the timeliness application generates and displays the simulation page according to the data of the simulation page. Specifically, the simulated page opening operation may be submission after inputting a simulated page URL in a browser, or may be a click on a simulated page icon on a client of a time-efficient application, or a click on a simulated page icon in a published page of a unified simulated page publishing platform, or a click on a link of a sub-simulated page in a simulated page, or the like.

The process of simulating the login function by the simulation tool library is described in detail below, and the data uploaded to the simulation server during the online period by the time-efficient application also includes user account information, such as an account, a password, a zone service, a role and other information. The simulation server simulates the account information of the experience user by adopting the user account information meeting the login condition, and releases the account information of the experience user as a part of the address information of the simulation page. For example, the account information of the experience user is added to the query string in the URL of the simulation page for publishing.

And after receiving the simulated page opening operation input by the user, the timeliness application responds to the simulated page opening operation, sends a simulated page opening request to the simulated server, and sends the account information of the experience user to the simulated server by adopting query string in the URL of the simulated page. The simulation server receives a simulation page opening request sent by the timeliness application, login verification is carried out by adopting account information of the experience user, data of the simulation page are sent to the timeliness application after the login verification is passed, a simulation tool library in the simulation page generates the simulation page after the user logs in and displays the simulation page to the user based on the data of the simulation page, operation of logging in the user, game role selection and the like is omitted, and the user can experience the timeliness application without a threshold.

For example, when the user experiences the game application during the off-line period of the game application, the game experience home page is as shown in fig. 7, and the game experience home page displays "welcome you and lovely experience users", and simultaneously informs the user that the current game application is in the experience mode by displaying "love you and lovely experience users" and welcome to enter the active experience mode, without the user inputting account information. After the timeliness application is offline, the user account information acquired during the online period is adopted to automatically simulate the user login process for user experience, and the user does not need to input the account information, so that the activity participation threshold is eliminated, and convenience is brought to the user.

Specifically, the process of simulating the operating environment of the timeliness application by the simulation tool library is described below, because the timeliness application corresponds to different delivery channels, such as a Personal Computer (PC) end, a mobile phone end and the like, and different delivery channels correspond to different presentation forms, such as a horizontal screen, a vertical screen, a code scanning and the like, after the timeliness application is offline, different presentation forms need to be simulated for user experience for different operating environments of the timeliness application. The data uploaded to the simulation server during the online period by the timeliness application further comprises operating environment data of the online page and page display environment data determined by the online server based on the operating environment data of the online page, wherein the operating environment data comprises an application type, an operating system, a software developer, a version number and the like. And the simulation server simulates the page environment of the simulation page according to the operation environment data and the page display environment data of the online page.

And after receiving the simulated page opening operation input by the user, the timeliness application responds to the simulated page opening operation and sends a simulated page opening request to the simulated server, wherein the query string in the URL of the simulated page is adopted to send the running environment data of the simulated page to the simulated server. When the simulation server receives a simulation page opening request sent by the timeliness application, the simulation server inquires the running environment data of the online page uploaded during the online period of the timeliness application and the corresponding page display environment data according to the running environment data of the simulation page, determines the page display environment data matched with the simulation page, and then sends the data of the simulation page to the timeliness application, wherein the data of the simulation page comprises the page display environment data matched with the simulation page. And the simulation tool library in the simulation page simulates the page environment of the simulation page by adopting the page display environment data, and then generates and displays the simulation page based on the page environment of the simulation page.

Illustratively, the time-sensitive application is taken as the game application, for example, after the game application is offline, when the experience user experiences the game application at the PC end, the running environment of the game application is the PC end. The game application requests the simulation server for the page display environment data of the game experience home page corresponding to the PC terminal, and the game experience home page generated based on the page display environment data returned by the simulation server in a simulation mode is shown in FIG. 8, and an experience user can directly click the game experience home page to start experience. When the experience user experiences the game application at the mobile phone end, the running environment of the game application is the mobile phone end. The game application requests the simulation server for the page display environment data of the game experience home page corresponding to the mobile phone terminal, the game experience home page generated by simulating the game application based on the page display environment data returned by the simulation server is shown in fig. 9, the game experience home page comprises corresponding experience two-dimensional codes, and an experience user can start experience only by identifying the experience two-dimensional codes through the mobile phone.

After the timeliness application is offline, the timeliness application identifies the running environment of the simulation page, and the page environment of the simulation page is simulated by adopting the page display environment data acquired during online for user experience, so that the user can use various devices to experience the timeliness application, and convenience is brought to the experience user.

Optionally, in order to isolate the time-efficient application during the online period and the offline period and facilitate the user to experience the time-efficient application after the offline period, in the embodiment of the application, the simulated address information is issued address information of a simulated page in a simulated page issuing platform, and the simulated page issuing platform is used for issuing simulated pages of each time-efficient application.

33页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:vxworks系统下基于windml的操纵杆串口驱动设计方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类