CN111966429B - Applet processing method and device - Google Patents

Applet processing method and device Download PDF

Info

Publication number
CN111966429B
CN111966429B CN202010849786.XA CN202010849786A CN111966429B CN 111966429 B CN111966429 B CN 111966429B CN 202010849786 A CN202010849786 A CN 202010849786A CN 111966429 B CN111966429 B CN 111966429B
Authority
CN
China
Prior art keywords
target
interface
applet
storage block
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010849786.XA
Other languages
Chinese (zh)
Other versions
CN111966429A (en
Inventor
马宇申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010849786.XA priority Critical patent/CN111966429B/en
Publication of CN111966429A publication Critical patent/CN111966429A/en
Application granted granted Critical
Publication of CN111966429B publication Critical patent/CN111966429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a small program processing method and a device, wherein the small program processing method comprises the following steps: receiving an operation request submitted by a user through a current display interface of a target applet; reading an interface code corresponding to the operation request in a program package of the target small program, generating a target interface according to the interface code and displaying the target interface to the user; creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block; and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to a server.

Description

Applet processing method and device
Technical Field
The present application relates to the field of compliance data management, and in particular, to a method and an apparatus for processing an applet.
Background
With the development and popularization of the internet technology, more and more users select online consumption, the online consumption is different from the traditional entity consumption scene, the users can finish shopping, reservation, stock investment, certificate transaction and the like through the internet, and the convenience of the users is improved to a great extent; in order to more conveniently serve the user, more service main bodies can select to open the applet, and the applet provides a service scene for the user, so that the space for installing the fixed application program by the user can be saved, the applet can be opened at any time for use through the application program bearing the applet, and the convenience of the user is further improved; however, with the popularization of applet applications, the problem that the operation track of a user and order data completed through the applet are difficult to record is brought, in the prior art, the recording operation is realized through a screen recording mode or a human-computer interaction mode, the former has the problem that a large number of client resources are occupied, and the latter is that visualization cannot be realized during backtracking, so an effective scheme is urgently needed to solve the problem.
Disclosure of Invention
In view of this, the embodiments of the present application provide two methods for processing an applet. The application relates to two small program processing devices, a small program backtracking method, a small program backtracking device, three kinds of computing equipment and three kinds of computer readable storage media simultaneously, so as to solve the technical defects in the prior art.
According to a first aspect of the embodiments of the present application, there is provided an applet processing method, applied to a client, including:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target small program, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to a server.
Optionally, before the step of receiving an operation request submitted by a user through a current display interface of the target applet is executed, the method further includes:
receiving a click instruction uploaded by the user aiming at the target applet;
determining an applet identifier corresponding to the target applet according to the click command, generating an applet obtaining request based on the applet identifier, and sending the applet obtaining request to the server;
receiving the program package issued by the server aiming at the target small program;
and reading creation information in the program package, and creating the target applet based on preset configuration information and the creation information.
Optionally, the storage block corresponding to the target applet and the record identifier of the storage block are created as follows:
generating an initial key frame according to the creation information and the time for creating the target applet;
creating the storage block corresponding to the target applet based on the initial key frame, and determining a user identifier of the user;
and configuring the record identifier for the storage block according to the user identifier and the applet identifier, wherein the record identifier represents a writing result of writing a target key frame into the storage block.
Optionally, the reading, in the package of the target applet, the interface code corresponding to the operation request includes:
determining a target control triggered by the operation request in the current display interface;
determining interface information corresponding to the operation request according to the target control;
reading the program package based on the interface information to obtain the subprogram code, the view code and the view template code;
and integrating the subprogram code, the view code and the view template code to obtain the interface code corresponding to the operation request.
Optionally, the generating a target interface according to the interface code and displaying the target interface to the user includes:
generating an interface to be displayed based on the subprogram code and the view template code, and generating interface content based on the view code;
and adding the interface content to the interface to be displayed to obtain the target interface, and displaying the target interface to the user.
Optionally, the writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block includes:
judging whether the storage block meets a preset storage condition or not;
if yes, writing the target key frame into the storage block, and updating the record identifier of the storage block according to a writing result;
if not, creating a sub-storage block according to a preset sub-storage block creating condition, and expanding the storage block based on the sub-storage block;
and configuring the record identifier to an expanded storage block, writing the target key frame into the expanded storage block, and updating the record identifier according to a writing result.
Optionally, after the step of updating the record identifier of the storage block is executed, the method further includes:
determining the operating space occupied by the target applet under the condition that the closing instruction submitted by the user is not received within a preset time period;
judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not;
and if so, generating a reminding window aiming at the target small program, and displaying the reminding window to the user.
Optionally, after the step of updating the record identifier of the storage block is executed, the method further includes:
determining the operating space occupied by the target applet under the condition that the closing instruction submitted by the user is not received within a preset time period;
judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not;
and if so, acquiring the target application program which is not used by the user for the longest time, closing the target application program, and releasing the running space.
According to a second aspect of the embodiments of the present application, there is provided an applet processing apparatus, applied to a client, including:
the receiving operation request module is configured to receive an operation request submitted by a user through a current display interface of the target applet;
the display target interface module is configured to read an interface code corresponding to the operation request in a program package of the target applet, generate a target interface according to the interface code and display the target interface to the user;
the updating record identification module is configured to create a target key frame based on the interface code and the time for generating the target interface, write the target key frame into a storage block corresponding to the target applet, and update the record identification of the storage block;
and the sending module is configured to send the storage block and the record identifier to a server side under the condition that the user submits a closing instruction for the target applet is received.
According to a third aspect of the embodiments of the present application, there is provided an applet processing method, applied to a server, including:
receiving a use request uploaded by a client aiming at a target applet;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier corresponding to the target applet uploaded by the client;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
Optionally, the extracting, according to the usage request, the package corresponding to the target applet includes:
analyzing the use request to obtain an applet identifier corresponding to the target applet;
and extracting the program package corresponding to the target small program in a small program storage library based on the small program identification.
Optionally, after the step of writing the record identifier into the metadata table is executed, the method further includes:
under the condition that an interface backtracking request aiming at the process that the client uses the target applet is obtained, extracting the record identifier from the metadata table according to the interface backtracking request;
reading the storage space based on the record identification to obtain the storage block corresponding to the target small program;
analyzing the storage block to obtain a target key frame corresponding to the backtracking time in the interface backtracking request;
and generating a target display interface based on the interface code in the target key frame as a response of the interface backtracking request.
Optionally, the method further includes:
determining behavior information of a user to which the client belongs according to the target display interface, and judging whether the behavior of the user is in compliance according to the behavior information;
if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block;
generating a display interface based on interface codes in the plurality of key frames and forming a display interface set;
and calling a supervision interface to upload the display interface set, and sending reminding information of non-compliance behaviors to the client.
According to a fourth aspect of the embodiments of the present application, there is provided an applet processing apparatus, applied to a server, including:
the first receiving module is configured to receive a use request uploaded by a client aiming at a target applet;
a program package sending module configured to extract a program package corresponding to the target applet according to the use request and send the program package to the client;
the second receiving module is configured to receive a storage block and a record identifier which are uploaded by the client and correspond to the target applet;
and the storage module is configured to store the storage block to a storage space corresponding to the client, and write the record identifier into a metadata table.
According to a fifth aspect of the embodiments of the present application, there is provided an applet backtracking method, including:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
Optionally, after the step of generating a target interface corresponding to the applet interface backtracking request according to the interface code and displaying the target interface is executed, the method further includes:
determining behavior information of a user according to the target interface, and judging whether the behavior of the user is in compliance according to the behavior information;
if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block, and generating a display interface based on interface codes in the plurality of key frames to form a display interface set;
and calling a supervision interface to upload the display interface set, and receiving a compliance processing result returned by the supervision interface for the user.
According to a sixth aspect of the embodiments of the present application, there is provided an applet backtracking apparatus, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is configured to acquire an applet interface backtracking request which comprises a record identifier corresponding to an applet to be backtracked;
the analysis module is configured to determine a storage block corresponding to the applet to be traced according to the record identifier, and analyze the storage block to obtain a key frame corresponding to the applet to be traced;
and the display module is configured to determine an interface code of the applet to be backtracked based on the key frame, and generate and display a target interface corresponding to the applet interface backtracking request according to the interface code.
According to a seventh aspect of embodiments of the present application, there is provided a first computing device comprising:
a memory and a processor;
the memory to store computer-executable instructions, the processor to execute the computer-executable instructions:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target applet, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to a server.
According to an eighth aspect of embodiments of the present application, there is provided a second computing device, including:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
receiving a use request uploaded by a client aiming at a target small program;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier corresponding to the target applet uploaded by the client;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
According to a ninth aspect of embodiments herein, there is provided a third computing device comprising:
a memory and a processor;
the memory to store computer-executable instructions, the processor to execute the computer-executable instructions:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
According to a tenth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of an applet processing method applied to a client.
According to an eleventh aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement steps of an applet processing method applied to a server.
According to a twelfth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the applet backtracking method.
The applet processing method provided by the application reads an interface code in a program package corresponding to a target applet after receiving an operation request of a user through a current display interface of the target applet, generates the target interface according to the interface code and displays the target interface to the user, can record an operation track of the user and operation data related to the user at the moment so as to prove when disputes or pursuits occur, can create a target key frame based on the interface code and the time of generating the target interface, write the key frame into a storage block of the target applet, update a record identifier of the storage block according to the operation request of the user, and send the storage block and the record identifier to a server side when the target applet is closed by the user, the server side stores the storage block and the record identifier, so that the operation process of the target applet for the user can be traced at any time later, the content capable of backtracking is the interface code recorded during the operation of the user, so that the data volume required to be stored during backtracking can be reduced, the visualization of the backtracking content can be ensured, and the purposes of low consumption and high backtracking performance are achieved.
Drawings
Fig. 1 is a flowchart of an applet processing method applied to a client according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an applet processing apparatus applied to a client according to an embodiment of the present application;
fig. 3 is a flowchart of an applet processing method applied to a server according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an applet processing apparatus applied to a server according to an embodiment of the present application;
fig. 5 is a flowchart of an applet backtracking method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an applet backtracking apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of a first computing device according to an embodiment of the present application;
FIG. 8 is a block diagram of a second computing device according to an embodiment of the present application;
FIG. 9 is a block diagram of a third computing device provided in an embodiment of the present application;
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the present application, two methods for processing an applet are provided, and the present application relates to two methods for processing an applet, a method for tracing back an applet, a device for tracing back an applet, three computing devices, and three computer readable storage media, which are described in detail in the following embodiments one by one.
The embodiment of the applet processing method applied to the client is as follows:
fig. 1 shows a flowchart of an applet processing method applied to a client according to an embodiment of the present application, which specifically includes the following steps:
and step S102, receiving an operation request submitted by a user through a current display interface of the target applet.
In practical application, as the application of the applet is more and more common, more and more service parties can consider the service provision realized by the applet when selecting to develop the market; although the service is more convenient and faster provided for the user through the applet, in more scenes, the service is required to be provided for the user, and the operation track of the applet used by the user is required to be recorded, so that the party to which the responsibility belongs can be determined by backtracking the operation track when the responsibility pursuit or resource dispute occurs in the future; however, in the prior art, when the operation track of the user using the applet is recorded, the operation track is usually recorded in a screen recording or human-computer interaction mode, which causes difficulty in tracing back the operation track, and the screen recording occupies a large space, which easily causes the blockage of the client, so that the recording process before tracing back plays an important role.
In order to visualize the backtracking content and reduce the occupied space, the applet processing method reads the interface code in the program package corresponding to the target applet after receiving the operation request of the user through the current display interface of the target applet, generates the target interface according to the interface code and displays the target interface to the user, at the moment, in order to record the operation track of the user and the operation data related to the user, thereby realizing the evidence holding when dispute or pursuit occurs, can establish a target key frame based on the interface code and the time for generating the target interface, writes the key frame into the storage block of the target applet, updates the record identifier of the storage block according to the operation request of the user, and sends the storage block and the record identifier to the server under the condition that the user closes the target applet, the service end stores the data, so that the operation process of the user aiming at the target applet can be traced at any time later, the traceable content is the interface code recorded during the operation of the user, the data volume needing to be stored during tracing can be reduced, the visualization of the traced content can be ensured, and the purposes of low consumption and high traceability are achieved.
In specific implementation, the target applet is specifically a program that can be used without installation, and a user can obtain services provided by a service provider through the applet, such as watching videos, shopping or stock-frying through the applet, and the applet needs to be borne on an application program of a client, and the user can obtain a large number of applets from the application program for use, so that corresponding services can be obtained without installation; it should be noted that, the applet needs to sign a bearer protocol with the main application program of the bearer, so that the applet is stored and recorded by the server of the application program, when the user submits an applet obtaining instruction, the server can know the applet that the user needs to use according to the instruction of the user, and send the temporary installation package of the applet to the client configuration, the client can use each function in the applet and browse the content in the applet, and when the user stops using the applet, the client deletes the temporary installation package corresponding to the applet according to the closing instruction of the user, thereby releasing the space, which not only facilitates the user to use, but also does not need to install, and effectively improves the experience effect of the user.
Based on this, as more and more services can be provided for the user by the applet, in order to ensure the compliance of the applet scene and improve the traceability of the operation track of the user after using the applet, the operation track of the user can be recorded by recording the applet installation package and the corresponding interface code, and the operation track of the user using the applet can be obtained by reversely generating the installation package and the interface code subsequently, so that the operation process of the user can be traced back for proving and researching responsibilities in the actual application scene.
In practical application, the current display interface of the target applet specifically refers to an interface currently displayed by the applet when the applet is used by a user through a client, the interface is realized through codes in a program package corresponding to the applet, and correspondingly, the client specifically refers to a terminal device held by the user, and may be a mobile phone, a computer, a tablet computer, or the like.
In this embodiment, the applet that provides the shopping capability for the user for the target applet is taken as an example to describe the applet processing method, and the corresponding description contents can be referred to for the application that the target applet is other applets, which is not described in detail herein.
Further, before receiving the operation request submitted by the user, the server needs to request to issue the program package of the target applet according to the click instruction of the user, so that the user can use the target applet to perform shopping and the like through the client, and in this embodiment, the specific implementation manner is as follows:
receiving a click instruction uploaded by the user aiming at the target applet;
determining an applet identifier corresponding to the target applet according to the click command, generating an applet obtaining request based on the applet identifier, and sending the applet obtaining request to the server;
receiving the program package issued by the server aiming at the target small program;
and reading creation information in the program package, and creating the target applet based on preset configuration information and the creation information.
Specifically, the click instruction specifically refers to an instruction uploaded by the user through the client to use the target applet, the applet identifier specifically refers to a unique identifier of the target applet, so that the servlet can obtain the applet needed to be used by the user according to the applet identifier, and accordingly the applet needed to be used by the user is issued to the client to be installed, the program package specifically refers to an API package needed to be used for temporarily installing the target applet, the creation information specifically refers to information such as codes and languages needed to be used for installing the target applet, and the configuration information specifically refers to system information of the client.
Based on this, under the condition that the client receives a click instruction uploaded by the user for the target applet, the fact that the user needs to use the target applet for shopping is indicated, the applet identifier of the target applet is determined according to the click instruction, then an acquisition request for acquiring the target applet is generated according to the applet identifier and is sent to the server, the server responds to the acquisition request at this time, a program package corresponding to the target applet is sent to the client according to the applet identifier contained in the acquisition request, and after the client acquires the program package, the client extracts the creation information in the program package and creates the target applet by combining the configuration information of the client so as to be used by the user.
Furthermore, after the target applet is created, the user may use the target applet next, and in order to record the process of using the applet by the user so as to meet the requirement of visually generating a corresponding display interface when the process of using the target applet by the user needs to be traced back, a storage block needs to be created for the target applet so as to store the bottom layer code of the target applet and the interface code of the displayed interface, so that a corresponding interface can be generated again in the subsequent process without screen recording, so as to trace back the interface, and a code of an interface change caused by a user operation interface is also recorded together, that is, the code of the interface change is an interface code corresponding to an operation request, so as to ensure that the traced back interface is the interface operated by the user, in this embodiment, the storage block corresponding to the target applet, and the record identification of the memory block is created by the following method:
generating an initial key frame according to the creation information and the time for creating the target applet;
creating the storage block corresponding to the target applet based on the initial key frame, and determining a user identifier of the user;
and configuring the record identifier for the storage block according to the user identifier and the applet identifier, wherein the record identifier represents a writing result of writing a target key frame into the storage block.
Specifically, since the creation information is a bottom layer code for creating the target applet, the bottom layer code needs to be recorded, an initial key frame is generated by combining time for creating the target applet, at this time, a storage block corresponding to the target applet is created based on the initial key frame, a user identifier of the user is determined, and then the recording identifier is configured for the storage block according to the user identifier and the applet identifier, where the initial key frame is specifically a frame generated according to the bottom layer code corresponding to the target applet, and when interface backtracking is performed subsequently, an interface code can be matched with the bottom layer code of the target applet to generate a backtracking interface, and correspondingly, the storage block is used for recording trajectory data of the target applet used by the user, that is, when the target applet is used by the user, a corresponding interface code in the applet after the interface is changed, therefore, the subsequent interface generation by the code is realized.
For example, in the case where the user U1 makes a click-to-purchase applet through a payment application installed on a cell phone, at the moment, the mobile phone end generates an acquisition request for acquiring the shopping applet according to the identifier of the shopping applet, and sends the acquisition request to the server of the payment application program, and after receiving the acquisition request, extracting the corresponding API packet from the identifier corresponding to the shopping applet contained in the root request, and returning the API package to the mobile phone end, after receiving the API package, the mobile phone end creates shopping small programs by extracting app.js files, app.wsxx files, app.json files, pages files, wxml files and wxss files in the program package for users U1 to use, wherein js file represents interface logic, equivalent to control layer, wxml file represents interface structure, equivalent to view layer, wxss represents interface style sheet, the interface configuration method is used for serving wxml display, json represents interface configuration, and data of the interface is configured and displayed.
Meanwhile, in order to record browsing and shopping processes of the user U1 and realize that disputes can be demonstrable later, an initial key frame is generated according to creation information and creation time of a created shopping applet, a storage block corresponding to the shopping applet is created according to the initial key frame, and a record identifier of the storage block is generated on the basis of the user identifier ID _ UI of the user U1 and the identifier ID _ S1 of the shopping applet, wherein the generated record identifier is { ID _ UI/ID _ S1/2020/05/16/14/05/06 }.
In summary, the interface codes corresponding to the operation requests of the users can be recorded into the storage block when the users use the target applet subsequently, the record identifiers are updated simultaneously, the backtracking can be performed pertinently when the subsequent backtracking is facilitated, and the backtracking efficiency is improved.
And step S104, reading an interface code corresponding to the operation request in a program package of the target applet, generating a target interface according to the interface code and displaying the target interface to the user.
Specifically, on the basis of receiving an operation request submitted by a user through the current display interface of the target applet, further, reading a corresponding interface code according to the operation request to generate a target interface, and displaying the target interface to the user.
Based on this, the interface code specifically refers to a code which is required to be used by the target interface generated by the target applet, the target interface specifically refers to an interface which needs to be displayed after the user operates through the current display page, the target interface can be an interface which jumps through the current display interface, if the user clicks a personal information viewing control in a shopping interface of the target applet, the user jumps to the personal information interface, and the displayed interface is the interface after jumping; the target interface may also be an interface to be displayed after a new window is embedded in the current display interface, and if the user clicks a payment control in the shopping interface of the target applet, a payment action is performed, at this time, a payment window is added on the basis of the shopping interface, and at this time, the shopping interface with the added payment window is the target interface.
Further, in the process of reading the interface code according to the operation request, since the mode of generating the target interface is different from the mode of generating the web page, not only the corresponding view code but also the support of the target applet are required, so that the interface code is formed by acquiring all codes capable of generating the target interface in the package, in this embodiment, the specific implementation manner is as follows:
determining a target control triggered by the operation request in the current display interface;
determining interface information corresponding to the operation request according to the target control;
reading the program package based on the interface information to obtain the subprogram code, the view code and the view template code;
and integrating the subprogram code, the view code and the view template code to obtain the interface code corresponding to the operation request.
Specifically, the target control specifically refers to a control triggered in the currently displayed interface when the target user submits the operation request, and the interface information specifically refers to code information and the like required for generating an interface to be displayed.
Based on this, after the target control triggered by the operation request is determined, the interface to be displayed can be determined according to the target control, so that interface information corresponding to the operation request can be further determined, the program package is read according to the interface information, a subprogram code, a view code and a view template code for generating the target interface are extracted from the program package, and finally the interface code for generating the target interface can be obtained by integrating the subprogram code, the view code and the view template.
Furthermore, in the process of generating the target interface, generating an interface to be displayed based on the subprogram code and the view template code, and generating interface content based on the view code; and then adding the interface content to the interface to be displayed to obtain the target interface, namely displaying the target interface to the user.
Specifically, under the condition of obtaining the subroutine codes, the view template codes and the view codes which form the interface codes, the user needs to be shown by generating a target interface according to the interface codes, and the process of generating the display interface specifically includes: generating an interface to be displayed according to the subprogram code and the view code, wherein the interface to be displayed specifically refers to an interface to which related information is not added, generating interface content according to the view code, and the interface content refers to content to be inserted into the interface to be displayed, and finally integrating the interface to be displayed and the interface content to obtain a target interface displayed to the user.
According to the above example, after the shopping applet is created, the shopping initial interface of the shopping applet is displayed to the user U1 through the mobile phone terminal, when an operation request that the user U1 clicks the shopping initial interface commodity A is received, it is determined that interface information corresponding to the commodity A needs to be displayed next, a program package of the shopping applet is read according to the interface information, a subprogram code corresponding to the display interface of the commodity A, a view code and a view code template of the commodity A are obtained, then an interface to be displayed adapted to any commodity is generated based on the subprogram code and the view template code, meanwhile interface content of the commodity A is generated according to the view code, and finally the interface content of the commodity A is inserted into the interface to be displayed, so that the display interface of the commodity A can be generated and displayed for the user.
In summary, by determining the target control triggered by the operation request in the current display interface, the interface code corresponding to the operation request can be quickly analyzed, and the corresponding code is extracted from the package to generate the target interface, so that the generation speed of the target interface can be effectively increased, and the experience effect of the user is further improved.
And step S106, creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating the record identifier of the storage block.
Specifically, on the basis of generating and displaying the target interface according to the interface code, at this time, an operation of recording an interface purchase of the target interface is triggered, that is, the user can trace back the process of using the target applet subsequently, the interface code corresponding to the interface change generated by the operation is recorded after the user operates, and in order to improve the traceability, the time for generating the target interface is recorded at the same time, so that the interface can be accurately traced back according to the time subsequently.
Based on the interface code and the time for generating the target interface, the target key frame is created, and specifically, the target key frame refers to the key frame corresponding to the target interface; simultaneously writing the target key frame into a storage block corresponding to the target applet to realize recording the operation track of the user, and updating a record identifier of the storage block to identify the completion of the operation track record corresponding to the operation request of the user; wherein the memory block is used for recording a code and a time.
Further, in the process of writing the target key frame into the storage block corresponding to the target applet, since the storage block of the target applet is set according to actual requirements, if the set size is too large, the storage block occupies too much space of the client, and if the set size is smaller, the problem of insufficient space of the storage block occurs, so as to increase the time for the user to use the target applet, the storage block may need to be temporarily expanded, and all operation tracks of the user from starting the target applet to closing the target applet are recorded and fed back to the server for storage, so that all operation tracks of the user using the target applet can be traced back, in this embodiment, the process of expanding the storage block of the target applet is as follows:
judging whether the storage block meets a preset storage condition or not;
if yes, writing the target key frame into the storage block, and updating the record identifier of the storage block according to a writing result;
if not, creating a sub-storage block according to a preset sub-storage block creating condition, and expanding the storage block based on the sub-storage block;
and configuring the record identifier to an expanded storage block, writing the target key frame into the expanded storage block, and updating the record identifier according to a writing result.
Specifically, since the storage block is set to be too large, not only too much space is occupied, but also the efficiency of extracting each key frame during subsequent backtracking is too slow, so to avoid this problem, the storage block is set to be a fixed size, when the storage block can meet the preset storage condition, it is indicated that the storage block can also continue to write key frames corresponding to other interfaces, and then the target key frame is directly written into the storage block.
When a storage block cannot meet preset storage conditions, it is indicated that the storage block cannot continuously write key frames corresponding to other interfaces, the storage block needs to be expanded, and in order to achieve that the expanded storage block is continuous, that is, key frames recorded by the expanded storage block are tracks of target applets used by users, the sub-storage block can be created according to preset sub-storage block creation conditions, and the storage block is expanded based on the sub-storage block, so that the size of the sub-storage block of the storage block is expanded, meanwhile, a recording identifier before expansion is configured for the expanded storage block, so that recording of key frames of other interface codes is achieved, at this time, the target key frame is written into the expanded storage block, and the recording identifier is updated according to a writing result.
The preset sub-storage block creation condition specifically refers to a condition to be observed for creating a sub-storage block, and may be a set size of the created sub-storage block, or the created sub-storage block may only store a key frame within a preset time period, and the like.
In practical application, because the memory of the client which can be used by the applet is limited, if the running memory of the client is used excessively, the running of the client is blocked, in order to avoid the problem, a temporary storage area can be divided from a disk of the client, the storage block is temporarily stored in the area, the running memory is not occupied, only a target key frame needs to be transmitted by the aid of the running memory, so that the blocking problem of the client is avoided, and subsequently, after the target applet is used by a user, the storage block is directly sent to the server from the disk, and the temporary storage area in the disk is released.
According to the above example, after the display interface of the commodity a is displayed to the user U1, the process that the user U1 jumps to the display interface of the commodity a through the shopping interface is recorded, that is, the interface code corresponding to the display interface of the commodity a is recorded, the display interface of the commodity a is generated based on the interface code when backtracking, the shopping interface is generated through the interface code of the shopping interface, and it can be determined that the user U1 enters the shopping interface first and then the display interface of the commodity a according to the time sequence.
Based on this, a target key frame is created based on an interface code corresponding to the display interface of the commodity A and the time for generating the display interface, whether a storage block of the shopping applet meets the condition for writing in a new key frame is judged, if yes, the target key frame is directly written in the storage block, the record identifier { ID _ UI/ID _ S1/2020/05/16/14/05/06} is updated according to the writing result, and the updated record identifier is { ID _ UI/ID _ S1/2020/05/16/14/06/06 }; if not, creating a sub storage block according to preset sub storage block creation conditions, associating the newly created sub storage block with a storage block of the shopping applet, configuring a record identifier { ID _ UI/ID _ S1/2020/05/16/14/05/06} to the associated storage block, finally writing the target key frame into the associated storage block, and updating the record identifier to { ID _ UI/ID _ S1/2020/05/16/14/06/06 }.
In summary, in the process of writing the target key frame into the storage block, it may be determined whether the target key frame can be continuously written into the storage block through a judgment manner, and if the target key frame can be directly written into the storage block, and if the target key frame cannot be written into the storage block, a new sub-storage block is created according to a preset creation condition of the sub-storage block and the storage block is expanded, so as to achieve the purpose of dynamically adjusting the storage block, achieve an effect of saving a client operating space, and meet the requirement that a recorded user operation track is continuous, thereby improving the traceability during subsequent backtracking.
In addition, the preset storage condition may also be a condition set according to time, for example, whether the storage block meets a condition for writing the key frame within 2 minutes is judged, if yes, the target key frame may be written, and if not, the sub-storage block needs to be created and associated with the storage block; the method can realize the partition and the continuity in a time division mode, can acquire the operation track of the user in each time period during backtracking, and is more convenient for the compliance detection of related services.
Furthermore, when the user uses the target applet, there may be a problem that other things may be temporarily handled and the target applet cannot be used continuously, and since the establishment of the applet is implemented in the running space of the client, a long time of occupying the client resource may be caused, and a problem that the client is heated or stuck may be further caused, in order to avoid this problem, the following two ways may be used, and the specific implementation manner is as follows:
determining the operating space occupied by the target applet under the condition that the closing instruction submitted by the user is not received within a preset time period;
judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not;
if yes, a reminding window is generated for the target small program, the reminding window is displayed to the user, or a target application program which is not used by the user for the longest time is obtained, the target application program is closed, and the running space is released.
Specifically, under the condition that the closing instruction submitted by the user is not received within a preset time period, determining the operating space occupied by the target applet; judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not; if not, no processing is needed.
If so, the target applet occupies too much operating resources at the client to cause the blockage or heating of the client, and at this time, a reminding window can be generated according to the target applet and used for reminding the user that the target applet occupies too much operating resources to influence the operation of other programs at the client, and asking for closing the reminding of the applet; or according to the authorization of the client, acquiring the target application program which has the longest starting time and is not used in the client, closing the target application program, and releasing the running space.
In the above example, when the user U1 intends to purchase a commodity through the shopping applet, the mobile phone is directly turned off because the emergency cannot continue, and the shopping applet at the mobile phone end is still in the running state, and at this time, it is determined whether the running resource occupied by the shopping applet exceeds the running resource threshold, and if not, no processing is performed; if the mobile phone terminal is occupied with too much running resources, reminding information can be generated for the shopping applet, and a user is reminded that the shopping applet is opened for too long and is not used, and asks you to close; or obtaining the application program which has the longest opening time and is not used at the mobile phone end to close so as to release the running space of the mobile phone end.
In summary, under the condition that the target applet is not used, the running space of the client can be released or reminded to the user according to preset conditions, so that the influence of running the target applet on the client is avoided.
And step S108, under the condition that a closing instruction submitted by the user aiming at the target small program is received, the storage block and the record identification are sent to a server.
Specifically, on the basis of writing the target key frame into the storage block and updating the storage block, if the user continues to submit an operation request for the current display interface, the steps S102 to S106 are continuously executed, so that the user operation track is continuously recorded; if the fact that the user submits a closing instruction for the target small program is received, the fact that the user does not need to use the target small program is indicated, at the moment, the storage block and the record identification are sent to a server side to be stored, and meanwhile the target small program is closed; the server is specifically a server for bearing an application program of a target applet.
According to the above example, when the user U1 purchases the commodity a, it is determined that all operation tracks from entering the shopping applet to purchasing the commodity a of the user U1 are stored in the storage block corresponding to the shopping applet, that is, the user U1 enters each interface and inputs information to the corresponding key frame in each interface, when the user closes the shopping applet, the record identifiers of the storage block and the storage block are simultaneously sent to the server of the payment application program and stored by the server, so that when the user U1 and the merchant of the commodity a dispute for the commodity a, the server can perform proof holding in a backtracking manner to determine the responsible party, thereby ensuring the benefits of both parties.
The applet processing method provided by the application reads an interface code in a program package corresponding to a target applet after receiving an operation request of a user through a current display interface of the target applet, generates the target interface according to the interface code and displays the target interface to the user, can record an operation track of the user and operation data related to the user at the moment so as to prove when disputes or pursuits occur, can create a target key frame based on the interface code and the time of generating the target interface, write the key frame into a storage block of the target applet, update a record identifier of the storage block according to the operation request of the user, and send the storage block and the record identifier to a server side when the target applet is closed by the user, the server side stores the storage block and the record identifier, so that the operation process of the target applet aimed by the user can be traced at any time later, the content capable of being backtraced is interface codes recorded during user operation, so that the data volume required to be stored during backtracing can be reduced, the visualization of the backtraced content can be ensured, and the purposes of low consumption and high backtracing performance are achieved.
Corresponding to the foregoing method embodiment, the present application further provides an applet processing apparatus embodiment applied to a client, and fig. 2 shows a schematic structural diagram of an applet processing apparatus applied to a client according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
a receive operation request module 202 configured to receive an operation request submitted by a user through a current display interface of a target applet;
a target interface display module 204 configured to read an interface code corresponding to the operation request from a package of the target applet, generate a target interface according to the interface code, and display the target interface to the user;
an update record identification module 206 configured to create a target key frame based on the interface code and the time for generating the target interface, write the target key frame into a storage block corresponding to the target applet, and update a record identification of the storage block;
a sending module 208 configured to send the storage block and the record identifier to a server, in case of receiving a closing instruction submitted by the user for the target applet.
In an optional embodiment, the applet processing apparatus further includes:
a click command receiving module configured to receive a click command uploaded by the user for the target applet;
the small program identification determining module is configured to determine a small program identification corresponding to the target small program according to the click command, generate a small program obtaining request based on the small program identification and send the small program obtaining request to the server;
a program package receiving module configured to receive the program package issued by the server for the target applet;
and the creation target applet module is configured to read creation information in the program package and create the target applet based on preset configuration information and the creation information.
In an optional embodiment, the storage block corresponding to the target applet and the record identifier of the storage block are created as follows:
generating an initial key frame according to the creation information and the time for creating the target applet;
creating the storage block corresponding to the target applet based on the initial key frame, and determining a user identifier of the user;
and configuring the record identifier for the storage block according to the user identifier and the applet identifier, wherein the record identifier represents a writing result of writing a target key frame into the storage block.
In an alternative embodiment, the display target interface module 204 includes:
a target control determining unit configured to determine a target control triggered by the operation request in the current presentation interface;
an interface information determining unit configured to determine interface information corresponding to the operation request according to the target control;
a reading program package unit configured to read the program package based on the interface information, and obtain the subprogram code, the view code and the view template code;
and the integration code unit is configured to integrate the subprogram code, the view code and the view template code to obtain the interface code corresponding to the operation request.
In an alternative embodiment, the display target interface module 204 includes:
the interface content generating unit is configured to generate an interface to be displayed based on the subprogram code and the view template code, and generate interface content based on the view code;
and the display target interface unit is configured to add the interface content to the interface to be displayed to obtain the target interface, and display the target interface to the user.
In an optional embodiment, the update record identification module 206 includes:
a judging unit configured to judge whether the memory block satisfies a preset memory condition;
if so, operating a first writing unit, wherein the first writing unit is configured to write the target key frame into the storage block and update the record identifier of the storage block according to a writing result;
if not, operating an expansion unit, wherein the expansion unit is configured to create a sub-storage block according to a preset sub-storage block creation condition and expand the storage block based on the sub-storage block;
and the second writing unit is configured to configure the record identifier to the expanded storage block, write the target key frame into the expanded storage block, and update the record identifier according to a writing result.
In an optional embodiment, the applet processing apparatus further includes:
a first operating space determining module configured to determine an operating space occupied by the target applet when the close instruction submitted by the user is not received within a preset time period;
a first judgment module configured to judge whether an operating space occupied by the target applet is greater than an operating space threshold;
and if so, operating a reminding window generating module, wherein the reminding window generating module is configured to generate a reminding window aiming at the target applet and display the reminding window to the user.
In an optional embodiment, the applet processing apparatus further includes:
a second operating space determining module configured to determine an operating space occupied by the target applet when the close instruction submitted by the user is not received within a preset time period;
a second judgment module configured to judge whether the operating space occupied by the target applet is greater than an operating space threshold;
and if so, operating a release module, wherein the release module is configured to acquire the target application program which is not used by the user for the longest time, close the target application program and release the operating space.
The applet processing apparatus provided in this embodiment is a applet processing method, where after receiving an operation request of a user through a current display interface of a target applet, an interface code is read from a package corresponding to the target applet, and a target interface is generated according to the interface code and displayed to the user, at this time, in order to record an operation track of the user and operation data related to the user, so as to implement dispute or accountability, a target key frame may be created based on the interface code and a time of generating the target interface, the key frame is written into a storage block of the target applet, and a record identifier of the storage block is updated according to the operation request of the user, and when the user closes the target applet, the storage block and the record identifier are sent to a server, and the server stores the record identifier, the method and the device can backtrack the operation process of the user aiming at the target applet at any time later, and the backtraceable content is the interface code recorded during the operation of the user, so that the data volume required to be stored during backtracking can be reduced, the visualization of the backtraceable content can be ensured, and the aims of low consumption and high backtraceability are fulfilled.
The foregoing is a schematic diagram of an applet processing apparatus applied to a client in this embodiment. It should be noted that the technical solution of the applet processing apparatus belongs to the same concept as the technical solution of the applet processing method applied to the client, and details of the technical solution of the applet processing apparatus applied to the client, which are not described in detail, can be referred to the description of the technical solution of the applet processing method applied to the client.
The embodiment of the applet processing method applied to the server is as follows:
fig. 3 is a flowchart illustrating an applet processing method applied to a server according to an embodiment of the present application, which specifically includes the following steps:
step S302, receiving a use request uploaded by the client aiming at the target applet.
The applet processing method provided by this embodiment is applied to a server, and the server specifically refers to a server that carries an application of the target applet; it should be noted that, the corresponding descriptions of the applet processing method provided in this embodiment can refer to the same descriptions in the foregoing embodiments, and redundant descriptions are not repeated here.
Step S304, extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client.
In this embodiment, a specific process of extracting the program package is as follows: analyzing the use request to obtain an applet identifier corresponding to the target applet; and extracting the program package corresponding to the target small program in a small program storage library based on the small program identification.
Step S306, receiving a storage block and a record identifier corresponding to the target applet uploaded by the client.
Step S308, storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
For example, when a user U1 at a mobile phone end needs to use a shopping applet for shopping, a use request for using the shopping applet is uploaded through the mobile phone end, after receiving the use request, the service end analyzes the use request to obtain an applet identifier ID _ S1 of the shopping applet, and then a package corresponding to the shopping applet is extracted from an applet storage library based on the applet identifier ID _ S1 and sent to the mobile phone end of the user U1, so that the user U1 can use the shopping applet for shopping.
Further, after the user U1 finishes using the shopping applet, the mobile phone end records the track of the user U1 using the shopping applet, and stores the related recording information into the storage block, and when the server end receives the storage block and the recording identifier uploaded by the mobile phone end of the user U1, it indicates that the user U1 has finished using the shopping applet, and at this time, the storage block and the recording identifier are recorded, that is, the storage block is written into the storage space of the user U1, and the recording identifier is written into the metadata table, so that when the process of using the shopping applet by the user U1 needs to be proved, a corresponding use interface can be traced back through the storage block, and a corresponding service processing process can be performed.
In specific implementation, in order to reduce the data volume of the operation track of the user and improve the traceability of the process of using the target applet by the user, the operation track of the user and the order information completed by the target applet are recorded by recording corresponding codes, and when the traceability is needed, a key frame is extracted according to the traceability request, and an interface corresponding to the time of the traceability request is generated by the key frame, in this embodiment, the specific implementation manner is as follows:
under the condition that an interface backtracking request aiming at the process that the client uses the target small program is obtained, extracting the record identification from the metadata table according to the interface backtracking request; reading the storage space based on the record identification to obtain the storage block corresponding to the target small program; analyzing the storage block to obtain a target key frame corresponding to the backtracking time in the interface backtracking request; and generating a target display interface based on the interface code in the target key frame as a response of the interface backtracking request.
Specifically, under the condition that an interface backtracking request for a process in which the client uses the target applet is obtained, which indicates that the process in which the client uses the target applet needs to be backtracked at this time, the record identifier may be extracted from the metadata table according to the interface backtracking request, and the storage space is read through the record identifier, so that the storage block corresponding to the target applet can be obtained, and the storage block is analyzed at the same time, so as to obtain a target key frame corresponding to the backtracking time in the interface backtracking request, where the backtracking time specifically refers to the time in which the client displays the interface needs to be backtracked, and finally, a target display interface is generated based on an interface code in the target key frame as a response to the interface backtracking request.
Furthermore, after the target display page is obtained, behavior information of the user may be determined, so as to preliminarily determine whether the behavior of the user is compliant, and in order to more accurately determine whether the user is compliant, an interface corresponding to all operation tracks of the target applet used by the user may also be generated, in this embodiment, a specific implementation manner is as follows:
determining behavior information of a user to which the client belongs according to the target display interface, and judging whether the behavior of the user is in compliance according to the behavior information; if yes, no treatment is carried out; if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block; generating a display interface based on the interface codes in the plurality of key frames and forming a display interface set; and calling a supervision interface to upload the display interface set, and sending reminding information of non-compliance behaviors to the client.
Along with the above example, when the user U1 has a dispute with the merchant to which the purchased commodity belongs, the process of purchasing the commodity by using the shopping applet through backtracking the user U1 is needed, so as to determine the responsible party; based on the above, the storage block for storing the code generated when the user U1 purchases the commodity is extracted according to the record identifier in the backtracking request, the plurality of key frames corresponding to the backtracking time are obtained by analyzing the storage block, the interface of the user U1 when the commodity is purchased by using the shopping applet is generated based on the interface code in the plurality of key frames, so that what operation is performed when the user U1 purchases the commodity is analyzed, at this time, the behavior information of the user U1 is determined, whether the behavior of the user is in compliance is judged according to the behavior information, if yes, the process of the user U1 when purchasing the commodity is in compliance is explained, the responsible party is determined as a merchant, and then the relevant processing is performed.
If not, it indicates that the process of the user U1 when purchasing the commodity is not compliant, at this time, in order to further determine whether the behavior of the user U1 is compliant, all the key frames in the storage block may be extracted, all the operation tracks of the user U1 from the starting of the shopping applet to the closing of the shopping applet are generated based on the interface codes in all the key frames, and the display interfaces corresponding to all the operation tracks are uploaded by the supervisory interface, so that the responsible party may be determined more accurately, and meanwhile, a prompt message may be sent to the user U1 to inform the user U1 that a non-compliant behavior occurs when purchasing the commodity, such as modifying the price of the commodity illegally or destroying and returning the commodity after receiving the commodity.
In conclusion, whether the behavior of the user is in compliance or not is determined in a backtracking mode of the target applet, so that the purpose of testifying can be achieved, the normalization of the sales scene can be promoted, and the reasonable development of the sales scene is promoted.
The applet processing method provided by the embodiment can realize backtracking of the user for the operation process of the target applet at any time, and the backtraceable content is an interface code recorded during user operation, so that the data volume required to be stored during backtracking can be reduced, the visualization of the backtraceable content can be ensured, and the purposes of low consumption and high backtraceability are achieved.
Corresponding to the above method embodiment, the present application further provides an embodiment of an applet processing apparatus applied to a server, and fig. 4 shows a structural diagram of an applet processing apparatus applied to a server according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a first receiving module 402 configured to receive a usage request uploaded by a client for a target applet;
a package sending module 404, configured to extract a package corresponding to the target applet according to the usage request, and send the package to the client;
a second receiving module 406, configured to receive a storage block and a record identifier corresponding to the target applet uploaded by the client;
the storage module 408 is configured to store the storage block to a storage space corresponding to the client, and write the record identifier to a metadata table.
In an alternative embodiment, the sending package module 404 includes:
the analysis use request unit is configured to analyze the use request to obtain an applet identifier corresponding to the target applet;
an extraction package unit configured to extract the package corresponding to the target applet in an applet store based on the applet identification.
In an optional embodiment, the applet processing apparatus further includes:
the extraction record identification module is configured to extract the record identification in the metadata table according to an interface backtracking request when the interface backtracking request for the process of using the target applet by the client is acquired;
a storage space reading module configured to read the storage space based on the record identifier, and obtain the storage block corresponding to the target applet;
the analysis storage block module is configured to analyze the storage block to obtain a target key frame corresponding to the backtracking time in the interface backtracking request;
and the target display interface generation module is configured to generate a target display interface based on the interface codes in the target key frame as a response of the interface backtracking request.
In an optional embodiment, the applet processing apparatus further includes:
the judging module is configured to determine behavior information of a user to which the client belongs according to the target display interface and judge whether the behavior of the user is in compliance according to the behavior information;
if not, operating an analysis module, wherein the analysis module is configured to analyze the storage block to obtain a plurality of key frames contained in the storage block;
a generating set module configured to generate a presentation interface based on the interface codes in the plurality of key frames and compose a presentation interface set;
and the calling module is configured to call a supervision interface to upload the display interface set and send reminding information of non-compliance behaviors to the client.
The applet processing device provided by the embodiment realizes that the user can be traced at any time according to the operation process of the target applet, and the traceable content is the interface code recorded during the operation of the user, so that the data volume required to be stored during tracing can be reduced, the visualization of the traced content can be ensured, and the purposes of low consumption and high traceability are achieved.
The foregoing is a schematic diagram of an applet processing apparatus applied to a server in this embodiment. It should be noted that the technical solution of the applet processing apparatus belongs to the same concept as the technical solution of the applet processing method applied to the server, and details of the technical solution of the applet processing apparatus applied to the server, which are not described in detail, can be referred to the description of the technical solution of the applet processing method applied to the server.
The embodiment of the applet backtracking method provided by the application is as follows:
fig. 5 is a flowchart illustrating an applet backtracking method applied to a client according to an embodiment of the present application, which specifically includes the following steps:
step S502, acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to the applet to be backtracked.
Specifically, the applet backtracking request specifically refers to backtracking an operation track of the applet used by the user, and correspondingly, the record identifier specifically refers to a record identifier of a storage block of the applet to be backtracked; the small program to be backtracked is the small program which needs to carry out the backtracking of the relevant interface.
Step S504, determining a storage block corresponding to the applet to be traced according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the applet to be traced.
Step S506, determining the interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
In this embodiment, the applet backtracking method further includes:
determining behavior information of a user according to the target interface, and judging whether the behavior of the user is in compliance according to the behavior information;
if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block, and generating a display interface to form a display interface set based on interface codes in the key frames;
and calling a supervision interface to upload the display interface set, and receiving a compliance processing result returned by the supervision interface for the user.
The corresponding contents of the applet backtracking method provided in this embodiment and the applet processing method applied to the server side may be referred to each other, and this embodiment is not described in detail herein.
For example, when the user U1 has a dispute with a merchant to which the purchased commodity belongs, the process of purchasing the commodity by using the shopping applet needs to be backtracked by the user U1, so as to determine the responsible party; based on this, the storage block which generates the storage code when the user U1 purchases the commodity is extracted according to the record identifier in the backtracking request, the storage block is analyzed to obtain a plurality of key frames corresponding to the backtracking time, an interface of the user U1 when the user U1 purchases the commodity by using the shopping applet is generated based on the interface code in the key frames, so that what operation is performed when the user U1 purchases the commodity is analyzed, at this time, the behavior information of the user U1 is determined, whether the behavior of the user is in compliance is judged according to the behavior information, if so, the process of the user U1 when purchasing the commodity is in compliance is explained, the responsible party is determined to be the merchant, and then the relevant processing is performed.
If not, it indicates that the process of the user U1 when purchasing the commodity is not compliant, at this time, in order to further determine whether the behavior of the user U1 is compliant, all the key frames in the storage block may be extracted, all the operation tracks of the user U1 from the starting of the shopping applet to the closing of the shopping applet are generated based on the interface codes in all the key frames, and the display interfaces corresponding to all the operation tracks are uploaded by the supervisory interface, so that the responsible party may be determined more accurately, and meanwhile, a prompt message may be sent to the user U1 to inform the user U1 that a non-compliant behavior occurs when purchasing the commodity, such as modifying the price of the commodity illegally or destroying and returning the commodity after receiving the commodity.
To sum up, whether the behavior of the user is in compliance is determined by the mode of backtracking the applet, so that the purpose of testification can be achieved, the normalization of a sales scene can be promoted, and the reasonable development of the sales scene is promoted.
The applet backtracking method provided by the embodiment can be used for backtracking the operation process of the applet to be backtracked by the user at any time when evidence collection or responsibility confirmation is required, and the backtraceable content is the interface code recorded during the operation of the user, so that the data volume required to be stored during backtracking can be reduced, the visualization of the backtraceable content can be ensured, and the purposes of low consumption and high backtraceability are achieved.
It should be noted that, the corresponding description contents of the applet processing method applied to the client, the applet processing method applied to the server, and the applet backtracking method (applied to the server) provided in the present application may be mutually referred to, and this embodiment is not described in detail herein.
Corresponding to the foregoing method embodiment, the present application further provides an applet backtracking apparatus embodiment, and fig. 6 shows a schematic structural diagram of an applet backtracking apparatus provided in an embodiment of the present application. As shown in fig. 6, the apparatus includes:
an obtaining module 602, configured to obtain an applet interface backtracking request, where the applet interface backtracking request includes a record identifier corresponding to an applet to be backtracked;
the analysis module 604 is configured to determine a storage block corresponding to the applet to be traced according to the record identifier, and analyze the storage block to obtain a key frame corresponding to the applet to be traced;
a display module 606 configured to determine an interface code of the applet to be traced based on the key frame, and generate and display a target interface corresponding to the applet interface tracing request according to the interface code.
In an optional embodiment, the applet backtracking apparatus further includes:
the judging module is configured to determine behavior information of a user according to the target interface and judge whether the behavior of the user is in compliance according to the behavior information;
if not, operating an analysis module, wherein the analysis module is configured to analyze the storage block to obtain a plurality of key frames contained in the storage block, and generating a display interface to form a display interface set based on interface codes in the plurality of key frames;
and the calling module is configured to call a supervision interface to upload the display interface set and receive a compliance processing result returned by the supervision interface aiming at the user.
The applet backtracking device and the applet backtracking method provided by the embodiment can be used for backtracking the operation process of the applet to be backtracked at any time when evidence or responsibility confirmation is required, and the backtracking content is interface codes recorded during user operation, so that the data volume required to be stored during backtracking can be reduced, the visualization of the backtracking content can be ensured, and the purposes of low consumption and high backtracking performance are achieved.
The foregoing is a schematic scheme of an applet backtracking apparatus in this embodiment. It should be noted that the technical solution of the applet backtracking apparatus and the technical solution of the applet backtracking method belong to the same concept, and details that are not described in detail in the technical solution of the applet backtracking apparatus can be referred to the description of the technical solution of the applet backtracking method.
Fig. 7 illustrates a block diagram of a first computing device 700 provided in accordance with an embodiment of the present application. The components of the computing device 700 include, but are not limited to, memory 710 and a processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 740 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of the computing device 700 and other components not shown in fig. 7 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present application. Other components may be added or replaced as desired by those skilled in the art.
Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.
Wherein processor 720 is configured to execute the following computer-executable instructions:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target applet, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to a server.
The above is a schematic scheme of the first computing device of the embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the applet processing method applied to the client, and for details that are not described in detail in the technical solution of the computing device, reference may be made to the description of the technical solution of the applet processing method applied to the client.
Fig. 8 illustrates a block diagram of a second computing device 800 provided in accordance with an embodiment of the present application. The components of the computing device 800 include, but are not limited to, memory 810 and a processor 820. The processor 820 is coupled to the memory 810 via a bus 830, and the database 850 is used to store data.
Computing device 800 also includes access device 840, access device 840 enabling computing device 800 to communicate via one or more networks 860. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 840 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of the computing device 800 and other components not shown in fig. 8 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device structure shown in FIG. 8 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 800 may also be a mobile or stationary server.
Wherein, the processor 820 is configured to execute the following computer-executable instructions:
receiving a use request uploaded by a client aiming at a target applet;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier corresponding to the target applet uploaded by the client;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
The above is a schematic scheme of the second computing device of the embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned applet processing method applied to the server belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the above-mentioned description of the technical solution of the applet processing method applied to the server.
FIG. 9 illustrates a block diagram of a third computing device 900 provided in accordance with an embodiment of the present application. Components of the computing device 900 include, but are not limited to, a memory 910 and a processor 920. The processor 920 is coupled to the memory 910 via a bus 930, and a database 950 is used to store data.
Computing device 900 also includes access device 940, access device 940 enabling computing device 900 to communicate via one or more networks 960. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 940 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present application, the above-described components of computing device 900 and other components not shown in FIG. 9 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 9 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 900 may also be a mobile or stationary server.
Wherein, the processor 920 is configured to execute the following computer-executable instructions:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
The above is an illustrative scheme of the third computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the applet backtracking method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the applet backtracking method.
An embodiment of the present application further provides a first computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target small program, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to a server.
The foregoing is an exemplary scenario of the first computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned applet processing method applied to the client, and details that are not described in detail in the technical solution of the storage medium can be referred to the above-mentioned description of the technical solution of the applet processing method applied to the client.
An embodiment of the present application further provides a second computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving a use request uploaded by a client aiming at a target applet;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier corresponding to the target applet uploaded by the client;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
The above is an illustrative scheme of the second computer-readable storage medium of the embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the applet processing method applied to the server, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the applet processing method applied to the server.
A third computer-readable storage medium is provided in an embodiment of the present application, which stores computer instructions that, when executed by a processor, are configured to:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
The above is an illustrative scheme of the third computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the applet backtracking method belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the applet backtracking method.
The foregoing description has been directed to specific embodiments of this application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the teaching of this application. The embodiments were chosen and described in order to best explain the principles of the application and its practical application, to thereby enable others skilled in the art to best understand the application and its practical application. The application is limited only by the claims and their full scope and equivalents.

Claims (23)

1. An applet processing method applied to a client comprises the following steps:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target applet, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block, wherein the target key frame is used for enabling a server to generate a target display interface according to the interface code in the target key frame;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to the server.
2. The applet processing method according to claim 1, wherein before the step of receiving the operation request submitted by the user via the current presentation interface of the target applet, the method further comprises:
receiving a click instruction uploaded by the user aiming at the target applet;
determining an applet identifier corresponding to the target applet according to the click command, generating an applet obtaining request based on the applet identifier, and sending the applet obtaining request to the server;
receiving the program package issued by the server aiming at the target small program;
and reading creation information in the program package, and creating the target applet based on preset configuration information and the creation information.
3. The applet processing method according to claim 2, wherein the memory block corresponding to the target applet and the record identifier of the memory block are created by:
generating an initial key frame according to the creation information and the time for creating the target applet;
creating the storage block corresponding to the target applet based on the initial key frame, and determining a user identifier of the user;
and configuring the record identifier for the storage block according to the user identifier and the applet identifier, wherein the record identifier represents a writing result of writing a target key frame into the storage block.
4. The applet processing method according to claim 1, wherein reading the interface code corresponding to the operation request in the package of the target applet includes:
determining a target control triggered by the operation request in the current display interface;
determining interface information corresponding to the operation request according to the target control;
reading the program package based on the interface information to obtain a subprogram code, a view code and a view template code;
and integrating the subprogram code, the view code and the view template code to obtain the interface code corresponding to the operation request.
5. The applet handling method according to claim 4, the generating and presenting a target interface to the user in accordance with the interface code, including:
generating an interface to be displayed based on the subprogram code and the view template code, and generating interface content based on the view code;
and adding the interface content to the interface to be displayed to obtain the target interface, and displaying the target interface to the user.
6. The applet processing method according to claim 1, wherein writing the target key frame into a storage block corresponding to the target applet and updating a record identifier of the storage block includes:
judging whether the storage block meets a preset storage condition or not;
if yes, writing the target key frame into the storage block, and updating the record identification of the storage block according to a writing result;
if not, creating a sub-storage block according to a preset sub-storage block creating condition, and expanding the storage block based on the sub-storage block;
and configuring the record identifier to an expanded storage block, writing the target key frame into the expanded storage block, and updating the record identifier according to a writing result.
7. The applet processing method according to claim 1, further comprising, after the updating the record identification of the memory block step:
determining the operating space occupied by the target applet under the condition that the closing instruction submitted by the user is not received within a preset time period;
judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not;
and if so, generating a reminding window aiming at the target small program, and displaying the reminding window to the user.
8. The applet processing method according to claim 1, further comprising, after the updating the record identification of the memory block step:
determining the operating space occupied by the target small program under the condition that the closing instruction submitted by the user is not received within a preset time period;
judging whether the operating space occupied by the target small program is larger than an operating space threshold value or not;
and if so, acquiring the target application program which is not used by the user for the longest time, closing the target application program, and releasing the running space.
9. An applet processing apparatus applied to a client, comprising:
the receiving operation request module is configured to receive an operation request submitted by a user through a current display interface of the target applet;
the display target interface module is configured to read an interface code corresponding to the operation request in a program package of the target applet, generate a target interface according to the interface code and display the target interface to the user;
the update record identification module is configured to create a target key frame based on the interface code and the time for generating the target interface, write the target key frame into a storage block corresponding to the target applet, and update record identification of the storage block, wherein the target key frame is used for enabling the server to generate a target display interface according to the interface code in the target key frame;
and the sending module is configured to send the storage block and the record identifier to the server side under the condition that the closing instruction submitted by the user aiming at the target small program is received.
10. An applet processing method applied to a server side comprises the following steps:
receiving a use request uploaded by a client aiming at a target applet;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier which are uploaded by the client and correspond to the target applet, wherein the storage block comprises a target key frame which is created based on an interface code and time for generating a target interface, and the target key frame is used for enabling the server to generate a target display interface according to the interface code in the target key frame;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
11. The applet processing method according to claim 10, wherein the extracting the package corresponding to the target applet according to the usage request comprises:
analyzing the use request to obtain an applet identifier corresponding to the target applet;
and extracting the program package corresponding to the target small program in a small program storage library based on the small program identification.
12. The applet processing method according to claim 10, further comprising, after the step of writing the record identifier to a metadata table, the step of:
under the condition that an interface backtracking request aiming at the process that the client uses the target applet is obtained, extracting the record identifier from the metadata table according to the interface backtracking request;
reading the storage space based on the record identification to obtain the storage block corresponding to the target small program;
analyzing the storage block to obtain a target key frame corresponding to the backtracking time in the interface backtracking request;
and generating a target display interface based on the interface codes in the target key frame as a response of the interface backtracking request.
13. The applet processing method according to claim 12, further comprising:
determining behavior information of a user to which the client belongs according to the target display interface, and judging whether the behavior of the user is in compliance according to the behavior information;
if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block;
generating a display interface based on interface codes in the plurality of key frames and forming a display interface set;
and calling a supervision interface to upload the display interface set, and sending reminding information of non-compliance behaviors to the client.
14. An applet processing apparatus applied to a server, comprising:
a first receiving module configured to receive a usage request uploaded by a client for a target applet;
a program package sending module configured to extract a program package corresponding to the target applet according to the use request and send the program package to the client;
a second receiving module, configured to receive a storage block and a record identifier corresponding to the target applet, where the storage block is uploaded by the client, and includes a target key frame created based on an interface code and a time for generating a target interface, and the target key frame is used to enable the server to generate a target display interface according to the interface code in the target key frame;
and the storage module is configured to store the storage block to a storage space corresponding to the client, and write the record identifier into a metadata table.
15. An applet backtracking method comprising:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
16. The applet backtracking method according to claim 15, after the generating a target interface corresponding to the applet interface backtracking request according to the interface code and performing the displaying step, further comprising:
determining behavior information of a user according to the target interface, and judging whether the behavior of the user is in compliance according to the behavior information;
if not, analyzing the storage block to obtain a plurality of key frames contained in the storage block, and generating a display interface to form a display interface set based on interface codes in the key frames;
and calling a supervision interface to upload the display interface set, and receiving a compliance processing result returned by the supervision interface for the user.
17. An applet backtracking apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is configured to acquire an applet interface backtracking request which comprises a record identifier corresponding to an applet to be backtracked;
the analysis module is configured to determine a storage block corresponding to the applet to be traced according to the record identifier, and analyze the storage block to obtain a key frame corresponding to the applet to be traced;
and the display module is configured to determine an interface code of the applet to be backtracked based on the key frame, and generate and display a target interface corresponding to the applet interface backtracking request according to the interface code.
18. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
receiving an operation request submitted by a user through a current display interface of a target applet;
reading an interface code corresponding to the operation request in a program package of the target applet, generating a target interface according to the interface code and displaying the target interface to the user;
creating a target key frame based on the interface code and the time for generating the target interface, writing the target key frame into a storage block corresponding to the target applet, and updating a record identifier of the storage block, wherein the target key frame is used for enabling a server to generate a target display interface according to the interface code in the target key frame;
and under the condition that the user submits a closing instruction for the target small program, sending the storage block and the record identifier to the server.
19. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
receiving a use request uploaded by a client aiming at a target applet;
extracting a program package corresponding to the target small program according to the use request, and sending the program package to the client;
receiving a storage block and a record identifier which are uploaded by the client and correspond to the target applet, wherein the storage block comprises a target key frame which is created based on an interface code and time for generating a target interface, and the target key frame is used for enabling the server to generate a target display interface according to the interface code in the target key frame;
and storing the storage block to a storage space corresponding to the client, and writing the record identifier into a metadata table.
20. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
acquiring an applet interface backtracking request, wherein the applet interface backtracking request comprises a record identifier corresponding to an applet to be backtracked;
determining a storage block corresponding to the small program to be traced back according to the record identifier, and analyzing the storage block to obtain a key frame corresponding to the small program to be traced back;
and determining an interface code of the applet to be backtracked based on the key frame, and generating and displaying a target interface corresponding to the applet interface backtracking request according to the interface code.
21. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the applet processing method of any one of claims 1 to 8.
22. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the applet processing method of any one of claims 10 to 13.
23. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the applet backtracking method of any one of claims 15 to 16.
CN202010849786.XA 2020-08-21 2020-08-21 Applet processing method and device Active CN111966429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010849786.XA CN111966429B (en) 2020-08-21 2020-08-21 Applet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010849786.XA CN111966429B (en) 2020-08-21 2020-08-21 Applet processing method and device

Publications (2)

Publication Number Publication Date
CN111966429A CN111966429A (en) 2020-11-20
CN111966429B true CN111966429B (en) 2022-07-08

Family

ID=73391063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010849786.XA Active CN111966429B (en) 2020-08-21 2020-08-21 Applet processing method and device

Country Status (1)

Country Link
CN (1) CN111966429B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688568A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 Acquisition method and device based on web page access behavior record
CN106897387B (en) * 2017-01-23 2020-11-24 北京思特奇信息技术股份有限公司 Service detection method based on action simulation
US10782960B2 (en) * 2017-06-06 2020-09-22 Ab Initio Technology Llc User interface that integrates plural client portals in plural user interface portions through sharing of one or more log records
CN107729407B (en) * 2017-09-26 2020-06-05 平安科技(深圳)有限公司 User behavior analysis method and server
CN110390445A (en) * 2018-04-16 2019-10-29 阿里巴巴集团控股有限公司 The recognition methods of operational risk, device and system
CN110968822B (en) * 2018-09-30 2023-04-18 阿里巴巴集团控股有限公司 Page detection method and device, electronic equipment and storage medium
CN111488259B (en) * 2019-01-29 2023-06-20 阿里巴巴集团控股有限公司 Recording method for webpage and playback method for recorded file
CN110362363B (en) * 2019-06-10 2021-03-12 北京大学 Method for realizing terminal application control based on runtime model
CN110647321A (en) * 2019-08-15 2020-01-03 平安普惠企业管理有限公司 Method, device and equipment for playing back operation flow and storage medium
CN111105304B (en) * 2019-11-19 2023-06-02 泰康保险集团股份有限公司 Data processing method and device, storage medium and electronic terminal
CN111427644B (en) * 2020-03-04 2022-05-06 维沃软件技术有限公司 Target behavior identification method and electronic equipment

Also Published As

Publication number Publication date
CN111966429A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN111277892B (en) Method, apparatus, server and medium for selecting video clip
US10574599B2 (en) Method, system and recording medium for providing contents in messenger
US20220391642A1 (en) Method and apparatus for evaluating joint training model
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN111079047A (en) Web-oriented page construction system
US20210326912A1 (en) Blockchain-based data processing systems, methods, and apparatuses
WO2021057740A1 (en) Video generation method and apparatus, electronic device, and computer readable medium
WO2023040443A1 (en) Method and device for drawing canvas
Hurbean et al. Mobile Technology: Binding Social and Cloud into a New Enterprise Applications Platform.
CN109753530B (en) Data processing method and device, medium and terminal thereof
CN111131848A (en) Video live broadcast data processing method, client and server
JP2013118612A (en) Screen capture method for mobile communication terminal
EP4138004A1 (en) Method and apparatus for assisting machine learning model to go online
CN111598624A (en) Front-back end separation multifunctional advertisement terminal
EP4163801A1 (en) Auxiliary implementation method and apparatus for online prediction using machine learning model
WO2022188386A9 (en) Video publishing method and apparatus, and device
CN111897890A (en) Financial business processing method and device
CN112230944B (en) Application installation method, device, electronic equipment and computer readable medium
CN111966429B (en) Applet processing method and device
CN108021317B (en) Method and device for screen editing
CN115115415A (en) Intelligent marketing system and method based on big data analysis
CN103491234A (en) Data processing method and electronic equipment
CN113836424A (en) Data acquisition method and device, electronic equipment and storage medium
CN114666568A (en) Intelligent double-recording-based service processing method and intelligent double-recording system
CN111931465A (en) Method and system for automatically generating user manual based on user operation

Legal Events

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