Data verification method and device

By verifying the identification information of terminal equipment and gifts, the problem of low authenticity of the relationship between terminal equipment and gifts is solved, and efficient and accurate gift verification and recording are achieved.

CN114969212BActive Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110189408.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-19
Publication Date
2025-08-08
Estimated Expiration
2041-02-19

AI Technical Summary

Technical Problem

The prior art cannot effectively ensure the authenticity of the relationship between terminal equipment and the gifts given, resulting in low authenticity.

Method used

By receiving the verification request, the association relationship is checked using the identification information of the first device and the second device and the preset relationship, and the verification response is output to ensure the authenticity of the association relationship.

Benefits of technology

Improve the efficiency of gift verification, reduce the error rate, and ensure the authenticity and accuracy of the gift records.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114969212B_ABST
    Figure CN114969212B_ABST
Patent Text Reader

Abstract

The present application discloses a data verification method and apparatus, comprising: receiving a verification request carrying identification information of a first device and identification information of a second device, the second device being the device to be verified as having an associated relationship with the first device; then verifying the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship, obtaining a verification result, the preset relationship representing the relationship between the first device and the device associated with the first device; and outputting a verification response carrying the verification result. The method provided by the present application can effectively ensure the authenticity of the association relationship between the first device and the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a data verification method and device. Background Art

[0002] With the continuous development of the terminal industry, users often receive various bonus gifts when purchasing a terminal. Typically, a user purchases a terminal device and, for example, receives a bonus device. In this case, after the user completes payment, the relevant personnel records the information of the terminal device sold and then gives the device to the user.

[0003] For example, a user can get a pair of headphones as a gift when purchasing a mobile phone. After the user completes the payment, the relevant personnel will record the relevant information of the mobile phone and then give the headphones to the user.

[0004] However, the above method cannot effectively obtain the true status of the mobile phone and earphones, resulting in low authenticity. Summary of the Invention

[0005] The present application provides a data verification method and device that can effectively ensure the authenticity of the association between the sold terminal devices and the corresponding gifts.

[0006] In a first aspect, an embodiment of the present application provides a data verification method, the method comprising: receiving a verification request, the verification request carrying identification information of a first device and identification information of a second device, the second device being a device to be verified as to whether it has an associated relationship with the first device; verifying the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result, the preset relationship representing the relationship between the first device and a device that has an associated relationship with the first device; and outputting a verification response, the verification response carrying the verification result.

[0007] In the embodiments of the present application, the preset relationship may represent the relationship between a first device and a device associated with the first device. By verifying the identification information of the first device and the identification information of the second device, on the one hand, it is possible to verify whether the first device is a device that can be given as a gift. On the other hand, by verifying the relationship between the first device and the second device, the authenticity of the association between the first device and the second device is effectively guaranteed.

[0008] For example, in the technical solution provided in the embodiment of the present application, the second device is a gift to be verified. By comparing the second device, the first device, and the preset relationship, it is possible to effectively determine whether the first device is a pre-set device that can give gifts, or it is possible to effectively determine whether the second device is a pre-set gift corresponding to the first device. Thus, by verifying the second device, the authenticity of the matching relationship between the first device and the second device is guaranteed. This improves the situation where the authenticity of the first device and the gift that can be given cannot be verified.

[0009] In a possible implementation, the outputting the verification response includes: outputting the verification response when the identification information of the first device is legal, and / or when the identification information of the second device is legal.

[0010] Optionally, the first data verification device verifies whether the identification information of the first device is legal, and / or verifies whether the identification information of the second device is legal. Optionally, the second data verification device verifies whether the identification information of the first device is legal, and then sends the verification result of whether the identification information of the first device is legal to the first data verification device, so that the first data verification device obtains the result of whether the identification information of the first device is legal. Optionally, the third data verification device verifies whether the identification information of the second device is legal, and then sends the verification result of whether the identification information of the second device is legal to the first data verification device, so that the first data verification device obtains the result of whether the identification information of the second device is legal. Exemplarily, the first data verification device can verify whether the identification information of the second device is legal, and the second data verification device can verify whether the identification information of the first device is legal. Exemplarily, the first data verification device can verify whether the identification information of the first device is legal, and the third data verification device can verify whether the identification information of the second device is legal, etc. Exemplarily, the identification information of the first device and the second device can also be verified by a single device, etc., which is not limited in the embodiments of the present application.

[0011] Exemplarily, the first data verification device may be a server, such as a cloud server or cloud, and the embodiments of the present application do not limit the specific form of the first data verification device. Exemplarily, the second data verification device may be a server, or a terminal device, etc. Similarly, the third data verification device may be a server, or a terminal device, etc.

[0012] It is understandable that the first data verification device may verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship after executing the verification of whether the identification information of the first device and / or the identification information of the second device is legal, or after receiving the verification result of whether the identification information of the first device and / or the identification information of the second device is legal, and then output a verification response. Alternatively, the first data verification device may verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship after executing the verification of whether the identification information of the first device and / or the identification information of the second device is legal, or receive the verification result of whether the identification information of the first device and / or the identification information of the second device is legal, and then output a verification response. Alternatively, the first data verification device may perform verification at the same time, that is, verify whether the identification information of the first device and / or the identification information of the second device is legal, and verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship. The embodiment of the present application does not limit the order of the above steps.

[0013] In the embodiments of the present application, by verifying the legitimacy of the first device and / or the second device, it is possible to ensure that the first device is not impersonating a device that requires a gift, and that the second device is not impersonating a gift to be given in order to replace the gift to be given. In other words, the method provided in the embodiments of the present application ensures that the identification information of the first device and the identification information of the second device are authentic and usable, making it more difficult to create a false gift record and thus ensuring the authenticity of the gift record.

[0014] In a possible implementation, outputting the verification response includes: outputting the verification response when the request time of the verification request is within a preset time interval.

[0015] Optionally, the first data verification device verifies whether the request time is within a preset time interval. Optionally, the first data verification device receives a verification result from a sixth data verification device verifying whether the request time is within a preset time interval.

[0016] It is understandable that the first data verification device may, after executing the verification of whether the request time is within the preset time interval, or after receiving the verification result, execute the verification of the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device and the preset relationship, and then output a verification response. Alternatively, the first data verification device may, after executing the verification of the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device and the preset relationship, execute the verification of whether the request time is within the preset time interval or execute the reception of the verification result, and then output a verification response. Alternatively, the first data verification device may simultaneously perform the verification, i.e., verify whether the request time is within the preset time interval or receive the verification result, and verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device and the preset relationship, and execute them simultaneously without any order of precedence.

[0017] Generally, the manual verification of whether the gifts are in compliance with the activity time is inefficient and has a high error rate. However, in the embodiment of the present application, the verification response includes a successful verification, that is, the authenticity of the identification information of the first device, the identification information of the second device, and the association relationship between the first device and the second device has been verified, and the second device is allowed to be given as a gift of the first device within the specified time range, further improving the efficiency of verifying whether the first device is a device that can be given as a gift and reducing the error rate.

[0018] In a possible implementation manner, outputting the verification response includes: outputting the verification response when there is no first historical gift record corresponding to the identification information of the first device.

[0019] In the embodiment of the present application, the first historical gift record records the gift data of the first device that has passed the verification and the corresponding gift that has been given. If the first historical gift record does not exist, it indicates that the first device has not been given a gift.

[0020] It is understood that the first data verification device may, after verifying whether the first historical gift record exists, verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, and then output a verification response. Alternatively, the first data verification device may, after verifying the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, verify whether the first historical gift record exists, and then output a verification response. Alternatively, the first data verification device may simultaneously verify whether the first historical gift record exists and verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, and then output a verification response.

[0021] Generally, the distribution of gifts is carried out by the first user according to the activity rules, and the manual verification method is used to determine whether the first device has been given a gift, which is inefficient and has a high error rate. For example, when the first user wants to use the first device to receive a gift for the second time, it is necessary to spend a certain amount of manpower and time to verify whether the first device has been given a gift, and the verification result may not be accurate. However, in the embodiment of the present application, the verification response includes a successful verification, that is, the authenticity of the identification information of the first device, the identification information of the second device, and the association between the first device and the second device has been verified, and only when the first device has not been given a gift, the second device is allowed to be given as a gift for the first device, thereby improving the efficiency of gift verification and greatly reducing the error rate. For example, when a user wants to use the first device to receive a gift for the second time, the method of this solution can quickly verify that the first device has been given a gift and cannot be given again, and the verification efficiency is high and the accuracy is high.

[0022] In a possible implementation, the verification request further carries identity information of the first user, and outputting the verification response includes: outputting the verification response if the identity information of the first user is legal.

[0023] In an embodiment of the present application, the first user has a purchasing relationship with the first device; in an embodiment of the present application, the identity information of the first user is user account information, mobile phone number information, ID card number information, face data or fingerprint data.

[0024] Optionally, the first data verification device may verify the legitimacy of the first user's identity information. Optionally, the first data verification device may receive a verification result of the legitimacy of the first user's identity information sent by a fourth data verification device. Exemplarily, the fourth data verification device may be a server, or a terminal device, etc.

[0025] It is understandable that the first data verification device may verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship after verifying whether the identity identification information of the first user is legal, and then output a verification response. Alternatively, the first data verification device may verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship after verifying whether the identity identification information of the first user is legal, and then output a verification response. Alternatively, the first data verification device may verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship while verifying whether the identity identification information of the first user is legal, and then output a verification response.

[0026] In general, gift giving records usually record the device information of the sale and the corresponding gift information, and do not record the real information of the first user; even if the information of the first user is recorded, it is mostly the mobile phone number, ID number, etc. provided by the user, and it is impossible to determine whether the personal information provided by the user is true. When a customer complaint is received from the user indicating that the gift has not been received, even if it is traced that the device information purchased by the user has given a gift record, it may be a false gift record created by the second user, and it is difficult to determine whether the first user really received the gift. However, in the technical solution provided in the embodiment of the present application, the authenticity of the first user's identity is ensured by verifying the legitimacy of the first user's identity identification information, and the identity information of the first user in the recorded gift record information of the first user is authentic and usable.

[0027] In one possible embodiment, outputting the verification response includes: obtaining a second historical gift record, the second historical gift record including the number of devices corresponding to the identity identifier of the first user and corresponding to the first device; and outputting the verification response when the number of devices is less than or equal to a preset threshold.

[0028] In an embodiment of the present application, the number of devices corresponds to the identity of the first user and the number of gift givings corresponding to the device model of the first device. The preset threshold indicates the maximum number of gift redemption times for the first device, that is, a limited number of gifts can be received for the same type of first device. For example, if the maximum number of gift redemption times is 3, then the user can receive a gift when purchasing devices of the same model as the first device for the first three times, but cannot receive a gift when purchasing devices of the same model as the first device for the fourth time or thereafter.

[0029] Generally, there are corresponding gift giving rules for gifts, which limit a user to a limited number of activities for a device type. However, the general gift recording method either does not record the user's information, or uses a spreadsheet to record the gift data line by line. It is time-consuming and labor-intensive to determine whether a user has exceeded the upper limit of the number of activities, and the accuracy is difficult to guarantee. However, in the technical solution provided by the embodiment of the present application, by obtaining a second historical gift record corresponding to the user and the first device, it is verified whether the number of gifts the user has received for the first device has exceeded the upper limit. The determination method is simple and the data is real and available.

