Data processing method, device and electronic device

By pre-creating all possible data processing results on the server and sending them to the terminal, the problem that local data is easily tampered with is solved, and the accuracy and immutability of data processing results are achieved.

CN112163237BActive Publication Date: 2025-04-15DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010904178.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-01
Publication Date
2025-04-15
Estimated Expiration
2041-04-15

AI Technical Summary

Technical Problem

In the prior art, local data is easily tampered with, resulting in the data uploaded to the server being tampered with by malicious users.

Method used

By generating seed data and preset processing result intervals, the server pre-generates all possible data processing results and sends these results to the terminal. The terminal calculates the corresponding data processing results based on the to be processed data and seed data.

Benefits of technology

It effectively prevents malicious users from tampering with data locally, ensuring the accuracy and immutability of data processing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163237B_ABST
    Figure CN112163237B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose a data processing method, device, electronic device, and computer-readable storage medium. The data processing method includes: receiving a data processing request sent by a terminal; generating seed data according to the data processing request; generating a data processing result according to the seed data and a preset first processing result; and sending the data processing result to the terminal. The above method generates a processing result in advance through seed data and a preset processing result, solving the technical problem that the generated data is easily tampered with.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a data processing method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the rapid development of mobile Internet, traditional local data processing can no longer meet the growing interactive needs of netizens. In recent years, some data processing systems need to process data locally and upload some processed data to the server. For example, in the game scenario, Happy Candy Crush and other games are played in a stand-alone mode, but user scores need to be uploaded to the "rankings" on the server. The common practice in the industry is that the client uses encryption and code obfuscation to prevent cracking, and the client uploads the game scores to the server in plain text or symmetric encryption. After decryption, the server directly uses the results uploaded by the client to update the rankings, and the scores are visible to everyone.

[0003] However, due to the lack of client-side encryption methods and the proliferation of code cracking tools and memory modification tools on the market, how to prevent malicious users from cheating on data locally, causing the data uploaded to the server to be tampered with, has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In order to solve the problem in the prior art that local data is easily tampered with, the embodiments of the present disclosure propose the following technical solution.

[0006] In a first aspect, an embodiment of the present disclosure provides a data processing method, including:

[0007] receiving a data processing request sent by a terminal;

[0008] generating seed data according to the data processing request;

[0009] Generate a data processing result according to the seed data and a preset first processing result;

[0010] The data processing result is sent to the terminal.

[0011] Further, the data processing request includes an identifier of the terminal, and generating seed data according to the data processing request includes:

[0012] The seed data is generated according to the identifier of the terminal and the time of the data processing request.

[0013] Further, generating a data processing result according to the seed data and a preset first processing result includes:

[0014] Generating a plurality of first processing result intervals according to a plurality of preset first processing results;

[0015] A data processing result corresponding to each first processing result interval is generated according to the seed data and the plurality of first processing result intervals.

[0016] Further, generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:

[0017] The preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval.

[0018] Further, generating the data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals includes:

[0019] The data processing result corresponding to the first processing result interval is calculated according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval.

[0020] Further, the calculating the data processing result corresponding to the first processing result interval according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval includes:

[0021] A random number having a size between the minimum first processing result and the maximum first processing result is calculated according to the seed data as the data processing result corresponding to the first processing result interval.

[0022] Furthermore, the method further comprises:

[0023] Receiving data to be processed sent by the terminal;

[0024] Obtaining the seed data;

[0025] Generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals;

[0026] A data processing result corresponding to the data to be processed is obtained according to the data to be processed and the multiple first processing result intervals.

[0027] Furthermore, the method further comprises:

[0028] Sorting the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results;

[0029] The sorting result is sent to the terminal.

[0030] In a second aspect, an embodiment of the present disclosure provides a data processing method, including:

[0031] Send data processing request to the server;

[0032] Receive multiple first processing result intervals and data processing results corresponding to the multiple first processing result intervals sent by the server;

[0033] Generate data to be processed;

[0034] Acquire a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals;

[0035] Display the data processing results corresponding to the data to be processed.

[0036] Furthermore, the method further comprises:

[0037] Sending the data to be processed to the server;

[0038] Receive the sorting result of the data processing result of the data to be processed sent by the server.

