WO2022048490A1 - Data processing method and apparatus, and electronic device - Google Patents

Data processing method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022048490A1
WO2022048490A1 PCT/CN2021/114755 CN2021114755W WO2022048490A1 WO 2022048490 A1 WO2022048490 A1 WO 2022048490A1 CN 2021114755 W CN2021114755 W CN 2021114755W WO 2022048490 A1 WO2022048490 A1 WO 2022048490A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
processing result
data processing
processing
result
Prior art date
Application number
PCT/CN2021/114755
Other languages
French (fr)
Chinese (zh)
Inventor
马骁
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2022048490A1 publication Critical patent/WO2022048490A1/en

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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present disclosure relates to the field of data processing, and in particular, to a data processing method, apparatus, electronic device, and computer-readable storage medium.
  • an embodiment of the present disclosure provides a data processing method, including:
  • the identification of the terminal is included in the data processing request, and the generation of seed data according to the data processing request includes:
  • the seed data is generated according to the identification of the terminal and the time of the data processing request.
  • generating a data processing result according to the seed data and a preset first processing result includes:
  • 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.
  • generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:
  • 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.
  • 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 includes:
  • the data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
  • 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 with 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.
  • the method also includes:
  • the method also includes:
  • an embodiment of the present disclosure provides a data processing method, including:
  • the data processing result corresponding to the data to be processed is displayed.
  • the method also includes:
  • an embodiment of the present disclosure provides a data processing apparatus, including:
  • a request receiving module for receiving a data processing request sent by the terminal
  • a seed data generation module for generating seed data according to the data processing request
  • a processing result generating module configured to generate a data processing result according to the seed data and a preset first processing result
  • a sending module configured to send the data processing result to the first terminal.
  • an embodiment of the present disclosure provides a data processing apparatus, including:
  • the request sending module is used to send data processing requests to the server
  • a processing result receiving module configured to receive multiple first processing result intervals sent by the server and first processing results corresponding to the multiple first processing result intervals
  • a pending data generation module for generating pending data
  • a processing result obtaining module configured to obtain the data processing 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 result;
  • the display module is used for displaying the data processing result corresponding to the data to be processed.
  • embodiments of the present disclosure provide an electronic device, including: at least one processor; and,
  • the device is capable of performing the method of any one of the preceding first aspects.
  • 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 cause a computer to execute the foregoing first aspect. of any of the methods described.
  • Embodiments of the present disclosure disclose a data processing method, apparatus, 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; sending the data processing result to the terminal.
  • the above method generates the processing result in advance by using the seed data and the preset processing result, which solves the technical problem that the generated data is easily tampered with.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a specific implementation manner of generating a processing result in a data processing method provided by an embodiment of the present disclosure
  • FIG. 3 is a further schematic flowchart of the data processing method provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart of an embodiment of a data processing method for disclosing another embodiment
  • FIG. 5 is a schematic diagram of an application scenario of the data processing method provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an embodiment of a data processing apparatus provided by another embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
  • the term “including” and variations thereof are open-ended inclusions, ie, "including but not limited to”.
  • the term “based on” is “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”. Relevant definitions of other terms will be given in the description below.
  • FIG. 1 is a flowchart of an embodiment of a data processing method provided by an embodiment of the present disclosure.
  • the data processing method provided by this embodiment may be executed by a data processing apparatus, and the data processing apparatus may be implemented as software, or as software and A combination of hardware, the data processing apparatus can be integrated in a certain device in a data processing system, such as a data processing server or a data processing terminal device.
  • the method includes the following steps:
  • Step S101 receiving a data processing request sent by a terminal
  • the data processing request is generated by the client in the terminal or the terminal itself, and the data processing request is sent by the terminal.
  • the terminal 101 initiates a data processing request, and the server receives the request through the API service, from which it can be known that data processing is started on the terminal 101 .
  • the terminal 101 does not need to wait for the processing result of the server, and it can directly execute the process of data processing locally.
  • the terminal 101 starts the game, and only needs to send a request to start the game at this time to notify the server that the game is started locally.
  • Step S102 generating seed data according to the data processing request
  • seed data related to the terminal is generated to uniquely identify this data processing.
  • the data processing request includes the identifier of the terminal, and the step S102 includes:
  • the seed data is generated according to the identification of the terminal and the time of the data processing request.
  • the seed data may use a hash value obtained by hashing the identifier of the terminal and the current system time as the seed data.
  • the identifier of the terminal is the ID of the terminal user or the MAC address of the terminal or the like.
  • the unique time here means that for the same terminal, the time it sends a data processing request is unique each time, and no two data processing requests have the same time. Therefore, the seed data generated by each processing request is different.
  • Step S103 generating a data processing result according to the seed data and a preset first processing result
  • step S103 includes:
  • Step S201 generating a plurality of first processing result intervals according to a plurality of preset first processing results
  • 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.
  • the processing result of the data is preset and located within a certain range.
  • the user swings the golf ball at different time points, and the flight distance of the golf ball is different. From the time the user starts the game, each time point corresponds to a flight distance, so that a continuous flight can be obtained through consecutive time points. distance interval.
  • 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;
  • the processing result interval includes the smallest first processing result and the largest 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 performing data processing, and the multiple preset multiple first processing results are related to the values of multiple data to be processed.
  • the processing data is click position or click time, etc.
  • the preset multiple first processing results are divided into multiple first processing result intervals by using the multiple data to be processed. For example, in the above golf game, the time when the user clicks the screen is used as the swing time. This click time is continuous.
  • the click time can be divided into multiple interval, such as [t0,t1),[t1,t2),...[tn-1,tn), in this way, each time point can correspond to a preset flight distance, and multiple presets can be generated correspondingly
  • the interval of the flight distance that is, a plurality of first processing result intervals.
  • Each interval has a maximum flight distance and a minimum flight distance.
  • step S202 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.
  • the processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest 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 through the seed data to represent the data processing result corresponding to the interval. Assuming that the minimum first processing result in this interval is a, the maximum first processing result is b, and the seed data is c, the processing result of this interval is:
  • the step S202 includes: calculating a random number with a size between the minimum first processing result and the maximum first processing result according to the seed data as the corresponding first processing result interval. data processing results. That is, the above-mentioned function f is a random number generating function. Since the seed data is generated according to the identification of the terminal, the identification of the terminal includes the identification of the terminal or the identification of the user. Therefore, the seed data generated by the identification of different terminals or different users is different, and it generates The random numbers 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 are also different, and the random number generated by this is also different.
  • the random number adopts a linear congruential random number generation method, which ensures that when the seed data for generating the random number is fixed, the random numbers generated each time are the same, and when the seed data changes, the generated random numbers are different.
  • the random numbers conforming to the normal distribution can be approximately generated by using the central limit theorem.
  • each interval corresponds to a data processing result, so that when the value of the data to be processed falls within a certain interval of the data to be processed, the data corresponding to the interval of the processing result corresponding to the interval of the data to be processed is used
  • the processing result indicates 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 the user from tampering with the processing result on the terminal.
  • Step S104 sending the data processing result to the terminal.
  • the data processing result is sent to the terminal that sent the data processing request.
  • the processing result includes the data processing result corresponding to each processing result interval.
  • the pre-generating process of the processing result is completed, that is, after receiving the data processing request, the server generates all possible data processing results in advance, and sends these generated data processing results to the sender.
  • the terminal that requests the data processing is, after receiving the data processing request, the server generates all possible data processing results in advance, and sends these generated data processing results to the sender.
  • step S103 it also includes:
  • the seed data is stored.
  • the seed data is stored, and when the data to be processed is subsequently received, the seed data can be used to generate a processing result of the data to be processed.
  • the above data processing method also includes:
  • Step S301 receiving data to be processed sent by the terminal
  • Step S302 obtaining the seed data
  • 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;
  • Step S304 Acquire a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
  • step S301 the server receives the data to be processed sent by the client.
  • the data to be processed is the time when the user clicks on the screen to touch the golf club. This time is, for example, 2 seconds after the game starts, and the client sends the golf swing time to the service. The end is processed to obtain the flight distance of the golf ball.
  • step S302 after receiving the processing data, the server obtains the stored seed data, where the seed data is the seed data generated in step S102, that is, the seed data used in this data processing. Specifically, in the above application scenario, that is, the seed data generated in the golf game of the user in this round.
  • step S303 as in step S103, the preprocessing result is divided into a plurality of first processing result intervals according to the same dividing rule, and the data processing corresponding to each first processing result interval is generated according to the seed data
  • the processing procedure is the same as that in step S103, which is not repeated here. Since the generation process is the same as the used seed data, the obtained data processing results corresponding to each first processing result interval are also the same.
  • step S304 the processing data is compared with the interval of the processing data.
  • the user's swing time T is matched with the time interval [t0, t1), [t1, t2), ... [tn-1, tn), and it is determined that T falls within the time interval , and each time interval corresponds to the flight distance interval of a golf ball, that is, the first processing result interval.
  • the corresponding first processing result interval can be obtained by processing the data, and each first processing result interval is represented by a data processing result, so that the data processing result of the processing data can be obtained. Since the data processing result is actually pre-generated by the 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 locally.
  • the method also includes:
  • the server will obtain the processing results of multiple clients or 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, and store the results. the sorting result, and sending the processing result sorting result when the client requests the sorting result. That is, when the user wants to view the list, the list can be obtained through the server.
  • the above method can also directly save the generated data processing results corresponding to each first processing result interval, so that when the data to be processed is received, the processing results can be directly given without further calculation. Save computing resources; and save seed data, because the seed data is small, you can save storage resources. You can choose to save the seed data or save the processing result according to actual needs, which will not be repeated here.
  • FIG. 4 is a flowchart of an embodiment of a data processing method provided by another embodiment of the present disclosure.
  • the data processing method provided by this embodiment may be executed by a data processing apparatus, and the data processing apparatus may be implemented as software, or implemented as Combination of software and hardware, the data processing device can be integrated and set in a certain device in the data processing system, in the data processing terminal device.
  • the method includes the following steps:
  • Step S401 sending a data processing request to the server
  • the terminal sends a data processing request to the server.
  • the terminal will send a data processing request to the server to request the service of the server.
  • the data processing request includes the identification of the terminal that generated the data processing request or the identification of the user using the terminal, and the time when the data processing request was generated.
  • Step S402 receiving multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
  • the data processing result sent in step S104 is received. It includes a plurality of generated first processing result intervals and a data processing result 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 regenerated on the server, so they cannot be tampered locally.
  • Step S403 generating data to be processed
  • a swing time is generated, that is, data to be processed.
  • Step S404 obtaining 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;
  • step S303 Since all possible data processing results have been obtained, in this step, the corresponding data processing results can be obtained directly according to 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, and the time interval can be directly obtained according to the time interval.
  • step S303 Corresponding to the first processing result interval, and obtaining the data processing result according to the first processing result interval.
  • Step S405 displaying the data processing result corresponding to the data to be processed.
  • the data processing result corresponding to the data to be processed is directly displayed without waiting for the server to feed back the processing result. Therefore, when the network conditions are poor, the data processing results can be obtained quickly.
  • the server calculates the flight distance of the golf ball and sends the result back to the client. There is a case where the game result cannot be obtained.
  • the server before the data to be processed has been obtained, the server has already generated all possible data processing results, and transmitted all possible data processing results to the client, so that even when the data to be processed is generated After the network conditions are poor, the client can also immediately obtain the data processing results corresponding to the data to be processed.
  • the method also includes:
  • the server 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 also needs to send the data to be processed to the server.
  • the data also generates the same data processing result on the server side, and sorts the data processing result with other data processing results, as described in the above-mentioned embodiment, and will not be repeated here.
  • the terminal may request and receive the sorting result of the data processing result, and display the sorting result on the display device.
  • FIG. 5 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.
  • the application scenario includes a client, a server, and a storage, wherein the server includes an interface service, a game service, and a ranking service, and multiple services of the server can be independently deployed.
  • a game installed in the client, such as a golf game
  • the client initiates a game request to the interface service
  • the interface service requests the game service to generate the pre-generated result of the game, and the process of generating the pre-generated result
  • the details are not repeated here; after that, the game service stores the seed data in the memory, and the data in the memory is generally stored in the form of a database, typically such as redis; after that, the game service passes the interface
  • the service sends the generated processing result interval and processing result to the client; after the client receives the processing result, it generates swing time data according to the user's trigger, and sends the data directly from the server according to the swing time.
  • the processing result corresponding to the time, that is, the game score, is obtained from the processing result, and displayed on the display device of the terminal device; at this time, the client 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 obtain the processing result of the data to be processed according to the swing time, that is, the user's game score, and send the score to the ranking service to rank the game score, and store it in the memory;
  • the leaderboard can be directly pulled and stored through the leaderboard service, and displayed on the display device of the terminal.
  • Embodiments of the present disclosure disclose a data processing method, apparatus, 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; sending the data processing result to the terminal.
  • the above method generates the processing result in advance by using the seed data and the preset processing result, which solves the technical problem that the generated data is easily tampered with.
  • FIG. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present disclosure.
  • the apparatus 600 includes: a request receiving module 601 , a seed data generating module 602 , a processing result generating module 603 and a sending module 604 . in,
  • a seed data generation module 602 configured to generate seed data according to the data processing request
  • a processing result generating module 603, configured to generate a data processing result according to the seed data and a preset first processing result
  • the data processing request includes the identifier of the terminal, and the seed data generation module 602 is further used for:
  • the seed data is generated according to the identification of the terminal and the time of the data processing request.
  • processing result generation module 603 is also used for:
  • 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.
  • processing result generation module 603 is also used for:
  • 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.
  • processing result generation module 603 is also used for:
  • the data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
  • processing result generation module 603 is also used for:
  • a random number with 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.
  • the data processing device also includes:
  • a data receiving module configured to receive the data to be processed sent by the terminal
  • a seed data acquisition module for acquiring the seed data
  • 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;
  • a first processing result obtaining module configured to obtain a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
  • the data processing device also includes:
  • a sorting module configured to sort the data processing results and data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results
  • a sorting result sending module configured to send the sorting result to the terminal.
  • the apparatus shown in FIG. 6 may execute the method of the embodiment shown in FIG. 1 to FIG. 3 .
  • the apparatus shown in FIG. 6 may execute the method of the embodiment shown in FIG. 1 to FIG. 3 .
  • FIG. 7 is a schematic structural diagram of an embodiment of a data processing apparatus provided by an embodiment of the present disclosure.
  • the apparatus 700 includes: a request sending module 701, a processing result receiving module 702, a to-be-processed data generating module 703, and a processing result obtaining module module 704 and display module 705. in,
  • a processing result receiving module 702 configured to receive multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
  • a processing result obtaining module 704 configured to obtain data 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 process result;
  • the display module 705 is configured to display the data processing result corresponding to the data to be processed.
  • the data processing apparatus 700 further includes:
  • a data sending module to be processed, configured to send the data to be processed to the server
  • the sorting result receiving module is configured to receive the sorting result of the data processing result of the data to be processed sent by the server.
  • the apparatus shown in FIG. 7 may execute the method of the embodiment shown in FIG. 4 .
  • the apparatus shown in FIG. 7 may execute the method of the embodiment shown in FIG. 4 .
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 8 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • an electronic device 800 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 801 that may be loaded into random access according to a program stored in a read only memory (ROM) 802 or from a storage device 808 Various appropriate actions and processes are executed by the programs in the 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 through a bus 804.
  • An input/output (I/O) interface 805 is also connected to bus 804 .
  • I/O interface 805 input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 807 of a computer, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809.
  • Communication means 809 may allow electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 8 shows an electronic device 800 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 809, or from the storage device 808, or from the ROM 802.
  • the processing apparatus 801 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure 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 can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium Communication (eg, a communication network) interconnects.
  • HTTP HyperText Transfer Protocol
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires the input image and the first text; extracts the features of the input image to obtain the input image the feature vector of the first text; encode the first text to obtain the feature vector of the first text; obtain the joint feature vector according to the feature vector of the input image and the feature vector of the first text; decode the joint feature vector Generate second text.
  • Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a data processing method comprising:
  • the data processing request includes the identifier of the terminal, and the generating seed data according to the data processing request includes:
  • the seed data is generated according to the identification of the terminal and the time of the data processing request.
  • generating a data processing result according to the seed data and a preset first processing result includes:
  • 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.
  • generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:
  • 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.
  • 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 includes:
  • the data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
  • 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 with 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.
  • the method also includes:
  • the method also includes:
  • Sorting the data processing results corresponding to the data processing results and other data to be processed obtains the sorting results of the data processing results
  • a data processing method comprising:
  • the data processing result corresponding to the data to be processed is displayed.
  • the method also includes:
  • a data processing apparatus comprising:
  • a request receiving module for receiving a data processing request sent by the terminal
  • a seed data generation module for generating seed data according to the data processing request
  • a processing result generating module configured to generate a data processing result according to the seed data and the preset first processing result
  • a sending module configured to send the data processing result to the first terminal.
  • the data processing request includes the identifier of the terminal, and the seed data generation module is also used for:
  • the seed data is generated according to the identification of the terminal and the time of the data processing request.
  • processing result generation module is also used for:
  • 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.
  • processing result generation module is also used for:
  • 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.
  • processing result generation module is also used for:
  • the data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
  • processing result generation module is also used for:
  • a random number with 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.
  • the data processing device also includes:
  • a data receiving module configured to receive the data to be processed sent by the terminal
  • a seed data acquisition module for acquiring the seed data
  • 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;
  • a first processing result obtaining module configured to obtain a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
  • the data processing device also includes:
  • a sorting module configured to sort the data processing results and data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results
  • a sorting result sending module configured to send the sorting result to the terminal.
  • a data processing apparatus comprising:
  • the request sending module is used to send data processing requests to the server
  • a processing result receiving module configured to receive a plurality of first processing result intervals sent by the server and data processing results corresponding to the plurality of first processing result intervals
  • a pending data generation module for generating pending data
  • a second processing result obtaining module configured to obtain the data 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 data processing results;
  • the display module is used for displaying the data processing result corresponding to the data to be processed.
  • the data processing device also includes:
  • a data sending module to be processed, configured to send the data to be processed to the server
  • the sorting result receiving module is configured to receive the sorting result of the data processing result of the data to be processed sent by the server.
  • an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores data that can be accessed by the at least one processor Instructions executed by at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any one of the data processing methods of the first aspect above.
  • a non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the foregoing Any one of the data processing methods in the first aspect.

