CN114996737A - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium Download PDF

Info

Publication number
CN114996737A
CN114996737A CN202210674918.9A CN202210674918A CN114996737A CN 114996737 A CN114996737 A CN 114996737A CN 202210674918 A CN202210674918 A CN 202210674918A CN 114996737 A CN114996737 A CN 114996737A
Authority
CN
China
Prior art keywords
data
design
server
time interval
design data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210674918.9A
Other languages
Chinese (zh)
Inventor
傅星楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210674918.9A priority Critical patent/CN114996737A/en
Publication of CN114996737A publication Critical patent/CN114996737A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/606Protecting data by securing the transmission between two devices or processes

Abstract

The application provides a data processing method, a device and a storage medium, wherein the data processing method comprises the following steps: the terminal equipment responds to user operation or timer triggering, generates a first instruction, acquires operation data acting on a design interface according to the first instruction, encrypts the operation data, and stores the processed operation data in a target storage space of the terminal equipment. On one hand, the operation data in the design process is stored in the user terminal side in real time, and when the network is disconnected, the browser fault and the computer system fault occur, the more complete design data can be basically recovered, so that the risk of losing the user design data is reduced; on the other hand, the security of the user design data is ensured by encrypted storage.

Description

Data processing method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, device, and storage medium.
Background
With the rapid development of economy, the requirements of people on the living standard are continuously improved, and development opportunities are brought to the development of home decoration design. With the application of technologies such as internet, big data and cloud computing, the home decoration design industry tends to be intelligent and customized, and designers can carry out home decoration design on line in real time through the internet to provide customized design reference for users.
At present, the existing home decoration design tool is usually an online webpage version design tool, and home decoration design data can be stored to the cloud end in a timing or real-time mode. However, the cloud load is easily too high for real-time data transmission, and user design data may be lost when sudden events such as browser or cloud failure and network outage occur in regular transmission.
Disclosure of Invention
The embodiment of the application provides a data processing method, data processing equipment and a storage medium, and improves the integrity and the safety of user design data.
A first aspect of an embodiment of the present application provides a data processing method, which is applied to a terminal device, and the method includes:
responding to the first indication, and acquiring operation data acting on the design interface;
and after the encryption processing is carried out on the operation data, the operation data is stored in a target storage space of the terminal equipment.
In an optional embodiment of the first aspect of the application, the obtaining operation data acting on the design interface in response to the first indication includes:
responding at least one item of editing operation acted on the design interface, and acquiring operation data corresponding to the at least one item of editing operation; the editing operations include operations to add, delete, or modify the target model.
In an optional embodiment of the first aspect of the application, the obtaining operation data acting on the design interface in response to the first indication includes:
and responding to a triggering indication of a timer, and acquiring operation data acting on the design interface within a first time interval of the timer.
In an optional embodiment of the first aspect of the present application, the method further comprises:
receiving a second time interval from the server; the second time interval is a time interval for the terminal equipment to synchronize design data to the server;
sending the design data to the server according to the second time interval;
wherein the design data includes operational data to be applied to the design interface during the second time interval, and/or multiple versions of design data.
In an optional embodiment of the first aspect of the present application, the second time interval is determined by the server according to the number of terminal devices connected to the server, and the second time interval is positively correlated to the number of terminal devices connected to the server.
In an optional embodiment of the first aspect of the present application, the method further comprises:
determining whether there is an abnormal shutdown in response to the second indication;
if abnormal closing is determined, target design data of the latest version are obtained from a server or the terminal equipment;
and displaying the target design data on the design interface.
In an optional embodiment of the first aspect of the present application, the determining whether there is an abnormal shutdown in response to the second indication comprises:
and responding to a refreshing operation acted on the design interface or responding to an access request initiated to the server by the terminal equipment, and determining whether abnormal closing exists.
In an optional embodiment of the first aspect of the present application, if it is determined that there is an abnormal shutdown, acquiring target design data of a latest version from the server or the terminal device includes:
if abnormal closing is determined, displaying a first window, wherein the first window comprises the latest version information of the design data stored in the terminal equipment and the server;
and responding to the selection operation of the first window, and acquiring the target design data of the latest version from the server or the terminal equipment.
A second aspect of the embodiments of the present application provides a data processing method, which is applied to a server, and the method includes:
receiving design data from terminal equipment, wherein the design data comprises operation data acting on a design interface, and the operation data is data encrypted by the terminal equipment;
storing the design data.
In an optional embodiment of the second aspect of the application, the method further comprises:
acquiring the number of terminal devices connected with the server;
determining a second time interval according to the number; the second time interval is a time interval for the terminal device to synchronize the design data with the server;
transmitting the second time interval to the terminal device;
wherein the design data includes operational data to be applied to the design interface during the second time interval, and/or multiple versions of design data.
A third aspect of the embodiments of the present application provides a data processing method, which is applied to a terminal device, and the method includes:
determining whether there is an abnormal shutdown in response to the second indication;
if the abnormal closing is determined, acquiring target design data of the latest version from the terminal equipment; the target design data is data which is stored in a target storage space of the terminal equipment through encryption processing;
and displaying the target design data on a design interface.
A fourth aspect of the embodiments of the present application provides a data processing apparatus, including:
the acquisition module is used for responding to the first indication and acquiring operation data acting on the design interface;
and the storage module is used for encrypting the operation data and storing the encrypted operation data in a target storage space of the terminal equipment.
In an optional embodiment of the fourth aspect of the present application, the obtaining module is configured to:
responding at least one item of editing operation acted on the design interface, and acquiring operation data corresponding to the at least one item of editing operation; the editing operations include operations to add, delete, or modify the target model.
In an optional embodiment of the fourth aspect of the present application, the obtaining module is configured to:
and responding to a triggering indication of a timer, and acquiring operation data acting on the design interface within a first time interval of the timer.
In an optional embodiment of the fourth aspect of the present application, the data processing apparatus further comprises: and a receiving module.
A receiving module, configured to receive a second time interval from the server; the second time interval is a time interval for the terminal equipment to synchronize design data to the server;
a sending module, configured to send the design data to the server according to the second time interval;
wherein the design data includes operational data to be applied to the design interface during the second time interval and/or multiple versions of design data.
In an optional embodiment of the fourth aspect of the present application, the second time interval is determined by the server according to the number of terminal devices connected to the server, and the second time interval is positively correlated to the number of terminal devices connected to the server.
In an optional embodiment of the fourth aspect of the present application, the data processing apparatus further comprises: the device comprises a processing module and a display module.
A processing module to determine whether an abnormal shutdown exists in response to the second indication;
if the abnormal closing is determined, the acquisition module is used for acquiring the target design data of the latest version from the server or the terminal equipment;
and the display module is used for displaying the target design data on the design interface.
In an optional embodiment of the fourth aspect of the present application, the processing module is configured to:
and responding to a refreshing operation acted on the design interface or responding to an access request initiated to the server by the terminal equipment, and determining whether abnormal closing exists.
In an optional embodiment of the fourth aspect of the present application, if it is determined that abnormal shutdown exists, the display module is configured to display a first window, where the first window includes information of a latest version of the design data stored in the terminal device and the server;
an obtaining module, configured to obtain, in response to a selection operation performed on the first window, target design data of a latest version from the server or the terminal device.
A fifth aspect of an embodiment of the present application provides a data processing apparatus, including:
the design data comprises operation data acting on a design interface, and the operation data is data encrypted by the terminal equipment;
and the storage module is used for storing the design data.
In an optional embodiment of the fifth aspect of the present application, the data processing apparatus further comprises: the device comprises an acquisition module, a processing module and a sending module.
The acquisition module is used for acquiring the number of the terminal devices connected with the server;
a processing module for determining a second time interval according to the number; the second time interval is a time interval for the terminal device to synchronize the design data with the server;
a sending module, configured to send the second time interval to the terminal device;
wherein the design data includes operational data to be applied to the design interface during the second time interval, and/or multiple versions of design data.
A sixth aspect of the embodiments of the present application provides a data processing apparatus, including:
a processing module to determine whether an abnormal shutdown exists in response to the second indication;
if the abnormal closing is determined, the acquisition module is used for acquiring the target design data of the latest version from the terminal equipment; the target design data is data which is stored in a target storage space of the terminal equipment through encryption processing;
and the display module is used for displaying the target design data on a design interface.
A seventh aspect of an embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program; the computer program is stored in the memory and configured to be executed by the processor to implement a method as claimed in any one of the first aspects of the application, or a method as claimed in any one of the second aspects of the application, or a method as claimed in the third aspect of the application.
An eighth aspect of embodiments of the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform a method according to any one of the first aspect of the present application, or a method according to any one of the second aspect of the present application, or a method according to the third aspect of the present application.
A ninth aspect of embodiments of the present application provides a computer program product comprising a computer program which, when executed by a processor, performs the method of any one of the first aspect of the present application, or the method of any one of the second aspect of the present application, or the method of the third aspect of the present application.
The embodiment of the application provides a data processing method, a device and a storage medium, wherein the data processing method comprises the following steps: the terminal equipment responds to user operation or timer triggering, generates a first instruction, acquires operation data acting on a design interface according to the first instruction, encrypts the operation data, and stores the processed operation data in a target storage space of the terminal equipment. On one hand, the operation data in the design process is stored in the user terminal side in real time, and when the network is disconnected, the browser fault and the computer system fault occur, the more complete design data can be basically recovered, so that the risk of losing the user design data is reduced; on the other hand, the security of the user design data is ensured by encrypted storage.
Drawings
Fig. 1 is a schematic view of an application scenario of a data processing method provided in an embodiment of the present application;
fig. 2 is a first schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic view of an interface provided by an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a second data processing method according to an embodiment of the present application;
fig. 5 is a third schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface provided by an embodiment of the present application;
fig. 7 is a first schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 9 is a first hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings, of the embodiments of the application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
It will be understood that the terms "comprises" and "comprising," and any variations thereof, as used herein, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the description of the embodiments of the present application, the term "correspond" may indicate that there is a direct correspondence or an indirect correspondence between the two, may also indicate that there is an association between the two, and may also indicate and be indicated, configure and configured, and so on.
In the field of home decoration design, a user (designer) can access a home decoration design platform through terminal equipment, and home decoration design is carried out on the platform in real time on line. And each step of operation of the user in the design process needs to be transmitted to the platform, and data can be transmitted to the platform in real time or at regular time.
The advantage of real-time transmission data is that the reliability is strong, user experience is good, but the operating time of a large amount of designers is comparatively fixed, the phenomenon that the server load is high often appears, load pressure and bandwidth pressure can be shared by increasing the number of servers at this moment, however, in the non-working period, only a small amount of users may use, will lead to the wasting of server resources.
Transmitting data periodically can reduce enterprise costs, but typically reduces user experience. The disadvantages of timed transmissions are: under the condition of overlong timing interval, if the sudden events such as browser failure, server failure, network disconnection and the like occur, a user can very easily refresh the browser, restart a computer system or clear cache and the like, so that the design data is lost. If the timing interval is too short, resource waste is also easily caused.
Therefore, it is urgently needed to optimize a data storage scheme of a home decoration design tool, so that loss of user design data is reduced as much as possible, and use experience of a user is improved.
In view of real-time storage of operation data and design data in a local disk at a user side, the embodiment of the present application shows a data processing method, which combines a mode of synchronizing data with a server side at regular time, improves reliability of data storage, and saves resources. The real-time storage of the user operation data and the design data is encrypted and compressed under the permission of a user, so that the data security is ensured. Meanwhile, the operation data and the design data of the user side are synchronized to the server through a static or dynamic timing interval, and the more complete design data can be basically recovered when the network is disconnected, the browser fails, and even the computer system fails, so that the risk of losing the design data of the user is reduced. The design data is not limited to the home decoration design data, and may be, for example, game design data, drawing design data, or the like, without any limitation to this application.
For convenience of understanding, first, an application scenario of the technical solution provided in the embodiment of the present application is briefly described below by taking the field of home decoration design as an example.
Fig. 1 is a schematic view of an application scenario of a data processing method according to an embodiment of the present application. As shown in fig. 1, the application scenario of the present embodiment includes a terminal device 101 and a server 102, where the terminal device 101 is in communication connection with the server 102. The server 102 provides a home appliance design service, which may also be referred to as a home appliance design server or a home appliance design platform.
In practice, a user may access the server through a browser, application or applet on the terminal device.
As an example, a user accesses a home appliance design server by entering a home appliance design web address on a browser of a terminal device, creates a design solution on the home appliance design server, or edits an existing design solution. In response to a series of home decoration design operations of a user on a home decoration design interface, for example, adding a furniture model prestored in a model library in a target space, or drawing the furniture model in the target space by self, the home decoration design server returns a home decoration design rendering result of each step of operation to the terminal device, and the user can check the design effect of each step of operation on the home decoration design interface of the terminal device.
As an example, the terminal device may store the operation data and the design data in the storage space according to a preset configuration. The operation data refers to a series of operations of a user on the home decoration design interface, and the operation data is stored to facilitate the user to return to a certain operation. The design data includes rendering data for dimensions, orientations, positions, etc. of a furniture model, a decor model, etc. in a home decoration design.
As an example, the terminal device may synchronize all or part of the data in its storage space to the home decoration design server according to a preset configuration or an instruction of the home decoration design server, and a period of synchronization may be fixed or dynamically changed.
Optionally, the terminal device 101 may be any electronic device with a display function, including but not limited to a smart phone, a notebook computer, a tablet computer, an intelligent vehicle-mounted device, an intelligent wearable device, an intelligent screen, and the like.
Optionally, the server 102 may be a common server or a cloud server, which is also called a cloud computing server or a cloud host and is a host product in a cloud computing service system. The server 102 may also be a server of a distributed system or a server incorporating a blockchain.
Based on the application scenario, the data processing scheme provided by the embodiment of the present application is described in detail below by using a specific embodiment. It should be noted that the technical solutions provided in the embodiments of the present application may include part or all of the following contents, and these specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first schematic flow chart of a data processing method according to an embodiment of the present application. As shown in fig. 2, the main execution body of the data processing method provided in this embodiment is a terminal device, and the data processing method includes the following steps:
step 201, responding to the first indication, and acquiring operation data acting on the design interface.
Step 202, the operation data is encrypted and then stored in the target storage space of the terminal equipment.
In one embodiment, the operation applied to the design interface may be a touch operation, such as a user accessing a home design server using a tablet computer, adding a furniture model in the home design interface by means of finger touch, adjusting the position and orientation of the furniture model, and the like.
In one embodiment, the operation applied to the design interface may be a mouse control operation, such as a user accessing a home appliance design server using a desktop computer, drawing a furniture model in the home appliance design interface by way of mouse control, deleting a furniture model, and the like.
In one embodiment, the operation applied to the design interface may be an input operation, such as a user inputting a wall thickness, a height, and other parameters in the home decoration design interface.
In one embodiment, the operation applied to the design interface may be a voice operation, for example, a user inputs query information through a voice control on the touch interface in the home decoration design interface, and obtains a target model matched with the query information from the server.
The operation of the user in the home decoration design interface is exemplified below with reference to the drawings. Fig. 3 is a schematic interface diagram provided in an embodiment of the present application. As shown in fig. 3, a common library selectable by the user is presented in a material selection area 301 of the home appliance design interface 300, and the common library includes various types of model materials, such as a furniture model, a decor model, a kitchen model, a home appliance model, and the like. The user directly drags the selected target model from the material selection area 301 and places the target model in the design editing area 302 of the home decoration design interface 300, and the user can adjust the size, the spatial position and the orientation of the target model in the design editing area 302 to adapt to the design space. In addition, the home decoration design interface 300 further includes a design drawing navigation area 303 and a spatial design area 304. The user can select any room in the interior design in the design drawing navigation area 303, thereby quickly entering the selected room for home decoration design. The user may edit the parameters of the walls and floors in the design space in the space design area 304, such as setting the height and thickness of the walls, setting the thickness of the floors, and so on.
Corresponding operation data can be obtained based on any one of the operations. Optionally, the terminal device may obtain the operation data acting on the design interface according to a preset operation number or a preset time interval, and the specific implementation is as follows:
in an optional implementation manner, in response to N editing operations acting on the design interface, operation data corresponding to the N editing operations is acquired. Wherein N is a positive integer, and may be user-defined or preset by the server, and N is a preset number of operations. Namely, responding to at least one editing operation acted on the design interface, and acquiring operation data corresponding to the at least one editing operation. Optionally, the editing operation includes an operation of adding, deleting or modifying the target model. Optionally, taking the home decoration design as an example, the target model includes but is not limited to a furniture model, a decoration model, and the like; in the case of game designs, the object models include, but are not limited to, props models, animated character models, and the like.
Illustratively, if N is 1, responding to an editing operation acting on the design interface, and acquiring operation data corresponding to the editing operation. And when the user finishes one editing operation on the design interface, acquiring corresponding operation data, and carrying out local encryption storage. If N is 5, the user acquires the response operation data after finishing 5 editing operations on the design interface, and performs local encryption storage.
In an alternative embodiment, the operation data acting on the design interface within the first time interval of the timer is acquired in response to the trigger indication of the timer. The timer is a timer set in the terminal device, and the first time interval is a timing period of the timer. And the terminal equipment acquires all operation data of the user on a design interface in a timing period according to the triggering indication of the timer, and performs local encryption storage.
Optionally, in an embodiment, the terminal device obtains operation data acting on the design interface, encrypts and compresses the operation data, and stores the encrypted operation data in the target storage space of the terminal device.
Optionally, in an embodiment, the terminal device encrypts and compresses the design data, and stores the encrypted design data in a target storage space of the terminal device. Illustratively, the design data is home decoration design data, and the home decoration design data includes various data to be rendered for presenting a home decoration design result, such as spatial parameters of a house type diagram, relevant parameters of a furniture model, and the like.
Optionally, the target storage space of the terminal device may be a storage space specified by the user, or a default storage space of the browser, such as a local disk of the terminal device, which is not limited in this embodiment.
Optionally, in an embodiment, the terminal device sends design data to the server, where the design data includes operation data acting on the design interface, the operation data is encrypted by the terminal device, and the server stores the design data.
In the data processing method shown in this embodiment, the terminal device generates a first instruction in response to a user operation or a timer trigger, acquires operation data acting on the design interface according to the first instruction, and stores the processed operation data in a target storage space of the terminal device after encrypting the operation data. On one hand, the operation data in the design process is stored in the user terminal side in real time, and when the network is disconnected, the browser fault and the computer system fault occur, the more complete design data can be basically recovered, so that the risk of losing the user design data is reduced; on the other hand, the security of the user design data is ensured by encrypted storage.
Based on the embodiment, the terminal equipment can locally encrypt and store the operation data and the design data of the user, and then synchronize the operation data and the design data with the server at regular time, so that the risk of user data loss can be reduced to a certain extent, and the use experience of the user is improved.
For the data synchronization to the server at regular time, the user data cannot be synchronized to the server in time at too long a timing interval, which may cause the loss of the user data, and the server load is too high at too short a timing interval, which may cause the server failure. Therefore, it is necessary to optimize the timing interval of data synchronization to achieve optimal allocation of server resources.
The data processing method of the following embodiments is described in detail with reference to the accompanying drawings.
Fig. 4 is a schematic flowchart of a second data processing method according to an embodiment of the present application. The data processing method provided by the embodiment relates to the interaction between the terminal equipment and the server. As shown in fig. 4, the data processing method includes the following steps:
step 401, the server obtains the number of terminal devices connected with the server.
In one embodiment, the server may be a home decoration design server, and accordingly, the terminal device connected to the server is a terminal device belonging to a home decoration designer, such as a desktop computer, a notebook computer, and the like.
In one embodiment, the server may be a game design server, and accordingly, the terminal device connected to the server is the terminal device to which the game designer belongs.
Step 402, the server determines a second time interval according to the number of the terminal devices connected with the server. The second time interval is a time interval during which the terminal device synchronizes the design data to the server.
In this embodiment, the second time interval is positively correlated with the number of terminal devices connected to the server. The more the number of the terminal devices connected with the server is, the longer the duration of the second time interval is; the smaller the number of terminal devices connected to the server, the shorter the duration of the second time interval.
In one embodiment, the server obtains the number of terminal devices connected to the server in real time, and when the number of device connections changes, the second time interval is determined again. In one embodiment, the server periodically obtains the number of terminal devices connected to the server, and when the number of device connections changes, the second time interval is determined again. With any of the above embodiments, the second time interval may be shortened as the number of device connections decreases; the second time interval may be lengthened as the number of devices increases.
Optionally, in an embodiment, the server obtains configuration information of the time interval, where the configuration information includes a corresponding relationship between the time interval and the connection number of the devices, and the server may dynamically adjust the second time interval according to the configuration information, so that the terminal device performs data synchronization according to the dynamically adjusted time interval, thereby reducing a risk of the server crashing due to an excessively high load, and implementing optimal configuration of server resources.
Illustratively, table 1 is a table of the correspondence between the range of the time interval and the number of device connections. Table 1 is merely an example, and an enterprise may set configuration information of a time interval according to capabilities and the number of servers deployed by the enterprise, which is not limited in this embodiment.
Figure BDA0003694381050000091
In step 403, the server sends the second time interval to the terminal device.
And step 404, the terminal device sends the design data to the server according to the second time interval.
Optionally, the design data includes operational data that is applied to the design interface during the second time interval.
Optionally, the design data includes multiple versions of the design data.
Optionally, the design data includes operational data and multiple versions of the design data that are applied to the design interface during the second time interval.
Based on the above example, the server receives design data from the terminal device, the design data including operation data and/or multiple versions of the design data that act on the design interface during the second time interval, the server storing the design data. Optionally, the design data is encrypted by the terminal device.
It should be noted that the data processing method provided in this embodiment can be generalized to servers in other application fields, and is not limited to a home design server and a game design server, and the server dynamically adjusts the time interval for synchronizing data from a terminal device to the server by detecting the number of device connections, so as to implement optimal configuration of server resources.
In the data processing method shown in this embodiment, the server obtains the number of the terminal devices connected to the server, determines the time interval for the terminal devices to design data synchronously to the server according to the number of the terminal devices, and sends the time interval to each terminal device connected to the server, so that the terminal devices design data synchronously to the server based on the time interval with dynamic change. Compared with the prior art, the data synchronization period is dynamically changed, so that the terminal equipment can realize the real-time synchronization of user operation when the server load is low, and the time interval of data synchronization is prolonged when the server load is high, thereby realizing flexible data synchronization.
If sudden events such as browser failure, server failure, network outage and the like occur, the common operations of the user include refreshing the browser or reopening an application program and an applet, restarting the terminal device, clearing the cache and the like. Based on the embodiments, the storage scheme of real-time storage of the local disk of the terminal equipment and synchronization of timing and the server is adopted, so that relatively complete data can be basically recovered, and the risk of user data loss is reduced.
The following describes the data processing process after an emergency occurs with reference to the drawings.
Fig. 5 is a third schematic flowchart of a data processing method according to an embodiment of the present application. As shown in fig. 5, the main execution body of the data processing method provided in this embodiment is a terminal device, and the data processing method includes the following steps:
step 501, in response to the second indication, determines whether there is an abnormal shutdown.
And 502, if abnormal closing is determined, acquiring the target design data of the latest version from the server or the terminal equipment.
In one embodiment, in response to a refresh operation acting on a design interface, or in response to an access request initiated by a terminal device to a server, if it is determined that an abnormal shutdown exists, target design data of the latest version is acquired from the server. Specifically, if it is determined that abnormal shutdown exists, a data acquisition request is sent to the server, the server acquires the latest version of target design data corresponding to the user identifier from the database according to the user identifier in the data acquisition request, and sends the target design data to the terminal device. The embodiment is to acquire the target design data of the latest version of the user before the emergency event occurs from the server side.
In one embodiment, in response to a refresh operation applied to the design interface, or in response to an access request initiated by the terminal device to the server, if it is determined that an abnormal shutdown exists, the latest version of the target design data is obtained from the terminal device. The embodiment is to directly acquire the target design data of the latest version of the user before the emergency from the local disk of the terminal device.
In one embodiment, in response to a refresh operation applied to the design interface or in response to an access request initiated by the terminal device to the server, if it is determined that abnormal closing exists, a first window is displayed, where the first window includes information of a latest version of the design data stored in the terminal device and the server. In response to a selection operation performed on the first window, the latest version of the target design data is acquired from the server or the terminal device. According to the embodiment, the target design data of the corresponding version number is restored according to the selection of the user in the window.
Fig. 6 is a schematic interface diagram provided in an embodiment of the present application. Under the condition that the home decoration design data is not stored, a user refreshes a home decoration design interface, or revisits the home decoration design server after closing the home decoration design interface, as shown in fig. 6, a prompt window 601 can pop up above the interface, the prompt window 601 displays the latest version information of the home decoration design data stored by the terminal device (namely local) and the home decoration design server (namely cloud) to the user, for example, the latest data storage time, the user can select the home decoration design data to be restored in the prompt window 601, and based on the selection of the user, the home decoration design effect is generated by rendering on the home decoration design interface.
And step 503, displaying the target design data on a design interface.
The data processing method shown in this embodiment is mainly for a case where a user is abnormally shut down in a design process, and may obtain, based on a data recovery manner selected or preset by the user, the target design data of the latest version from a local terminal device or a server side after responding to an access instruction or a refresh instruction, and recover and display the target design data of the latest version on a design interface, so that the user continues to design a scheme, and user experience is improved. The preset data recovery mode comprises terminal local recovery or cloud recovery.
The data processing method provided by the embodiment of the present application is described above, and the data processing apparatus provided by the embodiment of the present application will be described below.
In the embodiment of the present application, the data processing apparatus may be divided into the functional modules according to the method embodiment, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a form of hardware or a form of a software functional module. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. The following description will be given by taking an example in which each functional module is divided by using a corresponding function.
Fig. 7 is a first schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 7, the data processing apparatus 700 of the present embodiment includes: an acquisition module 701 and a storage module 702.
An obtaining module 701, configured to obtain, in response to the first instruction, operation data acting on the design interface;
a storage module 702, configured to store the encrypted operation data in a target storage space of the terminal device.
In an optional embodiment of this embodiment, the obtaining module 701 is configured to:
responding at least one item of editing operation acted on the design interface, and acquiring operation data corresponding to the at least one item of editing operation; the editing operations include operations to add, delete, or modify the target model.
In an optional embodiment of this embodiment, the obtaining module 701 is configured to:
and responding to the triggering indication of the timer, and acquiring operation data acting on the design interface within a first time interval of the timer.
In an optional embodiment of this embodiment, the data processing apparatus 700 further includes: a receiving module 703 and a sending module 704.
A receiving module 703, configured to receive a second time interval from the server; the second time interval is a time interval for the terminal equipment to synchronize design data to the server;
a sending module 704, configured to send the design data to the server according to the second time interval;
wherein the design data includes operational data to be applied to the design interface during the second time interval, and/or multiple versions of design data.
In an optional embodiment of this embodiment, the second time interval is determined by the server according to the number of terminal devices connected to the server, and the second time interval is positively correlated to the number of terminal devices connected to the server.
In an optional embodiment of this embodiment, the data processing apparatus 700 further includes: a processing module 705 and a display module 706.
A processing module 705 for determining whether there is an abnormal shutdown in response to the second indication;
if it is determined that abnormal shutdown exists, the obtaining module 701 is configured to obtain target design data of the latest version from a server or the terminal device;
a display module 706, configured to display the target design data on the design interface.
In an optional embodiment of this embodiment, the processing module 705 is configured to:
and responding to a refreshing operation acted on the design interface or responding to an access request initiated to the server by the terminal equipment, and determining whether abnormal closing exists.
In an optional embodiment of this embodiment, if it is determined that abnormal shutdown exists, the display module 706 is configured to display a first window, where the first window includes information of a latest version of the design data stored in the terminal device and the server;
an obtaining module 701, configured to obtain, in response to a selection operation performed on the first window, a latest version of target design data from the server or the terminal device.
The data processing apparatus provided in this embodiment may execute the technical solution of the terminal device in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 8, the data processing apparatus 800 of the present embodiment includes: a receiving module 801 and a storage module 802.
A receiving module 801, configured to receive design data from a terminal device, where the design data includes operation data acting on a design interface, and the operation data is data encrypted by the terminal device;
a storage module 802 for storing the design data.
In an optional embodiment of this embodiment, the data processing apparatus 800 further includes: an acquisition module 803, a processing module 804 and a sending module 805.
An obtaining module 803, configured to obtain the number of terminal devices connected to the server;
a processing module 804, configured to determine a second time interval according to the number; the second time interval is a time interval for the terminal device to synchronize the design data with the server;
a sending module 805, configured to send the second time interval to the terminal device;
wherein the design data includes operational data to be applied to the design interface during the second time interval and/or multiple versions of design data.
The data processing apparatus provided in this embodiment may execute the technical solution of the server in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a first hardware structure diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device 900 provided in this embodiment includes:
a memory 901, a processor 902, and a computer program; the computer program is stored in the memory 901 and configured to be executed by the processor 902 to implement the technical solution of the terminal device in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Alternatively, the memory 901 may be separate or integrated with the processor 902. When the memory 901 is a separate device from the processor 902, the electronic device 900 further comprises: a bus 903 for connecting the memory 901 and the processor 902.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor 902 to implement a technical solution of a terminal device in any one of the foregoing method embodiments.
The embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the technical solution of the terminal device in any one of the foregoing method embodiments.
The embodiment of the application provides a chip, including: the processing module and the communication interface, the processing module can execute the technical scheme of the terminal device in any one of the method embodiments.
Optionally, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store an instruction, and the processing module is configured to execute the instruction stored by the storage module, and execute the instruction stored in the storage module, so that the processing module executes the technical solution of the terminal device in any one of the foregoing method embodiments.
Fig. 10 is a hardware structure diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device 1000 provided in this embodiment includes:
a memory 1001, a processor 1002, and computer programs; the computer program is stored in the memory 1001 and configured to be executed by the processor 1002 to implement the technical solution of the server in any one of the foregoing method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
Alternatively, the memory 1001 may be separate or integrated with the processor 1002. When the memory 1001 is a separate device from the processor 1002, the electronic device 1000 further includes: the bus 1003 connects the memory 1001 and the processor 1002.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor 1002 to implement the technical solution of the server in any of the foregoing method embodiments.
The embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the technical solution of the server in any of the foregoing method embodiments is implemented.
The embodiment of the application provides a chip, including: and the processing module and the communication interface can execute the technical scheme of the server in any method embodiment.
Optionally, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored by the storage module, and execute the instructions stored in the storage module, so that the processing module executes the technical solution of the server in any one of the foregoing method embodiments.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (14)