[0039] In a third aspect, an embodiment of the present disclosure provides a data processing device, including:

[0040] A request receiving module, used for receiving a data processing request sent by a terminal;

[0041] A seed data generating module, used to generate seed data according to the data processing request;

[0042] A processing result generating module, used for generating a data processing result according to the seed data and a preset first processing result;

[0043] A sending module is used to send the data processing result to the first terminal.

[0044] In a fourth aspect, an embodiment of the present disclosure provides a data processing device, including:

[0045] A request sending module is used to send data processing requests to the server;

[0046] A processing result receiving module, used for receiving a plurality of first processing result intervals and first processing results corresponding to the plurality of first processing result intervals sent by the server;

[0047] A module for generating data to be processed, used for generating data to be processed;

[0048] A processing result acquisition module, used for acquiring a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals and the data processing results corresponding to the multiple first processing result intervals;

[0049] The display module is used to display the data processing results corresponding to the data to be processed.

[0050] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and

[0051] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect above.

[0052] In a sixth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute any of the methods described in the first aspect.

[0053] The disclosed embodiments disclose a data processing method, device, electronic device, and computer-readable storage medium. The data processing method includes: receiving a data processing request sent by a terminal; generating seed data according to the data processing request; generating a data processing result according to the seed data and a preset first processing result; and sending the data processing result to the terminal. The above method generates a processing result in advance through seed data and a preset processing result, solving the technical problem that the generated data is easily tampered with.

[0054] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0056] Figure 1 A flowchart of a data processing method provided by an embodiment of the present disclosure;

[0057] Figure 2 A flowchart of a specific implementation method for generating a processing result in the data processing method provided in an embodiment of the present disclosure;

[0058] Figure 3 A further flowchart of the data processing method provided in the embodiment of the present disclosure;

[0059] Figure 4 A flowchart of a data processing method embodiment provided to disclose another embodiment;

[0060] Figure 5 A schematic diagram of an application scenario of the data processing method provided in an embodiment of the present disclosure;

[0061] Figure 6 A schematic diagram of the structure of an embodiment of a data processing device provided in an embodiment of the present disclosure;

[0062] Figure 7 A schematic diagram of the structure of an embodiment of a data processing device provided by another embodiment of the present disclosure;

[0063] Figure 8 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0064] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0065] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0066] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0067] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0068] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0069] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0070] Figure 1 This is a flowchart of a data processing method embodiment provided by the present disclosure. The data processing method provided by this embodiment can be executed by a data processing device. The data processing device can be implemented as software, or as a combination of software and hardware. The data processing device can be integrated in a device in a data processing system, such as a data processing server or a data processing terminal device. Figure 1 As shown, the method comprises the following steps:

[0071] Step S101, receiving a data processing request sent by a terminal;

[0072] The data processing request is generated by a client in the terminal or the terminal itself. Figure 1 The terminal 101 in the example initiates a data processing request, and the server receives the request through the API service, thereby knowing that data processing has been started on the terminal 101. At this time, the terminal 101 does not need to wait for the processing result of the server, and can directly perform the data processing process locally. For example, in the game scenario, the terminal 101 starts the game, and at this time, it only needs to send a request to start the game to notify the server that the game has been started locally.

[0073] Step S102, generating seed data according to the data processing request;

[0074] In this step, seed data related to the terminal is generated to uniquely identify this data processing.

[0075] Optionally, the data processing request includes an identifier of the terminal, and step S102 includes:

[0076] The seed data is generated according to the identifier of the terminal and the time of the data processing request.

[0077] Optionally, the seed data may use the hash value obtained by hashing the terminal identifier and the current system time as the seed data. Optionally, the terminal identifier is the terminal user ID or the terminal MAC address, etc. In this way, since the terminal identifier is unique and the time is unique, the unique time here means that for the same terminal, the time of sending a data processing request each time is unique, and no two data processing requests are the same, so the seed data generated by each processing request is different.

[0078] Step S103, generating a data processing result according to the seed data and a preset first processing result;

[0079] Optionally, the step S103 includes:

[0080] Step S201, generating a plurality of first processing result intervals according to a plurality of preset first processing results;

[0081] Step S202: Generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals.