Abstract

Disclosed by embodiments of the present disclosure are a data processing method and apparatus, an electronic device and a computer-readable storage medium. The data processing method comprises: 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. According to the method above, the processing result is generated in advance by means of the seed data and the preset processing result, and the technical problem in which generated data is easy to tamper is solved.

Description

数据处理方法、装置和电子设备Data processing method, apparatus and electronic equipment
本申请要求于2020年09月01日提交中国专利局、申请号为202010904178.4、申请名称为“数据处理方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010904178.4 and the application name "Data Processing Method, Apparatus and Electronic Equipment" filed with the China Patent Office on September 1, 2020, the entire contents of which are incorporated herein by reference middle.
技术领域technical field
本公开涉及数据处理领域,尤其涉及一种数据处理方法、装置、电子设备及计算机可读存储介质。The present disclosure relates to the field of data processing, and in particular, to a data processing method, apparatus, electronic device, and computer-readable storage medium.
背景技术Background technique
随着移动互联网的飞速发展,传统本地数据处理已无法满足网民日益增长的交互需要。近年来,有些数据处理系统需要在本地处理数据并将一些处理之后的数据上传至服务端。如在游戏场景下,开心消消乐等玩法偏单机、但用户成绩需要上传至服务端的“排行榜”。业界常用的做法一般是,客户端通过加密、代码混淆来防止破解,客户端通过明文或者对称加密的方式将游戏成绩上传到服务端,服务端解密后即直接使用客户端上传的结果,更新排行榜,成绩对所有人可见。With the rapid development of the mobile Internet, traditional local data processing has been unable to meet the ever-increasing 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 scene, the gameplay such as Happy Xiaoxiaole is a stand-alone game, but the user's results need to be uploaded to the "leaderboard" on the server. The common practice in the industry is generally that the client uses encryption and code obfuscation to prevent cracking, and the client uploads the game results to the server through plaintext or symmetric encryption. After the server decrypts, it directly uses the results uploaded by the client to update the ranking. The results are visible to everyone.
然而受限于客户端加密手段的匮乏,和市面上代码破解工具、内存修改工具的泛滥,如何防止恶意用户在本地对数据进行作弊,导致上传至服务器的数据被篡改成为亟待解决的技术问题。However, limited by 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 data locally and tampering with data uploaded to the server has become an urgent technical problem to be solved.
发明内容SUMMARY OF THE INVENTION
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This Summary is provided to introduce concepts in a simplified form that are described in detail in the Detailed Description section that follows. This summary section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.
为了解决现有技术中本地数据容易被篡改的问题,本公开实施例提出如下技术方案。In order to solve the problem that local data is easily tampered with in the prior art, the embodiments of the present disclosure propose the following technical solutions.
第一方面,本公开实施例提供一种数据处理方法,包括:In a first aspect, an embodiment of the present disclosure provides a data processing method, including:
接收终端发送的数据处理请求;Receive the data processing request sent by the 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;
发送所述数据处理结果至所述终端。Send the data processing result to the terminal.
进一步的,所述数据处理请求中包括所述终端的标识,所述根据所述数 据处理请求生成种子数据包括:Further, the identification of the terminal is included in the data processing request, and the generation of seed data according to the data processing request includes:
根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
进一步的,所述根据所述种子数据和预设的第一处理结果生成数据处理结果,包括:Further, generating a data processing result according to the seed data and a preset first processing result includes:
根据预设的多个第一处理结果生成多个第一处理结果区间;generating a plurality of first processing result intervals according to a plurality of preset first processing results;
根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
进一步的,所述根据预设的多个第一处理结果生成多个第一处理结果区间,包括:Further, generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:
根据所述预设的多个第一处理结果所对应的时间点将所述预设的多个第一处理结果划分到多个第一处理结果区间中;其中每个第一处理结果区间中包括该第一处理结果区间中的最小第一处理结果和最大第一处理结果。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.
进一步的,所述根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果,包括:Further, 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 includes:
根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。The data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
进一步的,所述根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果,包括:Further, 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 with 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.
进一步的,所述方法还包括:Further, the method also includes:
接收所述终端发送的待处理数据;receiving the pending data sent by the terminal;
获取所述种子数据;obtain the seed data;
根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。Acquire data processing results corresponding to the data to be processed according to the data to be processed and the plurality of first processing result intervals.
进一步的,所述方法还包括:Further, the method also includes:
将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排序得到数据处理结果的排序结果;Sorting the data processing results and the data processing results corresponding to other data to be processed to obtain the sorting results of the data processing results;
发送所述排序结果至所述终端。Send the sorting result to the terminal.
第二方面,本公开实施例提供一种数据处理方法,包括:In a second aspect, an embodiment of the present disclosure provides a data processing method, including:
发送数据处理请求至服务端;Send data processing requests to the server;
接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;receiving multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
生成待处理数据;generate data to be processed;
根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;Acquiring data processing results 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;
显示所述待处理数据所对应的数据处理结果。The data processing result corresponding to the data to be processed is displayed.
进一步的,所述方法还包括:Further, the method also includes:
发送所述待处理数据至所述服务端;sending the data to be processed to the server;
接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。Receive the sorting result of the data processing results of the data to be processed sent by the server.
第三方面,本公开实施例提供一种数据处理装置,包括:In a third aspect, an embodiment of the present disclosure provides a data processing apparatus, including:
请求接收模块,用于接收终端发送的数据处理请求;a request receiving module for receiving a data processing request sent by the terminal;
种子数据生成模块,用于根据所述数据处理请求生成种子数据;a seed data generation module for generating seed data according to the data processing request;
处理结果生成模块,用于根据所述种子数据和预设的第一处理结果生成数据处理结果;a processing result generating module, configured to generate a data processing result according to the seed data and a preset first processing result;
发送模块,用于发送所述数据处理结果至所述第一终端。A sending module, configured to send the data processing result to the first terminal.
第四方面,本公开实施例提供一种数据处理装置,包括:In a fourth aspect, an embodiment of the present disclosure provides a data processing apparatus, including:
请求发送模块,用于发送数据处理请求至服务端;The request sending module is used to send data processing requests to the server;
处理结果接收模块,用于接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的第一处理结果;a processing result receiving module, configured to receive multiple first processing result intervals sent by the server and first processing results corresponding to the multiple first processing result intervals;
待处理数据生成模块,用于生成待处理数据;A pending data generation module for generating pending data;
处理结果获取模块,用于根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;A processing result obtaining module, configured to obtain the data processing 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 result;
显示模块,用于显示所述待处理数据所对应的数据处理结果。The display module is used for displaying the data processing result corresponding to the data to be processed.
第五方面,本公开实施例提供一种电子设备,包括:至少一个处理器;以及,In a fifth aspect, embodiments of the present disclosure provide an electronic device, including: at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有能被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述第一方面中的任一所述的方法。a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one process The device is capable of performing the method of any one of the preceding first aspects.
第六方面,本公开实施例提供一种非暂态计算机可读存储介质,其特征在于,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行前述第一方面中的任一所述的方法。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 cause a computer to execute the foregoing first aspect. of any of the methods described.
本公开实施例公开了一种数据处理方法、装置、电子设备和计算机可读存储介质。其中该数据处理方法包括:接收终端发送的数据处理请求;根据所述数据处理请求生成种子数据;根据所述种子数据和预设的第一处理结果生成数据处理结果;发送所述数据处理结果至所述终端。上述方法通过种子数据以及预设的处理结果预先生成处理结果,解决了生成数据容易被篡改的技术问题。Embodiments of the present disclosure disclose a data processing method, apparatus, 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; sending the data processing result to the terminal. The above method generates the processing result in advance by using the seed data and the preset processing result, which solves the technical problem that the generated data is easily tampered with.
上述说明仅是本公开技术方案的概述,为了能更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为让本公开的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solutions of the present disclosure. In order to understand the technical means of the present disclosure more clearly, it can be implemented according to the content of the description, and to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand , the following specific preferred embodiments, and in conjunction with the accompanying drawings, are described in detail as follows.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
图1为本公开实施例提供的数据处理方法的流程示意图;FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的数据处理方法中生成处理结果的具体实施方式的流程示意图;2 is a schematic flowchart of a specific implementation manner of generating a processing result in a data processing method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的数据处理方法的进一步的流程示意图;FIG. 3 is a further schematic flowchart of the data processing method provided by an embodiment of the present disclosure;
图4为公开另一个实施例提供的数据处理方法实施例的流程示意图;4 is a schematic flowchart of an embodiment of a data processing method for disclosing another embodiment;
图5为本公开实施例提供的数据处理方法的应用场景示意图;FIG. 5 is a schematic diagram of an application scenario of the data processing method provided by an embodiment of the present disclosure;
图6为本公开实施例提供的数据处理装置的实施例的结构示意图;FIG. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present disclosure;
图7为本公开另一实施例提供的数据处理装置的实施例的结构示意图;FIG. 7 is a schematic structural diagram of an embodiment of a data processing apparatus provided by another embodiment of the present disclosure;
图8为根据本公开实施例提供的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of 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 protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。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. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "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". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that 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 of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.
图1为本公开实施例提供的数据处理方法实施例的流程图,本实施例提供的该数据处理方法可以由一数据处理装置来执行,该数据处理装置可以实现为软件,或者实现为软件和硬件的组合,该数据处理装置可以集成设置在数据处理系统中的某设备中,比如数据处理服务器或者数据处理终端设备中。如图1所示,该方法包括如下步骤:1 is a flowchart of an embodiment of a data processing method provided by an embodiment of the present disclosure. The data processing method provided by this embodiment may be executed by a data processing apparatus, and the data processing apparatus may be implemented as software, or as software and A combination of hardware, the data processing apparatus can be integrated in a certain device in a data processing system, such as a data processing server or a data processing terminal device. As shown in Figure 1, the method includes the following steps:
步骤S101,接收终端发送的数据处理请求;Step S101, receiving a data processing request sent by a terminal;
所述数据处理请求由终端中的客户端或者终端本身生所述数据处理请求均由终端发送。如图1中的终端101发起一个数据处理请求,服务端通过 API服务接收该请求,由此可以得知终端101上启动了数据处理。此时,终端101不需要等待服务端的处理结果,其可以直接在本地执行数据处理的过程。如在游戏场景中,终端101启动了游戏,此时只需要发送一个开启游戏的请求,通知服务端本地启动了游戏即可。The data processing request is generated by the client in the terminal or the terminal itself, and the data processing request is sent by the terminal. As shown in FIG. 1 , the terminal 101 initiates a data processing request, and the server receives the request through the API service, from which it can be known that data processing is started on the terminal 101 . At this time, the terminal 101 does not need to wait for the processing result of the server, and it can directly execute the process of data processing locally. For example, in the game scenario, the terminal 101 starts the game, and only needs to send a request to start the game at this time to notify the server that the game is started locally.
步骤S102,根据所述数据处理请求生成种子数据;Step S102, generating seed data according to the data processing request;
在该步骤中,生成与所述终端相关的种子数据,以唯一标识本次数据处理。In this step, seed data related to the terminal is generated to uniquely identify this data processing.
可选的,所述数据处理请求中包括所述终端的标识,所述步骤S102包括:Optionally, the data processing request includes the identifier of the terminal, and the step S102 includes:
根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
可选的,所述种子数据可以使用终端的标识和当前的系统时间做哈希处理得到的哈希值作为所述种子数据。可选的,所述终端的标识为终端用户的ID或者终端的MAC地址等等。这样由于终端的标识唯一、时间唯一,此处的时间唯一是指对于同一个终端来说,其每次发送数据处理请求的时间是唯一的,没有任何两次数据处理请求的时间是相同的,所以通过每个处理请求所产生的种子数据均不相同。Optionally, the seed data may use a hash value obtained by hashing the identifier of the terminal and the current system time as the seed data. Optionally, the identifier of the terminal is the ID of the terminal user or the MAC address of the terminal or the like. In this way, due to the unique identification of the terminal and the unique time, the unique time here means that for the same terminal, the time it sends a data processing request is unique each time, and no two data processing requests have the same time. Therefore, the seed data generated by each processing request is different.
步骤S103,根据所述种子数据和预设的第一处理结果生成数据处理结果;Step S103, generating a data processing result according to the seed data and a preset first processing result;
可选的,所述步骤S103包括:Optionally, the step S103 includes:
步骤S201,根据预设的多个第一处理结果生成多个第一处理结果区间;Step S201, generating a plurality of first processing result intervals according to a plurality of preset first processing results;
步骤S202,根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
在一个实施例中,所述数据的处理结果是预先设置好的,并且位于一定的范围内。以高尔夫游戏为例,用户在不同的时间点挥杆,高尔夫球的飞行距离不同,从用户开始游戏开始算,每个时间点对应一个飞行距离,这样通过连续的时间点可以得到一个连续的飞行距离区间。In one embodiment, the processing result of the data is preset and located within a certain range. Taking a golf game as an example, the user swings the golf ball at different time points, and the flight distance of the golf ball is different. From the time the user starts the game, each time point corresponds to a flight distance, so that a continuous flight can be obtained through consecutive time points. distance interval.
在步骤S201中,根据所述预设的多个第一处理结果所对应的时间点将所述预设的多个第一处理结果划分到多个第一处理结果区间中;其中每个第一处理结果区间中包括该第一处理结果区间中的最小第一处理结果和最大第一处理结果。所述预设的多个第一处理结果即为进行数据处理所能得到的 所有的处理结果,所述多个预设的多个第一处理结果与多个待处理数据的值相关,如待处理数据为点击位置或者点击时间等。通过所述多个待处理数据将所述预设的多个第一处理结果划分为多个第一处理结果区间。如在上述高尔夫游戏中,以用户点击屏幕的时间作为挥杆的时间,这个点击时间是连续的,如从t0到tn之间的时间均可以作为点击时间,则可以将点击时间划分为多个区间,如[t0,t1),[t1,t2),……[tn-1,tn),这样,对每个时间点可以对应到一个预设的飞行距离,则可以对应生成多个预设的飞行距离的区间,即多个第一处理结果区间。每个区间内都有一个最大的飞行距离和一个最小的飞行距离。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; The processing result interval includes the smallest first processing result and the largest 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 performing data processing, and the multiple preset multiple first processing results are related to the values of multiple data to be processed. The processing data is click position or click time, etc. The preset multiple first processing results are divided into multiple first processing result intervals by using the multiple data to be processed. For example, in the above golf game, the time when the user clicks the screen is used as the swing time. This click time is continuous. If the time from t0 to tn can be used as the click time, the click time can be divided into multiple interval, such as [t0,t1),[t1,t2),...[tn-1,tn), in this way, each time point can correspond to a preset flight distance, and multiple presets can be generated correspondingly The interval of the flight distance, that is, a plurality of first processing result intervals. Each interval has a maximum flight distance and a minimum flight distance.
在步骤S202中,根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。可选的,在该步骤中,根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的处理结果。即通过种子数据在所述最小第一处理结果和最大第一处理结果之间确定一个在该区间中的预设的处理结果来表示该区间所对应的数据处理结果。设该区间中的最小第一处理结果为a,最大第一处理结果为b,所述种子数据为c,则该区间的处理结果为:In step S202, 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. Optionally, in this step, the processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest 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 through the seed data to represent the data processing result corresponding to the interval. Assuming that the minimum first processing result in this interval is a, the maximum first processing result is b, and the seed data is c, the processing result of this interval is:
a≤f(a,b,c)≤ba≤f(a,b,c)≤b
即通过一个函数f,其参数为a,b,c,其函数值总在a和b之间。这样,对于上述多个第一处理结果区间来说,在给定了划分方式的情况下,每个区间的最大第一处理结果和最小第一处理结果是确定的,而对于每个用户来说其ID和启动游戏的时间是确定的,则可以得到一个确定的c,这样可以得到一个确定的值作为所述第一处理结果区间所对应的数据处理结果。That is, through a function f, its parameters are a, b, c, and its function value is always between a and b. In this way, for the above-mentioned multiple first processing result intervals, the maximum first processing result and the minimum first processing result of each interval are determined when the division method is given, and for each user If its ID and the time to start the game are determined, a determined c can be obtained, and thus a determined value can be obtained as the data processing result corresponding to the first processing result interval.
可选的,所述步骤S202中,包括:根据所述种子数据计算出一个大小在所述最小第一处理结果和最大第一处理结果之间的随机数作为所述第一处理结果区间所对应的数据处理结果。即上述函数f为随机数生成函数,由于种子数据根据终端的标识生成,终端的标识包括终端的标识或用户的标识,因此不同的终端或者不同的用户的标识所产生的种子数据不同,其产生的随机数不同;又由于种子数据还根据启动数据处理时的时间生成,因此对于同一个终端或者用户来说,其每次启动数据处理所产生的种子数据也不 同,由此所产生的随机数也不同,这样对于不同的用户来说,其生成的种子数据不同;对于同一个用户来说,不同时间所生成的种子数据也不同。示例性的,所述随机数采用线性同余随机数生成方式,保证产生随机数的种子数据固定时,每次生成的随机数都相同,而当种子数据改变时,所生成的随机数不同。可选的,为了保证生成的随机数符合正态分布,利用中心极限定理可以近似生成符合正态分布的随机数。Optionally, the step S202 includes: calculating a random number with a size between the minimum first processing result and the maximum first processing result according to the seed data as the corresponding first processing result interval. data processing results. That is, the above-mentioned function f is a random number generating function. Since the seed data is generated according to the identification of the terminal, the identification of the terminal includes the identification of the terminal or the identification of the user. Therefore, the seed data generated by the identification of different terminals or different users is different, and it generates The random numbers 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 are also different, and the random number generated by this is also different. It is also different, so that for different users, the generated seed data is different; for the same user, the seed data generated at different times are also different. Exemplarily, the random number adopts a linear congruential random number generation method, which ensures that when the seed data for generating the random number is fixed, the random numbers generated each time are the same, and when the seed data changes, the generated random numbers are different. Optionally, in order to ensure that the generated random numbers conform to the normal distribution, the random numbers conforming to the normal distribution can be approximately generated by using the central limit theorem.
经过上述步骤,每个区间都对应一个数据处理结果,这样当待处理数据的值落在某个待处理数据的区间内时,使用该待处理数据的区间所对应的处理结果区间所对应的数据处理结果表示该待处理数据的数据处理结果。这样,由于处理结果是服务端产生的,且每次都不同,可以防止用户在终端上对处理结果进行篡改。After the above steps, each interval corresponds to a data processing result, so that when the value of the data to be processed falls within a certain interval of the data to be processed, the data corresponding to the interval of the processing result corresponding to the interval of the data to be processed is used The processing result indicates 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 the user from tampering with the processing result on the terminal.
步骤S104,发送所述数据处理结果至所述终端。Step S104, sending the data processing result to the terminal.
在该步骤中,将所述数据处理结果发送至发送所述数据处理请求的终端中。其中所述处理结果包括上述每个处理结果区间所对应的数据处理结果。In this step, the data processing result is sent to the terminal that sent the data processing request. The processing result includes the data processing result corresponding to each processing result interval.
通过上述步骤S101-步骤S104即完成了一次处理结果的预生成过程,即在接收到数据处理请求之后,服务端预先生成所有可能的数据处理结果,并将这些生成的数据处理结果发送至发送所述数据处理请求的终端。Through the above steps S101-S104, the pre-generating process of the processing result is completed, that is, after receiving the data processing request, the server generates all possible data processing results in advance, and sends these generated data processing results to the sender. The terminal that requests the data processing.
进一步的,为了后续能够使用对应的种子数据,在所述步骤S103之后,还包括:Further, in order to be able to use the corresponding seed data later, after the step S103, it also includes:
存储所述种子数据。The seed data is stored.
在该步骤中,将所述种子数据存储起来,当后续接收到待处理数据时,可以使用该种子数据生成所述待处理数据的处理结果。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 a processing result of the data to be processed.
进一步的,上述数据处理方法,还包括:Further, the above data processing method also includes:
步骤S301,接收所述终端发送的待处理数据;Step S301, receiving data to be processed sent by the terminal;
步骤S302,获取所述种子数据;Step S302, obtaining the seed data;
步骤S303,根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
步骤S304,根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。Step S304: Acquire a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
在步骤S301中,服务端接收客户端发送的待处理数据。示例性的,如 上述高尔夫游戏场景中,所述待处理数据即为用户点击屏幕触发挥杆的时间,该时间例如是开始游戏之后的2秒时刻,则客户端将该挥杆时间发送到服务端进行处理以得到高尔夫球的飞行距离。In step S301, the server receives the data to be processed sent by the client. Exemplarily, as in the above golf game scenario, the data to be processed is the time when the user clicks on the screen to touch the golf club. This time is, for example, 2 seconds after the game starts, and the client sends the golf swing time to the service. The end is processed to obtain the flight distance of the golf ball.
在步骤S302中,当服务端接收到所述处理数据之后,获取存储的种子数据,所述种子数据为在步骤S102中生成的种子数据,即本次数据处理所使用的种子数据。具体到上述应用场景中,即该用户本局高尔夫游戏中所生成的种子数据。In step S302, after receiving the processing data, the server obtains the stored seed data, where the seed data is the seed data generated in step S102, that is, the seed data used in this data processing. Specifically, in the above application scenario, that is, the seed data generated in the golf game of the user in this round.
在步骤S303中,如步骤S103中一样,根据一样的划分规则将所述预处理结果划分成多个第一处理结果区间,根据所述种子数据生成每一个第一处理结果区间所对应的数据处理结果,其处理过程与步骤S103中一样,在此不再赘述。由于生成过程和所使用的种子数据一样,因此得到的每个第一处理结果区间所对应的数据处理结果也是一样的。In step S303, as in step S103, the preprocessing result is divided into a plurality of first processing result intervals according to the same dividing rule, and the data processing corresponding to each first processing result interval is generated according to the seed data As a result, the processing procedure is the same as that in step S103, which is not repeated here. Since the generation process is the same as the used seed data, the obtained data processing results corresponding to each first processing result interval are also the same.
在步骤S304中,将所述处理数据与处理数据的区间进行对比。示例性的,如上述高尔夫游戏,将用户的挥杆时间T与时间区间[t0,t1),[t1,t2),……[tn-1,tn)进行匹配,判断T落入那个时间区间中,而每个时间区间又对应一个高尔夫球的飞行距离区间即第一处理结果区间。则通过处理数据可以得到与之对应的第一处理结果区间,而每个第一处理结果区间都由一个数据处理结果表示,则可以得到所述处理数据的数据处理结果。由于该数据处理结果实际上是通过种子数据预先生成的,每次启动数据处理所生成的种子数据都不同,因此每次的数据处理结果也不同,因此该数据处理结果无法在本地篡改。In step S304, the processing data is compared with the interval of the processing data. Exemplarily, as in the above golf game, the user's swing time T is matched with the time interval [t0, t1), [t1, t2), ... [tn-1, tn), and it is determined that T falls within the time interval , and each time interval corresponds to the flight distance interval of a golf ball, that is, the first processing result interval. Then, the corresponding first processing result interval can be obtained by processing the data, and each first processing result interval is represented by a data processing result, so that the data processing result of the processing data can be obtained. Since the data processing result is actually pre-generated by the 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 locally.
进一步的,所述方法还包括:Further, the method also includes:
将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排序得到数据处理结果的排序结果;Sorting the data processing results and the data processing results corresponding to other data to be processed to obtain the sorting results of the data processing results;
发送所述排序结果至所述终端。Send the sorting result to the terminal.
示例性的,在游戏场景下,服务端会得到多个客户端或终端或用户的处理结果,即游戏成绩,此时服务端将这些处理结果进行排序得到排序结果,即游戏成绩榜单,存储所述排序结果,并在客户端请求所述排序结果的时候发送所述处理结果排序结果。即当用户想查看榜单时,可以通过服务端获取所述榜单。Exemplarily, in a game scenario, the server will obtain the processing results of multiple clients or 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, and store the results. the sorting result, and sending the processing result sorting result when the client requests the sorting result. That is, when the user wants to view the list, the list can be obtained through the server.
可以理解的,上述方法还可以直接保存所生成的每个第一处理结果区间所对应的数据处理结果,这样在接收到待处理的数据时可以直接给出处理结果而不需要再进行计算,可以节省计算资源;而保存种子数据,由于种子数据较小,则可以节省存储资源。可以根据实际需要来选择保存种子数据或者保存处理结果,在此不再赘述。It can be understood that the above method can also directly save the generated data processing results corresponding to each first processing result interval, so that when the data to be processed is received, the processing results can be directly given without further calculation. Save computing resources; and save seed data, because the seed data is small, you can save storage resources. You can choose to save the seed data or save the processing result according to actual needs, which will not be repeated here.
图4为本公开另一个实施例提供的数据处理方法实施例的流程图,本实施例提供的该数据处理方法可以由一数据处理装置来执行,该数据处理装置可以实现为软件,或者实现为软件和硬件的组合,该数据处理装置可以集成设置在数据处理系统中的某设备中,数据处理终端设备中。如图4所示,该方法包括如下步骤:FIG. 4 is a flowchart of an embodiment of a data processing method provided by another embodiment of the present disclosure. The data processing method provided by this embodiment may be executed by a data processing apparatus, and the data processing apparatus may be implemented as software, or implemented as Combination of software and hardware, the data processing device can be integrated and set in a certain device in the data processing system, in the data processing terminal device. As shown in Figure 4, the method includes the following steps:
步骤S401,发送数据处理请求至服务端;Step S401, sending a data processing request to the server;
在该步骤中,终端向服务端发送数据处理请求。例如,用户在终端启动了游戏,此时终端会向服务端发送数据处理请求,以请求服务端的服务。可选的,所述数据处理请求中包括生成所述数据处理请求的终端的标识或者使用所述终端的用户的标识,以及生成所述数据处理请求的时间。In this step, the terminal sends a data processing request to the server. For example, when the 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 identification of the terminal that generated the data processing request or the identification of the user using the terminal, and the time when the data processing request was generated.
步骤S402,接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;Step S402, receiving multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
在该步骤中,接收步骤S104所发送的数据处理结果。其中包括所产生的多个第一处理结果区间以及每个第一处理结果区间所对应的数据处理结果。这样,在本地就得到了服务端生成的所有可能的数据处理结果,该数据处理结果在服务端是可以再次生成的,因此无法在本地篡改。In this step, the data processing result sent in step S104 is received. It includes a plurality of generated first processing result intervals and a data processing result 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 regenerated on the server, so they cannot be tampered locally.
步骤S403,生成待处理数据;Step S403, generating data to be processed;
示例性的,在上述高尔夫游戏中,当用户启动游戏并点击屏幕,产生一个挥杆时间,即待处理数据。Exemplarily, in the above golf game, when the user starts the game and clicks on the screen, a swing time is generated, that is, data to be processed.
步骤S404,根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;Step S404, obtaining 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;
由于已经得到所有可能的数据处理结果,因此在该步骤中,可以直接根据待处理数据得到其对应的数据处理结果,其处理过程与步骤S303中相似,只是不需要再次划分区间,直接根据时间区间对应第一处理结果区间,并根 据第一处理结果区间得到数据处理结果即可。Since all possible data processing results have been obtained, in this step, the corresponding data processing results can be obtained directly according to 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, and the time interval can be directly obtained according to the time interval. Corresponding to the first processing result interval, and obtaining the data processing result according to the first processing result interval.
步骤S405,显示所述待处理数据所对应的数据处理结果。Step S405, displaying the data processing result corresponding to the data to be processed.
在该步骤中,直接显示所述待处理数据所对应的数据处理结果,而不用等服务器反馈处理结果。因此在网络条件较差的时候,也可以快速得到数据处理结果。如在上述高尔夫游戏的场景中,通常情况是需要将挥杆时间上传到服务端,服务端计算高尔夫球的飞行距离之后将结果传回给客户端,如果中间任何一个时段网络出现问题,则可能出现无法得到游戏结果的情况。而本申请中,在还没有得到待处理数据的时候,服务端就已经生成了所有可能的数据处理结果,并将所有可能的所述数据处理结果传到客户端,这样即使在生成待处理数据之后网络条件较差,客户端也可以立刻得到待处理数据所对应的数据处理结果。In this step, the data processing result corresponding to the data to be processed is directly displayed without waiting for the server to feed back the processing result. Therefore, when the network conditions are poor, the data processing results can be obtained quickly. For example, in the above 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 sends the result back to the client. There is a case where the game result cannot be obtained. In the present application, before the data to be processed has been obtained, the server has already generated all possible data processing results, and transmitted all possible data processing results to the client, so that even when the data to be processed is generated After the network conditions are poor, the client can also immediately obtain the data processing results corresponding to the data to be processed.
进一步的,所述方法还包括:Further, the method also includes:
发送所述待处理数据至所述服务端;sending the data to be processed to the server;
接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。Receive the sorting result of the data processing results of the data to be processed sent by the server.
在得到所述待处理数据之后,虽然终端已经得到数据处理结果,但是此时服务端还不知道数据处理结果,因此客户端还需要将待处理数据发送给服务端,服务端通过所述待处理数据在服务端也生成同样的数据处理结果,并将所述数据处理结果跟其他数据处理结果进行排序,如上述实施例所述,在此不再赘述。之后终端可以请求并请接收所述处数据理结果排序结果,并将所述排序结果显示在显示装置上。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 also needs to send the data to be processed to the server. The data also generates the same data processing result on the server side, and sorts the data processing result with other data processing results, as described in the above-mentioned embodiment, and will not be repeated here. Afterwards, the terminal may request and receive the sorting result of the data processing result, and display the sorting result on the display device.
图5为本公开实施例中的应用场景示意图。在该应用场景中所处理的数据为游戏数据。如图5所示,在所述应用场景中包括客户端、服务端以及存储器,其中服务端包括接口服务、游戏服务和排行榜服务,所述服务端的多个服务可以分别独立部署。客户端中安装有游戏,如高尔夫游戏,则当用户启动一局游戏时,客户端向接口服务发起游戏请求,接口服务请求游戏服务以生成本局游戏的预生成结果,其生成预生成结果的过程如上述步骤S101-步骤104所记载,在此不再赘述;之后游戏服务将种子数据存储到存储器中,所述存储器中的数据一般是数据库的形式存储,典型的如redis;之后游戏服务通过接口服务将所生成的处理结果区间和处理结果都发送给客户端;客户端接收到所述处理结果之后,根据用户的触发产生挥杆时间数据,并根据 该挥杆时间直接从服务端发送来的处理结果中得到与该时间对应的处理结果,即游戏成绩,并在终端设备的显示装置上显示出来;此时客户端将挥杆时间通过接口服务发送给游戏服务,游戏服务继续生成处理结果区间和处理结果,并根据挥杆时间得到待处理数据的处理结果,即用户的游戏成绩,并将该成绩发送给排行榜服务以对所述游戏成绩进行排行,并存储在所述存储器中;之后当用户需要查看排行榜时,直接通过排行榜服务拉取存储其中的排行榜,并显示在终端的显示装置上。FIG. 5 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. As shown in FIG. 5 , the application scenario includes a client, a server, and a storage, wherein the server includes an interface service, a game service, and a ranking service, and multiple services of the server can be independently deployed. There is a game installed in the client, such as a golf game, when the user starts a game, the client initiates a game request to the interface service, the interface service requests the game service to generate the pre-generated result of the game, and the process of generating the pre-generated result As recorded in the above steps S101 to 104, the details are not repeated here; after that, the game service stores the seed data in the memory, and the data in the memory is generally stored in the form of a database, typically such as redis; after that, the game service passes the interface The service sends the generated processing result interval and processing result to the client; after the client receives the processing result, it generates swing time data according to the user's trigger, and sends the data directly from the server according to the swing time. The processing result corresponding to the time, that is, the game score, is obtained from the processing result, and displayed on the display device of the terminal device; at this time, the client 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 obtain the processing result of the data to be processed according to the swing time, that is, the user's game score, and send the score to the ranking service to rank the game score, and store it in the memory; When the user needs to view the leaderboard, the leaderboard can be directly pulled and stored through the leaderboard service, and displayed on the display device of the terminal.
由此,由于每次的数据处理结果是在服务端生成的,且数据处理结果在一定的区间中是随机的,因此无法在客户端处对数据处理结果进行篡改。并且由于在生成待处理数据之前就已经得到了所有可能存在的数据处理结果,因此当生成待处理数据时可以快速得到其对应的数据处理结果,而不需要再等服务端的反馈,提高了处理速度。Therefore, since each data processing result is generated on the server side, and the data processing result is random in a certain interval, the data processing result cannot be tampered with at the client side. And because all possible data processing results have been obtained before the data to be processed is generated, the corresponding data processing results can be quickly obtained when the data to be processed is generated, without waiting for feedback from the server, which improves the processing speed. .
本公开实施例公开了一种数据处理方法、装置、电子设备和计算机可读存储介质。其中该数据处理方法包括:接收终端发送的数据处理请求;根据所述数据处理请求生成种子数据;根据所述种子数据和预设的第一处理结果生成数据处理结果;发送所述数据处理结果至所述终端。上述方法通过种子数据以及预设的处理结果预先生成处理结果,解决了生成数据容易被篡改的技术问题。Embodiments of the present disclosure disclose a data processing method, apparatus, 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; sending the data processing result to the terminal. The above method generates the processing result in advance by using the seed data and the preset processing result, which solves the technical problem that the generated data is easily tampered with.
在上文中,虽然按照上述的顺序描述了上述方法实施例中的各个步骤,本领域技术人员应清楚,本公开实施例中的步骤并不必然按照上述顺序执行,其也可以倒序、并行、交叉等其他顺序执行,而且,在上述步骤的基础上,本领域技术人员也可以再加入其他步骤,这些明显变型或等同替换的方式也应包含在本公开的保护范围之内,在此不再赘述。In the above, although the steps in the above method embodiments are described in the above order, it should be clear to those skilled in the art that the steps in the embodiments of the present disclosure are not necessarily executed in the above order, and may also be performed in reverse order, parallel, interleaved and other steps are performed in other order, and, on the basis of the above steps, those skilled in the art can also add other steps, these obvious modifications or equivalent replacement modes should also be included within the protection scope of the present disclosure, and will not be repeated here. .
图6为本公开实施例提供的数据处理装置实施例的结构示意图,如图6所示,该装置600包括:请求接收模块601、种子数据生成模块602、处理结果生成模块603和发送模块604。其中,FIG. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus 600 includes: a request receiving module 601 , a seed data generating module 602 , a processing result generating module 603 and a sending module 604 . in,
请求接收模块601,用于接收终端发送的数据处理请求;A request receiving module 601, configured to receive a data processing request sent by a terminal;
种子数据生成模块602,用于根据所述数据处理请求生成种子数据;a seed data generation module 602, configured to generate seed data according to the data processing request;
处理结果生成模块603,用于根据所述种子数据和预设的第一处理结果生成数据处理结果;a processing result generating module 603, configured to generate a data processing result according to the seed data and a preset first processing result;
发送模块604,用于发送所述数据处理结果至所述终端。A sending module 604, configured to send the data processing result to the terminal.
进一步的,所述数据处理请求中包括所述终端的标识,所述种子数据生成模块602,还用于:Further, the data processing request includes the identifier of the terminal, and the seed data generation module 602 is further used for:
根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
进一步的,所述处理结果生成模块603,还用于:Further, the processing result generation module 603 is also used for:
根据预设的多个第一处理结果生成多个第一处理结果区间;generating a plurality of first processing result intervals according to a plurality of preset first processing results;
根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
进一步的,所述处理结果生成模块603,还用于:Further, the processing result generation module 603 is also used for:
根据所述预设的多个第一处理结果所对应的时间点将所述预设的多个第一处理结果划分到多个第一处理结果区间中;其中每个第一处理结果区间中包括该第一处理结果区间中的最小第一处理结果和最大第一处理结果。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.
进一步的,所述处理结果生成模块603,还用于:Further, the processing result generation module 603 is also used for:
根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。The data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
进一步的,所述处理结果生成模块603,还用于:Further, the processing result generation module 603 is also used for:
根据所述种子数据计算出一个大小在所述最小第一处理结果和最大第一处理结果之间的随机数作为所述第一处理结果区间所对应的数据处理结果。A random number with 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.
进一步的,所述数据处理装置,还包括:Further, the data processing device also includes:
数据接收模块,用于接收所述终端发送的待处理数据;a data receiving module, configured to receive the data to be processed sent by the terminal;
种子数据获取模块,用于获取所述种子数据;a seed data acquisition module for acquiring the seed data;
第二处理结果生成模块,用于根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
第一处理结果获取模块,用于根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。A first processing result obtaining module, configured to obtain a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
进一步的,所述数据处理装置,还包括:Further, the data processing device also includes:
排序模块,用于将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排序得到数据处理结果的排序结果;a sorting module, configured to sort the data processing results and data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results;
排序结果发送模块,用于发送所述排序结果至所述终端。A sorting result sending module, configured to send the sorting result to the terminal.
图6所示装置可以执行图1-图3所示实施例的方法,本实施例未详细描述的部分,可参考对图1-图3所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图3所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 6 may execute the method of the embodiment shown in FIG. 1 to FIG. 3 . For parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 1 to FIG. 3 . For the execution process and technical effects of the technical solution, refer to the descriptions in the embodiments shown in FIG. 1 to FIG. 3 , which will not be repeated here.
图7为本公开实施例提供的数据处理装置实施例的结构示意图,如图7所示,该装置700包括:请求发送模块701、处理结果接收模块702、待处理数据生成模块703、处理结果获取模块704和显示模块705。其中,FIG. 7 is a schematic structural diagram of an embodiment of a data processing apparatus provided by an embodiment of the present disclosure. As shown in FIG. 7 , the apparatus 700 includes: a request sending module 701, a processing result receiving module 702, a to-be-processed data generating module 703, and a processing result obtaining module module 704 and display module 705. in,
请求发送模块701,用于发送数据处理请求至服务端;A request sending module 701, configured to send a data processing request to the server;
处理结果接收模块702,用于接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;A processing result receiving module 702, configured to receive multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
待处理数据生成模块703,用于生成待处理数据;a data to be processed generating module 703, configured to generate data to be processed;
处理结果获取模块704,用于根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;A processing result obtaining module 704, configured to obtain data 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 process result;
显示模块705,用于显示所述待处理数据所对应的数据处理结果。The display module 705 is configured to display the data processing result corresponding to the data to be processed.
进一步的,所述数据处理装置700,还包括:Further, the data processing apparatus 700 further includes:
待处理数据发送模块,用于发送所述待处理数据至所述服务端;a data sending module to be processed, configured to send the data to be processed to the server;
排序结果接收模块,用于接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。The sorting result receiving module is configured to receive the sorting result of the data processing result of the data to be processed sent by the server.
图7所示装置可以执行图4所示实施例的方法,本实施例未详细描述的部分,可参考对图4所示实施例的相关说明。该技术方案的执行过程和技术效果参见图4所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 7 may execute the method of the embodiment shown in FIG. 4 . For parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 4 . For the execution process and technical effect of the technical solution, refer to the description in the embodiment shown in FIG. 4 , which will not be repeated here.
下面参考图8,其示出了适于用来实现本公开实施例的电子设备800的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 8 , it shows a schematic structural diagram of an electronic device 800 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 8 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图8所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的 动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8 , an electronic device 800 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 801 that may be loaded into random access according to a program stored in a read only memory (ROM) 802 or from a storage device 808 Various appropriate actions and processes are executed by the programs in the 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 through a bus 804. An input/output (I/O) interface 805 is also connected to bus 804 .
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 807 of a computer, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. Communication means 809 may allow electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 8 shows an electronic device 800 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 809, or from the storage device 808, or from the ROM 802. When the computer program is executed by the processing apparatus 801, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以 是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure 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 can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium Communication (eg, a communication network) interconnects. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取输入图像以及第一文本;抽取所述输入图像的特征得到输入图像的特征向量;对所述第一文本进行编码得到第一文本的特征向量;根据所述输入图像的特征向量和所述第一文本的特征向量得到联合特征向量;将所述联合特征向量进行解码生成第二文本。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires the input image and the first text; extracts the features of the input image to obtain the input image the feature vector of the first text; encode the first text to obtain the feature vector of the first text; obtain the joint feature vector according to the feature vector of the input image and the feature vector of the first text; decode the joint feature vector Generate second text.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、 程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above 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 Logical Devices (CPLDs) and more.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。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 connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,提供了一种数据处理方法,包括:According to one or more embodiments of the present disclosure, there is provided a data processing method, comprising:
接收终端发送的数据处理请求;Receive the data processing request sent by the 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;
发送所述数据处理结果至所述终端。Send the data processing result to the terminal.
进一步的,所述数据处理请求中包括所述终端的标识,所述根据所述数据处理请求生成种子数据包括:Further, the data processing request includes the identifier of the terminal, and the generating seed data according to the data processing request includes:
根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
进一步的,所述根据所述种子数据和预设的第一处理结果生成数据处理结果,包括:Further, generating a data processing result according to the seed data and a preset first processing result includes:
根据预设的多个第一处理结果生成多个第一处理结果区间;generating a plurality of first processing result intervals according to a plurality of preset first processing results;
根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
进一步的,所述根据预设的多个第一处理结果生成多个第一处理结果区间,包括:Further, generating a plurality of first processing result intervals according to a plurality of preset first processing results includes:
根据所述预设的多个第一处理结果所对应的时间点将所述预设的多个第一处理结果划分到多个第一处理结果区间中;其中每个第一处理结果区间中包括该第一处理结果区间中的最小第一处理结果和最大第一处理结果。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.
进一步的,所述根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果,包括:Further, 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 includes:
根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。The data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
进一步的,所述根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果,包括:Further, 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 with 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.
进一步的,所述方法还包括:Further, the method also includes:
接收所述终端发送的待处理数据;receiving the pending data sent by the terminal;
获取所述种子数据;obtain the seed data;
根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。Acquire data processing results corresponding to the data to be processed according to the data to be processed and the plurality of first processing result intervals.
进一步的,所述方法还包括:Further, the method also includes:
将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排 序得到数据处理结果的排序结果;Sorting the data processing results corresponding to the data processing results and other data to be processed obtains the sorting results of the data processing results;
发送所述排序结果至所述终端。Send the sorting result to the terminal.
根据本公开的一个或多个实施例,提供了一种数据处理方法,包括:According to one or more embodiments of the present disclosure, there is provided a data processing method, comprising:
发送数据处理请求至服务端;Send data processing requests to the server;
接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;receiving multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
生成待处理数据;generate data to be processed;
根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;Acquiring data processing results 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;
显示所述待处理数据所对应的数据处理结果。The data processing result corresponding to the data to be processed is displayed.
进一步的,所述方法还包括:Further, the method also includes:
发送所述待处理数据至所述服务端;sending the data to be processed to the server;
接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。Receive the sorting result of the data processing results of the data to be processed sent by the server.
根据本公开的一个或多个实施例,提供了一种数据处理装置,包括:According to one or more embodiments of the present disclosure, there is provided a data processing apparatus, comprising:
请求接收模块,用于接收终端发送的数据处理请求;a request receiving module for receiving a data processing request sent by the terminal;
种子数据生成模块,用于根据所述数据处理请求生成种子数据;a seed data generation module for generating seed data according to the data processing request;
处理结果生成模块,用于根据所述种子数据和预设的第一处理结果生成数据处理结果;a processing result generating module, configured to generate a data processing result according to the seed data and the preset first processing result;
发送模块,用于发送所述数据处理结果至所述第一终端。A sending module, configured to send the data processing result to the first terminal.
进一步的,所述数据处理请求中包括所述终端的标识,所述种子数据生成模块,还用于:Further, the data processing request includes the identifier of the terminal, and the seed data generation module is also used for:
根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
进一步的,所述处理结果生成模块,还用于:Further, the processing result generation module is also used for:
根据预设的多个第一处理结果生成多个第一处理结果区间;generating a plurality of first processing result intervals according to a plurality of preset first processing results;
根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
进一步的,所述处理结果生成模块,还用于:Further, the processing result generation module is also used for:
根据所述预设的多个第一处理结果所对应的时间点将所述预设的多个第一处理结果划分到多个第一处理结果区间中;其中每个第一处理结果区间 中包括该第一处理结果区间中的最小第一处理结果和最大第一处理结果。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.
进一步的,所述处理结果生成模块,还用于:Further, the processing result generation module is also used for:
根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。The data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
进一步的,所述处理结果生成模块,还用于:Further, the processing result generation module is also used for:
根据所述种子数据计算出一个大小在所述最小第一处理结果和最大第一处理结果之间的随机数作为所述第一处理结果区间所对应的数据处理结果。A random number with 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.
进一步的,所述数据处理装置,还包括:Further, the data processing device also includes:
数据接收模块,用于接收所述终端发送的待处理数据;a data receiving module, configured to receive the data to be processed sent by the terminal;
种子数据获取模块,用于获取所述种子数据;a seed data acquisition module for acquiring the seed data;
第二处理结果生成模块,用于根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
第一处理结果获取模块,用于根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。A first processing result obtaining module, configured to obtain a data processing result corresponding to the to-be-processed data according to the to-be-processed data and the plurality of first processing result intervals.
进一步的,所述数据处理装置,还包括:Further, the data processing device also includes:
排序模块,用于将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排序得到数据处理结果的排序结果;a sorting module, configured to sort the data processing results and data processing results corresponding to other data to be processed to obtain a sorting result of the data processing results;
排序结果发送模块,用于发送所述排序结果至所述终端。A sorting result sending module, configured to send the sorting result to the terminal.
根据本公开的一个或多个实施例,提供了一种数据处理装置,包括:According to one or more embodiments of the present disclosure, there is provided a data processing apparatus, comprising:
请求发送模块,用于发送数据处理请求至服务端;The request sending module is used to send data processing requests to the server;
处理结果接收模块,用于接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;a processing result receiving module, configured to receive a plurality of first processing result intervals sent by the server and data processing results corresponding to the plurality of first processing result intervals;
待处理数据生成模块,用于生成待处理数据;A pending data generation module for generating pending data;
第二处理结果获取模块,用于根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;A second processing result obtaining module, configured to obtain the data 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 data processing results;
显示模块,用于显示所述待处理数据所对应的数据处理结果。The display module is used for displaying the data processing result corresponding to the data to be processed.
进一步的,所述数据处理装置,还包括:Further, the data processing device also includes:
待处理数据发送模块,用于发送所述待处理数据至所述服务端;a data sending module to be processed, configured to send the data to be processed to the server;
排序结果接收模块,用于接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。The sorting result receiving module is configured to receive the sorting result of the data processing result of the data to be processed sent by the server.
根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有能被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述第一方面中的任一所述数据处理方法。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 data that can be accessed by the at least one processor Instructions executed by at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any one of the data processing methods of the first aspect above.
根据本公开的一个或多个实施例,提供了一种非暂态计算机可读存储介质,其特征在于,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行前述第一方面中的任一所述数据处理方法。According to one or more embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the foregoing Any one of the data processing methods in the first aspect.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.