[0030] In one possible implementation, the relationship between the first device and the second device is verified based on the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result, including: determining the information of one or more third devices corresponding to the first device; and when the identification information of the second device is included in the information of the one or more third devices, determining that the verification result is a successful verification.

[0031] In an embodiment of the present application, the information of the third device is the gift information of the first device that is associated with the first device.

[0032] Generally, the first device may have more than one gift. When giving away a second device, it is necessary to manually check each second device to see if it is a gift for the first device, which is time-consuming and labor-intensive, and has a high error rate. However, in the embodiment of the present application, the authenticity of the association between the first device and the second device is verified by checking whether the second device belongs to the list of gifts for the first device. The determination method is simple and the data is authentic and reliable.

[0033] In a possible implementation, the identity information of the first user includes information indicating a priority of the first user, and the one or more third devices are devices corresponding to the first device and corresponding to the priority of the first user.

[0034] In an embodiment of the present application, the information of the third device includes gift information associated with the first device and the first user. By determining whether the identification information of the second device is included in the information of the third device, it is determined whether the second device is a gift that is pre-set to correspond to the first device and the priority of the first user. Verifying whether the second device to be verified corresponds to the priority of the first user and the model of the first device has high verification accuracy and efficiency compared to traditional manual judgment methods.

[0035] In a possible implementation, the verification request further carries identity information of the second user, and outputting the verification response includes: outputting the verification response if the identity information of the second user is legal.

[0036] In the embodiment of the present application, the second user has a sales relationship with the first device, for example, the second user is a shopping guide or a salesperson.

[0037] Optionally, the first data verification device may verify whether the identity information of the second user is legal; optionally, the first data verification device may receive a verification result from the fifth data verification device verifying whether the identity information of the second user is legal. Exemplarily, the first data verification device may verify whether the identity information of the first user is legal, and the fifth data verification device may verify whether the identity information of the second user is legal. Exemplarily, the first data verification device may verify whether the identity information of the second user is legal, and the fourth data verification device may verify whether the identity information of the first user is legal. Exemplarily, the identity information of one user and the identity information of the second user may also be verified by one device, which is not limited in the embodiments of the present application.

[0038] Exemplarily, the fifth data verification device may be a server, or a terminal device, etc.

[0039] In an embodiment of the application, the first data verification device may, after verifying the legitimacy of the second user's identity information or after receiving the verification result of verifying the legitimacy of the second user's identity information, perform the verification of the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, and then output a verification response. Alternatively, the first data verification device may, after verifying the legitimacy of the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, perform the verification of the legitimacy of the second user's identity information or receive the verification result of verifying the legitimacy of the second user's identity information.

[0040] In the embodiment of the present application, the verification response includes a successful verification, that is, the authenticity of the identification information of the first device, the identification information of the second device, and the association between the first device and the second device has been verified, and the second device is allowed to be given as a gift of the first device only when the identification information of the second user is legal. By verifying the legitimacy of the second user's identity information, it is ensured that the second user has the gift authority, and at the same time, it is ensured that the identity information of the second user is authentic, so that when recording the gift data, the recorded identity information of the second user is authentic and available. When a customer complaint occurs, a second user with authentic and available identity information can be located based on the recorded gift data to follow up on the issue.

[0041] In a possible implementation, the method further includes: if the verification result is successful, storing identification information of the first device and identification information of the second device.

[0042] Generally, the gift record of the second device is usually recorded by the shopping guide of each store in a table, and then each store regularly summarizes the gift record and sends it to the government department for further verification. In the manual recording method, data recording is prone to errors and the data aggregation cycle is long. However, in the technical solution provided by the embodiment of the present application, the verification response includes a successful verification, that is, the authenticity of the identification information of the first device, the identification information of the second device and the association relationship between the first device and the second device has been verified, and the identification information of the first device and the identification information of the second device are stored when the verification result is a successful verification. The recorded identification information of the first device and the identification information of the second device are real and available, and there is a traceable trace for the problem. Without using the manual accounting method for storage, the error in the recording of the identification information of the first device and / or the identification information of the second device and the erroneous gift record can be avoided, while shortening the store data aggregation cycle.

[0043] In a possible implementation, the verification result includes verification success.

[0044] In the embodiment of the present application, the successful verification may also be referred to as a correct verification. In the case of successful verification, a verification response indicating successful verification is returned, prompting the second user that the second device has passed verification and can be given as a gift of the first device, so that the second user can proceed to the next step.

[0045] In an embodiment of the present application, the verification response may also carry any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user, and the identity information of the second user, for which the verification result is successful, for secondary confirmation, prompting the user to secondary confirm whether the verification data is correct, and providing a function option to confirm whether to store the verification data, wherein the verification data includes any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user, and the identity information of the second user. The secondary confirmation method provides users with a good user experience and truly helps users reduce errors.

[0046] In one possible implementation, the verification result includes a verification failure. If the verification result indicates a verification failure, the verification response also includes a reason for the verification failure. The verification response includes the failure reason to inform the user of the error source, allowing the user to adjust the verification request correctly and reduce operational overhead caused by incorrect data input.

[0047] In a possible implementation, the method further includes: when the verification result is successful, storing one or more of the identity information of the first user and the request time of the verification request.

[0048] In an embodiment of the present application, recording one or more of the identity information of the first user and the request time of the verification request is conducive to problem tracing. For example, when encountering a customer complaint, if the identification information of the first device provided by the first user is inaccurate, the identity information of the first user and / or the request time of the verification request can be used to conduct multi-dimensional verification, making problem tracing simpler and more traceable.

[0049] In one possible implementation, any one or more of the identification information of the first device, the identification information of the second device, and the identity information of the first user can be obtained via a barcode. The barcode is a barcode received by the first data verification device and scanned by the first terminal device, the first terminal device including a point of sale (POS) terminal or a mobile terminal; the barcode includes a one-dimensional barcode, a two-dimensional barcode, or the like.

[0050] In an embodiment of the present application, a first terminal device obtains any one or more of the identification information of the first device, the identification information of the second electronic device, and the identity information of the first user by scanning a barcode, which is simple and convenient. A POS machine can be used to obtain any one or more of the identification information of the first device, the identification information of the second electronic device, and the identity information of the first user, or a mobile terminal can be used to obtain any one or more of the identification information of the first device, the identification information of the second electronic device, and the identity information of the first user, thereby resolving the problem that some stores do not have POS or have inconsistent POS.

[0051] In one possible implementation, the verification request carries any one or more of the identification information of the first device and the identification information of the second device, the identity information of the first user, and the identity information of the second user, wherein the identification information of the first device is legal identification information that has passed the legality verification, the identification information of the second device is legal identification information that has passed the legality verification, the identity information of the first user is legal identity information that has passed the legality verification, and the identity information of the second user is legal identity information that has passed the legality verification.

[0052] It can be understood that when any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user and the identity information of the second user are legal, the next verification action is performed, and the first data verification device can avoid the operating overhead of verifying the legality of the identification information of the first device.

[0053] In a possible implementation, the outputting the verification response includes: outputting the verification response when the identifier of the first device is illegal and / or when the identifier of the second device is illegal.

[0054] In an embodiment of the present application, the verification response carries the verification result of the verification failure and the failure reason of the verification failure. The failure reason carried in the verification response informs the user of the error source so that the user can adjust the correct verification request and reduce the operating overhead caused by incorrect verification requests.

[0055] In one possible implementation, outputting the verification response includes: if the request time of the verification request is not within a preset time interval, and / or if there is a first historical gift record corresponding to the identification information of the first device, outputting the verification response, wherein the verification response carries a verification result indicating a verification failure and a reason for the verification failure. The verification response carries the reason for the failure to inform the user of the error source, so that the user can adjust the verification request correctly and reduce the operational overhead caused by incorrect verification requests.

[0056] In one possible implementation, outputting the verification response includes: if the first user's identity information is invalid, outputting the verification response, the verification response carrying a verification result indicating a verification failure and a reason for the verification failure, wherein the reason for the failure is that the first user's surrounding identity information is invalid. The verification response carrying the failure reason informs the user of the error source, allowing the user to adjust the verification request correctly, thereby reducing the operational overhead caused by incorrect verification requests.

[0057] In one possible implementation, outputting the verification response includes: if the number of devices exceeds a preset threshold, outputting the verification response, the verification response carrying a verification result indicating verification failure and a reason for the verification failure, the reason being that the first user has participated in an activity on the first device a number of times exceeding an upper limit. The verification response carrying the failure reason informs the user of the error source, allowing the user to adjust the verification request correctly and reduce operational overhead caused by incorrect verification requests.

[0058] In one possible implementation, the verification request also carries the second user's identity information, and outputting the verification response includes: if the second user's identity information is invalid, outputting the verification response, the verification response carrying a verification result indicating a verification failure and a reason for the verification failure, where the reason is that the second user's personal information is invalid. The verification response carries the failure reason to inform the user of the error, allowing the user to adjust the verification request correctly, thereby reducing the operational overhead caused by incorrect verification requests.

[0059] In a possible implementation, the method further includes: if the verification result is successful, storing the identity information of the second user.

[0060] In an embodiment of the present application, the second user is a shopping guide. Recording the shopping guide's identity information is conducive to problem tracing. For example, when encountering false gift giving record data, the corresponding shopping guide can be quickly located, which is helpful for following up on the problem and solving the problem more effectively.

[0061] In some possible implementations, the second device includes a virtual gift coupon, and the identification information of the second device is a code of the virtual gift coupon.

[0062] Generally, the second device is a physical device, and can be given to the first user after the second user has verified whether the second device is the gift corresponding to the first device. The second user can use the first user's identity information to create a false gift record without the first user's knowledge, and actually not give the second device to the first user. Therefore, when the gift exists in the form of a physical device, it is difficult to guarantee whether the physical device has been given to the corresponding first user. However, in the embodiment of the present application, the gift exists in the form of a virtual gift coupon, and the gift record is added using the first user's identity. The virtual gift coupon will be issued to the first user's personal account, ensuring that the first user has actually received the gift, which increases the difficulty of creating a false gift record.

[0063] In a second aspect, an embodiment of the present application provides a data verification method, comprising a first data verification device and a first terminal device; the first terminal device is used to send a verification request to the first data verification device, the verification request carrying identification information of the first device and identification information of the second device, the second device being a device to be verified as to whether it has an associated relationship with the first device; the first data verification device is used to receive the verification request, and verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device and a preset relationship to obtain a verification result, the preset relationship representing the relationship between the first device and the device having an associated relationship with the first device; and send a verification response to the first terminal device, the verification response carrying the verification result; the first terminal device is used to receive the verification response.

[0064] When the verification result is successful, the first terminal device displays the verification response, and the verification response indicates that the verification result of the verification request is successful.

[0065] When the verification result is a verification failure, the first terminal device displays the above-mentioned verification response, and the verification response includes the failure reason of the verification failure, and the failure reason includes that the relationship between the first device and the second device does not satisfy the preset relationship between the first device and the device associated with the first device.