[0082] In one embodiment, the processing result of the data is pre-set and is within a certain range. Taking a golf game as an example, when a user swings at different time points, the flight distance of the golf ball is different. Starting from the time when the user starts the game, each time point corresponds to a flight distance, so a continuous flight distance interval can be obtained through continuous time points.

[0083] In step S201, the preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; wherein each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval. The preset multiple first processing results are all the processing results that can be obtained by data processing, and the multiple preset multiple first processing results are related to the values ​​of multiple data to be processed, such as the data to be processed is the click position or the click time. The preset multiple first processing results are divided into multiple first processing result intervals by the multiple data to be processed. For example, in the above-mentioned golf game, the time when the user clicks the screen is used as the swing time, and this click time is continuous, such as the time from t0 to tn can be used as the click time, then the click time can be divided into multiple intervals, such as [t0, t1), [t1, t2), ... [tn-1, tn), so that each time point can correspond to a preset flight distance, and multiple preset flight distance intervals can be generated accordingly, that is, multiple first processing result intervals. Each interval has a maximum flight distance and a minimum flight distance.

[0084] In step S202, the data processing result corresponding to the first processing result interval is calculated based on the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval. Optionally, in this step, the processing result corresponding to the first processing result interval is calculated based on the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval. That is, a preset processing result in the interval is determined between the minimum first processing result and the maximum first processing result by the seed data to represent the data processing result corresponding to the interval. Assuming that the minimum first processing result in the interval is a, the maximum first processing result is b, and the seed data is c, then the processing result of the interval is:

[0085] a≤f(a,b,c)≤b

[0086] That is, through a function f, whose parameters are a, b, c, and whose function value is always between a and b. In this way, for the above-mentioned multiple first processing result intervals, under the condition of a given division method, the maximum first processing result and the minimum first processing result of each interval are determined, and for each user, his ID and the time of starting the game are determined, so a determined c can be obtained, so that a determined value can be obtained as the data processing result corresponding to the first processing result interval.

[0087] Optionally, the step S202 includes: calculating a random number between the minimum first processing result and the maximum first processing result according to the seed data as the data processing result corresponding to the first processing result interval. That is, the above function f is a random number generation function. Since the seed data is generated according to the terminal identifier, the terminal identifier includes the terminal identifier or the user identifier, the seed data generated by different terminals or different user identifiers are different, and the random numbers generated are different; and since the seed data is also generated according to the time when the data processing is started, for the same terminal or user, the seed data generated each time the data processing is started is also different, and the random numbers generated are also different, so for different users, the seed data generated is different; for the same user, the seed data generated at different times is also different. Exemplarily, the random number is generated by a linear congruential random number generation method to ensure that when the seed data for generating the random number is fixed, the random number generated each time is the same, and when the seed data changes, the random number generated is different. Optionally, in order to ensure that the generated random number conforms to the normal distribution, the central limit theorem can be used to approximately generate a random number conforming to the normal distribution.

[0088] After the above steps, each interval corresponds to a data processing result, so when the value of the data to be processed falls within a certain interval of the data to be processed, the data processing result corresponding to the processing result interval corresponding to the interval of the data to be processed is used to represent the data processing result of the data to be processed. In this way, since the processing result is generated by the server and is different each time, it can prevent users from tampering with the processing result on the terminal.

[0089] Step S104: sending the data processing result to the terminal.

[0090] In this step, the data processing result is sent to the terminal that sent the data processing request, wherein the processing result includes the data processing result corresponding to each processing result interval.

[0091] Through the above steps S101 to S104, a pre-generation process of a processing result is completed, that is, after receiving a data processing request, the server pre-generates all possible data processing results and sends these generated data processing results to the terminal that sends the data processing request.

[0092] Furthermore, in order to use the corresponding seed data later, after step S103, the following is further included:

[0093] The seed data is stored.

[0094] In this step, the seed data is stored, and when the data to be processed is subsequently received, the seed data can be used to generate the processing result of the data to be processed.

[0095] Furthermore, the above data processing method further includes:

[0096] Step S301, receiving data to be processed sent by the terminal;

[0097] Step S302, obtaining the seed data;

[0098] Step S303, generating a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals;

[0099] Step S304: acquiring a data processing result corresponding to the data to be processed according to the data to be processed and the plurality of first processing result intervals.