Claims (14)

  1. 一种数据处理方法,其特征在于,包括:A data processing method, comprising:
    接收终端发送的数据处理请求;Receive the data processing request sent by the 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;
    发送所述数据处理结果至所述终端。Send the data processing result to the terminal.
  2. 如权利要求1所述的数据处理方法,其特征在于,所述数据处理请求中包括所述终端的标识,所述根据所述数据处理请求生成种子数据包括:The data processing method according to claim 1, wherein the data processing request includes an identifier of the terminal, and the generating the seed data according to the data processing request comprises:
    根据所述终端的标识以及所述数据处理请求的时间生成所述种子数据。The seed data is generated according to the identification of the terminal and the time of the data processing request.
  3. 如权利要求1所述的数据处理方法,其特征在于,所述根据所述种子数据和预设的第一处理结果生成数据处理结果,包括:The data processing method according to claim 1, wherein the generating a data processing result according to the seed data and a preset first processing result comprises:
    根据预设的多个第一处理结果生成多个第一处理结果区间;generating a plurality of first processing result intervals according to a plurality of preset first processing results;
    根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果。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.
  4. 如权利要求3所述的数据处理方法,其特征在于,所述根据预设的多个第一处理结果生成多个第一处理结果区间,包括:The data processing method according to claim 3, wherein 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; wherein each first processing result interval includes The minimum first processing result and the maximum first processing result in the first processing result interval.
  5. 如权利要求4所述的数据处理方法,其特征在于,所述根据所述种子数据和所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果,包括:The data processing method according to claim 4, wherein 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 comprises:
    根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果。The data processing result corresponding to the first processing result interval is calculated according to the seed data and the smallest first processing result and the largest first processing result in the first processing result interval.
  6. 如权利要求5所述的数据处理方法,其特征在于,所述根据所述种子数据和所述第一处理结果区间中的最小第一处理结果和最大第一处理结果计算该第一处理结果区间所对应的数据处理结果,包括:The data processing method according to claim 5, wherein 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 The corresponding data processing results include:
    根据所述种子数据计算出一个大小在所述最小第一处理结果和最大第一处理结果之间的随机数作为所述第一处理结果区间所对应的数据处理结果。A random number with 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.
  7. 如权利要求1所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 1, wherein the method further comprises:
    接收所述终端发送的待处理数据;receiving the pending data sent by the terminal;
    获取所述种子数据;obtain the seed data;
    根据所述种子数据以及所述多个第一处理结果区间生成每个第一处理结果区间所对应的数据处理结果;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;
    根据所述待处理数据和所述多个第一处理结果区间获取所述待处理数据对应的数据处理结果。The data processing result corresponding to the data to be processed is acquired according to the data to be processed and the plurality of first processing result intervals.
  8. 如权利要求7所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 7, wherein the method further comprises:
    将所述数据处理结果与其他待处理数据所对应的数据处理结果进行排序得到数据处理结果的排序结果;Sorting the data processing results and the data processing results corresponding to other data to be processed to obtain the sorting results of the data processing results;
    发送所述排序结果至所述终端。Send the sorting result to the terminal.
  9. 一种数据处理方法,其特征在于,包括:A data processing method, comprising:
    发送数据处理请求至服务端;Send data processing requests to the server;
    接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果;receiving multiple first processing result intervals sent by the server and data processing results corresponding to the multiple first processing result intervals;
    生成待处理数据;generate data to be processed;
    根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;Acquiring data processing results 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;
    显示所述待处理数据所对应的数据处理结果。The data processing result corresponding to the data to be processed is displayed.
  10. 如权利要求9所述的数据处理方法,其特征在于,所述方法还包括:The data processing method according to claim 9, wherein the method further comprises:
    发送所述待处理数据至所述服务端;sending the data to be processed to the server;
    接收所述服务端发送的所述待处理数据的数据处理结果的排序结果。Receive the sorting result of the data processing results of the data to be processed sent by the server.
  11. 一种数据处理装置,其特征在于,包括:A data processing device, comprising:
    请求接收模块,用于接收终端发送的数据处理请求;a request receiving module for receiving a data processing request sent by the terminal;
    种子数据生成模块,用于根据所述数据处理请求生成种子数据;a seed data generation module for generating seed data according to the data processing request;
    处理结果生成模块,用于根据所述种子数据和预设的第一处理结果生成数据处理结果;a processing result generating module, configured to generate a data processing result according to the seed data and the preset first processing result;
    发送模块,用于发送所述数据处理结果至所述第一终端。A sending module, configured to send the data processing result to the first terminal.
  12. 一种数据处理装置,其特征在于,包括:A data processing device, comprising:
    请求发送模块,用于发送数据处理请求至服务端;The request sending module is used to send data processing requests to the server;
    处理结果接收模块,用于接收服务端发送的多个第一处理结果区间以及所述多个第一处理结果区间所对应的第一处理结果;a processing result receiving module, configured to receive multiple first processing result intervals sent by the server and first processing results corresponding to the multiple first processing result intervals;
    待处理数据生成模块,用于生成待处理数据;A pending data generation module for generating pending data;
    处理结果获取模块,用于根据所述待处理数据、所述多个第一处理结果区间以及所述多个第一处理结果区间所对应的数据处理结果获取所述待处理数据所对应的数据处理结果;A processing result obtaining module, configured to obtain the data processing 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 result;
    显示模块,用于显示所述待处理数据所对应的数据处理结果。The display module is used for displaying the data processing result corresponding to the data to be processed.
  13. 一种电子设备,包括:An electronic device comprising:
    存储器,用于存储计算机可读指令;以及memory for storing computer-readable instructions; and
    处理器,用于运行所述计算机可读指令,使得所述处理器运行时实现根据权利要求1-10中任意一项所述的方法。A processor for executing the computer-readable instructions such that the processor, when executed, implements the method of any one of claims 1-10.
  14. 一种非暂态计算机可读存储介质,用于存储计算机可读指令,当所述计算机可读指令由计算机执行时,使得所述计算机执行权利要求1-10中任意一项所述的方法。A non-transitory computer-readable storage medium for storing computer-readable instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-10.