1. A data processing method is applied to a terminal device, and the method comprises the following steps:
responding to the first indication, and acquiring operation data acting on the design interface;
and after the encryption processing is carried out on the operation data, the operation data is stored in a target storage space of the terminal equipment.
2. The method of claim 1, wherein the obtaining operational data for the design interface in response to the first indication comprises:
responding at least one item of editing operation acted on the design interface, and acquiring operation data corresponding to the at least one item of editing operation; the editing operations include operations to add, delete, or modify the target model.
3. The method of claim 1, wherein the obtaining operational data acting on the design interface in response to the first indication comprises:
and responding to the triggering indication of the timer, and acquiring operation data acting on the design interface within a first time interval of the timer.
4. The method according to any one of claims 1 to 3, further comprising:
receiving a second time interval from the server; the second time interval is a time interval for the terminal equipment to synchronize design data to the server;
sending the design data to the server according to the second time interval;
wherein the design data includes operational data to be applied to the design interface during the second time interval, and/or multiple versions of design data.
5. The method of claim 4,
the second time interval is determined by the server according to the number of the terminal devices connected with the server, and the second time interval is positively correlated with the number of the terminal devices connected with the server.
6. The method according to any one of claims 1 to 3, further comprising:
determining whether there is an abnormal shutdown in response to the second indication;
if abnormal closing is determined, acquiring target design data of the latest version from a server or the terminal equipment;
and displaying the target design data on the design interface.
7. The method of claim 6, wherein determining whether an abnormal shutdown exists in response to the second indication comprises:
and responding to a refreshing operation acted on the design interface or responding to an access request initiated to the server by the terminal equipment, and determining whether abnormal closing exists.
8. The method of claim 6, wherein obtaining a latest version of target design data from the server or the terminal device if it is determined that there is an abnormal shutdown, comprises:
if abnormal closing is determined, displaying a first window, wherein the first window comprises the latest version information of the design data stored in the terminal equipment and the server;
and responding to the selection operation of the first window, and acquiring the target design data of the latest version from the server or the terminal equipment.
9. A data processing method is applied to a server, and the method comprises the following steps:
receiving design data from terminal equipment, wherein the design data comprises operation data acting on a design interface, and the operation data is data encrypted by the terminal equipment;
storing the design data.
10. The method of claim 9, further comprising:
acquiring the number of terminal devices connected with the server;
determining a second time interval according to the number; the second time interval is a time interval for the terminal device to synchronize the design data with the server;
transmitting the second time interval to the terminal device;
wherein the design data includes operational data to be applied to the design interface during the second time interval and/or multiple versions of design data.
11. A data processing method is applied to terminal equipment, and the method comprises the following steps:
determining whether there is an abnormal shutdown in response to the second indication;
if the abnormal closing is determined, acquiring target design data of the latest version from the terminal equipment; the target design data is data which is stored in a target storage space of the terminal equipment through encryption processing;
and displaying the target design data on a design interface.
12. An electronic device, comprising: a memory, a processor, and a computer program; the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1 to 8, 11, or the method of claim 9 or 10.
13. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1 to 8, 11, or the method of claim 9 or 10.
14. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 8, 11, or the method of claim 9 or 10.
CN202210674918.9A 2022-06-14 2022-06-14 Data processing method, device and storage medium Pending CN114996737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210674918.9A CN114996737A (en) 2022-06-14 2022-06-14 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210674918.9A CN114996737A (en) 2022-06-14 2022-06-14 Data processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114996737A true CN114996737A (en) 2022-09-02