[0100] In step S301, the server receives the data to be processed sent by the client. For example, in the golf game scenario, the data to be processed is the time when the user clicks the screen to trigger the swing, which is, for example, 2 seconds after the game starts. The client sends the swing time to the server for processing to obtain the flight distance of the golf ball.

[0101] In step S302, after receiving the processed data, the server obtains the stored seed data, which is the seed data generated in step S102, that is, the seed data used in this data processing. Specifically in the above application scenario, it is the seed data generated by the user in this round of golf game.

[0102] In step S303, as in step S103, the preprocessing result is divided into a plurality of first processing result intervals according to the same division rule, and the data processing result corresponding to each first processing result interval is generated according to the seed data. The processing process is the same as in step S103 and will not be described in detail here. Since the generation process is the same as the seed data used, the data processing result corresponding to each first processing result interval is also the same.

[0103] In step S304, the processed data is compared with the interval of the processed data. For example, in the golf game mentioned above, the user's swing time T is matched with the time interval [t0, t1), [t1, t2), ... [tn-1, tn), and it is determined which time interval T falls into, and each time interval corresponds to a golf ball flight distance interval, that is, the first processing result interval. Then, the first processing result interval corresponding to the processed data can be obtained, and each first processing result interval is represented by a data processing result, so the data processing result of the processed data can be obtained. Since the data processing result is actually pre-generated by seed data, the seed data generated each time the data processing is started is different, so the data processing result is also different each time, so the data processing result cannot be tampered with locally.

[0104] Furthermore, the method further comprises:

[0105] Sorting the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results;

[0106] The sorting result is sent to the terminal.

[0107] For example, in a game scenario, the server will obtain the processing results of multiple clients, terminals or users, that is, the game scores. At this time, the server will sort these processing results to obtain the sorting results, that is, the game score list, store the sorting results, and send the processing results sorting results when the client requests the sorting results. That is, when the user wants to view the list, he can obtain the list through the server.

[0108] It is understandable that the above method can also directly save the data processing results corresponding to each first processing result interval generated, so that when the data to be processed is received, the processing results can be directly given without further calculation, which can save computing resources; and saving the seed data can save storage resources because the seed data is small. You can choose to save the seed data or save the processing results according to actual needs, which will not be repeated here.

[0109] Figure 4 This is a flowchart of a data processing method embodiment provided by another embodiment of the present disclosure. The data processing method provided by this embodiment can be executed by a data processing device. The data processing device can be implemented as software, or as a combination of software and hardware. The data processing device can be integrated in a device in a data processing system, or in a data processing terminal device. Figure 4 As shown, the method comprises the following steps:

[0110] Step S401, sending a data processing request to the server;

[0111] In this step, the terminal sends a data processing request to the server. For example, when a user starts a game on the terminal, the terminal will send a data processing request to the server to request the service of the server. Optionally, the data processing request includes the identifier of the terminal that generates the data processing request or the identifier of the user using the terminal, and the time when the data processing request is generated.

[0112] Step S402, receiving a plurality of first processing result intervals and data processing results corresponding to the plurality of first processing result intervals sent by the server;

[0113] In this step, the data processing results sent in step S104 are received. These include the multiple first processing result intervals generated and the data processing results corresponding to each first processing result interval. In this way, all possible data processing results generated by the server are obtained locally, and the data processing results can be generated again on the server, so they cannot be tampered with locally.

[0114] Step S403, generating data to be processed;

[0115] For example, in the golf game described above, when the user starts the game and clicks the screen, a swing time is generated, i.e., data to be processed.

[0116] Step S404, obtaining a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals;

[0117] Since all possible data processing results have been obtained, in this step, the corresponding data processing results can be obtained directly based on the data to be processed. The processing process is similar to that in step S303, except that there is no need to divide the interval again. The first processing result interval is directly corresponded according to the time interval, and the data processing results are obtained according to the first processing result interval.

[0118] Step S405: display the data processing result corresponding to the data to be processed.