[0066] It is understandable that the specific description of the first data verification device can also refer to other embodiments shown in this application, and will not be described in detail here.

[0067] In a third aspect, an embodiment of the present application provides a data verification device for executing the method in the first aspect or any possible implementation of the first aspect. The data verification device includes a unit having a function of executing the method in the first aspect or any possible implementation of the first aspect.

[0068] Exemplarily, the data verification device includes a processing unit and an input-output unit.

[0069] In a fourth aspect, embodiments of the present application provide a data verification device, comprising a processor configured to execute the method described in the first aspect or any possible implementation of the first aspect. Alternatively, the processor is configured to execute a program stored in a memory, and when the program is executed, the method described in the first aspect or any possible implementation of the first aspect is executed.

[0070] In the embodiment of the present application, the processor and the memory may also be integrated into a single device, that is, the processor and the memory may also be integrated together. It is understood that the memory in the embodiment of the present application may be used to store any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user, the request time of the verification request, etc.

[0071] In a possible implementation, the data verification device further includes a transceiver, which is configured to receive or send signals. Exemplarily, the transceiver may also be configured to receive a verification request, etc.

[0072] In the embodiment of the present application, the data verification device can be a chip, etc.

[0073] In a fifth aspect, an embodiment of the present application provides a data verification device, which includes a logic circuit and an interface, wherein the logic circuit and the interface are coupled; the interface is used to input a verification request; the logic circuit is used to verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship.

[0074] It is understandable that for the description of the identification information of the first device and the identification information of the second device, etc., reference can be made to the description of the first aspect; or, reference can also be made to the various embodiments shown below, which will not be described in detail here.

[0075] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, which, when executed on a computer, enables the method shown in the first aspect or any possible implementation of the first aspect to be executed.

[0076] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program or computer code, and when the computer program product is run on a computer, the method shown in the first aspect or any possible implementation of the first aspect is executed.

[0077] In an eighth aspect, an embodiment of the present application provides a computer program. When the computer program runs on a computer, the method shown in the first aspect or any possible implementation of the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1A-Figure 1C A schematic diagram of the architecture of a data verification system provided in an embodiment of the present application;

[0079] Figure 2 A flowchart of a data verification method provided in an embodiment of the present application;

[0080] Figures 3A-3D A flow chart of a data verification method provided in an embodiment of the present application;

[0081] Figures 4A-4D A flow chart of a data verification method provided in an embodiment of the present application;

[0082] Figure 5 A system architecture diagram of a data verification device provided in an embodiment of the present application;

[0083] Figures 6A-6D A flowchart of a data verification method provided in an embodiment of the present application;

[0084] Figure 7 A flowchart of a data verification method provided in an embodiment of the present application;

[0085] Figures 8 to 10 It is a structural diagram of a data verification device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] In order to make the purpose, technical solutions and advantages of this application clearer, this application will be further described below with reference to the accompanying drawings.

[0087] The terms "first" and "second" in the specification, claims, and drawings of this application are used only to distinguish different objects and are not used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to the process, method, product, or device.

[0088] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It will be understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0089] In this application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".

[0090] The terms involved in this application are introduced in detail below.

[0091] 1. First device and second device:

[0092] For example, the first device and / or the second device may be an electronic device that has been sold, or an electronic device to be sold, or a related product provided to a third party by sale, lease, or any other means. For example, the first device and / or the second device may be a watch, a mobile terminal, a phone, a television, a video recorder, a camcorder, a radio, a tape recorder, headphones, a computer, daily necessities, durable goods, etc.

[0093] 2. First user, second user:

[0094] The first user has a purchasing relationship with the first device; for example, the first user is a customer who purchased the first device.

[0095] The second user has a sales relationship with the first device; for example, the second user is a salesperson or a shopping guide responsible for selling the first device.

[0096] 3. Legality:

[0097] In the present application, the first data verification device may store identification information of related devices and / or identification information of related users. For example, the related devices may be the first device, the third device, etc., and the related users may be the first user, the third user, etc. For example, the identification information of the first device, the identification information of the third device, the identification information of the first user, and the identification information of the second user may be stored in the first data verification device in various forms, such as tables or code instructions. For example, in a large merchant with a large amount of data on related devices and related users, the data of related devices and related users may be stored in tables, thereby providing program and data independence and long-term data storage, with high data security and backup and recovery capabilities. For example, in a small merchant with a limited number of shopping guides, the identification information of the second user may be stored in the first data verification device in the form of code instructions, reducing the number of tables and avoiding the operational overhead caused by frequent table reading. It is understood that the identification information of the related devices and / or the identification information of the related users may also be stored in other devices, so that when the first data verification device needs to use the above information, it can obtain the above information from the other device.

[0098] For ease of description, the following explanation is given in the form of a table as an example.

[0099] In this application, the legality of the identification information of a first device means that the identification information of the first device exists in a table storing legally available devices for sale. The legality of the identification information of a second device means that the identification information of the first device exists in a table storing legally available gifts. The legality of the identity information of a first user means that the identity information of the first user exists in a table storing legally available first users. The legality of the identity information of a second user means that the identity information of the second user exists in a table storing legally available second users.

[0100] 4. Device identification information: (For ease of description, the identification information of the first device and the identification information of the second device are collectively referred to as device identification information)

[0101] Device identification information includes any one or more of the following: the device's identity document (ID), the device's international mobile subscriber identity (IMSI), the device model, and the device serial number (which can be a user-defined serial number). Device identification information identifies a specific device and allows for quick, efficient, and efficient locating of a specific device.

[0102] It is understood that the identification information of the devices shown above may be interrelated. For example, the device's IMSI can be used to find the device's model. For another example, the device's model can be used to find the device's serial number.

[0103] 5. Identity information of the first user:

[0104] The first user's identity information may be information related to the first user, including any one or more of the first user's identity document (ID) and the first user's priority. The first user's identity information is used to refer to a specific first user. The first user's identity information may include an ID number, user account number, mobile phone number, fingerprint data, or facial data.

[0105] It is understandable that the identity information of the first user shown above may be related to each other. For example, the priority of the first user may be found using the ID of the first user.

[0106] 6. Preset relationship:

[0107] In this application, a preset relationship refers to the relationship between a first device and a gift of the first device. For example, the preset relationship can be stored in the first data verification device in the form of a table, file, or collection. This application does not limit the specific form of the preset relationship. For ease of description, the following explanation is carried out using a table as an example.

[0108] In the present application, the preset relationship may represent an association relationship between a first device and a third device. The identification information of the first device and the identification information of the third device may be of the same type. For example, the identification information of the first device includes the ID of the first device, and the identification information of the third device includes the ID of the third device; or, the identification information of the first device includes the device model of the first device, and the identification information of the third device includes the device model of the third device. For another example, the identification information of the first device and the identification information of the third device may be of different types. For example, the identification information of the first device includes the ID of the first device, and the identification information of the third device includes the device model of the third device.

[0109] Exemplarily, the preset relationship represents an index relationship between the IDs of one or more first devices and the corresponding IDs of one or more third devices. Alternatively, the preset relationship represents an index relationship between the IDs of one or more first devices and the device models of one or more third devices. Alternatively, the preset relationship represents the device models of one or more first devices and the corresponding IDs of one or more third devices. Alternatively, the preset relationship represents the device models of one or more first devices and the corresponding device models of one or more third devices.

[0110] In the present application, the preset relationship may also represent an association relationship between the first device, the first user, and the third device. For example, the preset relationship may be used to represent an association relationship between the identification information of the first device, the identification information of the first user, and the identification information of the third device. The identification information of the first device and the identification information of the third device may be of the same or different types. The identification information of the first user may include the priority of the first user, or the identification information of the first user may include the ID of the first user. If the identity information of the first user includes the ID of the first user, the priority of the first user is determined by the ID of the first user.

[0111] Exemplarily, the preset relationship represents an association relationship between the device models of one or more first devices, the priority of the first user, and the device models of one or more third devices; or, the preset relationship represents an association relationship between the IDs of one or more first devices, the priority of the first user, and the device models of one or more third devices; or, the preset relationship represents an association relationship between the device models of one or more first devices, the priority of the first user, and the IDs of one or more third devices.

[0112] In this application, the preset relationship can also represent the association relationship between the second device, the first user, and the fourth device. The relationship between the second device and the fourth device is that the second device is a gift to the fourth device. For example, the preset relationship can be used to represent the association relationship between the identification information of the second device, the identity information of the first user, and the identification information of the fourth device.

[0113] Exemplarily, the preset relationship represents an association relationship among the priority of the first user, the device models of one or more second devices, and the device models of one or more fourth devices.

[0114] In this application, the preset relationship may also represent an association relationship between the first device, the second device, and a third user, where the third user has a purchasing relationship with the first device. For example, the preset relationship may be used to represent an association relationship between the identification information of the first device, the identification information of the second device, and the identity identification information of the third user.

[0115] Exemplarily, the preset relationship represents an association relationship between device models of one or more first devices, device models of one or more second devices, and the priority of the third user.

[0116] Exemplarily, the first data verification device verifies the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result, which may include the following method:

[0117] Method 1, when the preset relationship represents the device model of one or more first devices and the corresponding device model of one or more third devices, verifies whether the device model of the second device is included in the device model of the one or more third devices. If so, the verification result is that the verification is successful.

[0118] Method 2, when the preset relationship represents the association between the device model of one or more first devices, the priority of the first user and the device model of one or more third devices, verifies whether the device model of the second device is included in the device model of the third device. If so, the verification result is that the verification is successful.

[0119] Method 3, when the preset relationship represents the association relationship between the priority of the first user, the device model of one or more second devices, and the device model of one or more fourth devices, verifies whether the device model of the first device is included in the device model of the one or more fourth devices. If so, the verification result is that the verification is successful.

[0120] Method 4, when the preset relationship represents the association between the device models of one or more first devices, the device models of one or more second devices and the priority of the third user, verifies whether the priority of the first user is the same as the priority of the third user. If so, the verification result is that the verification is successful.

[0121] 7. Gifts:

[0122] The gift in this application refers to a gift given free of charge when the first user purchases a specific product (such as the first device), which is usually an item included in the product packaging or packaged separately or sold at a very low price.

[0123] The present application will be further described below with reference to the accompanying drawings.

[0124] See also Figure 1A , Figure 1AThis is an architectural diagram of a data verification system provided in an embodiment of the present application. The data verification system includes a first terminal device 100 and a first data verification device 200. The first terminal device 100 can be a mobile phone, a POS machine, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc., and there can be multiple first terminal devices 100. This embodiment of the present application does not impose any special restrictions on the specific type of the first terminal device 100. The first data verification device 200 can be: a server, a cloud, a cloud server, etc. For example, the first terminal device 100 can communicate with the first data verification device 200 via a 2G network, a 3G network, a 4G network, a 5G network, or a wireless local area network (WLAN).

[0125] The first terminal device 100 can be used to obtain the identification information of the first device and the identification information of the second device. Furthermore, the first terminal device 100 can send a verification request to the first data verification device 200. For example, the verification request can be used to verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship. Consequently, the first data verification device 200 can send a verification response to the first terminal device 100. Exemplarily, the identification information of the first device and the identification information of the second device are barcodes. The description of the preset relationship is as described above and will not be elaborated here.

