A resource verification method and device, a storage medium, and a computing device
By automatically triggering resource reimbursement requests through quick actions on merchant and consumer terminal devices, the resource reimbursement process is simplified, the problem of complex processes in existing technologies is solved, and the user experience is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
- Filing Date
- 2021-12-31
- Publication Date
- 2026-06-12
Smart Images

Figure CN115953200B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese patent application filed on December 31, 2021, with application number 202111648867.4 and entitled "A method and apparatus for resource verification, storage medium and computing device". Technical Field
[0002] This invention relates to the field of Internet technology, and in particular to a resource verification method and apparatus, storage medium, and computing device. Background Technology
[0003] With the continuous development of technology, electronic payment has become a common payment method in people's lives due to its convenience. When making an electronic payment, the merchant usually presents a QR code, which the user scans and identifies using a smart terminal before proceeding with the payment.
[0004] In the process of electronic payment, coupons may be used and require merchants to verify them. However, for merchants, the existing payment verification process is quite long. For example, merchants need to scan codes or enter coupon codes, or select coupons or enter the amount to be received during the verification process. The overall process is quite complicated and requires merchants to perform many operations themselves, which is not very user-friendly, especially for some merchants who are not comfortable with manual operation throughout the entire process. Summary of the Invention
[0005] In view of the above problems, the present invention provides a resource reimbursement method, apparatus, storage medium, and computing device that overcomes or at least partially solves the above problems, making the overall resource reimbursement process simpler, especially more user-friendly for users who are not comfortable with manual operation throughout the process, thereby further improving the user experience.
[0006] According to a first aspect of the present invention, a resource write-off method is provided, comprising:
[0007] Receive a first resource verification request sent by a first terminal device associated with a merchant user, wherein the first resource verification request is sent when a first preset shortcut action is quickly triggered using the first terminal device;
[0008] Receive a second resource revocation request sent by a second terminal device associated with a consumer user, wherein the second resource revocation request is sent when a second preset quick action is triggered using the second terminal device;
[0009] Obtain the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request;
[0010] When it is determined that the resource to be revoked matches the merchant identification information, the resource revoking operation is performed in response to the first resource revoking request and the second resource revoking request.
[0011] In another embodiment, receiving the first resource revocation request sent by the first terminal device associated with the merchant user includes:
[0012] Receive the first resource revocation request sent by the first terminal device associated with the merchant user after launching the first application;
[0013] The first resource verification request is sent by the first terminal device when it determines, based on sensor data, that a first preset quick action has been triggered.
[0014] In another embodiment, receiving the second resource revocation request sent by the second terminal device associated with the consumer user includes:
[0015] Receive a second resource revocation request sent by the second terminal device associated with the consumer user after it launches the second application and opens the resource display page;
[0016] The second resource verification request is sent when the second terminal device displays the resource display page and determines, based on sensor data, that the second preset shortcut action has been triggered.
[0017] In another embodiment, obtaining the merchant identifier information corresponding to the first resource revocation request and the resource to be revoked corresponding to the second resource revocation request includes:
[0018] Obtain the merchant identification information corresponding to the first resource revocation request;
[0019] Obtain the consumer user information corresponding to the second resource revocation request and the resources to be revoked corresponding to the resource display page.
[0020] In another embodiment, when determining that the resource to be revoked matches the merchant identification information, performing a resource revoking operation in response to the first resource revoking request and the second resource revoking request includes:
[0021] When verifying that the first resource revocation request and the second resource revocation request are valid requests, and determining that the resource to be revoked meets the resource revocation conditions set corresponding to the merchant identification information, the resource revocation operation is executed in response to the first resource revocation request and the second resource revocation request.
[0022] In another embodiment, verifying that the first resource write-off request and the second resource write-off request are valid requests includes:
[0023] Based on the first resource verification request, obtain the first geographical location information corresponding to the merchant user, and based on the second resource verification request, obtain the second geographical location information corresponding to the consumer user;
[0024] Determine that the distance between the first geographical location information and the second geographical location information is within a set distance range, and verify that the first resource revocation request and the second resource revocation request are valid requests.
[0025] In another embodiment, performing the resource revocation operation in response to the first resource revocation request and the second resource revocation request includes:
[0026] Identify the resource type corresponding to the resource to be revoked, and trigger the revoking process according to the resource type to complete the revoking;
[0027] If the resource to be redeemed is a voucher, then the resource amount corresponding to the voucher will be transferred to the merchant account corresponding to the merchant user, and the redemption status of the voucher will be changed to redeemed.
[0028] If the resource to be verified is a mobile payment, obtain the payment amount submitted by the merchant user, and transfer the payment amount from the consumer user to the merchant user.
[0029] According to a second aspect of the present invention, a resource verification device is provided, comprising:
[0030] The first request receiving module is used to receive a first resource verification request sent by a first terminal device associated with a merchant user. The first resource verification request is sent when a first preset quick action is triggered by the first terminal device.
[0031] The second request receiving module is used to receive a second resource verification request sent by a second terminal device associated with a consumer user. The second resource verification request is sent when the second terminal device is used to quickly trigger a second preset quick action.
[0032] The information acquisition module is used to acquire the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request.
[0033] The verification module is used to determine that the resource to be verified matches the merchant identification information, and then perform a resource verification operation in response to the first resource verification request and the second resource verification request.
[0034] In another embodiment, the first request receiving module is further configured to:
[0035] Receive the first resource revocation request sent by the first terminal device associated with the merchant user after launching the first application;
[0036] The first resource verification request is sent by the first terminal device when it determines, based on sensor data, that a first preset quick action has been triggered.
[0037] In another embodiment, the second request receiving module is further configured to:
[0038] Receive a second resource revocation request sent by the second terminal device associated with the consumer user after it launches the second application and opens the resource display page;
[0039] The second resource verification request is sent when the second terminal device displays the resource display page and determines, based on sensor data, that the second preset shortcut action has been triggered.
[0040] In another embodiment, the information acquisition module is further configured to:
[0041] Obtain the merchant identification information corresponding to the first resource revocation request;
[0042] Obtain the consumer user information corresponding to the second resource revocation request and the resources to be revoked corresponding to the resource display page.
[0043] In another embodiment, the verification module is further used for:
[0044] When verifying that the first resource revocation request and the second resource revocation request are valid requests, and determining that the resource to be revoked meets the resource revocation conditions set corresponding to the merchant identification information, the resource revocation operation is executed in response to the first resource revocation request and the second resource revocation request.
[0045] In another embodiment, the verification module is further used for:
[0046] Based on the first resource verification request, obtain the first geographical location information corresponding to the merchant user, and based on the second resource verification request, obtain the second geographical location information corresponding to the consumer user;
[0047] Determine that the distance between the first geographical location information and the second geographical location information is within a set distance range, and verify that the first resource revocation request and the second resource revocation request are valid requests.
[0048] In another embodiment, the verification module is further used for:
[0049] Identify the resource type corresponding to the resource to be revoked, and trigger the revoking process according to the resource type to complete the revoking;
[0050] If the resource to be redeemed is a voucher, then the resource amount corresponding to the voucher will be transferred to the merchant account corresponding to the merchant user, and the redemption status of the voucher will be changed to redeemed.
[0051] If the resource to be verified is a mobile payment, obtain the payment amount submitted by the merchant user, and transfer the payment amount from the consumer user to the merchant user.
[0052] According to a third aspect of the present invention, a computer-readable storage medium is provided for storing program code for performing the method described in either the first or second aspect.
[0053] According to a fourth aspect of the present invention, a computing device is provided, the computing device comprising a processor and a memory:
[0054] The memory is used to store program code and transmit the program code to the processor;
[0055] The processor is configured to execute the method described in either the first aspect or the second aspect according to the instructions in the program code.
[0056] This invention provides a resource verification method, apparatus, storage medium, and computing device. It automatically matches information upon receiving a first resource verification request triggered by a first terminal device associated with a merchant user via a shortcut action, and a second resource verification request triggered by a second terminal device associated with a consumer user via a preset shortcut action. If the resource to be verified matches the merchant's identifier information, the resource verification operation is automatically executed. The solution provided by this invention eliminates the need for either merchant or consumer users to click any buttons during resource verification; the verification process is triggered simply by using a preset shortcut action. This simplifies the overall resource verification process, making it particularly user-friendly for those who cannot perform manual operations throughout the entire process, thus further enhancing the user experience.
[0057] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below.
[0058] The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments of the invention in conjunction with the accompanying drawings. Attached Figure Description
[0059] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0060] Figure 1 A schematic flowchart of a resource write-off method according to an embodiment of the present invention is shown;
[0061] Figure 2 A schematic diagram of the interface of a terminal device according to an embodiment of the present invention is shown;
[0062] Figure 3 A schematic diagram of a terminal device interface according to another embodiment of the present invention is shown;
[0063] Figure 4 A schematic diagram of a terminal device interface according to yet another embodiment of the present invention is shown;
[0064] Figure 5 A schematic diagram of a resource verification device according to an embodiment of the present invention is shown;
[0065] Figure 6 A schematic diagram of the device structure of a computer device provided in an embodiment of the present invention is shown. Detailed Implementation
[0066] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0067] The resource verification method provided in this invention can be applied to the server side of a target application. The target application is an application (APP), mini-program, plugin, or similar program with resource verification functionality. It can be an application corresponding to a payment platform, consumption platform, food delivery platform, etc. Of course, in practical applications, the target application set on different users' terminal devices can be different or the same, depending on the specific application scenario of each terminal device.
[0068] Resources can refer to circulating resource credentials used to enhance or provide services. For example, in online shopping or lifestyle service applications, electronic coupons, vouchers, and discount coupons can all serve as the objects for resource redemption operations. Additionally, in this embodiment, such resources can also be the amount paid by a user to purchase goods. Resource redemption involves verifying the coupons, vouchers, discount coupons, or the amount paid by the user mentioned above and executing resource transfer.
[0069] Figure 1 A schematic flowchart of a resource write-off method according to an embodiment of the present invention is shown. See also: Figure 1 It can be seen that the resource revocation method provided in the embodiments of the present invention may include at least the following steps S101 to S104.
[0070] S101, receive a first resource verification request sent by a first terminal device associated with a merchant user. The first resource verification request is sent when a first preset shortcut action is triggered by the first terminal device.
[0071] The first terminal device associated with the merchant user is a smart device that can be used by the user, such as a mobile phone or tablet. The first preset shortcut action can be a "shake" action triggered by the first terminal device. The first resource verification request sent by the first terminal device to the server may include the merchant user's first geographical location information and the merchant identifier corresponding to the merchant user, such as the merchant ID, and other relevant information about the merchant user.
[0072] Optionally, step S101, receiving the first resource verification request sent by the first terminal device associated with the merchant user, may include: receiving the first resource verification request sent by the first terminal device associated with the merchant user after launching the first application; wherein, the first resource verification request is sent by the first terminal device when it determines that the first preset shortcut action has been triggered based on sensor data.
[0073] In this embodiment, the first terminal device is equipped with a first application program, which can be in the form of an app, mini-program, or plugin, and has functions such as resource verification. It can be an application corresponding to a payment platform, consumption platform, or food delivery platform. Of course, in actual applications, the applications installed on the terminal devices used by different users can be different or the same, depending on the specific application scenarios of different terminal devices. In this embodiment, the first terminal device is associated with a merchant user, so the first application program on this terminal device can be an application that allows the merchant user to perform resource verification or electronic payment. The functions of the applications installed on the terminal devices used by different types of users can be adaptively configured according to different needs, and this embodiment of the invention does not limit this.
[0074] The first preset shortcut action is used to quickly instruct the first terminal device to request the server to perform a resource revocation operation. The first preset shortcut action can be triggered by reading the sensor data of the first terminal device. Optionally, it can specifically read the sensor data collected by the sensors in the first terminal device within a set time period; if the sensor data meets the triggering requirements corresponding to the preset shortcut action, it is determined that a preset shortcut action triggered by the terminal device has been detected.
[0075] As a smart device, the terminal device is equipped with sensors such as accelerometers, magnetometers, and gyroscopes. The accelerometer measures the acceleration of the terminal device along the x, y, and z axes of the spatial coordinate system, primarily including gravitational acceleration. The magnetometer measures magnetic field strength, and the gyroscope measures rotational speed along each axis. In this embodiment, the sensor time collected by the sensors within a set time period can be read. This set time can be the time required to execute a preset quick action, and can be set to 0.5s, 1s, or a time determined according to the type of terminal device; this embodiment of the invention does not limit this setting.
[0076] For the sensor data read from the first terminal device, it can be determined whether it meets the triggering requirements corresponding to the preset shortcut action. If it does, it is determined that the first preset shortcut action has been triggered using the first terminal device. Optionally, the preset shortcut action in this embodiment can be a shaking action of the terminal device, i.e., a "shake" action. In other words, for the sensor data of the terminal device read within a set time, it can be determined whether the read sensor data meets the triggering requirements corresponding to shaking the terminal device. The triggering requirements can be set based on the acceleration change data, displacement change data, etc. generated by the terminal device during the set time when it is shaken. Assuming that the read sensor data meets the above-mentioned set triggering requirements, it can be determined that the terminal device has triggered the first preset shortcut action, and a resource revocation request is sent directly to the server corresponding to the first application. The server can be a cloud server corresponding to the first application. This server can perform data storage, data processing, and other operations, such as resource management, resource revocation, and management of users associated with the terminal device.
[0077] S102, receive a second resource verification request sent by a second terminal device associated with a consumer user. The second resource verification request is sent when a second preset quick action is triggered by the second terminal device.
[0078] The second terminal device can also be a smart terminal device such as a smartphone or smartwatch used by the consumer. The second preset shortcut action can also be the same as the preset actions mentioned in the above embodiments, for example, a "shake" action for the second terminal device. The second resource verification request sent by the second terminal device to the server may include the consumer's second geographical location information and the resource identifier information of the selected resource to be verified.
[0079] Optionally, step S102, receiving the second resource verification request sent by the second terminal device associated with the consumer user, may include: receiving the second resource verification request sent by the second terminal device associated with the consumer user after launching the second application and opening the resource display page; the second resource verification request is sent when the second terminal device determines, based on sensor data, that the second preset shortcut action has been triggered when displaying the resource display page.
[0080] In this embodiment, the second terminal device is a device used by a consumer. Therefore, the second application on the second terminal device can be an application that allows the consumer to select resources or perform electronic payment operations. When the consumer launches the second application and opens the resource display page, a second resource verification request can be triggered. In this embodiment, the second resource verification request can also be automatically sent when the second terminal device triggers a second preset shortcut action. The second preset shortcut action can be similar to the first preset action, such as the "shake" shortcut action triggered by the second terminal device. Similarly, for the sensor data read from the second terminal device, it can be determined whether it meets the triggering requirements of the preset shortcut action. If it does, it is determined that the second preset shortcut action has been detected using the second terminal device. For the specific implementation method, please refer to the triggering method of the first preset shortcut action; it will not be repeated here.
[0081] S103, obtain the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request.
[0082] As previously mentioned, the first terminal device is associated with a merchant user, and the second terminal device is associated with a consumer user. The information carried in the resource reconciliation request differs for different types of users. In this embodiment, for the received first and second resource reconciliation requests, the reconciliation data required for the server to perform the resource reconciliation operation can be adaptively obtained. Optionally, step S103, which retrieves the merchant identifier information corresponding to the first resource reconciliation request and the resource to be reconciled corresponding to the second resource reconciliation request, may include the following steps A1 to A2.
[0083] A1, obtain the merchant identification information corresponding to the first resource revocation request.
[0084] A2, obtain the consumer user information corresponding to the second resource reimbursement request and the resources to be reimbursed corresponding to the resource display page.
[0085] In other words, when a merchant sends a resource redemption request to the server, they can include their user identifier (such as a merchant ID). When a consumer sends a resource redemption request to the server, they can include the resource identifier information of the resource to be redeemed. The resource to be redeemed can be at least one resource managed by the consumer, such as coupons, vouchers, discount coupons, and redemption vouchers.
[0086] As mentioned earlier, whether the first terminal device triggers the first preset shortcut action or the second terminal device triggers the second preset shortcut action, the first application or the second application must be running. Optionally, when the first terminal device triggers the preset shortcut action or the second terminal device triggers the second preset shortcut action, the resource verification page can be displayed for both the terminal device corresponding to the merchant user and the terminal device corresponding to the consumer user. Figure 2 The resource reimbursement page corresponding to the target user is a consumer user is shown. For different types of users, the types of page elements and layout rules in the resource reimbursement page may be different, or they may be customized according to the user's usage habits. This embodiment of the invention does not limit this.
[0087] In practical applications, after a consumer launches the second application on the second terminal device, they can also select at least one resource to be revoked in response to a resource selection operation performed by the consumer based on the resource display page. In other words, the same consumer may manage multiple resources, such as... Figure 3 As shown, at this time, the user can select at least one resource to be revoked from multiple resources for this revocation operation.
[0088] S104, when it is determined that the resource to be revoked matches the merchant identification information, the resource revocation operation is executed in response to the first resource revocation request and the second resource revocation request.
[0089] After receiving the first resource verification request initiated by the merchant user and the second resource verification request initiated by the consumer user, the server can determine whether the resource to be verified matches the merchant identification information. When the server determines that the resource to be verified matches the merchant identification information, it responds to the first resource verification request and the second resource verification request by performing the resource verification operation.
[0090] Optionally, when step S104 determines that the resource to be revoked matches the merchant identification information, the resource revoking operation in response to the first resource revoking request and the second resource revoking request may include: verifying that the first resource revoking request and the second resource revoking request are valid requests, and when determining that the resource to be revoked meets the resource revoking conditions set corresponding to the merchant identification information, the resource revoking operation in response to the first resource revoking request and the second resource revoking request.
[0091] Before performing specific resource reimbursement operations, the solution provided in this embodiment needs to verify that the first and second resource reimbursement requests are valid. Optionally, the first geographical location information corresponding to the merchant user can be obtained based on the first resource reimbursement request, and the second geographical location information corresponding to the consumer user can be obtained based on the second resource reimbursement request. Then, it is determined that the distance between the first and second geographical location information is within a set distance range to verify that the first and second resource reimbursement requests are valid. In this embodiment, the geographical location information corresponding to the merchant user and the consumer user is obtained first. When it is determined that the two are in the same geographical area and the relative distance is within a set distance range, the first and second resource reimbursement requests are deemed valid. In practical applications, both the first and second geographical location information can be obtained using a GPS positioning system.
[0092] Furthermore, when verifying the validity of the first and second resource rescinding requests, it is also necessary to determine whether the resource to be rescinded meets the resource rescinding conditions set corresponding to the merchant's identification information. For example, firstly, the merchant identification information corresponding to the merchant user is obtained based on the first resource rescinding request, and the resource identification information of the resource to be rescinded is obtained based on the second resource rescinding request; secondly, it is determined whether the resource to be rescinded matches the merchant user based on the resource identification information and the merchant identification information, that is, whether the resource to be rescinded belongs to the merchant user. In this embodiment, by verifying the first and second resource rescinding requests successfully before performing further rescinding operations on the resource to be rescinded, resource rescinding is prevented from being caused by erroneous operations by merchant users or consumers, thereby ensuring the accuracy of resource rescinding while improving the user experience. It should be noted that the server does not have a restriction on the order in which it receives the first and second resource rescinding operations, but the interval between the two must be less than a certain time to ensure the accuracy of resource rescinding.
[0093] Finally, once it is determined that the first resource revocation request and the second resource revocation request are valid, and the resources to be revoked meet the resource revocation conditions set by the merchant identification information, the resource revocation operation can be performed in response to the first resource revocation request and the second resource revocation request. Specifically, this may include the following steps B1 to B3.
[0094] B1 identifies the resource type corresponding to the resource to be revoked, and triggers the revoking process based on the resource type to complete the revoking.
[0095] B2. If the resource to be redeemed is a voucher, then the resource amount corresponding to the voucher will be transferred to the merchant account corresponding to the merchant user, and the redemption status of the voucher will be changed to redeemed.
[0096] B3. If the resource to be verified is mobile payment, obtain the payment amount submitted by the merchant user and transfer the payment amount from the consumer user to the merchant user.
[0097] If the resource to be verified matches a merchant user, a resource verification operation is performed on the resource to be verified. After the resource verification operation is completed, the verification status of the resource to be verified is modified to change the verification status to verified. At the same time, the resource data corresponding to the resource to be verified can also be transferred to the merchant user.
[0098] In an optional embodiment of the present invention, after step S104 performs the resource revocation operation in response to the first resource revocation request and the second resource revocation request, it may further include: generating a resource revocation result and sending the resource revocation result to a first terminal device and / or a second terminal device for display. The resource revocation result may be either a successful revocation of the resource to be revoked or a failed revocation of the resource to be revoked; either result can be sent to the first terminal device or the second terminal device for display.
[0099] As mentioned in the above embodiments, when the first terminal device initiates a first resource revocation request or the second terminal device initiates a second resource revocation request, a resource revocation page will be displayed on the display interface of the first application or the second application. Correspondingly, when displaying the resource revocation result, the display interface of the first application or the second application can be controlled to jump to the resource revocation result page, such as... Figure 4 As shown. For resources awaiting verification that have been verified, their status can be changed to "verified" and displayed through text and / or images, or by playing audio information, or a combination of both methods. This embodiment of the invention does not limit this. The method provided by this embodiment of the invention can send a resource verification request to the server of the target program when a preset shortcut action is triggered by a terminal device. After receiving the resource verification requests sent by the merchant user and the consumer user based on the preset shortcut action, the server can verify the validity of the resource verification request and the resources to be verified, and then quickly and conveniently execute the resource verification operation. The process of resource verification is simplified by eliminating the need for merchants or users to manually input resource information, making the overall resource verification process more user-friendly, especially for users who are inconvenient to operate manually throughout the entire process, thereby further improving the user experience.
[0100] The invention also provides a resource verification method applied to a resource verification system comprised of a first terminal device, a second terminal device, and a server. The first terminal device is associated with a merchant user and contains a first target program providing resource verification services to the merchant user, capable of data communication with the server. The second terminal device is associated with a consumer user and contains a second target program providing resource verification services to the consumer user, also capable of data communication with the server. The resource verification method provided in this embodiment may include:
[0101] S1, in response to the merchant user's operation, launch the first target program in the first terminal device. When the first terminal device triggers the first preset shortcut action, send the first resource verification request to the server. At the same time, a resource verification page can also pop up on the display interface of the first terminal device to wait for the matching of payment code or coupon code.
[0102] The first resource verification request carries the merchant's user identifier and first geographical location information. The first preset shortcut action can be a shaking action on the first terminal device. In other words, when a merchant opens the first target program and shakes their terminal device, they can send the first resource verification request to the server. Specifically, when a merchant uses the shake function, their current geographical location and merchant ID are reported to the server, and the server begins monitoring the verification results of coupon codes. At this time, the timeout is set to 30 seconds, meaning the first resource verification request is valid for 30 seconds.
[0103] S2, in response to the consumer's operation, the second target program in the second terminal device is launched, and after selecting the resource to be redeemed (such as a coupon code or payment code), when the second terminal device is detected to have triggered the second preset quick action, a second resource redemption request is sent to the server.
[0104] The second resource verification request carries the second geographical location information corresponding to the consumer user and the resource identifier information of the resource to be verified. The second preset shortcut action can be a shaking action on the first terminal device. That is, when the consumer user opens the first target program and selects a coupon code or payment code, they can send the second resource verification request to the server by shaking the second terminal device. In other words, when the consumer user shakes the device, the current user address and coupon code i are reported to the server, and the server starts listening for the coupon code resource verification result. The timeout is set to 30 seconds, meaning the validity period of the second resource verification request is 30 seconds.
[0105] S3: The server receives the first resource revocation request and the second resource revocation request. The interval between the first and second resource revocation requests is set to no more than 30 seconds. That is, when the server receives a revocation request from a user or merchant, it will hold it for 30 seconds. If a request from a merchant or user arrives within 30 seconds, the next step will be executed.
[0106] S4: The server matches the first and second geographical location information. If the merchant user and the consumer user are in the same location and within a range of no more than 10 meters, the server verifies that the first and second resource verification requests are valid.
[0107] S5. If the first and second resource verification requests are valid, begin coupon code verification. Determine if the resource to be verified uploaded by the consumer belongs to the current merchant. If it does, execute the verification. Push a verification completion message to the merchant and / or consumer. The display page of the first terminal device corresponding to the merchant will redirect to the resource verification completion page, and the status of the resource in the consumer's resource display page will be set to verified.
[0108] This invention provides a quick resource verification method based on shaking. Both merchants and consumers do not need to click any buttons during the resource verification process; they can trigger the resource verification process simply by shaking their phones. The dual-end polling scheme solves the verification matching problem and simplifies the resource verification process. In particular, it can better assist blind or visually impaired users who have difficulty operating the system, greatly facilitating their payment verification.
[0109] Based on the same inventive concept, embodiments of the present invention also provide a resource verification device, which can be applied to user-accessible terminal devices such as mobile phones and tablets. The terminal device may also contain a target program, such as... Figure 5 As shown, the resource verification device provided in this embodiment may include:
[0110] The first request receiving module 510 is used to receive a first resource verification request sent by a first terminal device associated with a merchant user. The first resource verification request is sent when a first preset quick action is triggered by the first terminal device.
[0111] The second request receiving module 520 is used to receive a second resource verification request sent by a second terminal device associated with a consumer user. The second resource verification request is sent when the second terminal device quickly triggers a second preset quick action.
[0112] Information acquisition module 530 is used to acquire merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request.
[0113] The verification module 540 is used to determine that the resource to be verified matches the merchant identification information, and then execute the resource verification operation in response to the first resource verification request and the second resource verification request.
[0114] In an optional embodiment of the present invention, the first request receiving module 510 may further be used for:
[0115] Receive the first resource verification request sent after the first terminal device associated with the merchant user launches the first application;
[0116] The first resource verification request is sent by the first terminal device when it determines, based on sensor data, that the first preset quick action has been triggered.
[0117] In an optional embodiment of the present invention, the second request receiving module 520 may further be used for:
[0118] Receive a second resource revocation request sent by the second terminal device associated with the consumer user after it launches the second application and opens the resource display page;
[0119] The second resource verification request is sent when the second terminal device displays the resource display page, based on sensor data, to determine that the second preset shortcut action has been triggered.
[0120] In an optional embodiment of the present invention, the information acquisition module 530 can also be used for:
[0121] Obtain the merchant identification information corresponding to the first resource revocation request;
[0122] Obtain the consumer information corresponding to the second resource reimbursement request and the resources to be reimbursed corresponding to the resource display page.
[0123] In an optional embodiment of the present invention, the verification module 540 can also be used for:
[0124] Verify that the first resource revocation request and the second resource revocation request are valid requests, and determine that the resource to be revoked meets the resource revocation conditions set according to the merchant identification information, and then execute the resource revocation operation in response to the first resource revocation request and the second resource revocation request.
[0125] In an optional embodiment of the present invention, the verification module 540 can also be used for:
[0126] Based on the first resource verification request, obtain the first geographical location information corresponding to the merchant user; based on the second resource verification request, obtain the second geographical location information corresponding to the consumer user.
[0127] Determine if the distance between the first and second geographical location information is within a set distance range, and verify that the first and second resource revocation requests are valid requests.
[0128] In an optional embodiment of the present invention, the verification module 540 can also be used for:
[0129] Identify the resource type corresponding to the resource to be revoked, and trigger the revoking process based on the resource type to complete the revoking;
[0130] If the resource to be redeemed is a voucher, the resource amount corresponding to the voucher will be transferred to the merchant account corresponding to the merchant user, and the redemption status of the voucher will be changed to redeemed.
[0131] If the resource to be verified is a mobile payment, obtain the payment amount submitted by the merchant user and transfer the payment amount from the consumer user to the merchant user.
[0132] This invention also provides a computer-readable storage medium for storing program code for executing the resource write-off method described in any of the above embodiments.
[0133] This invention also provides a computing device, which includes a processor and a memory:
[0134] The memory is used to store program code and transmit the program code to the processor;
[0135] The processor is used to execute the resource write-off method described in any of the above embodiments according to the instructions in the program code.
[0136] In an exemplary embodiment, see Figure 6 This invention also provides a computing device, which includes a communication bus, a processor, a memory, and a communication interface. It may also include an input / output interface and a display device. The various functional units can communicate with each other via the bus. The memory stores a computer program, and the processor executes the program stored in the memory, performing the steps of the resource write-off method described in the above embodiments.
[0137] Those skilled in the art will clearly understand that the specific working process of the systems, devices, modules and units described above can be referred to the corresponding process in the foregoing method embodiments. For the sake of brevity, it will not be repeated here.
[0138] Furthermore, the functional units in the various embodiments of the present invention can be physically independent of each other, or two or more functional units can be integrated together, or all functional units can be integrated into one processing unit. The integrated functional units described above can be implemented in hardware, or in software or firmware.
[0139] Those skilled in the art will understand that if the integrated functional unit is implemented in software 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 invention, or all or part of it, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computing device (e.g., a personal computer, server, or network device) to execute all or part of the steps of the methods described in the embodiments of the present invention when running the instructions. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0140] Alternatively, all or part of the steps of the foregoing method embodiments can be implemented by hardware (such as a computing device, personal computer, server, or network device) related to program instructions. The program instructions can be stored in a computer-readable storage medium. When the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the methods described in the various embodiments of the present invention.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein; and these modifications or substitutions do not cause the corresponding technical solutions to depart from the protection scope of the present invention.
Claims
1. A resource write-off method, characterized in that, The method involves the first terminal device associated with the merchant user requesting resource revocation from the server, wherein the method includes: The first application is launched to send a first resource verification request to the server, so that the server receives a second resource verification request sent by a second terminal device associated with the consumer user. The second resource verification request is sent when the second terminal device quickly triggers a second preset shortcut action. The merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request are obtained. When it is determined that the resource to be verified matches the merchant identification information, the resource verification operation is performed in response to the first resource verification request and the second resource verification request. The first resource verification request is sent when the first preset shortcut action is triggered after the first application is launched using the first terminal device; the first application is an application that allows merchant users to perform resource verification or electronic payment.
2. The method according to claim 1, characterized in that, The first resource verification request is sent by the first terminal device when it determines, based on sensor data, that a first preset quick action has been triggered.
3. The method according to claim 1 or 2, characterized in that, The first resource verification request includes the merchant user's first geographical location information and the merchant identifier corresponding to the merchant user, so that the server matches the resource to be verified based on the merchant identifier and determines the distance between the resource and the second geographical location information corresponding to the consumer user based on the first geographical location information.
4. A resource write-off method, characterized in that, The method for a second terminal device associated with a consumer to request resource revocation from the server includes: After launching the second application and opening the resource display page, a second resource verification request is sent to the server so that the server receives a first resource verification request sent by a first terminal device associated with the merchant user. The first resource verification request is sent when the first terminal device quickly triggers a first preset shortcut action. The server obtains the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request. When it is determined that the resource to be verified matches the merchant identification information, the server performs a resource verification operation in response to the first resource verification request and the second resource verification request. The second resource verification request is sent when the second preset shortcut action is triggered after the second application is launched and the resource display page is opened using the second terminal device; the second application is a related application that allows consumers to select resources or perform electronic payment operations.
5. The method according to claim 4, characterized in that, The second resource verification request is sent when the second terminal device displays the resource display page and determines, based on sensor data, that the second preset shortcut action has been triggered.
6. The method according to claim 5, characterized in that, The second resource verification request includes the second geographical location information corresponding to the consumer user and the resource identifier information of the resource to be verified, so that the server matches the resource to be verified according to the merchant identifier and determines the distance between the resource and the first geographical location information of the merchant user according to the second geographical location information.
7. A resource verification device, characterized in that, Located in a first terminal device associated with a merchant user, the device is used to request resource revocation from the server, and the device includes: The verification request unit is used to initiate a first application to send a first resource verification request to a server, so that the server receives a second resource verification request sent by a second terminal device associated with a consumer user. The second resource verification request is sent when a second preset shortcut action is triggered using the second terminal device. The unit obtains the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request. When it determines that the resource to be verified matches the merchant identification information, the unit performs a resource verification operation in response to the first and second resource verification requests. The first resource verification request is sent when a first preset shortcut action is triggered after initiating the first application using the first terminal device. The first application is an application that allows merchants to perform resource verification or electronic payment.
8. A resource verification device, characterized in that, A second terminal device associated with a consumer user is used to request resource revocation from the server. The device includes: The verification request unit is used to send a second resource verification request to the server after launching the second application and opening the resource display page, so that the server receives a first resource verification request sent by a first terminal device associated with the merchant user. The first resource verification request is sent when a first preset shortcut action is triggered by the first terminal device. The server obtains the merchant identification information corresponding to the first resource verification request and the resource to be verified corresponding to the second resource verification request. When it determines that the resource to be verified matches the merchant identification information, the server performs a resource verification operation in response to the first and second resource verification requests. The second resource verification request is sent when a second preset shortcut action is triggered after launching the second application and opening the resource display page by the second terminal device. The second application is a related application that allows consumers to select resources or perform electronic payment operations.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for performing the method according to any one of claims 1-6.
10. A computing device, characterized in that, The computing device includes a processor and memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1-6 according to the instructions in the program code.