[0119] In this step, the data processing results corresponding to the data to be processed are directly displayed without waiting for the server to feedback the processing results. Therefore, even when the network conditions are poor, the data processing results can be quickly obtained. For example, in the above-mentioned golf game scenario, it is usually necessary to upload the swing time to the server, and the server calculates the flight distance of the golf ball and transmits the result back to the client. If there is a problem with the network at any time in the middle, the game result may not be obtained. In the present application, before the data to be processed is obtained, the server has already generated all possible data processing results and transmitted all possible data processing results to the client. In this way, even if the network conditions are poor after the data to be processed is generated, the client can immediately obtain the data processing results corresponding to the data to be processed.

[0120] Furthermore, the method further comprises:

[0121] Sending the data to be processed to the server;

[0122] Receive the sorting result of the data processing result of the data to be processed sent by the server.

[0123] After obtaining the data to be processed, although the terminal has obtained the data processing result, the server does not know the data processing result at this time, so the client needs to send the data to be processed to the server, and the server also generates the same data processing result on the server through the data to be processed, and sorts the data processing result with other data processing results, as described in the above embodiment, which will not be repeated here. Afterwards, the terminal can request and receive the sorting result of the data processing result, and display the sorting result on the display device.

[0124] Figure 5 FIG. 1 is a schematic diagram of an application scenario in an embodiment of the present disclosure. The data processed in this application scenario is game data. Figure 5As shown, the application scenario includes a client, a server and a memory, wherein the server includes an interface service, a game service and a ranking service, and the multiple services of the server can be deployed independently. A game, such as a golf game, is installed in the client. When a user starts a game, the client initiates a game request to the interface service. The interface service requests the game service to generate a pre-generated result for the game. The process of generating the pre-generated result is as described in the above steps S101 to 104, which will not be repeated here. After that, the game service stores the seed data in the memory. The data in the memory is generally stored in the form of a database, such as redis. After that, the game service sends the generated processing result interval and processing result to the client through the interface service. After the client receives the processing result, it generates a swing time according to the user's trigger. The client then sends the swing time to the game service through the interface service, and the game service continues to generate the processing result interval and the processing result, and obtains the processing result of the data to be processed according to the swing time, that is, the game score of the user, and sends the score to the ranking service to rank the game score and store it in the memory; when the user needs to view the ranking later, the ranking service directly pulls the ranking stored therein and displays it on the display device of the terminal.

[0125] Therefore, since each data processing result is generated on the server side and the data processing result is random within a certain interval, the data processing result cannot be tampered with on the client side. And since all possible data processing results have been obtained before the data to be processed is generated, the corresponding data processing result can be quickly obtained when the data to be processed is generated, without waiting for the feedback from the server side, which improves the processing speed.

[0126] The disclosed embodiments disclose a data processing method, device, electronic device, and computer-readable storage medium. The data processing method includes: receiving a data processing request sent by a terminal; generating seed data according to the data processing request; generating a data processing result according to the seed data and a preset first processing result; and sending the data processing result to the terminal. The above method generates a processing result in advance through seed data and a preset processing result, solving the technical problem that the generated data is easily tampered with.

[0127] In the above, although the various steps in the above method embodiment are described in the above order, those skilled in the art should be aware that the steps in the embodiments of the present disclosure are not necessarily executed in the above order, and they may also be executed in other orders such as reverse order, parallel order, and cross order. Moreover, on the basis of the above steps, those skilled in the art may also add other steps. These obvious variations or equivalent replacement methods should also be included in the protection scope of the present disclosure and will not be repeated here.

[0128] Figure 6 A schematic diagram of the structure of a data processing device embodiment provided in the present disclosure, such as Figure 6 As shown, the device 600 includes: a request receiving module 601, a seed data generating module 602, a processing result generating module 603 and a sending module 604.

[0129] The request receiving module 601 is used to receive a data processing request sent by a terminal;

[0130] A seed data generating module 602, configured to generate seed data according to the data processing request;

[0131] A processing result generating module 603, used to generate a data processing result according to the seed data and a preset first processing result;

[0132] The sending module 604 is used to send the data processing result to the terminal.

[0133] Furthermore, the data processing request includes the identifier of the terminal, and the seed data generating module 602 is further used to:

[0134] The seed data is generated according to the identifier of the terminal and the time of the data processing request.

[0135] Furthermore, the processing result generating module 603 is also used for:

[0136] Generating a plurality of first processing result intervals according to a plurality of preset first processing results;