PCT/CN2021/114755 2020-09-01 2021-08-26 Data processing method and apparatus, and electronic device WO2022048490A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010904178.4 2020-09-01
CN202010904178.4A CN112163237A (en) 2020-09-01 2020-09-01 Data processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022048490A1 true WO2022048490A1 (en) 2022-03-10

Family

ID=73857384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114755 WO2022048490A1 (en) 2020-09-01 2021-08-26 Data processing method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112163237A (en)
WO (1) WO2022048490A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112163237A (en) * 2020-09-01 2021-01-01 北京字节跳动网络技术有限公司 Data processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649396A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Game level data sorting method, system and apparatus
US20180252540A1 (en) * 2017-03-03 2018-09-06 Nhn Entertainment Corporation Method and system for providing route guidance using navigation system
CN110177073A (en) * 2019-04-09 2019-08-27 北京奇艺世纪科技有限公司 Data processing method, device, system and computer readable storage medium
CN111131127A (en) * 2018-10-30 2020-05-08 武汉斗鱼网络科技有限公司 Communication method based on live broadcast platform and related device
CN112163237A (en) * 2020-09-01 2021-01-01 北京字节跳动网络技术有限公司 Data processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345602B (en) * 2013-06-14 2015-08-19 腾讯科技(深圳)有限公司 A kind of client-side code integrality detection, device and system
US9996679B2 (en) * 2016-05-03 2018-06-12 Pegasus Media Security, Llc Methods and apparatus for device authentication and secure data exchange between a server application and a device
CN107872315B (en) * 2017-07-28 2020-09-22 深圳和而泰智能控制股份有限公司 Data processing method and intelligent terminal
CN109584432B (en) * 2018-10-26 2020-06-30 阿里巴巴集团控股有限公司 Object selection method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649396A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Game level data sorting method, system and apparatus
US20180252540A1 (en) * 2017-03-03 2018-09-06 Nhn Entertainment Corporation Method and system for providing route guidance using navigation system
CN111131127A (en) * 2018-10-30 2020-05-08 武汉斗鱼网络科技有限公司 Communication method based on live broadcast platform and related device
CN110177073A (en) * 2019-04-09 2019-08-27 北京奇艺世纪科技有限公司 Data processing method, device, system and computer readable storage medium
CN112163237A (en) * 2020-09-01 2021-01-01 北京字节跳动网络技术有限公司 Data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112163237A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
WO2022262459A1 (en) Screen projection method and apparatus, and electronic device and storage medium
WO2020151599A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN109496419A (en) Document handling method, device and system
WO2022095954A1 (en) Data interaction method and apparatus based on live broadcast, and electronic device and readable medium
WO2021012952A1 (en) Message processing method, device and electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
WO2022095840A1 (en) Livestreaming room setup method and apparatus, electronic device, and storage medium
CN111163336B (en) Video resource pushing method and device, electronic equipment and computer readable medium
WO2020233168A1 (en) Network storage method and apparatus for picture type comment data, and electronic device and medium
WO2020220782A1 (en) Information sharing method and apparatus, and device and medium
WO2022048490A1 (en) Data processing method and apparatus, and electronic device
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
US11960703B2 (en) Template selection method, electronic device and non-transitory computer-readable storage medium
WO2022116864A1 (en) Information exchange method and apparatus and device
WO2023273576A1 (en) Abnormal request processing method and apparatus, electronic device and storage medium
WO2022194025A1 (en) Interactive video connection method and apparatus, and electronic device and storage medium
CN113420400B (en) Routing relation establishment method, request processing method, device and equipment
CN112040328B (en) Data interaction method and device and electronic equipment
CN111212296B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN114827682A (en) Screen projection method, system, equipment and storage medium
WO2022108521A1 (en) Model processing method and system
CN111367592B (en) Information processing method and device
CN111897620A (en) Interaction method and device and electronic equipment
CN112036822B (en) Interaction method and device based on color ropes, medium and electronic equipment
WO2022237428A1 (en) Method and apparatus for processing network request information, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21863555

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21863555

Country of ref document: EP

Kind code of ref document: A1