[0126] Exemplarily, the first terminal device 100 can also be used to obtain the identification information of the first device, the identification information of the second device, and the identity information of the first user. And the first terminal device 100 can send a verification request to the first data verification device 200. For example, the verification request can be used to verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and the preset relationship, and to verify the legitimacy of the identity information of the first user based on the identity information of the first user. Thus, the first data verification device 200 can send a verification response to the first terminal device 100. Exemplarily, the identification information of the first device, the identification information of the second device, and the identity information of the first user are barcodes. For the description of the preset relationship, please refer to the above and will not be described in detail here.

[0127] Exemplarily, the first terminal device 100 may also be used to obtain identification information of the first device, identification information of the second device, identity information of the first user, and identity information of the second user. Furthermore, the first terminal device 100 may send a verification request to the first data verification device 200. For example, the verification request may be used to verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship, and to verify the legitimacy of the first user's identity information based on the first user's identity information, and to verify the legitimacy of the second user's identity information based on the second user's identity information.

[0128] Exemplarily, the above-mentioned first data verification device can verify whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, verify the relationship between the first device and the second device based on a preset relationship, and verify whether the request time of the verification request is within a preset time interval.

[0129] For example, Figure 1B As shown, the above-mentioned data verification system may further include a second data verification device 300, and the second data verification device 300 may be a server, a cloud, a cloud server, etc.

[0130] Exemplarily, the first data verification device may send to the second data verification device any one or more verification requests to verify whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, and whether the request time of the verification request is within a preset time interval, and then receive a verification response sent by the second data verification device.

[0131] For example, the first data verification device independently performs verification of whether the identification information of the second device is legal, whether the identity identification information of the first user is legal, whether the identity identification information of the second user is legal, whether the relationship between the first device and the second device is verified according to a preset relationship, and whether the request time of the verification request is within a preset time interval. The second data verification device 300 is used to perform any one or more of the verifications of whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity identification information of the first user is legal, whether the identity identification information of the second user is legal, and whether the request time of the verification request is within a preset time interval. Specifically, for example, the first data verification device can send a verification request to the second data verification device to verify whether the identification information of the first device is legal. After receiving the verification request, the second data verification device verifies whether the identification information of the first device is legal, and sends the verification result of the verification request to the first data verification device.

[0132] For example, Figure 1B As shown, the data verification system includes, in addition to the first terminal device 100, the first data verification device 200 and the second data verification device 300, the following Figure 1B The third data verification device 400 shown may be a server, a cloud, a cloud server, etc.

[0133] Optionally, the first data verification device may send to the second data verification device or the third data verification device any one or more verification requests to verify whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, and whether the request time of the verification request is within a preset time interval, and then receive a verification response sent by the second data verification device or the third data verification device.

[0134] For example, the second data verification device and the third data verification device may be respectively responsible for performing any one or more of the following verifications: verifying the legality of the identification information of the first device, verifying the legality of the identification information of the second device, verifying the legality of the identity information of the first user, verifying the legality of the identity information of the second user, and verifying whether the request time of the verification request is within a preset time interval. Different data verification devices are responsible for performing some verification tasks, which is conducive to data decoupling.

[0135] Exemplarily, the first data verification device independently performs verification of whether the identity identification information of the first user is legal, whether the identity identification information of the second user is legal, verification of the relationship between the first device and the second device based on a preset relationship, and verification of whether the request time of the verification request is within a preset time interval. The second data verification device 300 or the third data verification device 400 can be used to perform any one or more of the verifications of whether the identification information of the first device is legal and whether the identification information of the second device is legal. Specifically, the first data verification device 200 can send a verification request to the second data verification device 300 or the third data verification device 400 to verify whether the identification information of the second device is legal. After receiving the verification request, the second data verification device 300 or the third data verification device 400 verifies whether the identification information of the second device is legal, and sends the verification result of the verification request to the first data verification device 200.

[0136] For example, Figure 1B As shown, the data verification system includes, in addition to the first terminal device 100, the first data verification device 200, the second data verification device 300 and the third data verification device 400, the following Figure 1B The fourth data verification device 500 shown may be a server, a cloud, a cloud server, etc.

[0137] Optionally, the first data verification device may send to the second data verification device, the third data verification device or the fourth data verification device any one or more verification requests to verify whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, and whether the request time of the verification request is within a preset time interval, and then receive a verification response sent by the second data verification device, the third data verification device or the fourth data verification device.

[0138] Exemplarily, the first data verification device independently verifies whether the second user's identity information is legitimate, verifies the relationship between the first device and the second device based on a preset relationship, and verifies whether the request time of the verification request is within a preset time interval. The second data verification device 300 or the third data verification device 400 can be used to verify any one or more of the following: whether the identification information of the first device is legitimate, whether the identification information of the second device is legitimate. The fourth data verification device 500 can be used to verify whether the identity information of the first user is legitimate.

[0139] Specifically, for example, the first data verification device 200 may send a verification request to the fourth data verification device 500 to verify whether the first user's identity information is legitimate. After receiving the verification request, the fourth data verification device 500 verifies whether the first user's identity information is legitimate and sends the verification result of the verification request to the first data verification device 200. The fourth data verification device can be used to perform verification actions related to user authentication, etc. Different data verification devices are responsible for performing part of the verification tasks, which is conducive to data decoupling.

[0140] For example, Figure 1B As shown, the data verification system includes, in addition to the first terminal device 100, the first data verification device 200, the second data verification device 300, the third data verification device 400 and the fourth data verification device 500, the following Figure 1B The fifth data verification device 600 shown can be a server, a cloud, a cloud server, etc.

[0141] Optionally, the above-mentioned first data verification device can send any one or more verification requests to the second data verification device, the third data verification device, the fourth data verification device or the fifth data verification device to perform any one or more verification requests of verifying whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, and whether the request time of the verification request is within a preset time interval, and then receive a verification response sent by the second data verification device, the third data verification device, the fourth data verification device or the fifth data verification device.

[0142] Exemplarily, the first data verification device independently verifies the relationship between the first device and the second device based on a preset relationship, and verifies whether the request time of the verification request is within a preset time interval. The second data verification device 300 or the third data verification device 400 can be used to perform any one or more of the following verifications: whether the identification information of the first device is legal, whether the identification information of the second device is legal. The fourth data verification device 500 or the fifth data verification device can be used to perform any one or more of the following verifications: whether the identity information of the first user is legal, whether the identity information of the second user is legal.

[0143] Specifically, for example, the first data verification device 200 can send a verification request to the fifth data verification device 600 to verify whether the identity information of the second user is legal. After receiving the verification request, the fifth data verification device 600 verifies whether the identification information of the second user is legal, and sends the verification result of the verification request to the first data verification device 200.

[0144] For example, Figure 1B As shown, the data verification system includes, in addition to the first terminal device 100, the first data verification device 200, the second data verification device 300, the third data verification device 400, the fourth data verification device 500 and the fifth data verification device 600, the following Figure 1B The sixth data verification device 700 shown may be a server, a cloud, a cloud server, etc.

[0145] Optionally, the first data verification device may send to the second data verification device, the third data verification device, the fourth data verification device, the fifth data verification device or the sixth data verification device any one or more verification requests to execute verification of whether the identification information of the first device is legal, whether the identification information of the second device is legal, whether the identity information of the first user is legal, whether the identity information of the second user is legal, and whether the request time of the verification request is within a preset time interval, and then receive a verification response sent by the second data verification device, the third data verification device, the fourth data verification device or the fifth data verification device.

[0146] Exemplarily, the first data verification device verifies the relationship between the first device and the second device based on a preset relationship. The second data verification device 300 or the third data verification device 400 can be used to verify whether the identification information of the first device is legal or whether the identification information of the second device is legal. The fourth data verification device 500 or the fifth data verification device can be used to verify whether the identity information of the first user is legal or whether the identity information of the second user is legal. The sixth data verification device is used to verify whether the request time of the verification request is within a preset time interval.

[0147] Specifically, for example, the first data verification device 100 can send a verification request to the sixth data verification device 700 to check whether the request time of the verification request is within a preset time interval. After receiving the verification request, the sixth data verification device 700 verifies whether the verification time is within the preset time interval and sends the verification result of the verification request to the first data verification device 200.

[0148] For example, Figure 1CAs shown, the first terminal device 100 can also communicate with the first data verification device 200, the second data verification device 300, the third data verification device 400, the fourth data verification device 500, the fifth data verification device 600, and the sixth data verification device 700. The second data verification device 300 is a sub-server that manages the first device, the third data verification device 300 is a sub-server that manages the second device, the fourth data verification device 500 is a sub-server that manages the first user, the fifth data verification device 600 is a sub-server that manages the second user, and the sixth data verification device 700 is a sub-server used to verify whether the request time is within a preset time interval. Different data verification devices are responsible for performing part of the verification tasks, which is conducive to data decoupling.

[0149] Exemplarily, the first terminal device 100 may send a verification request to the second data verification device 300 to verify whether the identification information of the first device is legal; the second data verification device 300 may send a verification result of verifying whether the identification information of the first device is legal to the first terminal device 100; and the first terminal device 100 may receive a verification result of verifying whether the identification information of the second device is legal from the third data verification device 400. The first terminal device 100 may receive a verification result of verifying whether the identity information of the first user is legal from the fourth data verification device 500. The first terminal device 100 may receive a verification result of verifying whether the identity information of the second user is legal from the fifth data verification device 600. The first terminal device 100 may receive a verification result of verifying whether the request time is within a preset time interval from the sixth data verification device 700. Then, the first terminal device 100 sends a verification request to the first data verification device 200 to verify the relationship between the first device and the second device. The verification request includes the verified legal identification information of the first device, the identification information of the second device, the identity information of the first user, and the identity information of the second user.

[0150] See also Figure 2 , Figure 2 This is a flow chart of a data verification method provided in an embodiment of the present application. Figure 2 As shown: The data verification method includes the following steps:

[0151] 201. A first data verification device receives a verification request, where the verification request carries identification information of a first device and identification information of a second device, where the second device is a device to be verified as to whether it has an association relationship with the first device.