[0137] A data processing result corresponding to each first processing result interval is generated according to the seed data and the plurality of first processing result intervals.

[0138] Furthermore, the processing result generating module 603 is also used for:

[0139] The preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; wherein each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval.

[0140] Furthermore, the processing result generating module 603 is also used for:

[0141] The data processing result corresponding to the first processing result interval is calculated according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval.

[0142] Furthermore, the processing result generating module 603 is also used for:

[0143] A random number having a size between the minimum first processing result and the maximum first processing result is calculated according to the seed data as the data processing result corresponding to the first processing result interval.

[0144] Furthermore, the data processing device further includes:

[0145] A data receiving module, used for receiving the data to be processed sent by the terminal;

[0146] A seed data acquisition module, used to acquire the seed data;

[0147] A second processing result generating module, configured to generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals;

[0148] The first processing result acquisition module is used to acquire the data processing result corresponding to the data to be processed according to the data to be processed and the multiple first processing result intervals.

[0149] Furthermore, the data processing device further includes:

[0150] A sorting module, used to sort the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing result;

[0151] The sorting result sending module is used to send the sorting result to the terminal.

[0152] Figure 6 The device shown can perform Figure 1-Figure 3 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 3 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 3 The description in the illustrated embodiment will not be repeated here.

[0153] Figure 7 A schematic diagram of the structure of a data processing device embodiment provided in the present disclosure, such as Figure 7As shown, the device 700 includes: a request sending module 701, a processing result receiving module 702, a to-be-processed data generating module 703, a processing result obtaining module 704 and a display module 705.

[0154] The request sending module 701 is used to send a data processing request to the server;

[0155] The processing result receiving module 702 is used to receive a plurality of first processing result intervals and data processing results corresponding to the plurality of first processing result intervals sent by the server;

[0156] The to-be-processed data generating module 703 is used to generate the to-be-processed data;

[0157] A processing result acquisition module 704 is used to acquire a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals;

[0158] The display module 705 is used to display the data processing results corresponding to the data to be processed.

[0159] Furthermore, the data processing device 700 further includes:

[0160] A module for sending data to be processed, used for sending the data to be processed to the server;

[0161] The sorting result receiving module is used to receive the sorting result of the data processing result of the data to be processed sent by the server.

[0162] Figure 7 The device shown can perform Figure 4 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 4 The implementation process and technical effects of this technical solution refer to Figure 4 The description in the illustrated embodiment will not be repeated here.

[0163] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0164] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 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 device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the 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.

[0165] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0166] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0167] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may 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 may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0168] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0169] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0170] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains an input image and a first text; extracts features of the input image to obtain a feature vector of the input image; encodes the first text to obtain a feature vector of the first text; obtains a joint feature vector based on the feature vector of the input image and the feature vector of the first text; and decodes the joint feature vector to generate a second text.

[0171] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0172] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0173] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0174] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0175] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0176] According to one or more embodiments of the present disclosure, a data processing method is provided, including:

[0177] receiving a data processing request sent by a terminal;

[0178] generating seed data according to the data processing request;

[0179] Generate a data processing result according to the seed data and a preset first processing result;

[0180] The data processing result is sent to the terminal.

[0181] Further, the data processing request includes an identifier of the terminal, and generating seed data according to the data processing request includes:

[0182] The seed data is generated according to the identifier of the terminal and the time of the data processing request.

[0183] Further, generating a data processing result according to the seed data and a preset first processing result includes:

[0184] Generating a plurality of first processing result intervals according to a plurality of preset first processing results;

[0185] A data processing result corresponding to each first processing result interval is generated according to the seed data and the plurality of first processing result intervals.

[0186] Further, generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:

[0187] The preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval.

[0188] Further, generating the data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals includes:

[0189] The data processing result corresponding to the first processing result interval is calculated according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval.

[0190] Further, the calculating the data processing result corresponding to the first processing result interval according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval includes:

[0191] A random number having a size between the minimum first processing result and the maximum first processing result is calculated according to the seed data as the data processing result corresponding to the first processing result interval.

[0192] Furthermore, the method further comprises:

[0193] Receiving data to be processed sent by the terminal;

[0194] Obtaining the seed data;

