Data processing method and device, electronic equipment and storage medium
By recording user page operations in real time and sending them to the server in web application development, the complex and inefficient problems of manual screenshot and sending when user operation abnormalities are solved, and fast backtracking and efficient exception handling are achieved.
Patent Information
- Application Number
- CN202311735694.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2025-06-17
AI Technical Summary
In web-side application development, when users operate abnormally, in the prior art, users need to manually take screenshots and send them to developers, which are complex and inefficient.
Provides a data processing method, by receiving the trigger request of the page, obtaining user information and querying the operation processing strategy, calling the record model to monitor operation events, identifying the operation type and generating operation records, updating the record table, and sending the record table to the server when the reporting conditions are met.
Real-time recording of user page operations and fast backtracking of exception problems, improving the efficiency and accuracy of developers querying abnormal operation pages.
Smart Images

Figure CN120162352A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for data processing. Background Art
[0002] In web (World Wide Web) application development, the browser is the direct operation entry for users. Various exceptions may occur during the user's operation, but these exceptions are not perceptible to developers. How to enable developers to accurately and quickly determine these operation exceptions has become an important issue. In the related art, usually, after the user discovers an exception during the operation, the user records the exception operation by taking a screenshot or other means and then manually sends it to the developer. However, this method is not only complex in operation but also low in efficiency. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a method, device, electronic device, and storage medium for data processing, which can solve the problem that the method of recording and sending the exception operation to the developer by taking a screenshot or other means by the user is not only complex in operation but also low in efficiency.
[0004] To achieve the above object, according to one aspect of the embodiments of the present invention, a method for data processing is provided.
[0005] A method for data processing according to an embodiment of the present invention, which is used for a terminal, includes: receiving a trigger request of a page, obtaining corresponding user information to query a corresponding operation processing policy;
[0006] In response to the successful query of the operation processing policy, calling a preset recording model to monitor the operation events of the page, identifying the operation type of the operation events, and obtaining operation data associated with the operation events based on the operation type;
[0007] Obtaining the record format corresponding to the operation type to generate an operation record in combination with the operation data, and updating the operation record to the record table corresponding to the page;
[0008] Obtaining a reporting type from the operation processing policy to determine a corresponding reporting condition; in response to the current state of the record table satisfying the reporting condition, sending the record table to a corresponding server.
[0009] In one embodiment, querying the corresponding operation processing policy includes:
[0010] Obtaining a set of operation processing policies corresponding to the user information, where the set of operation processing policies includes operation processing policies at multiple levels;
[0011] Determine the operation processing policy corresponding to the user information based on the level of each of the operation processing policies.
[0012] In yet another embodiment, updating the operation record to the record table corresponding to the page includes:
[0013] Obtain the first page information corresponding to the operation record, and query the second page information corresponding to the latest operation record in the record table;
[0014] In response to the first page information being the same as the second page information, update the operation record to the record table corresponding to the page; in response to the first page information being different from the second page information, create a new record table and store the operation record in the new record table.
[0015] In yet another embodiment, creating a new record table includes:
[0016] Obtain the storage policy from the operation processing policy to determine the list record type;
[0017] In response to the list record type being the first type, obtain the number of created record tables. When the number is greater than the preset number threshold, create a new record table and update the status of the created record table to the to-be-reported status;
[0018] In response to the list record type being the second type, obtain the creation time of the created record table. When the time interval between the creation time and the current time reaches the preset period threshold, create a new record table and update the status of the created record table to the to-be-reported status.
[0019] To achieve the above object, according to yet another aspect of the embodiments of the present invention, there is provided yet another data processing method.
[0020] Yet another data processing method according to the embodiments of the present invention, for a server, includes:
[0021] Receive a record table sent by a terminal, obtain the user information in the record table to query the corresponding historical record table, and update the record table to the historical record table;
[0022] In response to an exception instruction, obtain the user information and time information corresponding to the exception instruction;
[0023] Query the historical record table associated with the user information to locate the target operation record set from the historical record table based on the time information;
[0024] Call a preset rendering model to render a user operation page based on the target operation record set and send the user operation page.
[0025] In yet another embodiment, locating a target operation record set from the historical record table based on the time information includes:
[0026] Obtain a preset time selection strategy to determine a time interval based on the time information, locate the record tables within the time interval from the historical record table, and determine them as the target operation record set.
[0027] To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for data processing.
[0028] An apparatus for data processing according to an embodiment of the present invention is provided in a terminal and includes: a receiving unit configured to receive a trigger request of a page, obtain corresponding user information, and query a corresponding operation processing strategy;
[0029] An obtaining unit configured to, in response to a successful query of the operation processing strategy, call a preset record model to monitor operation events of the page, identify the operation type of the operation events, and obtain operation data associated with the operation events based on the operation type;
[0030] An updating unit configured to obtain a record format corresponding to the operation type, generate an operation record by combining the operation data, and update the operation record to a record table corresponding to the page;
[0031] A sending unit configured to obtain a reporting type from the operation processing strategy to determine a corresponding reporting condition; and in response to the current state of the record table satisfying the reporting condition, send the record table to a corresponding server.
[0032] In one embodiment, the receiving unit is specifically configured to:
[0033] Obtain an operation processing strategy set corresponding to the user information, where the operation processing strategy set includes operation processing strategies of multiple levels;
[0034] Determine an operation processing strategy corresponding to the user information based on the levels of the operation processing strategies.
[0035] In yet another embodiment, the updating unit is specifically configured to:
[0036] Obtain first page information corresponding to the operation record, and query second page information corresponding to the latest operation record in the record table;
[0037] In response to the first page information being the same as the second page information, update the operation record to the record table corresponding to the page; in response to the first page information being different from the second page information, create a new record table and store the operation record in the new record table.
[0038] In another embodiment, the updating unit is specifically configured to:
[0039] Obtain a storage policy from the operation processing policy to determine the list record type;
[0040] In response to the list record type being the first type, obtain the number of created record tables. When the number is greater than a preset number threshold, create a new record table and update the status of the created record table to the to-be-reported status;
[0041] In response to the list record type being the second type, obtain the creation time of the created record table. When the time interval between the creation time and the current time reaches a preset cycle threshold, create a new record table and update the status of the created record table to the to-be-reported status.
[0042] To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for data processing.
[0043] An apparatus for data processing according to an embodiment of the present invention is disposed on a server side and includes:
[0044] A receiving unit, configured to receive a record table sent by a terminal, obtain user information in the record table to query a corresponding historical record table, and update the record table to the historical record table;
[0045] An obtaining unit, configured to obtain user information and time information corresponding to the exception instruction in response to an exception instruction;
[0046] A positioning unit, configured to query a historical record table associated with the user information to locate a target operation record set from the historical record table based on the time information;
[0047] A sending unit, configured to call a preset rendering model to render a user operation page based on the target operation record set and send the user operation page.
[0048] In one embodiment, the positioning unit is specifically configured to:
[0049] Obtain a preset time selection policy to determine a time interval based on the time information, and locate the record table within the time interval from the historical record table to determine it as the target operation record set.
[0050] To achieve the above object, according to another aspect of the embodiments of the present invention, an electronic device is provided.
[0051] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the data processing method provided by the embodiments of the present invention.
[0052] To achieve the above object, according to another aspect of the embodiments of the present invention, a computer-readable medium is provided.
[0053] A computer-readable medium according to an embodiment of the present invention has a computer program stored thereon, and when the program is executed by a processor, it implements the data processing method provided by the embodiments of the present invention.
[0054] To achieve the above object, according to another aspect of the embodiments of the present invention, a computer program product is provided.
[0055] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, it implements the data processing method provided by the embodiments of the present invention.
[0056] One embodiment of the above invention has the following advantages or beneficial effects: In the embodiments of the present invention, when the user triggers a page, a recording model can be called to monitor the user's operations on the page in real time, and associated operation data can be obtained according to the operation type, and then a record table corresponding to the page can be generated; and the record table can be sent to the server when the reporting condition is met. In this way, when the server responds to an abnormal instruction, the corresponding target operation record set can be located from the record table according to the time information to render and distribute the user operation page. Thus, in the embodiments of the present invention, by recording the user's operations on the page, when an abnormality is found, the corresponding operation record can be directly located through the time information and rendered to realize the backtracking of the abnormal problem. Furthermore, developers can directly query the abnormal operation page, that is, the abnormality in the page can be intuitively and accurately identified. This not only simplifies the operation of abnormal information feedback, but also improves the processing efficiency.
[0057] The further effects of the above non-conventional optional methods will be described in conjunction with the specific embodiments below. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Among them:
[0059] Figure 1 is a schematic diagram of a main process of the data processing method according to an embodiment of the present invention;
[0060] Figure 2 is a schematic structural diagram of a record table according to an embodiment of the present invention;
[0061] Figure 3 is a schematic diagram of another main process of a data processing method according to an embodiment of the present invention;
[0062] Figure 4 is a schematic diagram of another main process of a data processing method according to an embodiment of the present invention;
[0063] Figure 5 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present invention;
[0064] Figure 6 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present invention;
[0065] Figure 7 is an exemplary system architecture diagram to which an embodiment of the present invention can be applied;
[0066] Figure 8 is a schematic structural diagram of a computer system suitable for implementing an embodiment of the present invention. Detailed implementation manners
[0067] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, descriptions of well-known functions and structures are omitted below for clarity and conciseness.
[0068] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. The acquisition, storage, use, processing, etc. of data in the technical solution of this application all comply with the relevant regulations of national laws and regulations.
[0069] An embodiment of the present invention provides a data processing system, which can be used in scenarios for processing page operation exceptions. Specifically, it can be used in scenarios for backtracking and processing exception problems when page operation exceptions occur in web application development.
[0070] In an embodiment of the present invention, a data processing system may include a terminal, a server, and a development end. The terminal and the server may be used for data processing of a page. The development end may interact with the server to provide data required for page exception handling for the development end. In an embodiment of the present invention, the page may include a browser page or an application page. A browser or an application client may be set in the terminal. When the user opens the application or the browser, the page opening will be triggered, and thus the record of page operations can be performed. Therefore, during the process of the user operating on the page, the operation content can be recorded in real time, that is, the real-time change data of the page is recorded and sent to the server. The server can provide the recorded data for the development end when the development end queries the change data of the page, so that the development end can replay the page operations according to the recorded data.
[0071] An embodiment of the present invention provides a data processing method, which can be executed by a terminal in a data processing system, such as Figure 1 shown, the method includes:
[0072] S101: Receive a trigger request of a page, obtain the corresponding user information, and query the corresponding operation processing policy.
[0073] Among them, the page may be a browser page or an application page in the terminal. When the user opens a certain page, a trigger request may be triggered. The trigger request represents the request of the user to open a certain page. After receiving the trigger request of the page, the terminal may first obtain the user information to query the corresponding operation processing policy. The user information represents the information of the current operating user, which may be the user information of the logged-in page or the terminal information of the user.
[0074] The operation processing policy represents the processing policy for page operations. Usually, a corresponding operation processing policy will be configured when it is necessary to record page operations. Therefore, in this step, the terminal can query the operation processing policy corresponding to the user information. If the query of the operation processing policy is successful, it means that the operation processing policy for page operations is configured, that is, the page operations can be processed based on this operation processing policy subsequently; if the query of the operation processing policy is unsuccessful, it means that the operation processing policy for page operations is not configured, and the page operations are not processed, so this embodiment of the present invention may not be executed.
[0075] In one embodiment, different levels of operation processing policies applicable to different ranges can be set in the embodiments of the present invention. For example, in the scenario of order picking, operation processing policies for user level, warehouse level, tenant level, and global level can be set, and priorities are set for these levels. For example, it can be user level > warehouse level > tenant level > global level, and a corresponding relationship is established between the operation processing policies of each level and user information. Therefore, in this step, an operation processing policy set corresponding to the user information can be obtained. The operation processing policy set can include operation processing policies of multiple levels; and then, based on the levels of each operation processing policy, an operation processing policy corresponding to the user information is determined.
[0076] Specifically, the global level operation processing policy indicates that it can be used for the configuration of the entire system level, and all dimensions such as tenants, warehouses, and users can be applicable; the tenant level operation processing policy indicates that it can be used for the configuration of a certain tenant, and all dimensions such as the warehouses and users corresponding to the tenant can be applicable; the warehouse level operation processing policy indicates that it can be used for a certain warehouse, and all users corresponding to the warehouse can be applicable; the user level operation processing policy indicates that it can be used for the configuration of a certain user.
[0077] S102: In response to the successful query of the operation processing policy, a preset recording model is called to monitor the operation events of the page, identify the operation types of the operation events, and obtain the operation data associated with the operation events based on the operation types.
[0078] Among them, the successful query of the operation processing policy indicates that the page operation data needs to be recorded. Therefore, a preset recording model can be called to monitor the operation events of the page. The recording model is pre-configured and can monitor the operations of users on the page. After monitoring the operation events of the page, it is necessary to first identify the operation types of the operation events to determine the operation data required to be recorded for the operation types, and then the operation data associated with the operation events can be obtained based on the operation types.
[0079] In the embodiments of the present invention, the operation types of the page can be set based on requirements. Taking the page as an HTML page as an example, Table 1 shows the specific divided operation types.
[0080] Table 1
[0081]
[0082]
[0083] Since the operation data to be recorded is different for different operation types, corresponding attribute parameters can be set for each operation type in the embodiments of the present invention, so that the corresponding operation data can be obtained based on these attribute parameters.
[0084] S103: Obtain the record format corresponding to the operation type, combine the operation data to generate an operation record, and update the operation record to the record table corresponding to the page.
[0085] Among them, in the embodiments of the present invention, the record format corresponding to each operation type can be set to generate the operation record of the operation according to the obtained operation data and update it to the record table.
[0086] Since the user operation is an operation on the page, all operation records can be stored based on the page. That is, in the embodiments of the present invention, the operation records corresponding to each page can be stored in the form of a record table.
[0087] Specifically, as shown in Table 2, it can be a schematic diagram of the operation record table of the page. Among them, the operations on each page can be recorded in the record table of the same row for easy query of operation data. When updating the operation record to the record table corresponding to the page, usually it is added to the record table corresponding to the page. Therefore, the first page information corresponding to the operation record can be obtained first, and the second page information corresponding to the latest operation record in the record table can be queried to determine whether the first page information is the same as the second page information; if they are the same, it means that the user's two operations before and after are on the same page, and the operation record can be directly updated to the record table, that is, the operation record can be stored in the record table corresponding to this page information; if they are not the same, it means that they are not operations on the same page, so a new record table needs to be created and the operation record is stored in the new record table.
[0088] It should be noted that as Figure 2 shown, for each page, the full amount of initial page information can be stored in the record table first. Since subsequent users are all operating on the basis of the initial page, the operation data of the user on the page can be stored in sequence, and the process of recording the user's operation on the page can be completed, and then the complete operation process of the user can be traced back.
[0089] Since the record table is usually not suitable to be too long for easy storage, a storage policy can be configured in the embodiments of the present invention. The storage policy can include a first policy and a second policy. The first policy sets a preset quantity threshold, and the second policy sets a preset period. The first policy can indicate that when the number of created record tables reaches the preset quantity threshold, the created record tables can be stored separately and set to the to-be-reported state. In this way, these record tables will be sent to the server as soon as possible, and then these record tables can be deleted after the reporting is completed. The second policy can indicate that when the earliest creation time of the created record tables reaches the duration of the preset period, the created record tables can be stored separately and set to the to-be-reported state. In this way, these record tables will be sent to the server as soon as possible, and then these record tables can be deleted after the reporting is completed. Therefore, when the list record type is the first type, the number of created record tables is obtained. If the number is greater than the preset quantity threshold, a new record table is created, and the state of the created record tables is updated to the to-be-reported state; when the list record type is the second type, the creation time of the created record tables is obtained. If the time interval between the creation time and the current time reaches the preset period, a new record table is created, and the state of the created record tables is updated to the to-be-reported state.
[0090] It should be noted that in the embodiments of the present invention, the record table can be stored locally or in the browser memory when it is not sent to the server.
[0091] S104: Obtain the reporting type from the operation processing policy to determine the corresponding reporting conditions; in response to the record table meeting the reporting conditions, send the record table to the corresponding server.
[0092] Among them, the reporting type can be preset in advance, and it can be set corresponding to the list storage policy. Different storage types correspond to different reporting conditions. In the embodiments of the present invention, the reporting type can set the reporting conditions based on time and quantity.
[0093] Specifically, the reporting condition can be that the current state of the stored record table is the to-be-reported state. At this time, it can be sent to the server for storage. Therefore, in this step, the current state of each record table can be obtained, and in response to the current state of the record table being the to-be-reported state, these record tables are sent to the corresponding server.
[0094] It should be noted that in the embodiments of the present invention, all the recorded record tables can be sent to the server, or part of the record tables can be sent to the server. For example, when a page exception is detected, the record table associated with the exception can be sent to the server. The page exception can be an abnormal instruction input by the user or an exception occurring through JS (a scripting language). In the embodiments of the present invention, a timer can also be set to determine whether the record table meets the reporting conditions when the timer is triggered, and after determining that the reporting conditions are met, the record table is sent to the corresponding server.
[0095] In the embodiments of the present invention, by recording the operations of the user on the page, the corresponding operation records can be directly located and rendered through the time information when an exception is found, so as to realize the backtracking of the abnormal problem. Furthermore, developers can directly query the operation page of the exception, that is, the exception in the page can be directly and accurately visualized. This not only simplifies the operation of feedbacking the exception information, but also improves the processing efficiency.
[0096] The embodiments of the present invention provide a data processing method, which can be executed by a server in a data processing system, such as Figure 3 as shown, the method includes:
[0097] S301: Receive the record table sent by the terminal, obtain the user information in the record table, query the corresponding historical record table, and update the record table to the historical record table.
[0098] Among them, after the server receives the record table reported by the terminal, it can obtain the user information in the record table and update it to the historical record table corresponding to the user information, so as to store the complete record table.
[0099] It should be noted that in the embodiments of the present invention, when the number of record tables is large, a file storage method can be used for storage. For example, the records of the received record tables are stored in a database, and the received record tables are stored as files.
[0100] S302: In response to the abnormal instruction, obtain the user information and time information corresponding to the abnormal instruction.
[0101] Among them, the abnormal instruction can be sent by the development end, which can include time information and user information to indicate when the user found a page exception. The development end can determine which page had an exception at what time through user sending or program detection, and then send an abnormal instruction to the server.
[0102] S303: Query the historical record table associated with the user information, and locate the target operation record set from the historical record table based on the time information.
[0103] Among them, after the user information is determined, the corresponding historical record table of the user can be queried, and then the target operation record set can be located according to the time information.
[0104] Since the time information provided in the abnormal instruction may be inaccurate, a time selection strategy can be preset in this step. Then, a time interval can be determined based on the time information in the abnormal instruction. The time interval usually includes the time point corresponding to the time information. Then, the record table within the time interval can be located from the historical record table to determine the target operation record set. For example, taking the time corresponding to the time information in the abnormal instruction as the center, a preset duration can be extended before and after it to determine the time interval.
[0105] S304: Call the preset rendering model to render the user operation page based on the target operation record set and send the user operation page.
[0106] Among them, the rendering model is pre-configured. The operation data in the target operation record set can be rendered to obtain the completed content of the user operation page. Then, the user operation page is sent to the development end for display, so that the development end can determine the abnormal information from it.
[0107] In the embodiment of the present invention, by recording the operations of the user on the page, when an abnormality is found, the corresponding operation record can be directly located through the time information and rendered to realize the backtracking of the abnormal problem. Then, the developer can directly query the abnormal operation page, that is, the abnormality in the page can be intuitively and accurately identified. Not only is the operation of abnormal information feedback complex, but also the processing efficiency is improved.
[0108] Next, in combination with Figure 1 the embodiments shown, the method for data processing in the embodiment of the present invention will be specifically described. As Figure 4 shown, the method includes:
[0109] S401: Receive the trigger request of the page and obtain the corresponding user information.
[0110] S402: Obtain the operation processing strategy set corresponding to the user information, and determine the operation processing strategy corresponding to the user information based on the levels of the operation processing strategies.
[0111] S403: Call the preset record model to monitor the operation events on the page, identify the operation types of the operation events, and obtain the operation data associated with the operation events based on the attribute parameters associated with the operation types.
[0112] Among them, the attribute parameters represent the parameters required to be recorded for the operation type, and the operation data represents the parameter values of these attribute parameters. For example, for the operation type of mouse movement, the corresponding attribute parameters can be the coordinates before movement and the coordinates after movement. Therefore, the operation data is the coordinate value before movement and the coordinate value after movement obtained for this mouse movement.
[0113] S404: Obtain the record format corresponding to the operation type, combine it with the operation data to generate an operation record, and update the operation record to the record table corresponding to the page.
[0114] Among them, the record format can be pre-configured. For example, for the operation type of mouse movement, the record format can be an array, that is, the coordinate values obtained from the mouse movement generate an array according to the movement order.
[0115] S405: Obtain the reporting type from the operation processing policy to determine the corresponding reporting conditions; in response to the current state of the record table meeting the reporting conditions, send the record table to the corresponding server.
[0116] It should be noted that the data processing principle in the embodiments of the present invention is the same as that in Figure 1 the embodiments shown, and will not be elaborated here.
[0117] To solve the problems existing in the prior art, an embodiment of the present invention provides a data processing device 500, as shown in Figure 5 shown, the device 500 includes:
[0118] A receiving unit 501, configured to receive a trigger request of a page, obtain corresponding user information, and query a corresponding operation processing policy;
[0119] An obtaining unit 502, configured to, in response to a successful query of the operation processing policy, call a preset record model to monitor an operation event of the page, identify an operation type of the operation event, and obtain operation data associated with the operation event based on the operation type;
[0120] An updating unit 503, configured to obtain the record format corresponding to the operation type, combine it with the operation data to generate an operation record, and update the operation record to the record table corresponding to the page;
[0121] A sending unit 504, configured to obtain a reporting type from the operation processing policy to determine a corresponding reporting condition; in response to the current state of the record table meeting the reporting condition, send the record table to the corresponding server.
[0122] It should be understood that the implementation manner of the embodiments of the present invention is the same as that of the embodiments shown in Figure 1 and will not be elaborated here.
[0123] In one embodiment, the receiving unit 501 is specifically configured to:
[0124] Obtain an operation processing policy set corresponding to the user information, where the operation processing policy set includes operation processing policies at multiple levels;
[0125] Determine an operation processing policy corresponding to the user information based on the levels of the respective operation processing policies.
[0126] In another embodiment, the updating unit 503 is specifically configured to:
[0127] Obtain first page information corresponding to the operation record, and query second page information corresponding to the latest operation record in the record table;
[0128] In response to the first page information being the same as the second page information, update the operation record to the record table corresponding to the page; in response to the first page information being different from the second page information, create a new record table, and store the operation record in the new record table.
[0129] In another embodiment, the updating unit 503 is specifically configured to:
[0130] Obtain a storage policy from the operation processing policy to determine a list record type;
[0131] In response to the list record type being the first type, obtain the number of created record tables. When the number is greater than a preset number threshold, create a new record table, and update the status of the created record table to a to-be-reported status; in response to the list record type being the second type, obtain the creation time of the created record table. When the time interval between the creation time and the current time reaches a preset period threshold, create a new record table, and update the status of the created record table to a to-be-reported status.
[0132] It should be understood that the implementation manner of the embodiments of the present invention is the same as that of the embodiments shown Figure 1 、 3 and will not be elaborated herein.
[0133] In the embodiments of the present invention, by recording the operations of the user on the page, when an abnormality is found, the corresponding operation record can be directly located through the time information and rendered, so as to realize the backtracking of the abnormal problem. Furthermore, developers can directly query the abnormal operation page, that is, the abnormality in the page can be intuitively and accurately found. Not only is the operation of the abnormal information feedback complicated, but also the processing efficiency is improved.
[0134] To solve the problems existing in the prior art, an embodiment of the present invention provides another data processing device 600, as Figure 6 shown. The device 600 includes:
[0135] A receiving unit 601, configured to receive a record table sent by a terminal, obtain user information in the record table, query a corresponding historical record table, and update the record table to the historical record table;
[0136] An obtaining unit 602, configured to obtain user information and time information corresponding to the exception instruction in response to an exception instruction;
[0137] A positioning unit 603, configured to query a historical record table associated with the user information, and locate a target operation record set from the historical record table based on the time information;
[0138] A sending unit 604, configured to call a preset rendering model, render a user operation page based on the target operation record set, and send the user operation page.
[0139] It should be understood that the implementation manner of the embodiment of the present invention is the same as that of the embodiment Figure 2 shown, and will not be described in detail here.
[0140] In one embodiment, the positioning unit 603 is specifically configured to:
[0141] Obtain a preset time selection strategy, determine a time interval based on the time information, locate a record table within the time interval from the historical record table, and determine it as a target operation record set.
[0142] In the embodiment of the present invention, by recording the operations of the user on the page, when an exception is found, the corresponding operation records can be directly located through the time information and rendered, so as to realize the backtracking of the exception problem. Furthermore, developers can directly query the abnormal operation page, that is, the abnormality in the page can be intuitively and accurately found. Not only is the operation of feedback of abnormal information complex, but also the processing efficiency is improved.
[0143] According to an embodiment of the present invention, an embodiment of the present invention further provides an electronic device and a readable storage medium.
[0144] The electronic device according to the embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data processing method provided by the embodiment of the present invention.
[0145] Figure 7An exemplary system architecture 700 is shown to which the data processing method or data processing apparatus according to the embodiment of the present invention can be applied.
[0146] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0147] The user can use the terminal devices 701, 702, 703 to interact with the server 705 through the network 704 to receive or send messages, etc. Various client applications can be installed on the terminal devices 701, 702, 703.
[0148] The terminal devices 701 , 702 , and 703 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0149] The server 705 may be a server that provides various services. The management server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.
[0150] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the data processing device is generally set in the server 705 .
[0151] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0152] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 suitable for implementing an embodiment of the present invention. Figure 8 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0153] like Figure 8As shown, computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0154] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read from it can be installed into the storage section 808 as needed.
[0155] Specifically, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above functions defined in the system of the present invention are executed.
[0156] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a unit, a program segment, or a part of code, and the above unit, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0158] The units involved in the embodiments of the present invention can be implemented in software or in hardware. The described units can also be provided in a processor. For example, it can be described as: a processor includes a receiving unit, a determining unit, an obtaining unit, and a comparing unit. Among them, the names of these units do not constitute a limitation on the units themselves in some cases. For example, the receiving unit can also be described as "a unit with a receiving function".
[0159] As another aspect, the present invention also provides a computer-readable medium, which can be included in the device described in the above embodiments; or it can exist separately without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by the device, the device is caused to execute the data processing method provided by the present invention.
[0160] As another aspect, the present invention also provides a computer program product, including a computer program, where the program, when executed by a processor, implements the data processing method provided by the embodiments of the present invention.
[0161] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for data processing, characterized in that, For a terminal, including: Receiving a trigger request for a page, obtaining corresponding user information, and querying a corresponding operation processing policy; In response to successful query of the operation processing policy, invoking a preset recording model to monitor operation events of the page, identifying an operation type of the operation event, and obtaining operation data associated with the operation event based on the operation type; Obtaining a record format corresponding to the operation type to generate an operation record in combination with the operation data, and updating the operation record to a record table corresponding to the page; Obtaining a reporting type from the operation processing policy to determine a corresponding reporting condition; in response to the current state of the record table meeting the reporting condition, sending the record table to a corresponding server.
2. The method according to claim 1, characterized in that, Querying a corresponding operation processing policy, including: Obtaining an operation processing policy set corresponding to the user information, where the operation processing policy set includes operation processing policies of multiple levels; Determining an operation processing policy corresponding to the user information based on the levels of the operation processing policies.
3. The method according to claim 1, characterized in that, Updating the operation record to a record table corresponding to the page, including: Obtaining first page information corresponding to the operation record, and querying second page information corresponding to the latest operation record in the record table; In response to the first page information being the same as the second page information, updating the operation record to a record table corresponding to the page; in response to the first page information being different from the second page information, creating a new record table and storing the operation record in the new record table.
4. The method according to claim 3, characterized in that, Creating a new record table, including: Obtaining a storage policy from the operation processing policy to determine a list record type; In response to the list record type being the first type, obtaining the number of created record tables, and creating a new record table when the number is greater than a preset number threshold, and updating the status of the created record table to a to-be-reported status; in response to the list record type being the second type, obtaining the creation time of the created record table, and creating a new record table when the time interval between the creation time and the current time reaches a preset period threshold, and updating the status of the created record table to a to-be-reported status.
5. A method for data processing, characterized in that, For a server, including: Receiving a record table sent by a terminal, obtaining user information in the record table, querying a corresponding historical record table, and updating the record table to the historical record table; In response to an exception instruction, obtaining user information and time information corresponding to the exception instruction; Querying a historical record table associated with the user information to locate a target operation record set from the historical record table based on the time information; Invoking a preset rendering model to render a user operation page based on the target operation record set and sending the user operation page.
6. The method according to claim 5, characterized in that, Locating a target operation record set from the historical record table based on the time information, including: Obtaining a preset time selection policy to determine a time interval based on the time information, locating the record table within the time interval from the historical record table, and determining it as the target operation record set.
7. A data processing device, characterized in that, Set in the terminal, including: A receiving unit, configured to receive a trigger request of a page, obtain corresponding user information, and query a corresponding operation processing policy; An obtaining unit, configured to, in response to successful query of the operation processing policy, call a preset recording model to monitor an operation event of the page, identify an operation type of the operation event, and obtain operation data associated with the operation event based on the operation type; An updating unit, configured to obtain a record format corresponding to the operation type, generate an operation record by combining the operation data, and update the operation record to a record table corresponding to the page; A sending unit, configured to obtain a reporting type from the operation processing policy to determine a corresponding reporting condition; and in response to the current state of the record table satisfying the reporting condition, send the record table to a corresponding server; 8. A data processing device, characterized in that, Arranged on a server side, including: A receiving unit, configured to receive a record table sent by a terminal, obtain user information in the record table, query a corresponding historical record table, and update the record table to the historical record table; An obtaining unit, configured to, in response to an exception instruction, obtain user information and time information corresponding to the exception instruction; A positioning unit, configured to query a historical record table associated with the user information, and locate a target operation record set from the historical record table based on the time information; A sending unit, configured to call a preset rendering model to render a user operation page based on the target operation record set, and send the user operation page; 9. An electronic device, characterized in that, Including: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the method according to any one of claims 1-6; 10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, implementing the method according to any one of claims 1-6.