[0152] For example, the verification request may be made by the first terminal device (such as Figure 1A-Figure 1CFor example, the first terminal device can send the verification request to the first data verification device after obtaining the identification information of the first device and the identification information of the second device. Figure 1A As shown, when the first user needs to purchase a first device and will be given a second device, the first terminal device obtains the identification information of the first device and the identification information of the second device by scanning the barcode, and then sends the verification request to the first data verification device.

[0153] 202. A first data verification device verifies the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result. The preset relationship represents the relationship between the first device and a device associated with the first device.

[0154] In the embodiments of the present application, a preset relationship can be used to represent the relationship between the first device and the third device. For example, the first data verification device can store a preset relationship, so that the first data verification device can verify the relationship between the first device and the second device based on the preset relationship. For a description of the preset relationship, please refer to the above and will not be detailed here.

[0155] In some embodiments, step 202 specifically involves determining information of one or more third devices corresponding to the first device. When the identification information of the second device is included in the information of the third device, the verification result is successful verification.

[0156] For example, the first device is the "Mate40," and the information of one or more third devices corresponding to the first device includes "99 yuan wired headphones," "199 yuan wireless Bluetooth headphones," and "299 yuan wireless Bluetooth headphones second generation." If the identification information of the second device is included in the information of the third device, that is, if the second device is any one or more of "99 yuan wired headphones," "199 yuan wireless Bluetooth headphones," and "299 yuan wireless Bluetooth headphones second generation," the verification result is successful.

[0157] In some other embodiments, step 202 specifically includes: the identity information of the first user includes information for indicating the priority of the first user; the one or more first and third devices are devices corresponding to the first device and corresponding to the priority of the first user.

[0158] For example, the first device is "Mate40", and the priority of the first user may include the first priority, the second priority, and the third priority. Exemplarily, the priority of the first priority is higher than the second priority, and the priority of the second priority is higher than the third priority. For example, the priority of the first user is the first priority, then the one or more third devices corresponding to the first device and the first priority of the first user are "299 yuan wireless Bluetooth headset second generation". For another example, the priority of the first user is the second priority, then the one or more third devices corresponding to the first device and the second priority of the first user are "199 yuan wireless Bluetooth headset". For another example, the priority of the first user is the third priority, then the one or more third devices corresponding to the first device and the second priority of the first user are "99 yuan wired headset". If the identification information of the second device is included in the information of one or more third devices corresponding to the first device and the priority of the first user, the verification result is successful verification.

[0159] In an embodiment of the present application, the priority of the first user can be used to represent the user membership level or new and old customer level of the first user. For example, the first priority level of the first user's user membership level corresponds to the Premium Member, the second priority level corresponds to the Senior Member, and the third priority level corresponds to the Growth Member. By verifying whether the second device to be verified corresponds to the first user's priority level and the first device model, the verification accuracy and efficiency are higher than traditional manual determination methods.

[0160] 203. The first data verification device outputs a verification response, where the verification response carries the verification result.

[0161] In an embodiment of the present application, a first data verification device outputs a verification response, and the first terminal device receives and displays the verification response, prompting the second user whether the verification request is successful, so as to facilitate the next step. For example, if the verification result is successful, the second user is prompted to donate the second device to the first user. For example, if the verification result is a failure, the second user is prompted with the reason for the failure so that the user can adjust the correct data to be verified and then initiate the verification request.

[0162] In an embodiment of the present application, the verification result includes a successful verification; the successful verification may also be referred to as a correct verification. In the case of a successful verification, a verification response indicating a successful verification is returned. The verification response may carry information about the verification data that has passed the verification for secondary confirmation. The verification result also includes a failed verification; the failed verification may also be referred to as a verification error. In the case where the verification result is a failed verification, the verification response also includes a reason for the failure of the verification. Exemplarily, the reason for the failure of the verification may include that the relationship between the first device and the second device does not satisfy the preset relationship between the first device and the device associated with the first device; specifically, the identification information of the second device is not included in the information of one or more third devices, that is, the second device is not a gift from the first device.

[0163] The method provided in the embodiment of the present application is implemented to compare the correspondence between the first device and the gift of the first device with the relationship between the first device and the second device to determine whether the second device is a gift of the first device, so that the matching relationship between the device and the gift to be given is authentic.

[0164] In one possible implementation, Figure 2 The method shown also includes step 204:

[0165] 204. If the verification result is successful, store the identification information of the first device and the identification information of the second device.

[0166] The method provided by the embodiment of the present application stores the identification information of the first device and the identification information of the second device when the verification result is successful. The recorded identification information of the first device and the identification information of the second device are real and available, and problems can be traced back.

[0167] In an embodiment of the present application, the verification request also carries the identity information of the first user, and outputting the verification response includes: outputting the verification response when the identity information of the first user is legal.

[0168] In the embodiment of the present application, the first user has a purchasing relationship with the first device. In the embodiment of the present application, the identity information of the first user is user account information, mobile phone number information, ID card number information, face data or fingerprint data.

[0169] In the embodiment of the present application, the verification result includes verification success and verification failure, wherein the condition for verification success may include the above step 202. In addition to the above step 202, the embodiment of the present application also provides several other conditions for verifying that the verification result of the verification request is verification success, such as Figures 3A-3D as well as Figures 4A-4D As shown, its embodiments are respectively as follows:

[0170] like Figure 3A As shown, in the embodiment of the present application, the outputting of the verification response includes: outputting the verification response when the identification information of the first device is legal. Specifically, the steps include:

[0171] 301. A first data verification device determines whether identification information of a first device is legal.

[0172] 302. If the identification information of the first device is legal, the verification result is verification success, and then the first data verification device outputs the verification response.

[0173] 303. When the identification information of the first device is illegal, the verification result is verification failure. The verification response carries the reason for the verification failure, which is that the identification information of the first device is illegal. Then, the first data verification device outputs the verification response.

[0174] like Figure 3B As shown, in the embodiment of the present application, the output verification includes: outputting the verification response when the identification information of the second device is legal. Specifically, it includes the following steps:

[0175] 304. The first data verification device determines whether the identification information of the second device is legal.

[0176] 305. If the identification information of the second device is legal, the verification result is verification success, and then the first data verification device outputs the verification response.

[0177] 306. When the identification information of the second device is illegal, the verification result is verification failure. The verification response carries the reason for the verification failure, which is that the identification information of the second device is illegal. Then, the first data verification device outputs the verification response.

[0178] In the embodiment of the present application, the specific method for verifying whether the identification information of the first device and / or the identification information of the second device is legal is as described above and will not be described in detail here. In the embodiment of the present application, the method for verifying the legality of the first device and / or the second device is used to ensure that the first device is not impersonating a device that needs to be gifted, and the second device is not impersonating a gift to be given to replace the gift to be given. The identification information of the first device and the identification information of the second device are authentic and usable, which increases the difficulty of creating a false gift record.

[0179] like Figure 3C As shown, in the embodiment of the present application, the verification request also carries the identity information of the first user, and the outputting of the verification response includes: outputting the verification response when the identity information of the first user is legal. Specifically, the steps include:

[0180] 307. The first data verification device determines whether the identity information of the first user is legal.

[0181] 308. If the user's identity information is legal, the verification result is successful, and the first data verification device outputs the verification response.

[0182] 309. When the identity information of the first user is illegal, the verification result is verification failure. The verification response carries the reason for the failure of verification, which is that the identity information of the first user is illegal. Then, the first data verification device outputs the verification response.

[0183] like Figure 3D As shown, in the embodiment of the present application, the verification request also carries the identity information of the second user, and the outputting of the verification response includes: outputting the verification response when the identity information of the second user is legal. Specifically, it includes the following steps:

[0184] 310. The first data verification device determines whether the identity information of the second user is legal.

[0185] 311. If the identity information of the two users is legal, the verification result is successful, and then the first data verification device outputs the verification response.

[0186] 312. When the identity information of the second user is illegal, the verification result is verification failure. The verification response carries the reason for the failure of verification, which is that the identity information of the second user is illegal. Then, the first data verification device outputs the verification response.

[0187] In the embodiment of the present application, the specific method for verifying whether the identification information of the first user and / or the identification information of the second user is legitimate is referred to above and will not be described in detail here. In the embodiment of the present application, by verifying the legitimacy of the identity information of the first user, the authenticity of the user's identity is ensured, and the identity information of the user in the recorded gift record information is authentic and usable.

[0188] like Figure 4A As shown, in the embodiment of the present application, the outputting of the verification response includes: outputting the verification response when the request time of the verification request is within a preset time interval. Specifically, the steps include:

[0189] 401. The first data verification device determines whether the request time is within a preset time interval. The preset time interval is a time interval for an activity in which a gift of the first device is given away when the first device is purchased. The activity time interval includes an activity start time and an activity end time.

[0190] 402. When the request time is within the preset time interval, the verification result is verification success, and then the first data verification device outputs the verification response.

[0191] 403. When the request time is not within the preset time interval, the verification result is verification failure. The verification response carries the failure reason of verification failure, which is that the request time is not within the active time interval. Then the first data verification device outputs the verification response.

[0192] In the embodiment of the present application, a method is adopted to determine whether the request time of the above-mentioned verification request is within the activity time interval to ensure that the time of giving gifts complies with the activity rules.

[0193] like Figure 4B As shown, in the embodiment of the present application, the outputting of the verification response includes: outputting the verification response when there is no first historical gift record corresponding to the identification information of the first device. Specifically, the steps include:

[0194] 404. The first data verification device verifies whether the first historical gift record exists.

[0195] 405. In the case that the first historical gift record does not exist, that is, the first device has not been given a gift, the verification result is verification success, and then the first data verification device outputs the verification response.

[0196] 406. In the case where the first historical gift record exists, the verification result is verification failure. The verification response carries the reason for the verification failure, which is that the first device has been given a gift and cannot be given again. Then the first data verification device outputs the verification response.

[0197] In the embodiment of the present application, the method of this solution can quickly verify that the first device has been given a gift and cannot be given a gift again, and the verification efficiency and accuracy are high.

[0198] like Figure 4C As shown, in an embodiment of the present application, outputting the verification response includes: obtaining a second historical gift record, the second historical gift record including the number of devices corresponding to the identity of the first user and corresponding to the first device; and outputting the verification response when the number of devices is less than or equal to a preset threshold. Specifically, the steps include:

[0199] 407, the first data verification device verifies whether the number of devices is less than or equal to a threshold value. In the embodiment of the present application, the threshold value is the maximum number of times the first user can receive gifts for the same type of first device.

[0200] 408. When the number of devices is less than or equal to the threshold, that is, the number of times the first user has received gifts for the same type of first device is less than or equal to the maximum number of gifts that can be received, and the first user can continue to receive gifts for the same type of first device, the verification result is successful verification, and then the first data verification device outputs the verification response.

[0201] 409. When the number of devices is greater than the threshold, the verification result is verification failure. The verification response carries the reason for the verification failure, which is that the number of times the first user has received gifts for the same type of first device is greater than the maximum number of times that gifts can be received. The first user cannot continue to receive gifts for the same type of first device, and then the first data verification device outputs the verification response.

[0202] In the embodiment of the present application, it is verified whether the number of gifts the user has received for the first device has exceeded the maximum number of gifts that can be received. The determination method is simple and the data is true and reliable.

[0203] By implementing the method provided in the embodiment of the present application, the verification response carries the reason for failure to inform the user of the source of the error, so that the user can adjust the correct input and reduce the operating overhead caused by incorrect data input.

[0204] It is understandable that, in addition to step 202, the verification result of successful verification shown in the embodiments of the present application can be obtained by the verification results of any one or more of steps 302, 305, 308, 311, 402, 405, and 408; that is, the verification conditions include N items (N is an integer greater than or equal to 1) in steps 302, 305, 308, 311, 402, 405, and 408, and if the verification results of these N items are successful, the verification result is successful. Exemplarily, the verification result of successful verification can be obtained by the verification results of the above steps 302, 305, and 308.

[0205] It is understandable that, in addition to step 202, the verification result of verification failure shown in the embodiments of the present application can be obtained by the verification results of any one or more of steps 303, 306, 309, 312, 403, 406, and 409. The verification condition includes M items (M is an integer greater than or equal to 1) in steps 303, 306, 309, 312, 403, 406, and 409. As long as any one of the N verification results is a verification failure, the verification result is a verification failure.

[0206] Illustratively, any one or more of steps 301, 304, 307, 310, 401, 404, and 407 may be performed by the first data verification device before step 202. Alternatively, they may be performed by the first data verification device after step 202.

[0207] For example, any one or more of the above steps 301, 304, 307, 310 and 401 may also be performed by the corresponding second data verification device 300, third data verification device 400, fourth data verification device 500, fifth data verification device 600 and sixth data verification device 700. For details, refer to the above. Figure 1A-Figure 1C The description of the above is omitted here. The corresponding data verification device then sends the verification results to the first data verification device. Having the first data verification device uniformly perform the verification steps facilitates unified management of data monitoring and maintenance. Having the corresponding data verification devices perform different subtasks, and the modularization of the project facilitates data decoupling.

[0208] For example, see Figure 4D The fourth data verification device 500 performs the verification step in step 307, specifically including the following steps:

[0209] 3071. The first data verification device sends a verification request to the fourth data verification device to verify whether the identity information of the first user is legal.

[0210] 3072. After receiving the verification request, the fourth data verification device verifies whether the identity information of the first user is legal.

[0211] 3073. The fourth data verification device sends a verification result of whether the identity identification information of the first user is legal to the first data verification device.

[0212] 3074. The first data verification device receives the verification result and determines whether the identity information of the first user is legal based on the verification result.

[0213] The second data verification device 300 executes the above step 301, the third data verification device 400 executes the above step 304, the fifth data verification device 600 executes the above step 310, and the sixth data verification device 600 executes the above step 401 and the fourth data verification device 500 executes the above step 307 in the same principle, and will not be described in detail again.

[0214] In the embodiment of the present application, the second device can be replaced by a virtual gift coupon. Specifically, there are two ways for the first data verification device to obtain the code of the virtual gift coupon:

[0215] Method 1: After receiving the code of the virtual gift coupon manually entered by the second user and the identification information of the first device, the first terminal device sends a verification request to the first data verification device, and the verification request includes the identification information of the above-mentioned first device and the code of the virtual gift coupon.

[0216] Method 2: After obtaining the identification information of the first device, the first terminal device sends a request instruction to the first data verification device to obtain the code of the virtual gift coupon corresponding to the identification information of the second device. After receiving the request instruction, the first data verification device searches for the code of the virtual gift coupon corresponding to the identification information of the second device and then sends the code of the virtual gift coupon to the first terminal device. After receiving the instruction to send a verification request to the first data verification device, the first terminal device sends the verification request to the first data verification device. The verification request includes the identification information of the first device and the code of the virtual gift coupon.

[0217] In the embodiment of the present application, the gifts exist in the form of virtual gift coupons, which increases the difficulty of creating false gift records.

[0218] The following describes in detail the implementation of the data verification method of this application in combination with specific usage scenarios. Figure 5-Figure 7 , which is a schematic diagram of a data verification method provided in an embodiment of the present application.

[0219] Please refer to Figure 5 , Figure 5 This is a system architecture diagram provided for an embodiment of the present application.

[0220] like Figure 5 As shown in FIG, a structural diagram of a data verification system provided by an embodiment of the present application. For example, the data verification system can logically include an access layer and a logic layer. The access layer can be used to provide an interface for users, and the logic layer can be used to verify relevant information (such as the identification information of the first device, the identification information of the second device, etc.). It can be understood that Figure 5 The data verification system shown should not be understood as steps performed on the same device.

[0221] In addition, the data verification system includes a first terminal device, which can run a gift verification (GiftVerification, GV) App or a POS system to provide a login interface for the second user. The second user uses the second user's identity identification information to log in to the GV App or log in to the POS system to obtain permission to use the first terminal device to communicate with the first data verification device. The second user can use the first terminal device to obtain the data to be verified and initiate a verification request. Exemplarily, after receiving the request data to be verified obtained by the second user using the first terminal device, the first terminal device sends the request data to the first data verification device for verification. The request data includes any one or more of the identification information of the first device, the identification information of the second device, the identity identification information of the first user, and the identity identification information of the second user.

[0222] Exemplarily, the data verification system may include a second terminal device capable of running a Member Center (MC) app or mini-program, providing a first user with an interface for logging into the Member Center System (MCS). The MCS primarily provides authentication of the first user and querying of the first user's priority information. Exemplarily, upon receiving a request from the first user to obtain the first user's identity information, the MCS executes the request and outputs a barcode containing the first user's identity information.

[0223] The logic layer includes a first data verification device and a terminal equipment management system and a gift inventory management system that are relied upon in the data verification process. Exemplarily, the terminal equipment management system can be used to provide authenticity verification of the identification information of the first device, and the identification information of the first device can be entered into the terminal equipment management system when the production is completed and shipped. The gift inventory management system can be used to provide authenticity verification and inventory query of the identification information of the second device, and the identification information of the second device can be entered into the gift inventory management system. It is understandable that the terminal equipment management system can be stored in the second data verification device, or it can be a database in the first data verification device. The gift inventory management system can be stored in the third data verification device, or it can be a database in the first data verification device. For the description of the second data verification device and the third data verification device, please refer to the above and will not be described in detail here.

[0224] The first data verification device includes the following modules:

[0225] 1. Access authentication module. Access authentication can verify the authenticity of the first user's identity information, the second user's identity information, the first device's identity information, and the second device's identity information. Optionally, the verification of the legitimacy of the first user's identity information can be performed by a first data verification device, or by a third data verification device, which then sends the verification result of the legitimacy of the first user's identity information to the first data verification device. The execution entity for verifying the legitimacy of the first user's identity information, the second user's identity information, the first device's identity information, and the second device's identity information has been described in detail above and will not be repeated here.

[0226] In an embodiment of the present application, a method is adopted to verify the legitimacy of the identification information of the first device, the identification information of the second device, the identity identification information of the first user, and the identity identification information of the second user to ensure that the identification information of the first device, the identification information of the second device, the identity identification information of the first user, and the identity identification information of the second user are authentic and usable, thereby increasing the difficulty of creating false gift records.

[0227] 2. The policy management module can flexibly control the verification policy according to the preset relationship, the priority of the first user, the preset time, the maximum number of gift collections and other dimensions. Among them, the detailed analysis of the preset relationship is referred to above. The verification policy is stored in the first data verification device. Exemplarily, the verification policy includes: when the first user purchases a model A mobile phone, if the priority of the first user corresponds to the third priority, 1 model B wired headset is given as a gift; if the priority of the first user is the second priority, 1 model C Bluetooth headset is given as a gift; if the priority of the first user is the first priority, 1 model D Bluetooth speaker is given as a gift. Alternatively, if the priority of the first user is a growth member, one wired headset is given for each model A mobile phone purchased, and the first user is limited to participating in the gift activity up to 3 times no matter how many model A mobile phones he purchases.

[0228] 3. The verification calculation module performs calculations based on the information obtained after access authentication and the corresponding verification strategy, completes the calculation, and returns the verification result. If the verification fails, the reason for the failure is returned. Exemplarily, the verification calculation includes: determining the information of one or more third devices corresponding to the identification information of the first device based on a preset relationship; if the identification information of the second device is included in the information of the one or more third devices, the verification result is verification success; if the identification information of the second device is not included in the information of the one or more third devices, the verification result is verification failure, and the reason for the verification failure is that the second device is not a gift from the first device. This improves the efficiency of gift verification and greatly reduces the error rate.

[0229] 4. The gift record module stores the gift record if verification is successful, facilitating auditing and location queries. The gift record includes any one or more of the following: the first user's identity information, the first device's identity information, the second device's identity information, the second user's identity information, and the time of the verification request. The first device's identity information establishes a unique index to ensure that a single device can only issue a gift to a single user. If verification is successful, the first and second device's identity information is stored. This recorded information is authentic and usable, ensuring traceability of issues.

[0230] like Figure 6A As shown, the first data verification device manages activity content information and gift record information. The activity content information includes: the device model of the first device, the device model of the second device, the priority of the first user, the preset activity time, and the maximum number of gift collections. The gift record information includes: the ID of the first user, the ID of the second user, the ID of the first device, the ID of the second device, the request time, the device model of the first device, and the device model of the second device. In some servers, the above-mentioned first data verification device also manages user collection record information, which includes: the ID of the first user, the device model of the first device, and the number of gift collections.

[0231] like Figure 6B As shown, the MCS manages the first user information, including the first user's ID and username. The second user system manages the second user information, including the second user's ID and username.

[0232] like Figure 6C As shown, the terminal device management system manages the first device information, and the gift inventory system manages the second device information. The first device information includes: the ID of the first device and the device model of the first device. The second device information includes: the ID of the second device and the device model of the second device.

[0233] like Figure 6D As shown, for example, the data verification method provided in the embodiment of the present application can also be as follows:

[0234] 601. The first terminal device obtains the identity information of the first user.

[0235] The first user goes to a store to purchase a terminal device, and after completing the payment, shows the membership code to the second user. After the second user uses the first terminal device to scan the membership code of the first user, the first terminal device obtains the identity information of the first user.

[0236] 602. The first terminal device obtains identification information of the first device.

[0237] After the second user uses the first terminal device to scan the barcode of the first device, the first terminal device obtains the identification information of the first device.

[0238] 603. The first terminal device obtains identification information of the second device.

[0239] After the second user scans the barcode of the second device using the first terminal device, the first terminal device obtains the identification information of the second device. The barcode includes a one-dimensional barcode and a two-dimensional barcode (the concept of the barcode described below is the same as here and will not be repeated here).

[0240] 604. The first terminal device sends a verification request to the first data verification apparatus.

[0241] The verification request carries the identity information of the first user, the identity information of the second user, the identification information of the first device, and the identification information of the second device.

[0242] like Figure 7 As shown, the flowchart of the data verification method provided in this embodiment includes the following steps:

[0243] 701a, after receiving the request instruction for obtaining the membership code of the first user, the first terminal device requests the MCS to obtain the membership code of the first user.

[0244] After purchasing a device (e.g., a mobile phone, tablet, smart screen, or watch) at an offline store, the first user logs in to the MC App or Mini Program using their account and requests a membership code. The second user then presents the code (with an expiration date, e.g., 3 minutes) to the second user. If the first user does not have an account, they will be directed to the quick registration interface.

[0245] 701b, MCS returns the first user's membership code to the MC App or mini program.

[0246] The membership code of the first user includes one or more of a one-dimensional barcode and a two-dimensional barcode. Generally, the POS machine scans the one-dimensional barcode to obtain the identity information of the first user, and the MC App in the mobile terminal scans the two-dimensional barcode to obtain the user's information.

[0247] 702a, the first terminal device scans the barcode of the first user to obtain the identity information of the first user.

[0248] That is, the second user uses the first terminal device to scan and read the membership code presented by the first user to obtain the identity information of the first user.

[0249] 702b, the first terminal device obtains the identity information of the first user.

[0250] The first user has a purchasing relationship with the first device.

[0251] 703. The first terminal device scans the barcode of the first device to obtain identification information of the first device.

[0252] That is, the second user uses the first terminal device to scan the barcode of the first device selected by the first user to obtain the identification information of the first device.

[0253] 704. The first terminal device scans the barcode of the second device to obtain identification information of the second device.

[0254] That is, the second user uses the first terminal device to scan the barcode of the second device selected by the first user to obtain the identification information of the second device; the second device is a gift to be given.

[0255] 705. The first terminal device sends a verification request to the first data verification apparatus. The verification request carries any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user, and the identity information of the second user.

[0256] That is, the second user initiates the verification request using the first terminal device.

[0257] 706a, the first data verification device sends a verification request to the MCS to verify whether the identity information of the first user is legal.

[0258] 706b, after receiving the verification request, the MCS verifies the legitimacy of the identification information of the first user, and sends a first verification response to the GVS for verifying the legitimacy of the identity identification information of the first user.

[0259] If the verification result is successful, the first verification response carries the priority information of the first user (for example, the first user's priority is divided into three levels: first priority, second priority, and third priority, with the higher the priority, the higher the value of the gift). For example, the first user's priority can be user membership level, new and old customer level, etc. For example, when the first user's priority is user membership level, the first priority is Premium Member, the second priority is Senior Member, and the third priority is Growth Member.

[0260] 707a, the first data verification device sends a verification request to the terminal device management system to verify whether the identification information of the first device is legal.

[0261] At 707b, upon receiving the verification request, the terminal device management system verifies the legitimacy of the identification information of the first device and sends a second verification response to the first data verification device to verify the legitimacy of the identification information of the first device. If the verification result is successful, the second verification response also includes the device model of the first device.

[0262] 708a, the first data verification device sends a verification request to the gift inventory management system to verify the legitimacy of the identification information of the second device.

[0263] At 708b, after receiving the verification request, the gift inventory management system verifies the legitimacy of the identification information of the second device and sends a third verification response to the first data verification device to verify the legitimacy of the identification information of the second device. If the verification result is successful, the third verification response also includes the device model of the second device.

[0264] It is understandable that, after obtaining the identity information of the first user, the identification information of the first device, and the identification information of the second device, the first terminal device may directly send a verification request to the MCS to verify the legitimacy of the identity information of the first user, send a verification request to the terminal device management system to verify the legitimacy of the identification information of the second device, and send a verification request to the gift inventory management system to verify the legitimacy of the identification information of the second device. When the identification information of the first user, the identification information of the second device, and the identification information of the second device are all verified to be legal, step 705 is executed to initiate a verification request to the first data verification device. The identity information of the first user, the identification information of the second device, and the identification information of the second device in the verification data contained in the verification request received by the first data verification device are legal identification information that has undergone legality verification.

[0265] Step 709: The first data verification device verifies the relationship between the first device and the second device according to a preset relationship.

[0266] That is, the first data verification device completes the gift verification calculation according to the preset relationship set in advance. For the description of the preset relationship, please refer to the above and will not be described in detail here. For example, on December 14, 2020, when the first user's membership level is a senior member, if the first user purchases Mate40 for the first time, he can get a wireless Bluetooth headset worth 199 yuan. At the same time, the gift record module of the first data verification device will store the gift record in the database. The gift record includes: the ID of the first user, the device ID of Mate40, the device model of Mate40, the device ID of the gift, the device model of the gift, the second user ID, and the request time.

[0267] Exemplarily, the preset relationship may be used to define gift giving rules corresponding to different types of first devices. Each device model of the first device can only be configured with one policy at most. An example is as follows:

[0268] {

[0269] "Device model": "Mate 40",

[0270] "Gift Specifications": {

[0271] "Growth Membership": [{"Gift Model":"G001","Gift Name":"99 Yuan Wired Headphones"}],

[0272] "Premium Member": [{"Gift Model":"G002","Gift Name":"199 Yuan Wireless Bluetooth Headset"}],

[0273] "Exclusive Member": [{"Gift Model":"G003","Gift Name":"299 Yuan Wireless Bluetooth Headset Second Generation"}]

[0274] },

[0275] "Maximum number of gift redemptions": "3",

[0276] "Valid from": "2020 / 12 / 01",

[0277] "Valid until": "2020 / 12 / 15"

[0278] }

[0279] If any of the conditions is not met, such as there is no device corresponding to the device model of the first device in the preset relationship, or the second device is not configured for gifting under the corresponding membership level, or it is not within the activity time range, or the upper limit of the number of gift redemption times has been exceeded, step 710 is executed and the reason for failure is returned.

[0280] Step 710: The first data verification device returns a verification response.

[0281] The verification result includes verification success or verification failure and the reason for the verification failure; after performing the verification, the first data verification device sends a verification response to the first terminal device, and the verification response includes the verification result, and the verification result includes verification failure or verification success. If the verification is successful, the first user can receive the second device and store any one or more of the ID of the first device, the ID of the second device, the device model of the first device, the device model of the second device, the ID of the first user, the ID of the second user, and the request time. If the verification fails, the reason for the failure is displayed to prompt the second user to proceed to the next step. Exemplarily, the reason for the failure is that the request time is not within the active time range.

[0282] The data verification method provided herein verifies the matching relationship between the first and second devices using the identification information of the first and second devices, along with a pre-set relationship, thereby ensuring the authenticity of the matching relationship between the device for sale and the gift to be given. The verification response includes a failure reason, informing the user of the error source, allowing the user to adjust the input correctly and reducing the operational overhead caused by incorrect data entry.

[0283] The following describes a data verification device according to an embodiment of the present application.

[0284] This application divides the data verification device into functional modules according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in this application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following will be combined with Figures 8 to 10 The data verification device according to the embodiment of the present application is described in detail.

[0285] Figure 8 This is a structural diagram of a data verification device provided in an embodiment of the present application. Figure 8 As shown, the data verification device includes a processing unit 801 and an input / output unit 802. The data verification device can be used to execute the steps or functions executed by the first data verification device in the above method embodiment.

[0286] Exemplarily, the input and output unit 802 is used to input a verification request;

[0287] The processing unit 801 is configured to verify the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship, and obtain a verification result;

[0288] The input and output unit 802 is further configured to output a verification response.

[0289] Input-output unit, inputting a verification request may include: the input-output unit receiving a verification request from other devices, or the input-output unit obtaining a verification request from other chips in the first data verification device; and the input-output unit outputting a verification response to other chips in the first data verification device.

[0290] Exemplarily, the processing unit 801 is specifically used to determine the information of one or more third devices corresponding to the first device; and when the identification information of the above-mentioned second device is included in the information of the above-mentioned one or more third devices, the above-mentioned verification result is successful verification.

[0291] Exemplarily, the input / output unit 802 is specifically configured to output the verification response if the identification information of the first device is valid. It is understood that the processing unit 801 may determine whether the identification of the first device is valid, and if the identification information of the first device is valid, the input / output unit may output the verification response.

[0292] Exemplarily, the input / output unit 802 is specifically configured to output the verification response if the identification information of the second device is legal. It is understood that the processing unit 801 can determine whether the identification information of the second device is legal, and if the identification information of the second device is legal, the input / output unit 802 outputs the verification response.

[0293] Exemplarily, the input-output unit 802 is specifically used to output the above-mentioned verification response when the request time of the above-mentioned verification request is within the preset time interval; it can be understood that the processing unit 801 can determine whether the request time of the above-mentioned verification request is within the preset time interval. When the request time of the above-mentioned verification request is within the preset time interval, the input-output unit 802 outputs the above-mentioned verification response.

[0294] Exemplarily, the input-output unit 802 is specifically used to output the above-mentioned verification response when there is no first historical gift record corresponding to the identification information of the above-mentioned first device; it can be understood that the processing unit 801 can verify whether there is a first historical gift record corresponding to the identification information of the above-mentioned first device, and when there is no first historical gift record corresponding to the identification information of the above-mentioned first device, the input-output unit 802 outputs the above-mentioned verification response.

[0295] Exemplarily, the input-output unit 802 is specifically used to output the above-mentioned verification response when the identity identification information of the above-mentioned first user is legal; it can be understood that the legitimacy of the identity identification information of the first user can be determined by the processing unit 801, and when the identity identification information of the above-mentioned first user is legal, the input-output unit 802 outputs the above-mentioned verification response.

[0296] Exemplarily, the processing unit 801 is specifically configured to obtain a second historical gift record and verify whether the number of devices is less than or equal to a preset threshold. The input / output unit 802 is specifically configured to output the verification response if the number of devices is less than or equal to the preset threshold.

[0297] Exemplarily, the input / output unit 802 is specifically configured to output the verification response if the second user's identity information is valid. It is understood that the processing unit 801 can determine the validity of the second user's identity information, and if the second user's identity information is valid, the input / output unit 802 outputs the verification response.

[0298] Exemplarily, the processing unit 801 is specifically configured to store the identification information of the first device and the identification information of the second device when the verification result is successful. It is understood that the processing unit 801 can control the relevant memory to store the identification information of the first device and the identification information of the second device.

[0299] It can be understood that in the embodiments of the present application, the description of the identification information of the first device, the identification information of the second device, the preset relationship, the second historical gift record, and the number of devices can refer to the method embodiment shown above and will not be described in detail here.

[0300] It is understood that the specific description of the input and output unit and the processing unit shown in the embodiment of the present application is only an example. For the specific functions or execution steps of the input and output unit and the processing unit, reference can be made to the above method embodiment, which will not be described in detail here. Figure 2 In steps 201 and 203 shown, the processing unit 801 is used to execute Figure 2 Step 202 shown. Exemplarily, the input and output unit 802 can also be used to perform Figure 3A In step 302 or step 303 shown, the processing unit 801 can be used to perform Figure 3A Step 301 shown. Exemplarily, the input and output unit 802 is used to perform Figure 3B In step 305 or step 306 shown, the processing unit 801 can be used to perform Figure 3B Step 304 shown. Exemplarily, the input and output unit 802 can also be used to perform Figure 3C In steps 308 and 309 shown, the processing unit 801 is used to perform Figure 3C The exemplary input and output unit 802 can also be used to perform Figure 3D In the steps 311 and 312 shown in FIG. 3 , the processing unit 801 is used to execute step 310. For example, the input and output unit 802 can also be used to execute Figure 4A In the steps 402 and 403 shown in FIG. 4 , the processing unit 801 can be used to perform step 401. For example, the input and output unit 802 can also be used to perform Figure 4B In steps 405 and 406 shown, the processing unit 801 can be used to perform Figure 4BStep 404 shown. Exemplarily, the input and output unit 802 can also be used to perform Figure 4C In steps 408 and 409 shown, the processing unit 801 can be used to perform Figure 4C Step 407 shown. Exemplarily, the input and output unit 802 can also be used to perform Figure 4D The sending step in step 3071 and the receiving step in step 3074 shown in FIG. 8 can also be used to perform Figure 4D The determination step in step 3074 shown in FIG. Figure 7 The sending step in step 706a and the receiving step in step 706b shown in FIG. 8 may also be used to perform Figure 7 The verification step in step 706b is shown.

[0301] In one possible implementation, Figure 8 In the data verification device shown, the processing unit 801 can be one or more processors, the input / output unit 802 can be a transceiver, or the input / output unit 802 can also be a sending unit and a receiving unit, the sending unit can be a transmitter, and the receiving unit can be a receiver, and the sending unit and the receiving unit are integrated into a single device, such as a transceiver. In the embodiment of the present application, the processor and the transceiver can be coupled, etc., and the embodiment of the present application does not limit the connection method between the processor and the transceiver.

[0302] like Figure 9 As shown, the data verification device 90 includes one or more processors 920 and a transceiver 910.

[0303] Exemplarily, when the data verification device is used to execute the steps, methods or functions performed by the above-mentioned first data verification device, the transceiver 910 is used to receive a verification request; the processor 920 is used to verify the relationship between the above-mentioned first device and the above-mentioned second device based on the identification information of the above-mentioned first device, the identification information of the above-mentioned second device, and the preset relationship.

[0304] exist Figure 9 In various implementations of the data verification device shown, the transceiver may include a receiver and a transmitter, wherein the receiver is configured to perform a receiving function (or operation) and the transmitter is configured to perform a transmitting function (or operation). The transceiver is configured to communicate with other devices / apparatuses via a transmission medium.

[0305] Optionally, the data verification device 90 may further include one or more memories 930 for storing program instructions and / or data. The memory 930 is coupled to the processor 920. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information interaction between devices, units or modules. The processor 920 may operate in conjunction with the memory 930. The processor 920 may execute program instructions stored in the memory 930. Optionally, at least one of the one or more memories may be included in the processor. In the embodiment of the present application, the memory 930 may store any one or more of the identification information of the first device, the identification information of the second device, the identification information of the first user, the identification information of the second user, the request time of the verification request, etc. Exemplarily, Figure 9 The memory shown only shows the identification information of the first device and the identification information of the second device. It is understandable that Figure 9 The reason why dotted lines are used to indicate that the memory stores the identification information of the first device and the identification information of the second device is that the memory may only store the identification information of the first device, may only store the identification information of the second device, or may store the identification information of the first device and the identification information of the second device at the same time.

[0306] The specific connection medium between the transceiver 910, the processor 920 and the memory 930 is not limited in the embodiment of the present application. Figure 9 The memory 930, the processor 920 and the transceiver 910 are connected via a bus 940. Figure 9 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0307] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., and may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor, etc.

[0308] In the embodiments of the present application, the memory may include, but is not limited to, non-volatile memories such as hard disk drives (HDDs) or solid-state drives (SSDs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), read-only memories (ROMs), or portable read-only memories (CD-ROMs). A memory is any storage medium that can be used to carry or store program code in the form of instructions or data structures and can be read and / or written by a computer (such as the data verification device shown in this application), but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device that can implement a storage function, used to store program instructions and / or data.

[0309] It is understandable that the data verification device shown in the embodiment of the present application may also have Figure 9 The embodiments of the present application do not limit the number of components and the like. The methods executed by the processor and transceiver shown above are only examples, and the specific steps executed by the processor and transceiver can refer to the methods described above.

[0310] In another possible implementation, Figure 8 In the data verification device shown, the processing unit 801 may be one or more logic circuits, and the input / output unit 802 may be an input / output interface, or a communication interface, or an interface circuit, or an interface, etc. Alternatively, the input / output unit 802 may be a sending unit and a receiving unit, the sending unit may be an output interface, the receiving unit may be an input interface, and the sending unit and the receiving unit may be integrated into one unit, such as an input / output interface. Figure 10 As shown, Figure 10 The data verification device shown includes a logic circuit 1001 and an interface 1002. That is, the processing unit 801 can be implemented using the logic circuit 1001, and the input / output unit 802 can be implemented using the interface 1002. The logic circuit 1001 can be a chip, a processing circuit, an integrated circuit, or a system on chip (SoC) chip, etc. The interface 1002 can be a data verification interface, an input / output interface, a pin, etc. For example, Figure 10 The first data verification device is taken as an example. The chip includes a logic circuit 1001 and an interface 1002 .

[0311] In the embodiment of the present application, the logic circuit and the interface may also be coupled to each other. The embodiment of the present application does not limit the specific connection method between the logic circuit and the interface.

[0312] Exemplarily, when the data verification device is used to execute the method, function or step performed by the above-mentioned first data verification device, the interface 1002 is used to input a verification request; the logic circuit 1001 is used to verify the relationship between the above-mentioned first device and the above-mentioned second device based on the identification information of the above-mentioned first device, the identification information of the above-mentioned second device and the preset relationship.

[0313] Illustratively, when the data verification device is used to execute the method, function, or step executed by the first data verification device, the logic circuit 1001 is used to generate a verification request; and the interface 1002 is used to output the verification request.

[0314] Optionally, the data verification device further includes a memory 1003, which can be used to store any one or more of the identification information of the first device, the identification information of the second device, the identity information of the first user, the identity information of the second user, and the request time of the verification request. Figure 10 The memory shown only shows the identification information of the first device and the identification information of the second device. It is understandable that Figure 10 The reason why dotted lines are used to indicate that the identification information of the first device and the identification information of the second device are stored in the memory is that the memory may only store the identification information of the first device, may only store the identification information of the second device, or may store the identification information of the first device and the identification information of the second device at the same time.

[0315] It can be understood that the data verification device shown in the embodiment of the present application can implement the method provided in the embodiment of the present application in the form of hardware, or can implement the method provided in the embodiment of the present application in the form of software, etc., and the embodiment of the present application does not limit this.

[0316] for Figure 10 The specific implementation methods of the various embodiments shown can also refer to the above embodiments and will not be described in detail here.

[0317] In addition, the present application also provides a computer program, which is used to implement the operations and / or processing performed by the first data verification device in the method provided by the present application.

[0318] The present application also provides a computer-readable storage medium, which stores computer code. When the computer code runs on a computer, the computer executes the operations and / or processing performed by the first data verification device in the method provided by the present application.

[0319] The present application also provides a computer-readable storage medium, which stores computer code. When the computer code runs on a computer, it enables the computer to execute the operations and / or processing performed by the first terminal device and the first data verification device in the method provided by the present application.

[0320] The present application also provides a computer program product, which includes computer code or computer program. When the computer code or computer program runs on a computer, the operations and / or processing performed by the first data verification device in the method provided by the present application are executed.

[0321] The present application also provides a computer program product, which includes computer code or computer program. When the computer code or computer program runs on a computer, the operations and / or processing performed by the first terminal device and the first data verification device in the method provided by the present application are executed.

[0322] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above-mentioned units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0323] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the technical effects of the solutions provided in the embodiments of the present application.