[0195] Generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals;

[0196] A data processing result corresponding to the data to be processed is obtained according to the data to be processed and the multiple first processing result intervals.

[0197] Furthermore, the method further comprises:

[0198] Sorting the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results;

[0199] The sorting result is sent to the terminal.

[0200] According to one or more embodiments of the present disclosure, a data processing method is provided, including:

[0201] Send data processing request to the server;

[0202] Receive multiple first processing result intervals and data processing results corresponding to the multiple first processing result intervals sent by the server;

[0203] Generate data to be processed;

[0204] Acquire a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals;

[0205] Display the data processing results corresponding to the data to be processed.

[0206] Furthermore, the method further comprises:

[0207] Sending the data to be processed to the server;

[0208] Receive the sorting result of the data processing result of the data to be processed sent by the server.

[0209] According to one or more embodiments of the present disclosure, there is provided a data processing device, including:

[0210] A request receiving module, used for receiving a data processing request sent by a terminal;

[0211] A seed data generating module, used for generating seed data according to the data processing request;

[0212] A processing result generating module, used for generating a data processing result according to the seed data and a preset first processing result;

[0213] A sending module is used to send the data processing result to the first terminal.

[0214] Furthermore, the data processing request includes an identifier of the terminal, and the seed data generating module is further used to:

[0215] The seed data is generated according to the identifier of the terminal and the time of the data processing request.

[0216] Furthermore, the processing result generating module is also used for:

[0217] Generating a plurality of first processing result intervals according to a plurality of preset first processing results;

[0218] A data processing result corresponding to each first processing result interval is generated according to the seed data and the plurality of first processing result intervals.

[0219] Furthermore, the processing result generating module is also used for:

[0220] The preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval.

[0221] Furthermore, the processing result generating module is also used for:

[0222] The data processing result corresponding to the first processing result interval is calculated according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval.

[0223] Furthermore, the processing result generating module is also used for:

[0224] A random number having a size between the minimum first processing result and the maximum first processing result is calculated according to the seed data as the data processing result corresponding to the first processing result interval.

[0225] Furthermore, the data processing device further includes:

[0226] A data receiving module, used for receiving the data to be processed sent by the terminal;

[0227] A seed data acquisition module, used to acquire the seed data;

[0228] A second processing result generating module, configured to generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals;

[0229] The first processing result acquisition module is used to acquire the data processing result corresponding to the data to be processed according to the data to be processed and the multiple first processing result intervals.

[0230] Furthermore, the data processing device further includes:

[0231] A sorting module, used to sort the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing result;

[0232] The sorting result sending module is used to send the sorting result to the terminal.

[0233] According to one or more embodiments of the present disclosure, there is provided a data processing device, including:

[0234] A request sending module is used to send data processing requests to the server;

[0235] A processing result receiving module, used for receiving a plurality of first processing result intervals and data processing results corresponding to the plurality of first processing result intervals sent by the server;

[0236] A module for generating data to be processed, used for generating data to be processed;

[0237] A second processing result acquisition module, configured to acquire a data processing result corresponding to the data to be processed according to the data to be processed, the plurality of first processing result intervals, and the data processing results corresponding to the plurality of first processing result intervals;

[0238] The display module is used to display the data processing results corresponding to the data to be processed.

[0239] Furthermore, the data processing device further includes:

[0240] A module for sending data to be processed, used for sending the data to be processed to the server;

[0241] The sorting result receiving module is used to receive the sorting result of the data processing result of the data to be processed sent by the server.

[0242] According to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the data processing methods described in the first aspect above.

[0243] According to one or more embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute any data processing method described in the first aspect.

[0244] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

Claims

1. A data processing method, characterized in that: include: receiving a data processing request sent by a terminal; generating seed data according to the data processing request; Generating a data processing result according to the seed data and the preset first processing result, specifically comprising: generating a plurality of first processing result intervals according to the preset plurality of first processing results; generating a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals; Send the multiple first processing result intervals and the data processing results corresponding to the multiple first processing result intervals to the terminal so that the terminal generates data to be processed, and obtain the data processing results corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals and the data processing results corresponding to the multiple first processing result intervals; when the data to be processed falls within the interval of the target data to be processed, use the data processing result corresponding to the processing result interval corresponding to the interval of the data to be processed to represent the data processing result of the data to be processed, and display the data processing result corresponding to the data to be processed.

