Disclosure of Invention
In view of the foregoing, the present invention provides a resource verification method and apparatus, a storage medium, and a computing device, which overcome the foregoing problems or at least partially solve the foregoing problems, so that the overall process of resource verification is more concise, and especially, users who are not in all-process manual operations are more friendly, thereby further improving user experience.
According to a first aspect of the present invention, there is provided a resource verification method, including:
receiving a first resource verification and cancellation request sent by first terminal equipment associated with a merchant user, wherein the first resource verification and cancellation request is sent when first preset shortcut actions are triggered by the first terminal equipment in a shortcut mode;
receiving a second resource verification and cancellation request sent by a second terminal device associated with a consuming user, wherein the second resource verification and cancellation request is sent when a second preset shortcut action is triggered by the second terminal device in a shortcut mode;
acquiring merchant identification information corresponding to the first resource verification and cancellation request and to-be-verified resources corresponding to the second resource verification and cancellation request;
and when the resource to be verified is judged to be matched with the merchant identification information, responding to the first resource verification and verification request and the second resource verification and verification request to execute resource verification and verification operation.
In another embodiment, the receiving the first resource verification request sent by the first terminal device associated with the merchant user comprises:
receiving a first resource verification and cancellation request sent by first terminal equipment associated with the merchant user after starting a first application program;
the first resource verification and cancellation request is sent by the first terminal device when the first terminal device judges that the first preset shortcut action is triggered according to the sensor data.
In another embodiment, the receiving a second resource cancellation request sent by a second terminal device associated with the consuming user comprises:
receiving a second resource verification request sent by a second terminal device associated with the consuming user after starting a second application program and opening a resource display page;
and the second resource verification and cancellation request is sent when the second terminal equipment displays the resource display page and judges that a second preset shortcut action is triggered according to the sensor data.
In another embodiment, the obtaining of the merchant identification information corresponding to the first resource verification request and the to-be-verified resource corresponding to the second resource verification request includes:
acquiring merchant identification information corresponding to the first resource verification and cancellation request;
and acquiring the consumption user information corresponding to the second resource verification request and the resource to be verified corresponding to the resource display page.
In another embodiment, when it is determined that the to-be-verified resource matches the merchant identification information, performing a resource verification operation in response to the first resource verification request and the second resource verification request includes:
and when the first resource verification and cancellation request and the second resource verification and cancellation request are verified to be valid requests and the resource to be verified meets the resource verification and cancellation condition correspondingly set by the merchant identification information, responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute resource verification and cancellation operation.
In another embodiment, said verifying that said first and second resource cancel requests are valid requests comprises:
acquiring first geographical position information corresponding to the merchant user based on the first resource verification request, and acquiring second geographical position information corresponding to the consuming user based on the second resource verification request;
and judging that the distance between the first geographical position information and the second geographical position information is within a set distance range, and verifying that the first resource verification request and the second resource verification request are valid requests.
In another embodiment, said performing resource cancellation operations in response to said first resource cancellation request and second resource cancellation request comprises:
identifying a resource type corresponding to the resource to be verified and cancelled, and triggering a verification and cancellation link according to the resource type to complete verification and cancellation;
if the resource to be verified is a consumption coupon, transferring the resource amount corresponding to the consumption coupon to a merchant account corresponding to the merchant user, and modifying the verification state of the consumption coupon into verified state;
and if the resource to be checked and sold is mobile payment, obtaining the payment amount submitted by the merchant user, and transferring the payment amount from the consumption user to the merchant user.
According to a second aspect of the present invention, there is provided a resource verification apparatus, comprising:
the system comprises a first request receiving module, a first resource verification module and a second request receiving module, wherein the first request receiving module is used for receiving a first resource verification and cancellation request sent by a first terminal device associated with a merchant user, and the first resource verification and cancellation request is sent when a first preset shortcut action is triggered by the first terminal device in a shortcut mode;
the second request receiving module is used for receiving a second resource verification and cancellation request sent by second terminal equipment associated with a consuming user, wherein the second resource verification and cancellation request is sent when second preset shortcut actions are triggered by the second terminal equipment in a shortcut mode;
the information acquisition module is used for acquiring merchant identification information corresponding to the first resource verification and cancellation request and resources to be verified and cancelled corresponding to the second resource verification and cancellation request;
and the verification and cancellation module is used for responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute resource verification and cancellation operation when the resources to be verified and cancelled are judged to be matched with the merchant identification information.
In another embodiment, the first request receiving module is further configured to:
receiving a first resource verification and cancellation request sent by first terminal equipment associated with the merchant user after starting a first application program;
the first resource verification and cancellation request is sent by the first terminal device when the first terminal device judges that the first preset shortcut action is triggered according to the sensor data.
In another embodiment, the second request receiving module is further configured to:
receiving a second resource verification request sent by a second terminal device associated with the consuming user after starting a second application program and opening a resource display page;
and the second resource verification and cancellation request is sent when the second terminal equipment displays the resource display page and judges that a second preset shortcut action is triggered according to the sensor data.
In another embodiment, the information obtaining module is further configured to:
acquiring merchant identification information corresponding to the first resource verification and cancellation request;
and acquiring the consumption user information corresponding to the second resource verification request and the resource to be verified corresponding to the resource display page.
In another embodiment, the core-pin module is further configured to:
and when the first resource verification and cancellation request and the second resource verification and cancellation request are verified to be valid requests and the resource to be verified meets the resource verification and cancellation condition correspondingly set by the merchant identification information, responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute resource verification and cancellation operation.
In another embodiment, the core-pin module is further configured to:
acquiring first geographical position information corresponding to the merchant user based on the first resource verification request, and acquiring second geographical position information corresponding to the consuming user based on the second resource verification request;
and judging that the distance between the first geographical position information and the second geographical position information is within a set distance range, and verifying that the first resource verification request and the second resource verification request are valid requests.
In another embodiment, the core-pin module is further configured to:
identifying a resource type corresponding to the resource to be verified and cancelled, and triggering a verification and cancellation link according to the resource type to complete verification and cancellation;
if the resource to be verified is a consumption coupon, transferring the resource amount corresponding to the consumption coupon to a merchant account corresponding to the merchant user, and modifying the verification state of the consumption coupon into verified state;
and if the resource to be checked and sold is mobile payment, obtaining the payment amount submitted by the merchant user, and transferring the payment amount from the consumption user to the merchant user.
According to a third aspect of the present invention, there is provided a computer readable storage medium for storing program code for performing the method of any one of the first or second aspects.
According to a fourth aspect of the invention, there is provided a computing device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of any of the first or second aspects in accordance with instructions in the program code.
The invention provides a resource verification and cancellation method and device, a storage medium and a computing device, which are used for automatically performing information matching after acquiring a first resource verification and cancellation request which is triggered and sent by a first terminal device associated with a merchant user through a shortcut action and a second resource verification and cancellation request which is sent by a second terminal device associated with a consumption user after triggering a preset shortcut action, and automatically executing resource verification and cancellation operation after judging that resources to be verified and cancelled are matched with merchant identification information. According to the scheme provided by the invention, no matter merchant users and consumer users, in the process of resource verification and cancellation, any button does not need to be clicked, and the resource verification and cancellation link can be triggered only by triggering the preset quick action, so that the whole process of resource verification and cancellation is simpler, and particularly, the method is more friendly to some users who are not manually operated in the whole process, and the user experience is further improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 thereof, taken in conjunction with the accompanying drawings.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below 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 embodied 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.
The resource verification and cancellation method provided by the embodiment of the invention can be applied to a server of a target application program, wherein the target program is in the form of an application program APP with a resource verification and cancellation function and the like, an applet, a plug-in and the like, and can be an application program corresponding to a payment platform, a consumption platform, a take-out platform and the like. Of course, in practical applications, the target programs set in the terminal devices used by different users may be different or the same, and may be specifically set according to different application scenarios of different terminal devices.
The resource may refer to a streaming resource credential set for enhancement or service provisionability, for example, in the field of network shopping or the field of living service network applications, an electronic coupon such as a coupon, a redemption coupon, a discount coupon, etc. may be used as a corresponding object for resource underwriting operation. In addition, the medium resources in the embodiment can also be the amount paid by the user for purchasing the goods. The resource verification is to check the above mentioned coupon, redemption ticket, discount ticket or the amount paid by the user and perform the resource transfer.
Fig. 1 shows a schematic flow diagram of a resource verification method according to an embodiment of the present invention, and as can be seen from fig. 1, the resource verification method according to the embodiment of the present invention at least includes the following steps S101 to S104.
S101, a first resource verification and cancellation request sent by a first terminal device associated with a merchant user is received, wherein the first resource verification and cancellation request is sent when a first preset shortcut action is triggered by the first terminal device in a shortcut mode.
The first terminal device associated with the merchant user is a smart device such as a cell phone, a tablet computer, etc. that may be used by the user. The first preset shortcut action may be a "shake-shake" action triggered by the first terminal device. The first resource verification request sent by the first terminal device to the service end may include first geographic location information of the merchant user and merchant identification corresponding to the merchant user, such as merchant ID and other related information with the merchant user.
Optionally, the receiving, in step S101, the first resource verification request sent by the first terminal device associated with the merchant user may include: receiving a first resource verification and cancellation request sent by a first terminal device associated with a merchant user after starting a first application program; the first resource verification and cancellation request is sent by the first terminal device when the first terminal device judges that the first preset shortcut action is triggered according to the sensor data.
In this embodiment, a first application program is set in the first terminal device, where the first application program is a program in the form of an application program APP having a resource verification function, an applet, a plug-in, and the like, and may be an application program corresponding to a payment platform, a consumption platform, a takeout platform, and the like. Of course, in practical applications, the application programs set in the terminal devices used by different users may be different or the same, and may be specifically set according to different application scenarios of different terminal devices. In this embodiment, the first terminal device is a device associated with a merchant user, and the first application program in the terminal device may be an application program for a merchant user to perform resource verification or electronic cash collection. For the application programs set in the terminal devices used by different types of users, the functions of the application programs can be adaptively set according to different needs, which is not limited in the embodiment of the present invention.
The first preset shortcut action is used for quickly indicating the first terminal equipment to request the server side to execute the resource verification operation, and the first preset shortcut action can judge whether to trigger or not by reading sensor data of the first terminal equipment. Optionally, the data of the sensor collected by the sensor in the first terminal device within the set time may be read; and if the sensor data meet the triggering requirement corresponding to the preset shortcut action, determining that the preset shortcut action triggered by the terminal equipment is detected.
The terminal device is used as an intelligent device, and is provided with sensors such as an accelerometer, a magnetometer and a gyroscope, wherein the accelerometer is used for measuring the acceleration of the terminal device in three directions of an x axis, a y axis and a z axis of a space coordinate system and mainly comprises the gravity acceleration, the magnetometer is mainly used for measuring the strength value of a magnetic field, and the gyroscope is mainly used for measuring the rotation speed of the terminal device in each direction axis. In this embodiment, the sensor time acquired by the sensor within the set time may be read, where the set time may be a time required for executing a preset shortcut action, and may be set to 0.5s or 1s or a time set according to the type of the terminal device, which is not limited in the embodiment of the present invention.
And judging whether the read sensor data of the first terminal equipment meets the triggering requirement corresponding to the preset shortcut action, and if so, determining that the first preset shortcut action is triggered by the first terminal equipment. Optionally, the preset shortcut motion in this embodiment may be a shaking motion for the terminal device, that is, a "shake-and-shake" motion. In other words, it may be determined whether the read sensor data meets a trigger requirement corresponding to shaking of the terminal device within a set time, where the trigger requirement may be set according to acceleration change data, displacement change data, and the like generated within the set time when the terminal device shakes, and if the read sensor data meets the set trigger requirement, it may be determined that the terminal device is detected to trigger the first preset shortcut motion, and the resource cancellation request may be directly sent to the server corresponding to the first application. The server may be a cloud server corresponding to the first application, and the server may perform operations such as data storage and data processing, for example, management of resources, resource verification, and management of a user associated with the terminal device.
And S102, receiving a second resource verification and cancellation request sent by a second terminal device associated with the consuming user, wherein the second resource verification and cancellation request is sent when a second preset shortcut action is triggered by the second terminal device.
The second terminal device may also be an intelligent terminal device used by the consuming user, such as a smart phone and a smart watch. The second preset shortcut action may also be the same as the preset action mentioned in the above embodiments, for example, a "shake-and-shake" action for the second terminal device. The second resource verification request sent by the second terminal device to the server may include the second geographic location information of the consuming user and the resource identification information of the selected resource to be verified.
Optionally, the receiving, by the step S102, the second resource verification request sent by the second terminal device associated with the consuming user may include: receiving a second resource verification request sent by a second terminal device associated with the consuming user after starting a second application program and opening a resource display page; and the second resource verification and cancellation request is sent when the second terminal equipment displays the resource display page and judges that the second preset shortcut action is triggered according to the sensor data.
In this embodiment, the second terminal device is a device used by the consuming user, and the second application program in the second terminal device may be a related application program for the consuming user to select a resource or perform an electronic payment operation. And when the consuming user triggers and starts the second application program and opens the resource display page, the consuming user can trigger and send a second resource verification and cancellation request. In this embodiment, the second resource verification request may also be sent according to the second terminal device, and the second resource verification request may be automatically sent when the second terminal device triggers the second preset shortcut action. The second preset shortcut action may be a shortcut action similar to the first preset action, such as "shake-and-shake" triggered for the second terminal device. Similarly, for the read sensor data of the second terminal device, it may be determined whether the sensor data meets the trigger requirement corresponding to the preset shortcut action, and if the sensor data meets the trigger requirement, it is determined that the second preset shortcut action is triggered by the second terminal device.
S103, acquiring merchant identification information corresponding to the first resource verification and cancellation request and resources to be verified and cancelled corresponding to the second resource verification and cancellation request.
As introduced above, the first terminal device is associated with the merchant user, the second terminal device is associated with the consumer user, and for different types of users, the information carried by the resource verification request is different. In this embodiment, for the received first resource cancel verification request and the second resource cancel verification request, cancel verification data required by the server to perform the resource cancel verification operation may be adaptively obtained. Optionally, the step S103 of taking the merchant identification information corresponding to the first resource verification request and the to-be-verified resource corresponding to the second resource verification request may include the following steps a1 to a 2.
And A1, acquiring merchant identification information corresponding to the first resource verification request.
And A2, acquiring the consumption user information corresponding to the second resource cancel request and the resource to be cancelled corresponding to the resource display page.
That is, if the merchant user sends the resource verification request to the service end, the user identifier (such as a merchant ID) corresponding to the merchant user may be carried. If the expense is sent to the server side, the resource verification request can carry the resource identification information of the resource to be verified and cancelled corresponding to the consuming user. The resource to be checked and sold can be at least one resource managed by the consuming user, such as a card ticket, a voucher, a coupon, a redemption ticket, a discount ticket and the like, which can be used as the resource to be checked and sold.
By introducing the above description, no matter the first terminal device triggers the first preset shortcut action or the second terminal device triggers the second preset shortcut action, it is required that, in a state where the first application program or the second application program is started, optionally, when it is detected that the first terminal device triggers the preset shortcut action or the second terminal device triggers the second preset shortcut action, the resource verification and cancellation page can be correspondingly displayed for the terminal device corresponding to the merchant user or the terminal device corresponding to the consumer user. Fig. 2 shows a resource underwriting page corresponding to a target user as a consuming user, where for different types of users, types and layout rules of page elements in the resource underwriting page may be different, or may be set by a user according to a usage habit of the user in a self-defined manner, which is not limited in the embodiment of the present invention.
In practical application, after the consuming user starts the second application program in the second terminal device, at least one resource to be checked and sold can be selected in response to the resource selection operation executed by the consuming user based on the resource display page. In other words, the same consuming user may have multiple resources managed correspondingly, as shown in fig. 3, at this time, the user may select at least one to-be-verified resource for performing the verification operation from the multiple resources.
And S104, responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute resource verification and cancellation operation when the resources to be verified and cancelled are judged to be matched with the merchant identification information.
After receiving a first resource verification request initiated by a merchant user trigger and a second resource verification request initiated by a consumption user trigger, the server can judge whether the resource to be verified is matched with the merchant identification information, and when judging that the resource to be verified is matched with the merchant identification information, the server responds to the first resource verification request and the second resource verification request to execute resource verification operation.
Optionally, when it is determined in step S104 that the to-be-verified resource matches the merchant identification information, performing the resource verification operation in response to the first resource verification request and the second resource verification request may include: and when the first resource verification and cancellation request and the second resource verification and cancellation request are verified to be valid requests and the resources to be verified and cancelled are judged to meet the resource verification and cancellation conditions correspondingly set by the merchant identification information, responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute the resource verification and cancellation operation.
Before the specific resource verification operation is executed in the solution provided in this embodiment, it is necessary to verify that the first resource verification request and the second resource verification request are valid requests, and optionally, first geographic location information corresponding to the merchant user may be obtained based on the first resource verification request, and second geographic location information corresponding to the consuming user may be obtained based on the second resource verification request; and then judging that the distance between the first geographical position information and the second geographical position information is within a set distance range, and verifying that the first resource verification request and the second resource verification request are valid requests. In this embodiment, the geographical location information corresponding to the merchant user and the consumer user may be obtained first, and when it is determined that the merchant user and the consumer user are located in the same geographical area and the relative distance is within the set distance range, it may be determined that the first resource verification request and the second resource verification request are valid. In practical applications, both the first geographical location information and the second geographical location information may be obtained by using a GPS positioning system.
Further, when the first resource verification request and the second resource verification request are verified to be valid, it is also required to judge that the resource to be verified meets the resource verification condition set corresponding to the merchant identification information. For example, first, acquiring merchant identification information corresponding to a merchant user based on a first resource verification request, and acquiring resource identification information of a resource to be verified based on a second resource verification request; secondly, whether the resource to be checked and sold is matched with the merchant user is judged according to the resource identification information and the merchant identification information, namely whether the resource to be checked and sold is the resource belonging to the merchant user is judged. In this embodiment, after the first resource verification request and the second resource verification request are successfully verified, the further verification operation on the resource to be verified is performed, so as to prevent resource verification caused by misoperation of a merchant user or a consumer user, thereby ensuring the accuracy of resource verification and improving the use experience of the user. It should be noted that, the sequence of the server for receiving the first resource cancel verification operation and the second resource cancel verification operation is not limited, but the time interval between the first resource cancel verification operation and the second resource cancel verification operation needs to be less than a certain time, so as to ensure the accuracy of the resource cancel verification.
And finally, when it is determined that the first resource verification and cancellation request and the second resource verification and cancellation request are valid and the to-be-verified resource meets the resource verification and cancellation condition set corresponding to the merchant identification information, performing resource verification and cancellation operation in response to the first resource verification and cancellation request and the second resource verification and cancellation request, which may specifically include the following steps B1-B3.
B1, identifying the resource type corresponding to the resource to be verified, and triggering the verification link according to the resource type to complete verification and verification.
B2, if the resource to be verified is the consumption ticket, transferring the resource amount corresponding to the consumption ticket to a merchant account corresponding to the merchant user, and modifying the verification state of the consumption ticket into verified state.
B3, if the resource to be checked and sold is mobile payment, obtaining the payment amount submitted by the merchant user, and transferring the payment amount from the consuming user to the merchant user.
And if the to-be-checked and sold resources are matched with the merchant users, executing resource checking and selling operation aiming at the to-be-checked and sold resources, modifying the checking and selling state corresponding to the to-be-checked and sold resources after the resource checking and selling operation is completed, modifying the to-be-checked and sold resources into the checked and sold state, and simultaneously transferring resource data corresponding to the to-be-checked and sold resources to the merchant users.
In an optional embodiment of the present invention, after the step S104, in response to the first resource cancel request and the second resource cancel request, performs the resource cancel operation, the method may further include: and generating a resource checking and canceling result, and sending the resource checking and canceling result to the first terminal equipment and/or the second terminal equipment for displaying. The resource verification result may be a result of successful verification and cancellation of the resource to be verified and cancelled or a result of failure of verification and cancellation of the resource to be verified and cancelled, and either result may be sent to the first terminal device or the second terminal device for display.
In the above embodiment, when the first terminal device initiates the first resource cancel verification request or the second terminal device initiates the second resource cancel verification request, the resource cancel verification page may be displayed on the display interface of the first application program or the second application program, and correspondingly, when the resource cancel verification result is displayed, the display interface of the first application program or the second application program may be controlled to jump to the resource cancel verification result page, as shown in fig. 4. For the resource to be checked and sold after the checking and the selling are completed, the state of the resource to be checked and sold can be modified into a checked and sold state, the resource can be displayed in a text and/or image form, can be displayed in a mode of playing audio information, and can be simultaneously displayed by combining the two modes. According to the method provided by the embodiment of the invention, when the terminal device is detected to trigger the preset shortcut action, the resource verification request can be sent to the server side of the target program, and after the server side respectively receives the resource verification requests triggered and sent by the merchant user and the consumer user based on the preset shortcut action, the resource verification request and the validity of the resource to be verified can be verified, so that the resource verification operation can be quickly and conveniently executed. The process of resource verification and cancellation is not required to be executed through a merchant or a user by manually inputting resource information, so that the overall process of resource verification and cancellation is simpler, and the method is particularly more friendly to some users who are not in full-process manual operation, and further improves user experience.
The embodiment of the invention also provides a resource verification and cancellation method, which is applied to a resource verification and cancellation system consisting of first terminal equipment, second terminal equipment and a service end, wherein the first terminal equipment is equipment associated with the merchant user, and a first target program for providing resource verification and cancellation service for the merchant user is arranged in the first terminal equipment and can be in data communication with the service end; the second terminal device is a terminal device associated with the consuming user, and a second target program for providing resource verification service for the consuming user is arranged in the second terminal device and can be in data communication with the server. The resource verification method provided by the embodiment can comprise the following steps:
s1, a first target program in first terminal equipment is started in response to operation of a merchant user, and when a first preset shortcut action triggered by the first terminal equipment is detected, a first resource verification and cancellation request is sent to a server side; meanwhile, a resource verification page can be popped up on a display interface of the first terminal device to wait for matching of the payment code or the coupon code.
The first resource verification request carries user identification information corresponding to the merchant user and first geographical position information of the merchant user; the first preset shortcut action may be a shaking action for the first terminal device; that is to say, the merchant user opens the first target program and can send the first resource verification and cancellation request to the server by shaking the first terminal device. Namely, when the merchant shakes one shake, the geographic position of the current merchant and the merchant id are reported to the server, the monitoring ticket code resource verification result is started, at the moment, the timeout time is set to be 30 seconds, namely the effective time of the first resource verification request is 30 seconds.
And S2, responding to the operation of the consuming user to start a second target program in the second terminal device, selecting the resource to be checked and sold (such as a coupon code or a payment code), and sending a second resource checking and selling request to the server when detecting that the second terminal device triggers a second preset shortcut action.
The second resource verification request carries second geographic position information corresponding to the consuming user and resource identification information of the resource to be verified and sold; the second preset shortcut action may be a shaking action for the first terminal device; that is, the consuming user opens the first target program, selects the coupon code or the payment code, and sends a second resource verification request to the server by shaking the second terminal device. Namely, when the consuming user shakes, the current user address position and the ticket code i are reported to the server, the ticket code resource checking result is monitored, the timeout time is set to be 30 seconds, and the effective time of the second resource checking request is 30 seconds.
S3, the server receives the first resource cancel request and the second resource cancel request, wherein the interval time between the first resource cancel request and the second resource cancel request is set to be not more than 30 seconds. That is, the server receives the user or the merchant verification request, and holds for 30 seconds, and if the merchant or the user request comes within 30 seconds, the next operation is performed.
And S4, the server side matches the first geographical position information and the second geographical position information, and if the merchant user and the consumer user are in the same place and the range is not more than 10 meters, the first resource verification request and the second resource verification request are verified to be valid.
And S5, if the first resource verification request and the second resource verification request are verified to be valid, the coupon code verification is started, whether the resource to be verified uploaded by the consuming user belongs to the current merchant user or not is judged, and if the resource to be verified belongs to the current merchant, verification and cancellation are executed. And pushing the verification completion message to the merchant user and/or the consumption user, skipping a display page of the first terminal device corresponding to the merchant user to a resource verification completion page, and setting the state corresponding to the resource in the resource display page of the consumption user as verified.
The embodiment of the invention provides a quick resource verification and sale mode based on shaking, no matter a merchant user and a consumer user, in the resource verification and sale process, any button does not need to be clicked, a resource verification and sale link can be triggered only in a shaking and shaking mode, through a scheme of double-end rotation training, the verification and sale matching problem is solved, the resource verification and sale link is simplified, particularly, the merchant user is a blind person or amblyopia group inconvenient to operate, the resource verification and sale can be better assisted, and the collection and verification of the user group are greatly facilitated.
Based on the same inventive concept, an embodiment of the present invention further provides a resource verification apparatus, which may be applied to a terminal device, such as a mobile phone and a tablet computer, used by a user, where the terminal device may further include an object program, as shown in fig. 5, and the resource verification apparatus provided in this embodiment may include:
a first request receiving module 510, configured to receive a first resource verification request sent by a first terminal device associated with a merchant user, where the first resource verification request is sent when a first preset shortcut action is triggered by using the first terminal device;
a second request receiving module 520, configured to receive a second resource verification request sent by a second terminal device associated with the consuming user, where the second resource verification request is sent when a second preset shortcut action is triggered by using the second terminal device;
the information obtaining module 530 is configured to obtain merchant identification information corresponding to the first resource verification request and a to-be-verified resource corresponding to the second resource verification request;
and the verification module 540 is configured to, when it is determined that the resource to be verified is matched with the merchant identification information, execute a resource verification and cancellation operation in response to the first resource verification and cancellation request and the second resource verification and cancellation request.
In an optional embodiment of the present invention, the first request receiving module 510 may further be configured to:
receiving a first resource verification and cancellation request sent by a first terminal device associated with a merchant user after starting a first application program;
the first resource verification and cancellation request is sent by the first terminal device when the first preset shortcut action is triggered according to the sensor data.
In an optional embodiment of the present invention, the second request receiving module 520 may further be configured to:
receiving a second resource verification request sent by a second terminal device associated with the consuming user after starting a second application program and opening a resource display page;
and the second resource verification and cancellation request is sent when the second terminal equipment displays the resource display page and judges that the second preset shortcut action is triggered according to the sensor data.
In an optional embodiment of the present invention, the information obtaining module 530 may further be configured to:
acquiring merchant identification information corresponding to the first resource verification and cancellation request;
and acquiring the consumption user information corresponding to the second resource verification and cancellation request and the to-be-verified resource corresponding to the resource display page.
In an alternative embodiment of the present invention, the verification module 540 may further be configured to:
and when the first resource verification and cancellation request and the second resource verification and cancellation request are verified to be valid requests and the resources to be verified and cancelled are judged to meet the resource verification and cancellation conditions correspondingly set by the merchant identification information, responding to the first resource verification and cancellation request and the second resource verification and cancellation request to execute the resource verification and cancellation operation.
In an alternative embodiment of the present invention, the verification module 540 may further be configured to:
acquiring first geographical position information corresponding to a merchant user based on a first resource verification and cancellation request, and acquiring second geographical position information corresponding to a consuming user based on a second resource verification and cancellation request;
and judging that the distance between the first geographical position information and the second geographical position information is within a set distance range, and verifying that the first resource verification request and the second resource verification request are valid requests.
In an alternative embodiment of the present invention, the verification module 540 may further be configured to:
identifying a resource type corresponding to the resource to be verified and cancelled, and triggering a verification and cancellation link according to the resource type to complete verification and cancellation;
if the resource to be verified is the consumption coupon, transferring the resource amount corresponding to the consumption coupon to a merchant account corresponding to a merchant user, and modifying the verification state of the consumption coupon into verified state;
and if the resource to be checked and sold is mobile payment, acquiring the payment amount submitted by the merchant user, and transferring the payment amount from the consumption user to the merchant user.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a program code, and the program code is used for executing the resource verification method described in any of the above embodiments.
An embodiment of the present invention further provides a computing device, where the computing device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the resource cancellation method according to any one of the above embodiments according to instructions in the program code.
In an exemplary embodiment, referring to fig. 6, an embodiment of the present invention further provides a computing device, where the computing device includes a communication bus, a processor, a memory, and a communication interface, and may further include an input/output interface and a display device, where the functional units may complete communication with each other through the bus. The memory stores computer programs, and the processor is used for executing the programs stored in the memory and executing the steps of the resource cancel method in the embodiment.
It is clear to those skilled in the art that the specific working processes of the above-described systems, devices, modules and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.