[0324] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0325] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a readable storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0326] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the above claims.

Claims

1. A data verification method, characterized in that: include: receiving a verification request, the verification request carrying identification information of a first device, identification information of a second device, identity information of a first user, and identity information of a second user, wherein the second device is a device to be verified as to whether it has an association relationship with the first device, the first user has a purchasing relationship with the first device, and the second user has a selling relationship with the second device; Verifying the relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result, wherein the preset relationship represents a relationship between the first device and a device associated with the first device, and the preset relationship is a relationship between the first device and a gift of the first device; When the identification information of the first device is legal, the identification information of the second device is legal, the identity identification information of the first user is legal, and the identity identification information of the second user is legal, a verification response is output, and the verification response carries the verification result. The verification response also carries the identification information of the first device, the identification information of the second device, the identity identification information of the first user, and the identity identification information of the second user.

2. The method according to claim 1, wherein The output verification response includes: If the request time of the verification request is within a preset time interval, and / or if there is no first historical gift record corresponding to the identification information of the first device, the verification response is output.

3. The method according to claim 1, wherein The output verification response includes: Obtaining a second historical gift record, where the second historical gift record includes a number of devices corresponding to the identity identifier of the first user and corresponding to the first device; When the number of devices is less than or equal to a preset threshold, the verification response is output.