2. The data processing method according to claim 1, characterized in that: The data processing request includes an identifier of the terminal, and generating seed data according to the data processing request includes: The seed data is generated according to the identifier of the terminal and the time of the data processing request.

3. The data processing method according to claim 1, characterized in that: The generating a plurality of first processing result intervals according to a plurality of preset first processing results comprises: The preset multiple first processing results are divided into multiple first processing result intervals according to the time points corresponding to the preset multiple first processing results; each first processing result interval includes the minimum first processing result and the maximum first processing result in the first processing result interval.

4. The data processing method according to claim 3, characterized in that: The step of generating the data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals includes: The data processing result corresponding to the first processing result interval is calculated according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval.

5. The data processing method according to claim 4, characterized in that: The calculating the data processing result corresponding to the first processing result interval according to the seed data and the minimum first processing result and the maximum first processing result in the first processing result interval includes: A random number having a size between the minimum first processing result and the maximum first processing result is calculated according to the seed data as the data processing result corresponding to the first processing result interval.

6. The data processing method according to claim 1, characterized in that: The method further comprises: Receiving data to be processed sent by the terminal; Obtaining the seed data; Generate a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals; A data processing result corresponding to the data to be processed is obtained according to the data to be processed and the multiple first processing result intervals.

7. The data processing method according to claim 6, characterized in that: The method further comprises: Sorting the data processing result and the data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results; The sorting result is sent to the terminal.

8. A data processing method, characterized in that: include: Send data processing request to the server; Receive multiple first processing result intervals and data processing results corresponding to the multiple first processing result intervals sent by the server; Generate data to be processed; Obtaining a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals; when the data to be processed falls within the interval of the target data to be processed, using the data processing result corresponding to the processing result interval corresponding to the interval of the data to be processed to represent the data processing result of the data to be processed; Display the data processing results corresponding to the data to be processed.

9. The data processing method according to claim 8, characterized in that: The method further comprises: Sending the data to be processed to the server; Receive the sorting result of the data processing result of the data to be processed sent by the server.

10. A data processing device, characterized in that: include: A request receiving module, used for receiving a data processing request sent by a terminal; A seed data generating module, used for generating seed data according to the data processing request; A processing result generating module, used to generate a data processing result according to the seed data and a preset first processing result, and specifically used to: generate a plurality of first processing result intervals according to a plurality of preset first processing results; generating a data processing result corresponding to each first processing result interval according to the seed data and the plurality of first processing result intervals; A sending module is used to send the multiple first processing result intervals and the data processing results corresponding to the multiple first processing result intervals to the terminal, so that the terminal generates data to be processed, and obtains the data processing results corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals and the data processing results corresponding to the multiple first processing result intervals; when the data to be processed falls within the interval of the target data to be processed, the data processing result corresponding to the processing result interval corresponding to the interval of the data to be processed is used to represent the data processing result of the data to be processed, and the data processing result corresponding to the data to be processed is displayed.

11. A data processing device, characterized in that: include: A request sending module is used to send data processing requests to the server; A processing result receiving module, used for receiving a plurality of first processing result intervals and data processing results corresponding to the plurality of first processing result intervals sent by the server; A module for generating data to be processed, used for generating data to be processed; a processing result acquisition module, configured to acquire a data processing result corresponding to the data to be processed according to the data to be processed, the multiple first processing result intervals, and the data processing results corresponding to the multiple first processing result intervals; when the data to be processed falls within the interval of the target data to be processed, the data processing result corresponding to the processing result interval corresponding to the interval of the data to be processed is used to represent the data processing result of the data to be processed; The display module is used to display the data processing results corresponding to the data to be processed.

12. An electronic device comprising: a memory for storing computer readable instructions; as well as A processor, configured to execute the computer-readable instructions, so that the processor implements the method according to any one of claims 1-9 when executed.

13. A non-transitory computer-readable storage medium, used for storing computer-readable instructions, which, when executed by a computer, causes the computer to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Data processing method and intelligent terminal

    CN107872315A

  • Object selection method and device, and electronic equipment

    CN109584432A