Family

ID=83034803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210674918.9A Pending CN114996737A (en) 2022-06-14 2022-06-14 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114996737A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117729221A (en) * 2024-02-18 2024-03-19 成都秦川物联网科技股份有限公司 Ultrasonic water meter data synchronization method, internet of things system and device
CN117729221B (en) * 2024-02-18 2024-04-19 成都秦川物联网科技股份有限公司 Ultrasonic water meter data synchronization method, internet of things system and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117729221A (en) * 2024-02-18 2024-03-19 成都秦川物联网科技股份有限公司 Ultrasonic water meter data synchronization method, internet of things system and device
CN117729221B (en) * 2024-02-18 2024-04-19 成都秦川物联网科技股份有限公司 Ultrasonic water meter data synchronization method, internet of things system and device

Similar Documents

Publication Publication Date Title
CN110377851B (en) Method and device for realizing multi-stage linkage drop-down frame and computer equipment
US10298469B2 (en) Automatic asynchronous handoff identification
EP3092611A1 (en) Method, apparatus, and system for communicating and presenting product information
CN112612988A (en) Page processing method and device, computer equipment and storage medium
CN110581885A (en) Method, device and equipment for determining equipment synchronization and storage medium
US20200089512A1 (en) Method and Apparatus for Invoking Input Method, Server, and Terminal
CN109522021B (en) Parameter callback processing method and device, electronic equipment and storage medium
US20220276845A1 (en) Systems and methods for consistent feature flag evaluation
CN114996737A (en) Data processing method, device and storage medium
AU2017268604A1 (en) Accumulated retrieval processing method, device, terminal, and storage medium
US10955872B2 (en) System and method to retain baseboard management controller real-time clock time during BMC reboot
CN107357654B (en) Method and device for controlling over-frequency working state of CPU
CN103914299A (en) Flash hardware acceleration controlling method and Flash hardware acceleration controlling system
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN116361106A (en) Log processing method and device, electronic equipment and storage medium
CN114003421B (en) Virtual machine timeout mechanism testing method, system, terminal and storage medium
US20150350715A1 (en) Set-Top Box, Client, System and Method for Access of Virtual Desktop
CN110866011B (en) Data table synchronization method and device, computer equipment and storage medium
CN103745399A (en) Auction processing system and method
CN112464124A (en) Anomaly detection method, device and computer-readable storage medium
CN109766093B (en) Method and device for collaborative real-time editing, electronic equipment and storage medium
US10165074B2 (en) Asynchronous custom exit points
CN110837433A (en) Performance optimization method and device and electronic equipment
US9026618B2 (en) System and method for expanding PC-based software capabilities
US9942361B2 (en) Reporting page composition data

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