4. The method according to claim 1, wherein The verifying the relationship between the first device and the second device according to the identification information of the first device, the identification information of the second device, and a preset relationship to obtain a verification result includes: Determining information of one or more third devices corresponding to the first device through the preset relationship; In a case where the identification information of the second device is included in the information of the one or more third devices, the verification result is determined to be a successful verification.

5. The method according to claim 4, wherein The identity information of the first user includes information indicating a priority of the first user, and the one or more third devices are devices corresponding to the first device and corresponding to the priority of the first user.

6. The method according to any one of claims 1 to 5, wherein: The method further comprises: If the verification result is successful, the identification information of the first device and the identification information of the second device are stored.

7. The method according to claim 1, wherein The verification result includes verification success.

8. A data verification device, characterized in that: include: an input / output unit, configured to receive a verification request, the verification request carrying identification information of a first device, identification information of a second device, identity information of a first user, and identity information of a second user, wherein the second device is a device to be verified as to whether it has an association with the first device, the first user has a purchasing relationship with the first device, and the second user has a selling relationship with the second device; a processing unit, configured to verify a relationship between the first device and the second device based on the identification information of the first device, the identification information of the second device, and a preset relationship, and obtain a verification result, wherein the preset relationship represents a relationship between the first device and a device associated with the first device, and the preset relationship is a relationship between the first device and a gift of the first device; The input and output unit is also used to output a verification response when the identification information of the first device is legal, the identification information of the second device is legal, the identity information of the first user is legal, and the identity information of the second user is legal. The verification response carries the verification result. The verification response also carries the identification information of the first device, the identification information of the second device, the identity information of the first user, and the identity information of the second user.

9. The device according to claim 8, wherein The input and output unit is specifically configured to output the verification response when the request time of the verification request is within a preset time interval and / or when there is no first historical gift record corresponding to the identification information of the first device.

10. The device according to claim 8, wherein The input-output unit is specifically used to obtain a second historical gift record, where the second historical gift record includes the number of devices corresponding to the identity identifier of the first user and corresponding to the first device; and output the verification response when the number of devices is less than or equal to a preset threshold.

11. The device according to claim 8, wherein The processing unit is specifically used to determine the information of one or more third devices corresponding to the first device through the preset relationship; when the identification information of the second device is included in the information of the one or more third devices, determine that the verification result is successful.

12. The device according to claim 11, wherein The identity information of the first user includes information indicating a priority of the first user, and the one or more third devices are devices corresponding to the first device and corresponding to the priority of the first user.

13. The device according to any one of claims 8 to 12, characterized in that The processing unit is configured to store the identification information of the first device and the identification information of the second device when the verification result is successful.

14. The device according to claim 8, wherein The verification result includes verification success.

15. A data verification device, characterized in that: including processor and memory; The memory is used to store computer-executable instructions; The processor is configured to execute the computer-executable instructions so that the method according to any one of claims 1 to 7 is performed.

16. A data verification device, characterized in that: comprising a logic circuit and an interface, wherein the logic circuit and the interface are coupled; The interface is used to input and / or output code instructions, and the logic circuit is used to execute the code instructions so that the method according to any one of claims 1 to 7 is executed.

17. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program. When the computer program is executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Resource allocation method and device

    CN109242277A