





技术领域technical field
本申请涉及数据处理领域,具体涉及到一种数据处理系统、方法、装置、设备及介质。The present application relates to the field of data processing, and in particular to a data processing system, method, device, equipment and medium.
背景技术Background technique
目前,诸多公司会开展线上游戏吸引用户参与,并为参与游戏的用户发放相应的奖励。在基于互联网的拼图游戏中,用户在规定时间内完成拼图,游戏的运营方会为用户发放相应的奖励。以九宫格为例,呈现在用户前面9个乱序方块,用户点击任意2个方块,会进行位置互换,直到拼出正确的顺序。每当拼图的位置发生变化时,客户端会向服务端发送当前的拼图状况,由服务端对于拼图游戏的结果进行判断。在游戏过程中,客户端会多次请求后端,需较多的传输资源,同时还导致游戏时延较长,用户体验差。At present, many companies will develop online games to attract users to participate, and issue corresponding rewards to users who participate in the games. In Internet-based jigsaw puzzle games, users complete the jigsaw puzzle within a specified time, and the operator of the game will issue corresponding rewards to users. Taking Jiugongge as an example, there are 9 out-of-order squares in front of the user. When the user clicks on any 2 squares, the positions will be swapped until the correct order is spelled out. Whenever the position of the jigsaw puzzle changes, the client will send the current jigsaw puzzle status to the server, and the server will judge the result of the jigsaw puzzle game. During the game, the client will request the backend many times, which requires more transmission resources, and also results in longer game delays and poor user experience.
发明内容Contents of the invention
本申请实施例提供一种数据处理系统、方法、装置、设备及介质,用以解决基于互联网的拼图游戏中需要较多的传输资源的问题。The embodiments of the present application provide a data processing system, method, device, device and medium, which are used to solve the problem that more transmission resources are required in Internet-based jigsaw puzzle games.
第一方面,本申请实施例提供一种数据处理系统,包括:客户端和服务端;In the first aspect, the embodiment of the present application provides a data processing system, including: a client and a server;
所述客户端用于:根据用户在用户界面上输入的第一操作确定出初始图片与宫格数;向所述服务端发送序列请求,其中所述序列请求包括所述宫格数;The client is used to: determine the initial picture and the grid number according to the first operation input by the user on the user interface; send a sequence request to the server, wherein the sequence request includes the grid number;
所述服务端用于:基于所述序列请求确定第一序列,所述第一序列包括按照次序排列的N个标识号,所述N个标识号与所述初始图片按照所述宫格数进行切分后得到的N个子图片一一对应;打乱所述第一序列得到第二序列;向所述客户端发送序列响应,所述序列响应中包括所述第一序列和所述第二序列;The server is configured to: determine a first sequence based on the sequence request, the first sequence includes N identification numbers arranged in order, and the N identification numbers and the initial picture are arranged according to the grid number The N sub-pictures obtained after segmentation correspond one-to-one; scramble the first sequence to obtain the second sequence; send a sequence response to the client, and the sequence response includes the first sequence and the second sequence ;
所述客户端还用于:根据所述宫格数将所述初始图片切分为N个子图片;根据所述第一序列确定所述N个子图片中每个子图片的标识号;根据所述第二序列确定所述N个子图片的初始显示位置,并按照所述初始显示位置在所述用户界面上显示所述N个子图片;The client is also used to: divide the initial picture into N sub-pictures according to the grid number; determine the identification number of each sub-picture in the N sub-pictures according to the first sequence; The second sequence determines the initial display positions of the N sub-pictures, and displays the N sub-pictures on the user interface according to the initial display positions;
所述客户端还用于执行:步骤1、接收所述用户在所述用户界面上输入的第二操作;步骤2、根据所述第二操作更新所述N个子图片在所述用户界面上的显示位置,根据更新后的显示位置确定第三序列;步骤3、判断是否满足结束条件,所述结束条件包括所述第三序列与所述第一序列相同,所述N个子图片在所述用户界面上的显示时长超过预设时长;若满足,则执行步骤4、生成游戏结果,向所述服务端发送所述游戏结果;若不满足,则跳转至步骤1,循环执行上述步骤,直到满足所述结束条件为止;The client is further configured to perform:
所述服务端还用于:接收所述游戏结果;根据所述游戏结果判断是否向所述用户的账户发放奖励。The server is further configured to: receive the game result; judge whether to issue rewards to the user's account according to the game result.
在本方案中,由服务端确定N个子图片的正确序列(即第一序列)与打乱后的第二序列,将两个序列均发给客户端,当客户端接收到用户的第二操作后,客户端判断是否满足结束条件,最终得到游戏结果。由于本方案只需要服务端将游戏的正确结果告知客户端,由客户端在游戏过程中对游戏结果做判断,避免了客户端多次向服务端发送请求,节省了传输资源,并且降低了游戏时延,提高用户体验。In this solution, the server determines the correct sequence (i.e. the first sequence) and the second sequence of N sub-pictures, and sends both sequences to the client. When the client receives the user's second operation Finally, the client judges whether the end condition is satisfied, and finally obtains the game result. Since this solution only requires the server to inform the client of the correct result of the game, the client will make judgments on the game result during the game, which avoids the client sending multiple requests to the server, saves transmission resources, and reduces the game cost. delay and improve user experience.
可选的,所述服务端还用于:对所述第一序列进行加密,得到加密后的第一序列;所述序列响应中的第一序列为所述加密后的第一序列;所述客户端还用于:对所述加密后的第一序列进行解密得到所述第一序列。Optionally, the server is further configured to: encrypt the first sequence to obtain an encrypted first sequence; the first sequence in the sequence response is the encrypted first sequence; the The client is further configured to: decrypt the encrypted first sequence to obtain the first sequence.
通过本方式,服务端向客户端发送加密的第一序列,保障了第一序列在传输过程中的安全性,避免用户通过抓包等方式得知正确答案,提高了方案的可靠性。Through this method, the server sends the encrypted first sequence to the client, which ensures the security of the first sequence during transmission, prevents the user from knowing the correct answer through packet capture, and improves the reliability of the solution.
可选的,所述游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息;所述客户端在生成游戏结果时,具体用于:若所述第三序列与所述第一序列相同且所述N个子图片在所述用户界面上的显示时长未超过所述预设时长,则生成用于指示成功的指示信息;否则,生成用于指示失败的指示信息;所述服务端在根据所述游戏结果判断是否向所述用户的账户发放奖励时,具体用于:所述游戏结果中包括用于指示成功的指示信息时,确定向所述用户的账户发放奖励;所述游戏结果中包括用于指示失败的指示信息时,确定不向所述用户的账户发放奖励。Optionally, the game result includes indication information for indicating success or indication information for indicating failure; when the client generates the game result, it is specifically used to: if the third sequence is consistent with the first The sequence is the same and the display duration of the N sub-pictures on the user interface does not exceed the preset duration, then generate indication information for indicating success; otherwise, generate indication information for indicating failure; the server When judging whether to issue a reward to the user's account according to the game result, it is specifically used to: determine to issue a reward to the user's account when the game result includes indication information indicating success; When the result includes indication information for indicating failure, it is determined not to issue rewards to the user's account.
通过本方式,服务端接收客户端发送的游戏结果,根据游戏结果确定是否向用户的账户发放奖励,提高了方案的完整性。Through this method, the server receives the game result sent by the client, and determines whether to issue rewards to the user's account according to the game result, which improves the integrity of the scheme.
可选的,所述游戏结果中还包括所述第三序列;所述服务端还用于:根据所述第三序列和所述第一序列验证所述游戏结果的真实性。Optionally, the game result further includes the third sequence; the server is further configured to: verify the authenticity of the game result according to the third sequence and the first sequence.
通过本方式,服务端还可以根据游戏结束时N个子图片在用户界面上的显示位置对应的序列(即第三序列)对客户端得到的游戏结果进行验证,避免用户篡改客户端的游戏结果,提高了方案的可靠性。Through this method, the server can also verify the game result obtained by the client according to the sequence corresponding to the display positions of the N sub-pictures on the user interface when the game ends (ie the third sequence), so as to prevent the user from tampering with the game result of the client and improve the reliability of the program.
可选的,所述服务端还用于:根据从发送所述序列响应的时刻到接收所述游戏结果的时刻的时长验证所述游戏结果的真实性。Optionally, the server is further configured to: verify the authenticity of the game result according to the time period from when the sequence response is sent to when the game result is received.
通过本方式,服务端还可以根据服务端发送序列响应时刻到接收游戏结果的时刻的时长对客户端得到的游戏结果进行验证,避免用户篡改客户端的游戏结果,提高了方案的可靠性。Through this method, the server can also verify the game results obtained by the client according to the time from the time when the server sends the sequence response to the time when the game results are received, so as to prevent users from tampering with the game results of the client and improve the reliability of the solution.
可选的,所述客户端还用于:在发送所述游戏结果之后,从本地删除所述第一序列、所述第二序列以及所述第三序列。Optionally, the client is further configured to: delete the first sequence, the second sequence and the third sequence locally after sending the game result.
通过本方式,在游戏结束后,客户端从本地删除第一序列、第二序列以及第三序列,释放了客户端的存储空间,并且防止其它设备获取游戏结果,提高了方案的安全性。In this way, after the game ends, the client deletes the first sequence, the second sequence and the third sequence from the local, releasing the storage space of the client, and preventing other devices from obtaining the game results, improving the security of the solution.
第二方面,本申请实施例提供一种数据处理方法,应用于客户端,包括:根据用户在用户界面上输入的第一操作确定出初始图片与宫格数;向服务端发送序列请求,其中所述序列请求包括所述宫格数;接收来自所述服务端的序列响应,所述序列响应中包括所述第一序列和所述第二序列;根据所述宫格数将所述初始图片切分为N个子图片;根据所述第一序列确定所述N个子图片中每个子图片的标识号;根据所述第二序列确定所述N个子图片的初始显示位置,并按照所述初始显示位置在所述用户界面上显示所述N个子图片;所述方法还包括:步骤1、接收所述用户在所述用户界面上输入的第二操作;步骤2、根据所述第二操作更新所述N个子图片在所述用户界面上的显示位置,根据更新后的显示位置确定第三序列;步骤3、判断是否满足结束条件,所述结束条件包括所述第三序列与所述第一序列相同,所述N个子图片在所述用户界面上的显示时长超过预设时长;若满足,则执行步骤4、生成游戏结果,向所述服务端发送所述游戏结果;若不满足,则跳转至步骤1,循环执行上述步骤,直到满足所述结束条件为止。In the second aspect, the embodiment of the present application provides a data processing method applied to the client, including: determining the initial picture and the grid number according to the first operation input by the user on the user interface; sending a sequence request to the server, wherein The sequence request includes the grid number; receive a sequence response from the server, the sequence response includes the first sequence and the second sequence; cut the initial picture according to the grid number Divided into N sub-pictures; determining the identification number of each sub-picture in the N sub-pictures according to the first sequence; determining the initial display position of the N sub-pictures according to the second sequence, and according to the initial display position Display the N sub-pictures on the user interface; the method further includes:
可选的,所述序列响应中的第一序列为加密后的第一序列,所述方法还包括:对所述加密后的第一序列进行解密得到所述第一序列。Optionally, the first sequence in the sequence response is an encrypted first sequence, and the method further includes: decrypting the encrypted first sequence to obtain the first sequence.
可选的,所述游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息,所述生成游戏结果,包括:若所述第三序列与所述第一序列相同且所述N个子图片在所述用户界面上的显示时长未超过所述预设时长,则生成用于指示成功的指示信息;否则,生成用于指示失败的指示信息。Optionally, the game result includes indication information for indicating success or indication information for indicating failure, and generating the game result includes: if the third sequence is the same as the first sequence and the N If the display duration of sub-pictures on the user interface does not exceed the preset duration, generating indication information for indicating success; otherwise, generating indication information for indicating failure.
可选的,所述方法还包括:在发送所述游戏结果之后,从本地删除所述第一序列、所述第二序列以及所述第三序列。Optionally, the method further includes: after sending the game result, deleting the first sequence, the second sequence and the third sequence locally.
第三方面,本申请实施例提供一种数据处理方法,应用于服务端,包括:接收来自客户端的序列请求,所述序列请求中包括宫格数;基于所述序列请求确定第一序列,所述第一序列包括按照次序排列的N个标识号,所述N个标识号与所述初始图片按照所述宫格数进行切分后得到的N个子图片一一对应;打乱所述第一序列得到第二序列;向所述客户端发送序列响应,所述序列响应中包括所述第一序列和所述第二序列;接收来自客户端的游戏结果;根据所述游戏结果判断是否向所述用户的账户发放奖励。In the third aspect, the embodiment of the present application provides a data processing method applied to the server, including: receiving a sequence request from the client, the sequence request including the grid number; determining the first sequence based on the sequence request, the The first sequence includes N identification numbers arranged in order, and the N identification numbers are in one-to-one correspondence with the N sub-pictures obtained after the initial picture is divided according to the grid number; sequence to obtain the second sequence; send a sequence response to the client, including the first sequence and the second sequence in the sequence response; receive the game result from the client; judge whether to send to the client according to the game result The user's account is issued with rewards.
可选的,所述方法还包括:对所述第一序列进行加密,得到加密后的第一序列;所述序列响应中的第一序列为所述加密后的第一序列。Optionally, the method further includes: encrypting the first sequence to obtain an encrypted first sequence; the first sequence in the sequence response is the encrypted first sequence.
可选的,所述游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息;所述根据所述游戏结果判断是否向所述用户的账户发放奖励,包括:所述游戏结果中包括用于指示成功的指示信息时,确定向所述用户的账户发放奖励;所述游戏结果中包括用于指示失败的指示信息时,确定不向所述用户的账户发放奖励。Optionally, the game result includes indication information for indicating success or indication information for indicating failure; the judging whether to issue rewards to the user's account according to the game result includes: When the indication information indicating success is included, it is determined to issue a reward to the user's account; when the game result includes indication information indicating failure, it is determined not to issue an award to the user's account.
可选的,所述游戏结果中还包括第三序列,所述方法还包括:根据所述第三序列和所述第一序列验证所述游戏结果的真实性。Optionally, the game result further includes a third sequence, and the method further includes: verifying the authenticity of the game result according to the third sequence and the first sequence.
可选的,所述方法还包括:根据从发送所述序列响应的时刻到接收所述游戏结果的时刻的时长验证所述游戏结果的真实性。Optionally, the method further includes: verifying the authenticity of the game result according to the time period from the time when the sequence response is sent to the time when the game result is received.
第四方面,本申请实施例一种数据处理,该装置包括用于执行上述第二方面或第二方面任一种可选的实施方式中的方法的模块/单元/技术手段。In a fourth aspect, the embodiment of the present application is a data processing device, and the apparatus includes a module/unit/technical means for executing the method in the second aspect or any optional implementation manner of the second aspect.
示例性的,该装置可以包括:Exemplary, the device may include:
处理模块,用于根据用户在用户界面上输入的第一操作确定出初始图片与宫格数;A processing module, configured to determine the initial picture and the number of squares according to the first operation input by the user on the user interface;
收发模块,用于向服务端发送序列请求,其中所述序列请求包括所述宫格数;接收来自所述服务端的序列响应,所述序列响应中包括所述第一序列和所述第二序列;A transceiver module, configured to send a sequence request to the server, wherein the sequence request includes the grid number; receive a sequence response from the server, the sequence response includes the first sequence and the second sequence ;
所述处理模块还用于:根据所述宫格数将所述初始图片切分为N个子图片;根据所述第一序列确定所述N个子图片中每个子图片的标识号;根据所述第二序列确定所述N个子图片的初始显示位置,并按照所述初始显示位置在所述用户界面上显示所述N个子图片;The processing module is further configured to: divide the initial picture into N sub-pictures according to the grid number; determine the identification number of each sub-picture in the N sub-pictures according to the first sequence; The second sequence determines the initial display positions of the N sub-pictures, and displays the N sub-pictures on the user interface according to the initial display positions;
所述处理模块还用于执行:步骤1、接收所述用户在所述用户界面上输入的第二操作;步骤2、根据所述第二操作更新所述N个子图片在所述用户界面上的显示位置,根据更新后的显示位置确定第三序列;步骤3、判断是否满足结束条件,所述结束条件包括所述第三序列与所述第一序列相同,所述N个子图片在所述用户界面上的显示时长超过预设时长;若满足,则执行步骤4、生成游戏结果,所述收发模块还用于向所述服务端发送所述游戏结果;若不满足,则跳转至步骤1,循环执行上述步骤,直到满足所述结束条件为止。The processing module is further configured to perform:
可选的,所述序列响应中的第一序列为加密后的第一序列,所述处理模块还用于:对所述加密后的第一序列进行解密得到所述第一序列。Optionally, the first sequence in the sequence response is an encrypted first sequence, and the processing module is further configured to: decrypt the encrypted first sequence to obtain the first sequence.
可选的,所述游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息,所述处理模块具体用于:若所述第三序列与所述第一序列相同且所述N个子图片在所述用户界面上的显示时长未超过所述预设时长,则生成用于指示成功的指示信息;否则,生成用于指示失败的指示信息。Optionally, the game result includes indication information for indicating success or indication information for indicating failure, and the processing module is specifically configured to: if the third sequence is the same as the first sequence and the N If the display duration of sub-pictures on the user interface does not exceed the preset duration, generating indication information for indicating success; otherwise, generating indication information for indicating failure.
可选的,所述处理模块还用于:在发送所述游戏结果之后,从本地删除所述第一序列、所述第二序列以及所述第三序列。Optionally, the processing module is further configured to: delete the first sequence, the second sequence and the third sequence locally after sending the game result.
第五方面,本申请实施例一种数据处理,该装置包括用于执行上述第三方面或第三方面任一种可选的实施方式中的方法的模块/单元/技术手段。In the fifth aspect, the embodiment of the present application is data processing, and the apparatus includes a module/unit/technical means for executing the method in the third aspect or any optional implementation manner of the third aspect.
示例性的,该装置可以包括:Exemplary, the device may include:
收发模块,用于接收来自客户端的序列请求,所述序列请求中包括宫格数;A transceiver module, configured to receive a sequence request from the client, wherein the sequence request includes the grid number;
处理模块,基于所述序列请求确定第一序列,所述第一序列包括按照次序排列的N个标识号,所述N个标识号与所述初始图片按照所述宫格数进行切分后得到的N个子图片一一对应;打乱所述第一序列得到第二序列;A processing module that determines a first sequence based on the sequence request, the first sequence includes N identification numbers arranged in order, and the N identification numbers and the initial picture are obtained by segmenting according to the grid number The N sub-pictures of are in one-to-one correspondence; the first sequence is disturbed to obtain the second sequence;
所述收发模块还用于:向所述客户端发送序列响应,所述序列响应中包括所述第一序列和所述第二序列;接收来自客户端的游戏结果;The transceiver module is also used to: send a sequence response to the client, the sequence response includes the first sequence and the second sequence; receive the game result from the client;
所述处理模块还用于:根据所述游戏结果判断是否向所述用户的账户发放奖励。The processing module is further configured to: judge whether to issue rewards to the user's account according to the game result.
可选的,所述处理模块还用于:对所述第一序列进行加密,得到加密后的第一序列;所述序列响应中的第一序列为所述加密后的第一序列。Optionally, the processing module is further configured to: encrypt the first sequence to obtain an encrypted first sequence; the first sequence in the sequence response is the encrypted first sequence.
可选的,所述游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息;所述处理模块具体用于:所述游戏结果中包括用于指示成功的指示信息时,确定向所述用户的账户发放奖励;所述游戏结果中包括用于指示失败的指示信息时,确定不向所述用户的账户发放奖励。Optionally, the game result includes indication information for indicating success or indication information for indicating failure; the processing module is specifically configured to: when the game result includes indication information for indicating success, determine to The user's account is issued a reward; when the game result includes indication information for indicating failure, it is determined not to issue a reward to the user's account.
可选的,所述游戏结果中还包括第三序列,所述处理模块还用于:根据所述第三序列和所述第一序列验证所述游戏结果的真实性。Optionally, the game result further includes a third sequence, and the processing module is further configured to: verify the authenticity of the game result according to the third sequence and the first sequence.
可选的,所述处理模块还用于:根据从发送所述序列响应的时刻到接收所述游戏结果的时刻的时长验证所述游戏结果的真实性。Optionally, the processing module is further configured to: verify the authenticity of the game result according to the time period from the moment when the sequence response is sent to the moment when the game result is received.
第六方面,本申请提供一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器、通信接口;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,使得所述装置通过执行第二方面或第二方面任一种可选的实施方式或第三方面或第三方面任一可选的实施方式中任一项所述的方法。In a sixth aspect, the present application provides an electronic device, including: at least one processor; and a memory and a communication interface connected in communication with the at least one processor; wherein, the memory stores information that can be used by the at least one processor Executable instructions, the at least one processor executes the instructions stored in the memory, so that the device executes the second aspect or any optional implementation manner of the second aspect or the third aspect or any of the third aspect The method of any one of the optional embodiments.
第七方面,提供一种计算机可读存储介质,用于存储指令,当所述指令被执行时,使上述第二方面或第二方面任一种可选的实施方式或第三方面或第三方面任一可选的实施方式中任一项所述的方法被实现。In the seventh aspect, there is provided a computer-readable storage medium for storing instructions, and when the instructions are executed, any optional implementation manner of the second aspect or the second aspect or the third aspect or the third aspect The method described in any one of any optional embodiments of the aspect is implemented.
第八方面,申请提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行上述第二方面或第二方面任一种可选的实施方式或第三方面或第三方面任一可选的实施方式中任一项所述的方法。In an eighth aspect, the application provides a computer program product, the computer program product comprising: computer program code, when the computer program code is run on a computer, the computer is made to execute any one of the above-mentioned second aspect or the second aspect. An optional embodiment or the method of any one of the third aspect or any optional embodiment of the third aspect.
本申请实施例中第二至第八方面中提供的一个或多个技术方案所具有的技术效果或优点,均可以由第一方面中提供的对应的一个或多个技术方案所具有的技术效果或优点对应解释,此处不再赘述。The technical effects or advantages of one or more technical solutions provided in the second to eighth aspects of the embodiment of the present application can be obtained from the technical effects of the corresponding one or more technical solutions provided in the first aspect Or the corresponding explanation of the advantages, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种数据处理系统的示意图;FIG. 1 is a schematic diagram of a data processing system provided by an embodiment of the present application;
图2为本申请实施例提供的一种数据处理方法的流程图;FIG. 2 is a flow chart of a data processing method provided by an embodiment of the present application;
图3为本申请实施例提供的一种拼图的示意图;Fig. 3 is a schematic diagram of a jigsaw puzzle provided by the embodiment of the present application;
图4为本申请实施例提供的另一数据处理方法的流程图;FIG. 4 is a flowchart of another data processing method provided by the embodiment of the present application;
图5为本申请实施例提供的一种数据处理装置的结构图;FIG. 5 is a structural diagram of a data processing device provided in an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的结构图。FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以按不同于此处的顺序执行所示出或描述的步骤。In order to make the purpose, technical solutions and advantages of the application clearer, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application. In the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
本申请的说明书和权利要求书及上述附图中的术语“第一”和“第二”是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的保护。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请中的“多个”可以表示至少两个,例如可以是两个、三个或者更多个,本申请实施例不做限制。The terms "first" and "second" in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the term "comprises", as well as any variations thereof, is intended to cover non-exclusive protections. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses. "Multiple" in the present application may mean at least two, for example, two, three or more, which is not limited in this embodiment of the present application.
本申请实施例中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in the embodiment of the present application is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean: A exists alone, and A and B exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
本申请技术方案中,对数据的采集、传播、使用等,均符合国家相关法律法规要求。In the technical solution of this application, the collection, dissemination, and use of data all comply with the requirements of relevant national laws and regulations.
为了便于理解本申请实施例的方案,下面先介绍本申请实施例可能的应用场景。In order to facilitate understanding of the solutions of the embodiments of the present application, the following first introduces possible application scenarios of the embodiments of the present application.
参见图1,为本申请实施例提供一种数据处理系统,该系统中包括:客户端与服务端。Referring to FIG. 1 , an embodiment of the present application provides a data processing system, which includes: a client and a server.
其中,客户端用于接收用户在用户界面上的操作以及判断游戏结果。Wherein, the client terminal is used for receiving the user's operation on the user interface and judging the game result.
服务端用于生成拼图块的标识号以及对用户的账户发放奖励。The server is used to generate the identification number of the puzzle piece and issue rewards to the user's account.
可选的,服务端可以被细化为以下一个或多个设备:游戏服务端、加密服务端、用户权益服务端、数据库。Optionally, the server can be subdivided into one or more of the following devices: game server, encryption server, user rights server, and database.
其中,游戏服务端用于生成拼图块的标识号。Wherein, the game server is used to generate the identification numbers of the jigsaw pieces.
加密服务端用于对数据进行加密。The encryption server is used to encrypt data.
用户权益服务端用于对用户的账户发放奖励。The user rights server is used to issue rewards to the user's account.
数据库用于存放游戏服务端、加密服务端、用户权益服务端产生的数据。The database is used to store data generated by the game server, encryption server, and user rights server.
参见图2,为本申请实施例提供的一种数据处理方法的流程图,该方法以应用于图1所示的系统为例。该方法具体步骤如下:Referring to FIG. 2 , it is a flow chart of a data processing method provided by an embodiment of the present application. The method is applied to the system shown in FIG. 1 as an example. The specific steps of the method are as follows:
S201:客户端根据用户在用户界面上输入的第一操作确定出初始图片与宫格数。S201: The client determines the initial picture and the number of grids according to the first operation input by the user on the user interface.
其中,初始图片为一张完整的图片,等待客户端对其进行分割。Wherein, the initial picture is a complete picture, waiting for the client to divide it.
可选的,第一操作可以为用户在用户界面中输入宫格数,例如用户在用户界面输入宫格数为4,或者,第一操作可以为用户点击宫格数按钮,例如用户界面中存在“四宫格”按钮、“九宫格”按钮、“十六宫格”按钮,用户点击任意一种按钮。Optionally, the first operation may be that the user enters the number of squares in the user interface, for example, the user enters the number of squares in the user interface as 4, or the first operation may be that the user clicks a button for the number of squares, for example, there is "Four grids" button, "Nine grids" button, "Sixteen grids" button, the user clicks any button.
可选的,用户界面中还包括“提示”按钮,用户还可以点击该按钮,客户端根据用户的操作在用户界面上显示初始图片。Optionally, the user interface further includes a "prompt" button, and the user may click this button, and the client terminal displays an initial picture on the user interface according to the user's operation.
可选的,当客户端接收到第一操作后,客户端从本地的图片库中随机选择一张图片作为初始图片,或者,用户界面中包括多张图片,用户在多张图片中选择任意一张图片作为初始图片。Optionally, after the client receives the first operation, the client randomly selects a picture from the local picture library as the initial picture, or, the user interface includes multiple pictures, and the user selects any one of the multiple pictures image as the initial image.
S202:客户端向服务端发送序列请求;相应的,服务端接收来自客户端的序列请求。S202: The client sends a sequence request to the server; correspondingly, the server receives the sequence request from the client.
其中,序列请求用于请求服务端生成序列。Among them, the sequence request is used to request the server to generate a sequence.
作为一种示例,客户端向游戏服务端发送序列请求;相应的,游戏服务端接收来自客户端的序列请求。As an example, the client sends a sequence request to the game server; correspondingly, the game server receives the sequence request from the client.
序列请求至少包括宫格数。可选的,序列请求还可以包括用户标识与流水号,用户标识用于指示参与拼图游戏的用户,一个流水号用于指示一次拼图游戏。The sequence request includes at least the number of squares. Optionally, the sequence request may also include a user ID and a serial number, the user ID is used to indicate the users participating in the jigsaw puzzle game, and a serial number is used to indicate a jigsaw puzzle game.
S203:服务端基于序列请求确定第一序列;打乱第一序列得到第二序列。S203: The server determines the first sequence based on the sequence request; scrambles the first sequence to obtain the second sequence.
第一序列包括按照次序排列的N个标识号,N个标识号与初始图片按照宫格数进行切分后得到的N个子图片一一对应。The first sequence includes N identification numbers arranged in order, and the N identification numbers are in one-to-one correspondence with the N sub-pictures obtained after the initial picture is divided according to the number of grids.
一种可能的实现方式中,服务端还可以对第一序列进行加密得到加密后的第一序列。In a possible implementation manner, the server may also encrypt the first sequence to obtain the encrypted first sequence.
一个具体的示例中,第一序列为153726489,加密后的第一序列为&*^*&^6。In a specific example, the first sequence is 153726489, and the encrypted first sequence is &*^*&^6.
通过本方式,服务端对第一序列进行加密,避免用户通过抓包等方式得知正确答案,保障了第一序列的安全性,提高了方案的可靠性。Through this method, the server encrypts the first sequence, preventing the user from knowing the correct answer through packet capture, etc., ensuring the security of the first sequence and improving the reliability of the solution.
作为一种示例,参见图4,游戏服务端基于序列请求确定第一序列;打乱第一序列得到第二序列。可选的,游戏服务端在确定第一序列与第二序列后,将第一序列、第二序列、序列请求存储至服务端的数据库中。可选的,游戏服务端向加密服务端发送第一序列,加密服务端对第一序列进行加密后,向游戏服务端发送加密后的第一序列。As an example, referring to FIG. 4 , the game server determines the first sequence based on the sequence request; the first sequence is scrambled to obtain the second sequence. Optionally, after determining the first sequence and the second sequence, the game server stores the first sequence, the second sequence, and the sequence request in the database of the server. Optionally, the game server sends the first sequence to the encryption server, and the encryption server encrypts the first sequence, and then sends the encrypted first sequence to the game server.
一种可能的实现方式中,序列请求还包括用户标识与流水号,服务端基于序列请求对用户的账户进行检查。例如检查用户是否合法,用户的游戏次数等等。In a possible implementation manner, the sequence request further includes a user ID and a serial number, and the server checks the user's account based on the sequence request. For example, check whether the user is legitimate, the number of games played by the user, and so on.
一种可能的实现方式中,服务端基于序列请求随机生成第一序列中的N个标识号。In a possible implementation manner, the server randomly generates N identification numbers in the first sequence based on the sequence request.
一个具体的示例中,在一次拼图游戏中,宫格数为9,服务端先随机生成第一序列153726489,第一序列中9个标识号与9个子图片一一对应;接着,打乱第一序列,即随机更改9个标识号的次序,得到第二序列685124397。In a specific example, in a jigsaw puzzle game, the number of grids is 9, the server first randomly generates the first sequence 153726489, and the 9 identification numbers in the first sequence correspond to the 9 sub-pictures one by one; sequence, that is, randomly change the order of the nine identification numbers to obtain the second sequence 685124397.
可以理解的,第一序列中的标识号不限于数字,第一序列可以为数字与字母的组合,本申请不做限制。例如,宫格数为16对应的第一序列可以为123456789abcdefg。It can be understood that the identification numbers in the first sequence are not limited to numbers, and the first sequence may be a combination of numbers and letters, which is not limited in this application. For example, the first sequence corresponding to the grid number of 16 may be 123456789abcdefg.
通过本方式,由于服务端随机生成第一序列中的N个标识号,即第一序列中的N个标识号是无规律的,提高了方案的可靠性。Through this method, since the server randomly generates the N identification numbers in the first sequence, that is, the N identification numbers in the first sequence are irregular, which improves the reliability of the solution.
S204:服务端向客户端发送序列响应;相应的,客户端接收来自服务端的序列响应。S204: The server sends a sequence response to the client; correspondingly, the client receives the sequence response from the server.
序列响应中包括第一序列和第二序列。可选的,序列响应中的第一序列为加密后的第一序列。The sequence response includes the first sequence and the second sequence. Optionally, the first sequence in the sequence response is an encrypted first sequence.
作为一种示例,参见图4,游戏服务端向客户端发送序列响应;相应的,客户端接收来自游戏服务端的序列响应。As an example, referring to FIG. 4 , the game server sends a sequence response to the client; correspondingly, the client receives the sequence response from the game server.
S205:客户端根据宫格数将初始图片切分为N个子图片;根据第一序列确定N个子图片中每个子图片的标识号;根据第二序列确定N个子图片的初始显示位置,并按照初始显示位置在用户界面上显示N个子图片。S205: The client divides the initial picture into N sub-pictures according to the number of squares; determines the identification number of each of the N sub-pictures according to the first sequence; determines the initial display position of the N sub-pictures according to the second sequence, and follows the initial The display position displays N sub-pictures on the user interface.
沿用上述示例,宫格数为9,第一序列为153726489,第二序列为685124397。参见图3中的(a),客户端将初始图片切分为9个子图片,9个子图片的标识号按照从上到下,从左往右的顺序与第一序列中的9个标识号一一对应,图3中的(a)中9个子图片的显示位置为本次拼图游戏的正确答案。参见图3中的(b),为9个子图片的初始显示位置,客户端按照初始显示位置在用户界面上显示9个子图片。Using the above example, the number of grids is 9, the first sequence is 153726489, and the second sequence is 685124397. Referring to (a) in Figure 3, the client divides the initial picture into 9 sub-pictures, and the identification numbers of the 9 sub-pictures are consistent with the 9 identification numbers in the first sequence from top to bottom and from left to right. One-to-one correspondence, the display positions of the 9 sub-pictures in (a) in Figure 3 are the correct answers to this jigsaw puzzle. Referring to (b) in FIG. 3 , it is the initial display position of 9 sub-pictures, and the
一种可能的实现方式中,客户端对加密后的第一序列进行解密,得到第一序列。In a possible implementation manner, the client decrypts the encrypted first sequence to obtain the first sequence.
S206:客户端接收用户在用户界面上输入的第二操作。S206: The client receives a second operation input by the user on the user interface.
第二操作为用户在用户界面上点击子图片。The second operation is that the user clicks the sub-picture on the user interface.
S207:客户端根据第二操作更新N个子图片在用户界面上的显示位置,根据更新后的显示位置确定第三序列。S207: The client updates the display positions of the N sub-pictures on the user interface according to the second operation, and determines a third sequence according to the updated display positions.
一种可能的实现方式中,在拼图游戏中,用户通过点击用户界面上的子图片交换子图片的显示位置,客户端每接收一次第二操作,更新一次N个子图片在用户界面上的显示位置,并且根据更新后的显示位置确定第三序列。In a possible implementation, in the jigsaw puzzle game, the user clicks a sub-picture on the user interface to exchange the display positions of the sub-pictures, and the client updates the display positions of the N sub-pictures on the user interface each time the second operation is received. , and determine the third sequence according to the updated display position.
沿用上述示例,当前的用户界面如图3中的(b)所示,用户点击标识号为4与5的子图片后,客户端更新9个子图片的显示位置,更新后的显示位置如图3中的(c)所示。客户端根据更新后的显示位置确定第三序列为684125397。Using the above example, the current user interface is shown in (b) in Figure 3. After the user clicks on the sub-pictures with
S208:客户端判断是否满足结束条件,若满足,则生成游戏结果,向服务端发送游戏结果;相应的,服务端接收来自客户端的游戏结果;若不满足,则跳转至步骤S206,循环执行上述步骤S206~S208,直到满足结束条件为止。S208: The client judges whether the end condition is met, and if so, generates a game result and sends the game result to the server; correspondingly, the server receives the game result from the client; if not, jumps to step S206 and executes in a loop The above steps S206-S208, until the end condition is satisfied.
结束条件包括第三序列与第一序列相同,N个子图片在用户界面上的显示时长超过预设时长。The end condition includes that the third sequence is the same as the first sequence, and the display duration of the N sub-pictures on the user interface exceeds a preset duration.
作为一种示例,客户端向游戏服务端发送游戏结果;相应的,游戏服务端接收来自客户端的游戏结果。As an example, the client sends the game result to the game server; correspondingly, the game server receives the game result from the client.
一种可能的实现方式中,游戏结果包括用于指示成功的指示信息或用于指示失败的指示信息;若第三序列与第一序列相同且N个子图片在用户界面上的显示时长未超过预设时长,则客户端生成用于指示成功的指示信息;否则,客户端生成用于指示失败的指示信息。In a possible implementation, the game result includes indication information for indicating success or indication information for indicating failure; if the third sequence is the same as the first sequence and the display duration of the N sub-pictures on the user interface does not exceed the preset If the duration is set, the client generates indication information for indicating success; otherwise, the client generates indication information for indicating failure.
一种可能的实现方式中,游戏结果中还包括第三序列。In a possible implementation manner, the game result further includes a third sequence.
一种可能的实现方式中,客户端在发送所述游戏结果之后,从本地删除第一序列、第二序列以及第三序列。In a possible implementation manner, after sending the game result, the client side deletes the first sequence, the second sequence and the third sequence locally.
通过本方式,在游戏结束后,客户端从本地删除第一序列、第二序列以及第三序列,释放了客户端的存储空间,并且防止其它设备获取游戏结果,提高了方案的安全性。In this way, after the game ends, the client deletes the first sequence, the second sequence and the third sequence from the local, releasing the storage space of the client, and preventing other devices from obtaining the game results, improving the security of the solution.
可以理解的,预设时长可以根据实际需要进行规定,本申请不做限制。可选的,用户界面中还可以倒计时预设时长。It can be understood that the preset duration may be specified according to actual needs, which is not limited in this application. Optionally, the user interface can also count down the preset duration.
一个具体的示例中,第二操作为用户在用户界面上点击两张子图片,用户点击两张子图片后,两张子图片会交换位置,在客户端不满足结束条件之前,用户每点击两张子图片,客户端会执行一次S206~S208。In a specific example, the second operation is that the user clicks two sub-pictures on the user interface. After the user clicks the two sub-pictures, the positions of the two sub-pictures will be exchanged. To create a sub-picture, the client will execute S206-S208 once.
S209:服务端根据游戏结果判断是否向用户的账户发放奖励。S209: The server determines whether to issue rewards to the user's account according to the game result.
一种可能的实现方式中,若游戏结果中包括用于指示成功的指示信息时,服务端确定向用户的账户发放奖励;若游戏结果中包括用于指示失败的指示信息时,确定不向所述用户的账户发放奖励。In a possible implementation, if the game result includes indication information indicating success, the server determines to issue rewards to the user's account; if the game result includes indication information indicating failure, it determines not to issue rewards to all Rewards are issued to the accounts of the above-mentioned users.
通过本方式,服务端接收客户端发送的游戏结果,根据游戏结果确定是否向用户的账户发放奖励,提高了方案的完整性。Through this method, the server receives the game result sent by the client, and determines whether to issue rewards to the user's account according to the game result, which improves the integrity of the scheme.
一种可能的实现方式中,若游戏结果中还包括第三序列,服务端根据客户端发送的第三序列与服务端本地存储的第一序列验证游戏结果的真实性。In a possible implementation, if the game result also includes a third sequence, the server verifies the authenticity of the game result according to the third sequence sent by the client and the first sequence locally stored on the server.
通过本方式,服务端还可以根据游戏结束时N个子图片在用户界面上的显示位置对应的序列(即第三序列)对客户端得到的游戏结果进行验证,避免用户篡改客户端的游戏结果,提高了方案的可靠性。Through this method, the server can also verify the game result obtained by the client according to the sequence corresponding to the display positions of the N sub-pictures on the user interface when the game ends (ie the third sequence), so as to prevent the user from tampering with the game result of the client and improve the reliability of the program.
一种可能的实现方式中,服务端根据从发送序列响应的时刻到接收游戏结果的时刻的时长验证游戏结果。In a possible implementation, the server verifies the game result according to the time period from the moment when the sequence response is sent to the moment when the game result is received.
通过本方式,由于服务端从发送序列响应的时刻到接收游戏结果的时刻的时长与N个子图片在用户界面上的显示时长基本相同,服务端还可以根据服务端发送序列响应时刻到接收游戏结果的时刻的时长对客户端得到的游戏结果进行验证,避免用户篡改客户端的游戏结果,提高了方案的可靠性。Through this method, since the time from the time the server sends the sequence response to the time when the game result is received is basically the same as the display time of the N sub-pictures on the user interface, the server can also use the time from the time the server sends the sequence response to the time the game result is received. The game results obtained by the client are verified according to the time and length of time, which prevents users from tampering with the game results of the client and improves the reliability of the scheme.
可以理解的,奖励可以包括不限于优惠券、积分、代金券,本申请不做限制。It can be understood that rewards may include but not limited to coupons, points, and vouchers, which are not limited in this application.
作为一种示例,参见图4,服务器中各设备的分工可以如图所示的S209A~S209B。As an example, referring to FIG. 4 , the division of labor among devices in the server may be as shown in S209A-S209B.
S209A:若游戏结果中包括用于指示成功的指示信息时,游戏服务端向用户权益服务端发送用于指示发放奖励的指示信息;相应的,用户权益服务端接收来自游戏服务端的用于指示发放奖励的指示信息。S209A: If the game result includes indication information for indicating success, the game server sends indication information for instructing reward distribution to the user rights server; Instructions for the reward.
S209B:用户权益服务端向用户的账户发放奖励。S209B: The user rights server issues rewards to the user's account.
可选的,游戏服务端还可以验证游戏结果后,选择是否调用用户权益服务端。Optionally, the game server can also choose whether to call the user rights server after verifying the game result.
可选的,在以上方案中,客户端与服务端还可以向其它设备发送防篡改和防重放请求,以保证客户端与服务端的安全性。Optionally, in the above solutions, the client and the server can also send anti-tampering and anti-replay requests to other devices to ensure the security of the client and the server.
在本方案中,由服务端确定N个子图片的正确序列(即第一序列)与打乱后的第二序列,将两个序列均发给客户端,当客户端接收到用户的第二操作后,客户端判断是否满足结束条件,最终得到游戏结果。由于本方案只需要服务端将游戏的正确结果告知客户端,由客户端在游戏过程中对游戏结果做判断,避免了客户端多次向服务端发送请求,节省了传输资源,并且降低了游戏时延,提高用户体验。此外,由于服务端最终需要根据客户端的游戏结果为用户发放奖励,所以服务端向客户端先发送第一序列,使得客户端返回的游戏结果是可靠的,提高了方案的可靠性与安全性。In this solution, the server determines the correct sequence (i.e. the first sequence) and the second sequence of N sub-pictures, and sends both sequences to the client. When the client receives the user's second operation Finally, the client judges whether the end condition is satisfied, and finally obtains the game result. Since this solution only requires the server to inform the client of the correct result of the game, the client will make judgments on the game result during the game, which avoids the client sending multiple requests to the server, saves transmission resources, and reduces the game cost. delay and improve user experience. In addition, because the server needs to issue rewards to users based on the game results of the client, the server first sends the first sequence to the client, so that the game results returned by the client are reliable, improving the reliability and security of the solution.
为了更加清楚地理解本申请实施例技术方案,下面举一个较完整的示例。In order to understand the technical solutions of the embodiments of the present application more clearly, a relatively complete example is given below.
用户在用户界面中输入宫格数9,客户端从本地存储的图片中随机选择一张图片作为初始图片,客户端将宫格数9发送至服务端,服务端生成含有9个标识号的第一序列以及打乱第一序列得到的第二序列,服务端将第一序列与第二序列发给客户端,客户端将初始图片切分为9个子图片,根据第一序列得到每个子图片的标识号,接着客户端在用户界面上显示9个子图片根据第二序列排布的位置,客户端接收到用户的操作后,更新一次9个子图片的显示位置,每更新一次,客户端会判断是否满足结束条件,如果用户在规定时间内将拼图的显示位置从初始状态(第二序列对应的显示位置)还原为正确答案(第一序列对应的显示位置),那么用户本次游戏结果为成功,客户端向服务端发送消息,服务端向用户的账户发放奖励;如果用户没有在规定时间内将拼图的显示位置从初始状态还原为正确答案,那么用户本次游戏结果为失败,客户端向服务端发送消息,服务端不会向用户的账户发放奖励。The user enters the
基于相同的技术构思,本申请实施例提供一种数据处理装置500,该装置包括用于执行上述方法实施例中客户端或服务端所执行的方法的模块/单元/手段。该模块/单元/手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。Based on the same technical concept, the embodiment of the present application provides a data processing device 500, which includes modules/units/means for executing the method performed by the client or the server in the above method embodiments. The module/unit/means can be realized by software, or by hardware, or can be realized by executing corresponding software by hardware.
参见图5,该装置500可以包括处理模块501和收发模块502,处理模块501和收发模块502配合以执行上述方法实施例中客户端或服务端执行的部分或全部操作。Referring to FIG. 5 , the apparatus 500 may include a
示例性的,当装置500应用于客户端时,Exemplarily, when the device 500 is applied to a client,
处理模块501,用于根据用户在用户界面上输入的第一操作确定出初始图片与宫格数;The
收发模块502,用于向服务端发送序列请求,其中所述序列请求包括所述宫格数;接收来自所述服务端的序列响应,所述序列响应中包括所述第一序列和所述第二序列;The
所述处理模块501还用于:根据所述宫格数将所述初始图片切分为N个子图片;根据所述第一序列确定所述N个子图片中每个子图片的标识号;根据所述第二序列确定所述N个子图片的初始显示位置,并按照所述初始显示位置在所述用户界面上显示所述N个子图片;The
所述处理模块501还用于执行:步骤1、接收所述用户在所述用户界面上输入的第二操作;步骤2、根据所述第二操作更新所述N个子图片在所述用户界面上的显示位置,根据更新后的显示位置确定第三序列;步骤3、判断是否满足结束条件,所述结束条件包括所述第三序列与所述第一序列相同,所述N个子图片在所述用户界面上的显示时长超过预设时长;若满足,则执行步骤4、生成游戏结果,所述收发模块502还用于向所述服务端发送所述游戏结果;若不满足,则跳转至步骤1,循环执行上述步骤,直到满足所述结束条件为止。The
示例性的,当装置500应用于服务端时,Exemplarily, when the device 500 is applied to the server,
收发模块502,用于接收来自客户端的序列请求,所述序列请求中包括宫格数;A
处理模块501,基于所述序列请求确定第一序列,所述第一序列包括按照次序排列的N个标识号,所述N个标识号与所述初始图片按照所述宫格数进行切分后得到的N个子图片一一对应;打乱所述第一序列得到第二序列;The
所述收发模块502还用于:向所述客户端发送序列响应,所述序列响应中包括所述第一序列和所述第二序列;接收来自客户端的游戏结果;The
所述处理模块501还用于:根据所述游戏结果判断是否向所述用户的账户发放奖励。The
应理解,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be understood that all relevant content of the steps involved in the above method embodiments may be referred to the functional description of the corresponding functional modules, which will not be repeated here.
作为上述装置一种可能的产品形态,参见图6,本申请实施例还提供一种电子设备600,包括:As a possible product form of the above device, see FIG. 6, the embodiment of the present application also provides an electronic device 600, including:
至少一个处理器601;以及与所述至少一个处理器601通信连接的通信接口603;所述至少一个处理器601通过执行存储器602存储的指令,使得所述电子设备600通过所述通信接口603执行上述方法实施例中任一设备所执行的方法步骤。At least one
可选的,所述存储器602位于所述电子设备600之外。Optionally, the
可选的,所述电子设备600包括所述存储器602,所述存储器602与所述至少一个处理器601相连,所述存储器602存储有可被所述至少一个处理器601执行的指令。附图6用虚线表示存储器602对于电子设备600是可选的。Optionally, the electronic device 600 includes the
其中,所述处理器601和所述存储器602可以通过接口电路耦合,也可以集成在一起,这里不做限制。Wherein, the
本申请实施例中不限定上述处理器601、存储器602以及通信接口603之间的具体连接介质。本申请实施例在图6中以处理器601、存储器602以及通信接口603之间通过总线604连接,总线在图6中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium among the
应理解,本申请实施例中提及的处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。It should be understood that the processor mentioned in the embodiments of the present application may be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented by software, the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
示例性的,处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Exemplarily, the processor may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) , off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data EateSDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DR RAM)。It should be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile memory and nonvolatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data EateSDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DR RAM).
需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)可以集成在处理器中。It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, the memory (storage module) may be integrated in the processor.
应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
作为另一种可能的产品形态,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质用于存储指令,当所述指令被执行时,使得计算机执行上述方法实例中客户端或服务端所执行的方法步骤。As another possible product form, the embodiment of the present application also provides a computer-readable storage medium, which is used to store instructions, and when the instructions are executed, the computer executes the client in the above method example. The method steps performed by the terminal or the server.
作为另一种可能的产品形态,本申请实施例还提供一种包含指令的计算机程序产品,所述计算机程序产品中存储有指令,当其在计算机上运行时,使得计算机执行上述方法实施例中由客户端或服务端所执行的方法步骤。As another possible product form, the embodiment of the present application also provides a computer program product containing instructions, the computer program product stores instructions, and when it is run on a computer, the computer executes the above-mentioned method embodiment. Method steps performed by a client or a server.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams. Apparently, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310246348.8ACN116271799A (en) | 2023-03-07 | 2023-03-07 | Data processing system, method, device, equipment and medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310246348.8ACN116271799A (en) | 2023-03-07 | 2023-03-07 | Data processing system, method, device, equipment and medium |
| Publication Number | Publication Date |
|---|---|
| CN116271799Atrue CN116271799A (en) | 2023-06-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310246348.8APendingCN116271799A (en) | 2023-03-07 | 2023-03-07 | Data processing system, method, device, equipment and medium |
| Country | Link |
|---|---|
| CN (1) | CN116271799A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119049673A (en)* | 2024-10-24 | 2024-11-29 | 山东理工检测科技有限公司 | Hospital internal auditing system and method based on medicine management |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140047527A1 (en)* | 2012-08-07 | 2014-02-13 | Timothy Ngo | System and Method for Detecting and Preventing Automated Interaction Based on Detected Actions Performed by User to Solve a Proffered Puzzle |
| CN112580012A (en)* | 2020-12-25 | 2021-03-30 | 广州凡科互联网科技股份有限公司 | Man-machine identification method based on sliding jigsaw verification code |
| CN113680057A (en)* | 2021-08-20 | 2021-11-23 | 网易(杭州)网络有限公司 | Information processing method, device, electronic equipment and medium |
| CN113680056A (en)* | 2021-08-20 | 2021-11-23 | 网易(杭州)网络有限公司 | Jigsaw puzzle realization method, device, electronic equipment and medium |
| CN114925350A (en)* | 2022-03-16 | 2022-08-19 | 广东长荣科技有限公司 | Method, device, medium and product for realizing verification code based on semantic recognition of random moving objects |
| CN115085995A (en)* | 2022-06-10 | 2022-09-20 | 中国银行股份有限公司 | Identity authentication method, system, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140047527A1 (en)* | 2012-08-07 | 2014-02-13 | Timothy Ngo | System and Method for Detecting and Preventing Automated Interaction Based on Detected Actions Performed by User to Solve a Proffered Puzzle |
| CN112580012A (en)* | 2020-12-25 | 2021-03-30 | 广州凡科互联网科技股份有限公司 | Man-machine identification method based on sliding jigsaw verification code |
| CN113680057A (en)* | 2021-08-20 | 2021-11-23 | 网易(杭州)网络有限公司 | Information processing method, device, electronic equipment and medium |
| CN113680056A (en)* | 2021-08-20 | 2021-11-23 | 网易(杭州)网络有限公司 | Jigsaw puzzle realization method, device, electronic equipment and medium |
| CN114925350A (en)* | 2022-03-16 | 2022-08-19 | 广东长荣科技有限公司 | Method, device, medium and product for realizing verification code based on semantic recognition of random moving objects |
| CN115085995A (en)* | 2022-06-10 | 2022-09-20 | 中国银行股份有限公司 | Identity authentication method, system, electronic equipment and storage medium |
| Title |
|---|
| 吴湘泰等著: "一本书读透金融科技安全", 30 April 2021, 机械工业出版社, pages: 14 - 16* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119049673A (en)* | 2024-10-24 | 2024-11-29 | 山东理工检测科技有限公司 | Hospital internal auditing system and method based on medicine management |
| Publication | Publication Date | Title |
|---|---|---|
| KR102145701B1 (en) | Prevent false display of input data by participants in secure multi-party calculations | |
| CN111107066A (en) | Sensitive data transmission method and system, electronic device, storage medium | |
| EP3605996A1 (en) | Authentication method, device, vr terminal and vr server based on vr scene | |
| CN110290102A (en) | Service security system and method based on application | |
| CN108900479A (en) | Short message verification code acquisition methods and device | |
| CN111464295B (en) | Bank card making method and device | |
| CN107094261A (en) | The authorization check method and device of video playback | |
| JP2018093434A (en) | Transaction management method, transaction management program and transaction management device | |
| CN111211911A (en) | Collaborative signature method, device, equipment and system | |
| KR102303431B1 (en) | Blockchain-based electronic contract management system apparatus that supports electronic contracts between parties and operating method thereof | |
| CN110025955B (en) | Information processing method, terminal, computer-readable storage medium, and computer device | |
| CN114266033A (en) | Verification code generation method and device, verification code login system and electronic equipment | |
| KR20190105755A (en) | Method and system for providing secure message | |
| CN116271799A (en) | Data processing system, method, device, equipment and medium | |
| CN109743338A (en) | Verification method, system, server and readable storage medium for automatic login | |
| CN115955364A (en) | User identity information confidentiality method and system of network bidding transaction system | |
| US12046109B2 (en) | Method and apparatus for conducting fair lottery while reducing transaction cost by using blockchain network | |
| CN110034923B (en) | Information processing method and related equipment | |
| CN104917763B (en) | A kind of PIN cache method | |
| CN111245594A (en) | Homomorphic operation-based collaborative signature method and system | |
| CN113949988A (en) | Position protection method and system, and storage medium | |
| JPH08149124A (en) | Information delivery method and system using zero-knowledge proof protocol | |
| CN109688158B (en) | Financial execution chain authentication method, electronic device and storage medium | |
| CN114520923A (en) | Barrage information display method, first terminal, second terminal, medium and equipment | |
| CN112765630A (en) | Application sharing method, application activation method, electronic device and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |