Resource acquisition and sending method and device and information sending method and device based on near field communication
By introducing near-field communication technology into the resource distribution system, using the matching verification of near-field terminal identification and resource type identification, the problem of low security in resource distribution is solved, and the safe and effective distribution of resources is achieved.
Patent Information
- Application Number
- CN202411909629.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the prior art, the security of resource distribution is poor and is easily subject to the risk of users maliciously defrauding resources, resulting in resource losses.
A resource acquisition method based on near field communication is adopted to obtain the near field terminal identifier through a near field communication terminal and match with the resource type identifier sent by the user terminal to ensure that the resource is sent only after the user reaches the specified location and makes a valid match.
Improve the security of resource distribution, reduce the risk of resource loss, and ensure that resources can only be collected by authorized users in designated locations.
Smart Images

Figure CN119729501A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wireless communication service processing, and in particular to a resource acquisition method based on near field communication. The present application also relates to a resource acquisition device and equipment based on near field communication, a resource transmission method, device and equipment, and an information transmission method, device and equipment. Background Art
[0002] In order to promote the development of offline economy, some online activities are usually carried out to attract customers. For example, for offline stores and tourist attractions, merchants can attract users to visit offline by distributing resources to users online. In the process of distributing resources, some users may use malicious means to defraud the resources of the resource distributor, causing certain resource loss risks to the resource distributor.
[0003] Based on this, how to improve the security of resource distribution and reduce the resource loss of resource distributors has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a resource acquisition method, device and equipment based on near field communication, a resource sending method, device and equipment, and an information sending method, device and equipment to solve the problem of poor security of existing resource issuance.
[0005] A resource acquisition method based on near field communication provided in an embodiment of the present specification is applied to a user terminal, comprising: obtaining a near field terminal identifier of a near field communication terminal located at a specified location through near field communication; sending a resource type identifier of a resource to be collected by a user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to a server; sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near field terminal identifier to the server; receiving a resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
[0006] A resource sending method provided in an embodiment of this specification is applied to a server, including:
[0007] Receive a resource acquisition request and a near-field terminal identifier sent by a user terminal for requesting a resource corresponding to a first resource type identifier; the near-field terminal identifier is an identifier of a near-field communication terminal located at a specified position; obtain a second resource type identifier sent by the near-field communication terminal; determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result; if the identifier determination result indicates that the first resource type identifier is consistent with the second resource type identifier, send the resource corresponding to the first resource type identifier to the user terminal.
[0008] An information sending method based on near field communication provided in an embodiment of this specification is applied to a near field communication terminal, including:
[0009] A near field terminal identifier of the near field communication terminal is sent to the user terminal through near field communication; the near field terminal identifier is used for the user terminal to send the near field terminal identifier and the resource type identifier of the resource to be collected by the user to the server; the resource type identifier is obtained from the user terminal; the resource type identifier is sent to the server, so that the server determines that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal and then sends the resource corresponding to the resource type identifier to the user terminal.
[0010] A resource acquisition device based on near field communication provided in an embodiment of the present specification is applied to a user terminal, including:
[0011] A near field communication module at the user end is used to obtain a near field terminal identifier of a near field communication terminal located at a specified location through near field communication; send a resource type identifier of a resource to be collected by the user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to the server;
[0012] A request sending module, used for sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server;
[0013] A resource receiving module is used to receive the resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
[0014] A resource sending device provided in an embodiment of the present specification is applied to a server, including:
[0015] A request receiving module, used to receive a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near field terminal identifier sent by a user terminal; the near field terminal identifier is an identifier of a near field communication terminal located at a specified location;
[0016] An information acquisition module, used to acquire a second resource type identifier sent by the near field communication terminal;
[0017] A judgment module, used to judge whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier judgment result;
[0018] A resource sending module is used to send the resource corresponding to the first resource type identifier to the user terminal if the identification judgment result indicates that the first resource type identifier is consistent with the second resource type identifier.
[0019] An information sending device based on near field communication provided in an embodiment of the present specification is applied to a near field communication terminal, including:
[0020] A near field communication module on the device side, used to send a near field terminal identifier of the near field communication terminal to the user terminal by means of near field communication; the near field terminal identifier is used for the user terminal to send the near field terminal identifier and a resource type identifier of a resource to be collected by the user to the server; and obtain the resource type identifier from the user terminal;
[0021] The information sending module is used to send the resource type identifier to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
[0022] A user terminal device provided in an embodiment of the present specification includes:
[0023] at least one processor; and,
[0024] a memory communicatively connected to the at least one processor; wherein,
[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a near-field terminal identifier of a near-field communication terminal located at a specified location through near-field communication; send a resource type identifier of a resource to be collected by a user to the near-field communication terminal; the resource type identifier is used to be sent by the near-field communication terminal to a server; send a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server; receive the resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near-field communication terminal.
[0026] A server provided in an embodiment of the present specification includes:
[0027] at least one processor; and,
[0028] a memory communicatively connected to the at least one processor; wherein,
[0029] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: receive a resource acquisition request and a near-field terminal identifier sent by a user terminal to request a resource corresponding to a first resource type identifier; the near-field terminal identifier is an identifier of a near-field communication terminal located at a specified location; obtain a second resource type identifier sent by the near-field communication terminal; determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result; if the identifier determination result indicates that the first resource type identifier is consistent with the second resource type identifier, then send the resource corresponding to the first resource type identifier to the user terminal.
[0030] A near field communication device provided in an embodiment of the present specification includes:
[0031] at least one processor; and,
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0034] A near field terminal identifier of the near field communication terminal is sent to the user terminal through near field communication; the near field terminal identifier is used for the user terminal to send the near field terminal identifier and the resource type identifier of the resource to be collected by the user to the server; the resource type identifier is obtained from the user terminal; the resource type identifier is sent to the server, so that the server determines that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal and then sends the resource corresponding to the resource type identifier to the user terminal.
[0035] At least one embodiment of this specification can achieve the following beneficial effects:
[0036] The near-field communication terminal is set at a designated location. After the user arrives at the designated location, he can obtain the near-field terminal identifier from the near-field communication terminal through near-field communication, and send the resource type identifier of the resource to be collected by the user to the near-field communication terminal. Subsequently, the server can determine the corresponding near-field terminal according to the near-field terminal identifier sent by the user terminal, and then match the resource type identifier sent by the determined near-field terminal with the resource type identifier sent by the user terminal. If the two are consistent, the resource corresponding to the resource type identifier will be sent to the user terminal. In this solution, the user can only collect the resources after arriving at the designated location where the near-field communication terminal is located and matching and verifying the data sent by the user terminal device and the data sent by the communication terminal device, so as to avoid the risk of cheating by the user in the process of collecting resources, thereby improving the security of resource distribution and reducing the risk of resource loss for the resource issuer. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 This is a schematic diagram of an application scenario of a resource acquisition method based on near field communication provided in an embodiment of this specification;
[0039] Figure 2 It is a flowchart of a resource acquisition method based on near field communication provided in an embodiment of this specification;
[0040] Figure 3 is a schematic diagram of a first resource claiming page provided in an embodiment of this specification;
[0041] Figure 4 is a schematic diagram of a second resource claiming page provided in an embodiment of this specification;
[0042] Figure 5 is a schematic diagram of a resource display page provided in an embodiment of this specification;
[0043] Figure 6 It is a flowchart of a resource sending method provided in an embodiment of this specification;
[0044] Figure 7 It is a flowchart of a method for sending information based on near field communication provided in an embodiment of this specification;
[0045] Figure 8 The embodiment of this specification provides the corresponding Figure 2 , Figure 6 as well as Figure 7 A swimlane flow diagram of the resource release method;
[0046] Fig. 9 The embodiment of this specification provides the corresponding Figure 2 A schematic diagram of the structure of a resource acquisition device based on near field communication;
[0047] Fig.10 The embodiment of this specification provides the corresponding Figure 6 A structural diagram of a resource sending device;
[0048] Fig.11 The embodiment of this specification provides the corresponding Figure 7 A schematic diagram of the structure of an information sending device based on near field communication;
[0049] Fig.12 The embodiment of this specification provides the corresponding Figure 2 A structural diagram of a user terminal device;
[0050] Fig.13 The embodiment of this specification provides the corresponding Figure 6 A structural schematic diagram of a server device;
[0051] Fig.14 The embodiment of this specification provides the corresponding Figure 7 A structural schematic diagram of a near field communication device. DETAILED DESCRIPTION
[0052] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0053] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0054] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0055] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0056] Currently, when distributing resources, resource issuers usually set lower collection permissions, such as allowing users to directly collect resources. In order to obtain resources, users may sometimes use deceptive means to defraud the resource issuer of resources, thereby bringing certain resource loss risks to the resource issuer.
[0057] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0058] Figure 1 It is a schematic diagram of an application scenario of a resource acquisition method based on near field communication provided in an embodiment of this specification.
[0059] like Figure 1 As shown, the application scenario diagram includes a user device 101 , a target device 102 , and a server 103 .
[0060] In the embodiments of this specification, user devices may include but are not limited to smart phones, tablet computers, laptop computers, smart interactive devices, wearable devices, vehicle-mounted smart terminals, etc., wherein wearable devices may include but are not limited to: smart bracelets, smart watches, smart glasses, etc. User device 101 is any one of the user devices.
[0061] The target device may include but is not limited to an NFC tag, a smart card, an access card, a payment terminal or other smart devices, and the target device 102 is any one of the target devices.
[0062] The server may include but is not limited to any device, equipment, platform, equipment cluster or cloud computing service center with computing and processing capabilities. The server 103 is any type of server.
[0063] A short-distance communication connection may be established between the user device and the target device, and the short-distance communication connection includes but is not limited to Near Field Communication (NFC), local area network, Bluetooth, infrared, etc. The target device may exchange data in response to a request from the user device.
[0064] Both the user device and the target device can establish a communication connection with the server, wherein the communication connection mode may include but is not limited to a local area network connection, a wide area network connection, an Internet connection or other types of data network connections. Both the user device and the target device can exchange data with the server.
[0065] In the present application, a resource acquisition method based on near field communication is provided, which is described in detail one by one in the following embodiments.
[0066] Figure 2 It is a flowchart of a resource acquisition method based on near field communication provided in an embodiment of this specification.
[0067] From the program perspective, the execution subject of the process can be a program installed on the user terminal. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities.
[0068] like Figure 2 As shown, the process may include the following steps.
[0069] Step 202: Acquire a near field communication terminal identifier of a near field communication terminal located at a specified location through near field communication.
[0070] In the embodiments of this specification, both the user terminal and the near field communication terminal can be terminal devices with near field communication functions. In the near field communication process between the user terminal and the near field communication terminal, the user terminal can be a device that actively starts the communication, responsible for generating a radio frequency field and initiating the NFC communication process, and the near field communication terminal can be a passive response device, wherein the user terminal can interact with the near field communication terminal by sending commands and data, and the near field communication terminal relies on the radio frequency field generated by the user terminal for energy supply and data transmission.
[0071] In actual applications, the user terminal can send a near field terminal identification acquisition request to the near field communication terminal based on NFC, and the near field communication terminal sends the near field terminal identification to the user terminal in response to the near field terminal identification acquisition request sent by the user terminal.
[0072] In the embodiments of this specification, the designated location may be a location pre-set by the resource issuer, which is used to reflect that the user can only receive the corresponding resource when arriving at the designated location. In practical applications, taking the scenic spot scene as an example, the designated location may be any location in the scenic spot, such as the exit gate in the scenic spot, the introduction of the scenic spot in the scenic spot, etc., without limitation.
[0073] In the embodiments of the present specification, the near field terminal identifier may be any one of a name, a serial number or an ID number pre-set for the near field communication terminal, and is not limited thereto.
[0074] Step 204: Sending a resource type identifier of a resource to be collected by the user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to the server.
[0075] In the embodiments of this specification, resources may be digital resources displayed to users in an application program logged into a user terminal and issued by a resource issuer. The application program may be developed by the resource issuer or by other third-party service providers. In the application program, not only resources provided by the resource issuer but also resources provided by other resource issuers may be displayed and issued.
[0076] The resource type identifier may be any one of a resource name, a resource type number, an ID number corresponding to the resource, and a resource order number. The resource order number may be a random string generated by the user terminal after the user selects the resource based on the user information, the resource information corresponding to the selected resource, the user terminal information, and the timestamp information when the user selects the resource. The user information may include the user's identity information or the account information of the user logging into the application. The resource information may include at least one of a resource name, a resource type number, and an ID number corresponding to the resource. The user terminal information may be the device unique identifier information corresponding to the user terminal or the IP address information corresponding to the user terminal.
[0077] In an embodiment of the present specification, after a user logs in to an application program that issues resources by a resource issuer on a user terminal, the user can see various types of resources on a resource display page. After the user triggers a pick-up operation for any resource to be picked up in the resource display page (for example, any resource associated with the specified location), the user terminal can determine the resource type identifier for the resource selected by the user based on the user's pick-up operation. In actual application, different resources in the resource display page of the application program may correspond to different resource type identifiers. For example, when a user performs a pick-up operation on a first resource in the resource display page of the application program, the user terminal can determine a first resource type identifier corresponding to the first resource in response to the user's pick-up operation, and when a user performs a pick-up operation on a second resource in the resource display page of the application program, the user terminal can determine a second resource type identifier corresponding to the second resource in response to the user's pick-up operation.
[0078] In the embodiment of this specification, after the user terminal establishes a near field communication connection with the near field communication terminal, the user terminal can send the determined resource type identifier to the near field communication terminal, so that the near field communication terminal sends the received resource type identifier to the server. The server can be a server corresponding to the application program that issues resources to the resource issuer.
[0079] Step 206: Sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server.
[0080] In an embodiment of the present specification, a user terminal can generate a resource acquisition request for acquiring resources corresponding to the resource type identifier based on the determined resource type identifier, and send the generated resource acquisition request to a server, so that the server responds to the resource acquisition request sent by the user terminal and determines the resources corresponding to the resource type identifier.
[0081] In the embodiments of the present specification, the user terminal may also send the near field terminal identifier obtained from the near field communication terminal to the server, so that the server determines the corresponding near field communication terminal based on the near field terminal identifier.
[0082] Step 208: receiving the resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
[0083] In the embodiment of the present specification, the resource obtained by the user terminal from the server can be a resource determined by the server based on the resource type identifier. Wherein, before the server sends the resource corresponding to the resource type identifier to the user terminal, the server needs to determine the corresponding near-field communication terminal according to the near-field terminal identifier sent by the user terminal, and query the resource type identifier sent to the server by the near-field communication terminal, and the server needs to respond to the resource acquisition request sent by the user terminal, parse the resource type identifier sent to the server by the user terminal based on the resource acquisition request, and match whether the resource type identifier sent to the server by the near-field communication terminal is consistent with the resource type identifier sent to the server by the user terminal. If they are consistent, the resource corresponding to the resource type identifier is sent to the user terminal; if they are inconsistent, the resource corresponding to the resource type identifier is not sent to the user terminal. Furthermore, the reason for prohibiting the sending of resources to the user terminal can also be returned to the user terminal, so that the user terminal can make corresponding adjustments based on the reason.
[0084] It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.
[0085] Figure 2 In the method, the user terminal and the near field communication terminal use the near field communication method to exchange data, so that the user is eligible to receive resources only when the user is at the designated location of the near field communication terminal. Before the server sends the resource to the user terminal, it is necessary to determine whether the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal. Only when they are consistent will the server send the resource to the user terminal to avoid the risk of cheating by the user in the process of receiving the resource, thereby improving the security of resource issuance and reducing the risk of resource loss of the resource issuer.
[0086] based on Figure 2 The present specification also provides some improved implementation methods of the method, which are described below.
[0087] In order to further improve the security of the resources of the resource issuer, the server may further determine whether the current location of the user terminal meets the requirements before sending the resources to the user terminal.
[0088] Optionally, before receiving the resource corresponding to the resource type identifier sent by the server, it may also include: obtaining the current first location information of the user terminal; sending the first location information to the server; wherein the resource sent by the server and received by the user terminal is the resource sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near-field communication terminal and the first location information is consistent with the pre-registered designated location information of the near-field communication terminal.
[0089] In the embodiment of this specification, the first location information may be location information collected by the user terminal based on its own positioning function for the current location of the user terminal. The user terminal may obtain the first location information after the user terminal establishes a near field communication connection with the near field communication terminal.
[0090] In an embodiment of this specification, the user terminal may send the first location information to the server while sending the near-field terminal identifier and the resource type identifier to the server. For example, the first location information may be carried in the resource acquisition request. Alternatively, the user terminal may send the first location information to the server before or after sending the near-field terminal identifier and the resource type identifier to the server.
[0091] In the embodiments of this specification, the first location information may be location point information, such as longitude AA.XXXXXX and latitude BB.XXXXXX, or location range information, such as longitude range AA.XXXXXX-AA.YYYYYY and latitude range BB.XXXXXX-BB.YYYYYY. The specified location information may also be location point information or location range information. There is no limitation on this.
[0092] In the embodiments of this specification, the designated location information may be information pre-registered by the near field communication terminal at the server to reflect the installation location of the near field communication terminal, and the server may store the designated location information of the near field communication terminal. The first location information is consistent with the designated location information, which may be understood as the first location information being exactly the same as the designated location information, for example, the first location information and the designated location information are both [AA.XXXXXX, BB.XXXXXX]; or it may be understood as the location corresponding to the first location information being within the range of the location corresponding to the designated location information; or it may be understood as the distance between the location corresponding to the first location information and the location corresponding to the designated location information being less than a preset distance, which may be 10 meters, or other values, which are not limited thereto.
[0093] In an embodiment of the present specification, before sending resources to a user terminal, the server can verify that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near-field communication terminal, and can also verify that the current first location information of the user terminal is consistent with the pre-registered designated location information of the near-field communication terminal. This can further avoid cheating by the resource recipient during the resource collection process (for example, using a near-field communication terminal to collect resources at a location other than the designated location), thereby avoiding resource loss problems for the resource issuer.
[0094] Before establishing the near field communication between the user terminal and the near field communication terminal, the resource type identifier corresponding to the resource that the user needs to claim may be determined in advance.
[0095] Optionally, before obtaining the near field terminal identifier of the near field communication terminal located at the specified location through the near field communication method, the method may also include: receiving a resource collection operation from a user; and determining a resource type identifier of a resource to be collected by the user in response to the resource collection operation.
[0096] In the embodiments of the present specification, an application program for users to receive resources issued by a resource issuer may be installed on the user terminal device.
[0097] Optionally, before receiving the user's resource collection operation, the process may also include: obtaining the user's first trigger operation for an application on the user terminal; in response to the first trigger operation for the application, displaying a first resource collection page to the user; the first resource collection page may include at least one resource icon.
[0098] Figure 3 is a schematic diagram of a first resource collection page provided in an embodiment of this specification. Figure 3 As shown, the first resource collection page may include multiple resource icons. Figure 3 The information shown is only an example. Figure 3 Different information in the text box can be displayed, including other text, pictures, animated pictures, controls, etc. Figure 3 The information displayed is not specifically limited.
[0099] Optionally, the receiving of a resource claiming operation by a user may specifically include: receiving a second triggering operation by the user on an icon of the at least one resource icon representing the resource to be claimed by the user.
[0100] In the embodiment of the present specification, in response to the user's second triggering operation on the icon of the resource to be collected by the user, a second resource collection page is displayed to the user.
[0101] Figure 4 is a schematic diagram of a second resource collection page provided in an embodiment of this specification. Figure 4 As shown, the second resource claiming page may include a resource detail control for triggering resource detail information, and a promotional slogan for guiding users to claim resources by posting a sticker. The user triggers a third trigger operation on the resource detail control, and in response to the user's third trigger operation, the resource detail page is displayed to the user. Figure 4 The information shown is only an example. Figure 4 Different information in the text box can be displayed, including other text, pictures, animated pictures, controls, etc. Figure 4 The information displayed is not specifically limited.
[0102] Optionally, in response to the resource claiming operation, determining the resource type identifier of the resource to be claimed by the user may specifically include: determining the resource type identifier corresponding to the icon targeted by the second triggering operation as the resource type identifier to be claimed by the user.
[0103] Optionally, the resources include digital collections.
[0104] In the embodiments of this specification, digital collections may be digital items with collection value. Among them, digital collections have a unique identifier or code, that is, digital collections are unique. The number of digital collections is limited, that is, digital collections are scarce. The ownership, transaction records and other information of digital collections are permanently stored on the blockchain and cannot be changed or deleted, that is, digital collections are tamper-proof. Digital collections can be bought, sold and traded on multiple platforms, that is, digital collections are transferable. The types of digital collections may include, but are not limited to: works of art, music works, video works, virtual items (equipment, characters, etc. in games), digital souvenirs, and virtual real estate (virtual land or buildings sold on the Metaverse platform), etc.
[0105] Optionally, the resource may include any one of a visualized digital resource, a coupon, and a virtual currency.
[0106] Optionally, after receiving the resource corresponding to the resource type identifier sent by the server, the method may further include: displaying the resource in the user terminal.
[0107] In the embodiment of the present specification, after the user terminal receives the resource sent by the server, the resource can be displayed to the user on the resource display page.
[0108] Figure 5 is a schematic diagram of a resource display page provided in an embodiment of this specification. Figure 5 As shown, the resource display page shows the user the three types of resources that the user has received. Figure 5 The information shown is only an example. Figure 5 Different information in the text box can be displayed, including other text, pictures, animated pictures, controls, etc. Figure 5 The information displayed is not specifically limited.
[0109] Based on Figure 2 With the same idea as the solution shown in , the embodiment of this specification also provides a resource sending method. Figure 6 It is a flow chart of a resource sending method provided by an embodiment of this specification. From the program perspective, the execution subject of the process can be a program installed on a server. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities.
[0110] like Figure 6 As shown, the process may include the following steps.
[0111] Step 602: receiving a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near field terminal identifier sent by a user terminal; the near field terminal identifier is an identifier of a near field communication terminal located at a specified location.
[0112] In the embodiments of this specification, after receiving the resource acquisition request sent by the user terminal, the server can determine whether to issue resources to the user according to the historical resource issuance situation for the user. In actual applications, if the user has received resource A, other resources except resource A can be issued to the user; or if the user has received resource A, and the time interval between the time when the user received resource A and the time when the resource acquisition request sent by the user is received is greater than the preset time, the user can be allowed to receive any resource, wherein the preset time can be one day, which is not limited to this; or if the user has received resource A, it is prohibited to issue any resource to the user.
[0113] In the embodiment of the present specification, the near field terminal identifier may be an identifier of a near field communication terminal located at a specified location obtained by the user terminal device through near field communication.
[0114] In the embodiments of this specification, the explanation of the resource type identifier, the near field communication terminal identifier, the specified location, and the resource acquisition request can refer to the above Figure 2 The contents explained in the process are not repeated here.
[0115] Step 604: Acquire a second resource type identifier sent by the near field communication terminal.
[0116] In the embodiment of this specification, the second resource type identifier may be a resource type identifier sent by the user terminal to the near field communication terminal.
[0117] Step 606: Determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result.
[0118] In the embodiment of the present specification, after the server obtains the resource acquisition request and the near-field terminal identifier sent by the user terminal, the server can parse the first resource type identifier sent by the user terminal based on the resource acquisition request. And the server can determine the corresponding near-field communication terminal based on the near-field terminal identifier, and query whether there is a second resource type identifier sent by the near-field communication terminal. If there is a second resource type identifier sent by the near-field communication terminal, the server determines whether the first resource type identifier is consistent with the second resource type identifier, and obtains an identifier judgment result. If there is no second resource type identifier sent by the near-field communication terminal, the resource corresponding to the resource type identifier is not sent to the user terminal. Furthermore, the reason for prohibiting the sending of resources to the user terminal can also be returned to the user terminal, so that the user terminal can make corresponding adjustments based on the reason.
[0119] In an embodiment of the present specification, if the server does not receive a second resource type identifier sent by a near-field communication terminal corresponding to the near-field terminal identifier within a preset time after receiving the near-field terminal identifier sent by the user terminal, the resource corresponding to the resource type identifier will not be sent to the user terminal. Furthermore, the reason for prohibiting the sending of resources to the user terminal can be returned to the user terminal, so that the user terminal can make corresponding adjustments based on the reason.
[0120] Step 608: If the identification judgment result indicates that the first resource type identification is consistent with the second resource type identification, the resource corresponding to the first resource type identification is sent to the user terminal.
[0121] In an embodiment of the present specification, if the first resource type identifier sent by the user terminal is consistent with the second resource type identifier sent by the near field communication terminal, the resource corresponding to the first resource type identifier is sent to the user terminal; if the first resource type identifier sent by the user terminal is inconsistent with the second resource type identifier sent by the near field communication terminal, the resource corresponding to the resource type identifier may not be sent to the user terminal, or further, the reason for prohibiting the sending of the resource corresponding to the first resource type identifier to the user terminal may be returned to the user terminal, so that the user terminal can make corresponding adjustments based on the reason.
[0122] In actual applications, before sending resources to the user terminal, the server may also send resource confirmation information to the user terminal to enable the user terminal to verify whether the resources determined by the server are the resources expected by the user terminal. After receiving the confirmation information sent by the user terminal to instruct the server to send resources, the server sends the determined resources to the user terminal.
[0123] In the embodiments of the present specification, before the server sends the resources to the user terminal, the user terminal may also confirm the resources determined by the server, thereby improving the accuracy of resource distribution and user experience.
[0124] Figure 6 In the method, the server will send resources to the user terminal only after determining that the first resource type identifier sent by the user terminal is consistent with the second resource type identifier sent by the near field communication terminal, so as to avoid the risk of cheating by the user in the process of obtaining resources, thereby improving the security of resource issuance and reducing the risk of resource loss of the resource issuer.
[0125] based on Figure 6 The present specification also provides some improved implementation methods of the method, which are described below.
[0126] In order to further improve the security of the resources of the resource issuer, the server may further determine whether the current location of the user terminal meets the requirements before sending the resources to the user terminal.
[0127] Optionally, before sending the resource corresponding to the first resource type identifier to the user terminal, it may also include: receiving first location information used to indicate the location of the user terminal; obtaining specified location information used to indicate the location of the near field communication terminal; determining whether the first location information is consistent with the specified location information, and obtaining a location determination result.
[0128] If the identification judgment result indicates that the first resource type identifier is consistent with the second resource type identifier, then the resource corresponding to the first resource type identifier is sent to the user terminal, which may specifically include: if the identification judgment result indicates that the first resource type identifier is consistent with the second resource type identifier and the location judgment result indicates that the first location information is consistent with the specified location information, then the resource corresponding to the first resource type identifier is sent to the user terminal.
[0129] In the embodiments of this specification, for the explanation of the first location information, the designated location information, and the consistency between the first location information and the designated location information, reference may be made to Figure 2 The relevant explanation of the process will not be repeated here.
[0130] In the embodiments of this specification, the server may receive the first location information sent by the user terminal at the same time as receiving the resource acquisition request sent by the user terminal, or before or after receiving the resource acquisition request sent by the user terminal. This is not limited.
[0131] In the embodiments of this specification, the server may pre-store the designated location information of the near field communication terminal. After acquiring the near field terminal identifier sent by the user terminal, the server may query the corresponding near field communication terminal based on the near field terminal identifier, and query the designated location information of the near field communication terminal pre-registered at the server based on the near field communication terminal.
[0132] In the embodiments of this specification, the server can determine whether the first location information is consistent with the specified location information after determining that the first resource type identifier sent by the user terminal is consistent with the second resource type identifier sent by the near field communication terminal. In other words, when the server determines that the first resource type identifier is inconsistent with the second resource type identifier, it does not need to determine whether the first location information is consistent with the specified location information, so that the utilization rate of server resources can be improved.
[0133] In the embodiments of the present specification, the conditions that the server needs to meet to send the resource corresponding to the first resource type identifier to the user terminal may include: the first resource type identifier is consistent with the second resource type identifier, and / or the first location information is consistent with the specified location information.
[0134] In the embodiments of the present specification, before sending resources to a user terminal, the server can verify that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near-field communication terminal, and can also verify that the current first location information of the user terminal is consistent with the pre-registered designated location information of the near-field communication terminal. This can further avoid cheating by the resource recipient during the resource collection process, thereby avoiding the problem of resource loss for the resource issuer.
[0135] In order to facilitate the server to release resources, the server may pre-register the designated location information of the near field communication terminal.
[0136] Optionally, before obtaining the specified location information used to represent the location of the near-field communication terminal, it may also include: receiving a near-field terminal registration request sent by the near-field communication terminal; the near-field terminal registration request carries the near-field terminal identifier and the specified location information of the near-field communication terminal; generating and saving the association relationship information between the near-field terminal identifier and the specified location information.
[0137] In the embodiment of the present specification, the near field terminal registration request may be a request generated by the near field communication terminal for requesting the server to register the association relationship between the near field terminal identifier and the specified location information.
[0138] In an embodiment of the present specification, after receiving a near-field terminal registration request sent by a near-field communication terminal, the server generates, in response to the registration request, association relationship information between a near-field terminal identifier corresponding to the near-field communication terminal and the specified location information, and saves the association relationship information to a storage unit of the server, so that the server can quickly determine the corresponding specified location information based on the association relationship information and the near-field terminal identifier, thereby improving the efficiency of the server in allocating resources.
[0139] In order to improve the accuracy of registering the designated location information of the near field communication terminal, before registration, it is also possible to verify whether the current location of the near field communication terminal meets the requirements.
[0140] Optionally, before obtaining the designated location information used to represent the location of the near-field communication terminal, it may also include: receiving a near-field terminal registration request sent by the near-field communication terminal; the near-field terminal registration request carries the near-field terminal identifier of the near-field communication terminal, the location information of the near-field communication terminal, and the designated location information to be registered; judging whether the location information is consistent with the designated location information, and obtaining a registration judgment result; if the registration judgment result indicates that the location information is consistent with the designated location information, generating and saving the association relationship information between the near-field terminal identifier and the designated location information.
[0141] In the embodiments of the present specification, the location information of the near-field communication terminal may be location information collected based on the positioning function of the near-field communication terminal itself for the current location of the near-field communication terminal, and the time interval between the time of collecting the location information of the near-field communication terminal and the time when the server receives the near-field terminal registration request sent by the near-field communication terminal is less than a preset duration, where the preset duration may be 1 minute, or other values, without limitation.
[0142] In the embodiments of this specification, the location information of the near field communication terminal may be location point information or location range information, which is not limited.
[0143] In the embodiments of the present specification, the location information of the near field communication terminal is consistent with the specified location information, which can be understood as the location information of the near field communication terminal being exactly the same as the specified location information, for example, the location information of the near field communication terminal and the specified location information are both [AA.XXXXXX, BB.XXXXXX]; or it can also be understood as the position corresponding to the location information of the near field communication terminal is within the range of the position corresponding to the specified location information; or it can also be understood as the distance between the position corresponding to the location information of the near field communication terminal and the position corresponding to the specified location information is less than a preset distance, and the preset distance can be 10 meters, or other values, which are not limited to this.
[0144] In the embodiments of the present specification, when registering the designated location information provided by the near-field communication terminal, it is also necessary to determine whether the designated location information registered for the near-field communication terminal is consistent with the current location information of the near-field communication terminal. Only when they are consistent, the designated location information provided by the near-field communication terminal will be registered, thereby improving the authenticity of the designated location information registered for the near-field communication terminal, thereby ensuring the security of the subsequent resource issuance process.
[0145] Optionally, if the registration judgment result indicates that the current location information is consistent with the specified location information, then before generating and saving the association relationship information between the near-field terminal identifier and the specified location information, it may also include: obtaining the installation location information set by the resource issuer for the near-field communication terminal; judging whether the specified location information is consistent with the displayed installation location information; if the specified location information is consistent with the displayed installation location information, generating and saving the association relationship information between the near-field terminal identifier and the specified location information.
[0146] In the embodiments of this specification, the installation location information may be location point information or location range information, which is not limited.
[0147] In the embodiments of this specification, the judgment rule on whether the installation location information is consistent with the specified location information can refer to the judgment rule on whether the specified location information is consistent with the first location information, which will not be repeated here.
[0148] In the embodiments of the present specification, the resource issuer can plan one or more specific installation location information for each near-field communication terminal in advance, and pre-store the planned information on the server, so that after receiving the designated location information sent by the near-field communication terminal, the server can query the pre-planned installation location information corresponding to the near-field communication terminal. Only after it is determined that the installation location information is consistent with the designated location information, will the association relationship information between the near-field terminal identifier and the designated location information be generated and saved, thereby further improving the authenticity of the designated location information registered for the near-field communication terminal, thereby ensuring the security of the subsequent resource issuance process.
[0149] After the association relationship information between the near field communication terminal identifier and the designated location information is generated and saved for the near field communication terminal, it can also be determined whether the near field communication terminal has been moved away from the designated location to prevent resources from being maliciously obtained.
[0150] Optionally, after generating and saving the association relationship information between the near-field terminal identifier and the specified location information, the process may also include: receiving near-field terminal heartbeat information sent by the near-field communication terminal according to a preset period; the near-field terminal heartbeat information carries the near-field terminal identifier of the near-field communication terminal and the current location information of the near-field communication terminal; judging whether the current location information is consistent with the specified location information, and obtaining a heartbeat judgment result; if the heartbeat judgment result indicates that the current location information is inconsistent with the specified location information, canceling the association relationship information between the near-field terminal identifier and the specified location information.
[0151] In the embodiment of this specification, the near-field terminal heartbeat information may be the heartbeat information actively sent by the near-field communication terminal to the server according to a preset period. Alternatively, the server may send a near-field terminal heartbeat information acquisition instruction to the near-field communication terminal according to a preset period, and the near-field communication terminal responds to the near-field terminal heartbeat information acquisition instruction and sends the near-field terminal heartbeat information to the server. The preset period may be 1 hour, or other values, which are not limited thereto.
[0152] In actual applications, if the near-field terminal heartbeat information sent by the near-field communication terminal is not received within the preset time, the association relationship information between the near-field terminal identifier generated for the near-field communication terminal and the specified location information is cancelled. The preset time is greater than or equal to the time corresponding to the preset period, and the preset time can be 2 hours, or other values, which are not limited.
[0153] In the embodiments of this specification, the current location information of the near field communication terminal may be location information collected based on the positioning function of the near field communication terminal itself for the current location of the near field communication terminal. And the time interval between the time when the current location information of the near field communication terminal is collected and the time when the server receives the near field terminal heartbeat information sent by the near field communication terminal is less than a preset time length, wherein the preset time length may be 5 minutes, or other values, which are not limited thereto.
[0154] In the embodiments of this specification, the current location information of the near field communication terminal may be location point information or location range information, which is not limited.
[0155] In an embodiment of the present specification, after the server obtains the near-field terminal heartbeat information sent by the near-field communication terminal, it can query the specified location information registered for the near-field terminal identifier based on the near-field terminal identifier carried in the heartbeat information, and then determine whether the queried specified location information is consistent with the current location information of the near-field communication terminal carried in the heartbeat information.
[0156] In the embodiments of this specification, the judgment rule on whether the designated location information is consistent with the current location information of the near field communication terminal can refer to the judgment rule on whether the designated location information is consistent with the first location information, which will not be repeated here.
[0157] In the embodiment of the present specification, if it is determined that the designated location information is consistent with the current location information of the near field communication terminal for the near field communication terminal, the generation timestamp of the association relationship information between the near field terminal identifier generated for the near field communication terminal and the designated location information is updated. If it is determined that the designated location information is inconsistent with the current location information of the near field communication terminal for the near field communication terminal, the association relationship information between the near field terminal identifier generated for the near field communication terminal and the designated location information is cancelled.
[0158] In order to improve the security of resource distribution, the server may also verify whether the user is actually located near the near-field communication terminal before sending the resource to the user terminal.
[0159] Optionally, before sending the resource corresponding to the first resource type identifier to the user terminal, the method may also include: acquiring image information captured by a first image capture device at the location of the near field communication terminal; a first time interval between a first capture time for capturing the image information and a request sending time for the user terminal to send the resource acquisition request is less than or equal to a preset first duration; and judging whether there is a user within a first preset distance from the near field communication terminal based on the image information, and obtaining a first usage judgment result.
[0160] The sending the resource corresponding to the first resource type identifier to the user terminal may specifically include: if the first usage judgment result indicates that there is a user within a first preset distance from the near field communication terminal, sending the resource corresponding to the first resource type identifier to the user terminal.
[0161] In the embodiments of the present specification, the first image acquisition device may actively send the acquired image information to the server at the same time or after the near field communication terminal sends the second resource type identifier to the server. Alternatively, the server may send an image information acquisition instruction to the first image acquisition device, so that the first image acquisition device responds to the image information acquisition instruction and sends the image information to the server.
[0162] In the embodiments of this specification, the first image acquisition device may include any one of an image acquisition device on a near field communication terminal, an image acquisition device connected to the near field communication terminal, or a completely independent image acquisition device (a camera next to the near field communication terminal) that is not connected to the near field communication terminal. If the first image acquisition device is not an image acquisition device on a near field communication terminal, the distance between the first image acquisition device and the near field communication terminal is less than a preset threshold, and the preset threshold is used to reflect that the first image acquisition device can capture the near field communication terminal and the user near the near field communication terminal (if any).
[0163] In the embodiments of this specification, the image information collected by the first image collection device may include at least one of video information, picture information, or animated picture information, etc. The image information may include a near field communication terminal.
[0164] In the embodiments of this specification, the first duration may be 10 seconds, or other values, which are not limited thereto.
[0165] In the embodiments of this specification, it is possible to identify whether there is a user within the first preset distance from the near field communication terminal in the image information sent by the first image acquisition device based on the existing image recognition technology. If there is a user, the resource corresponding to the first resource type identifier is sent to the user terminal. If there is no user, the resource corresponding to the resource type identifier is not sent to the user terminal. Furthermore, the reason for prohibiting the sending of resources to the user terminal can be returned to the user terminal, so that the user terminal can make corresponding adjustments based on the reason. Among them, the first preset distance can be 1 meter, or other values, which are not limited to this.
[0166] In the embodiments of this specification, before sending resources to the user terminal, the server needs to determine whether there is a user near the near-field communication terminal. If there is a user, the server will send resources to the user terminal, thereby improving the security of resource distribution.
[0167] In order to further improve the security of resource issuance, after determining that there is a user near the near field communication terminal, it can also be determined whether the user is the user currently applying for resources from the server.
[0168] Optionally, if the first usage judgment result indicates that there is a user within a first preset distance from the near-field communication terminal, then sending the resources corresponding to the first resource type identifier to the user terminal, which may specifically include: sending a user action instruction to the user terminal; obtaining action image information captured by a first image acquisition device for a target action made by the user based on the user action instruction; determining whether the target action displayed in the action image information matches the action indicated by the user action instruction; if the target action matches the action indicated by the user action instruction, then sending the resources corresponding to the first resource type identifier to the user terminal.
[0169] In actual applications, when it is determined that there is a user within the first preset distance from the near-field communication terminal, the resources corresponding to the first resource type identifier can be sent directly to the user terminal. In this way, the disturbance to the user can be reduced, the user experience can be improved, and the efficiency of resource distribution can also be improved.
[0170] In order to facilitate subsequent verification of matters related to users collecting resources, the surrounding environment information when the user collects the resources can also be recorded.
[0171] Optionally, the method may further include: sending an image acquisition instruction to a second image acquisition device located at the location indicated by the designated location information; and acquiring an on-site image resource acquired by the second image acquisition device in response to the image acquisition instruction.
[0172] In the embodiment of this specification, the location indicated by the designated location information may be a location including the designated location information. In practical applications, taking a scenic spot as an example, the designated location information may be any location within the scenic spot, and the location indicated by the designated location information may be the range covered by the scenic spot.
[0173] In the embodiments of this specification, the second image acquisition device and the first image acquisition device may be the same image acquisition device, or the second image acquisition device and the first image acquisition device may be different image acquisition devices, which is not limited.
[0174] In the embodiments of this specification, the on-site image resources collected by the second image acquisition device may include at least one of video information resources, picture information resources, or animated image information resources. In practical applications, the on-site image resources may be image resources collected for the scenic spot and containing the near-field communication terminal corresponding to the specified location information. Specifically, taking the scenic spot scene as an example, it may be an image resource collected for a popular check-in place in the scenic spot, and the location corresponding to the specified location information is located at the popular check-in place.
[0175] In actual applications, after the server receives a resource acquisition request sent by a user terminal to request a resource corresponding to a first resource type identifier, for example, before or after sending the resource corresponding to the first resource type identifier to the user terminal, the server sends an image acquisition instruction to the second image acquisition device to enable the second image acquisition device to capture on-site image resources. There is no limitation on this.
[0176] In order to improve user experience, the on-site image resources captured by the second image capture device may also be sent to the user terminal.
[0177] Optionally, after acquiring the on-site image resource acquired by the second image acquisition device in response to the image acquisition instruction, the method may further include: sending the on-site image resource to the user terminal; the on-site image resource is used to be displayed to the user on the user terminal.
[0178] In the embodiments of the present specification, the server may send the on-site image resource to the user terminal at the same time as or after sending the resource to the user terminal.
[0179] In the embodiments of this specification, in addition to sending the resources that the user wishes to receive to the user terminal, image resources containing on-site information of the user receiving the resources may also be sent to the user terminal as a reward, thereby enhancing the user's sense of participation and experience in receiving the resources.
[0180] In order to facilitate subsequent inspection of the on-site image resources, the on-site image resources may also be stored based on the image acquisition time of the on-site image resources.
[0181] Optionally, after sending the image acquisition instruction to the second image acquisition device located at the position indicated by the designated position information, the method may further include: obtaining a second acquisition time for acquiring the on-site image resource; and storing the on-site image resource and the second acquisition time in association with each other.
[0182] In the present embodiment, the scene image resource may carry the second acquisition time of acquiring the scene image resource. For each scene image resource, the scene image resource is associated and stored with the corresponding second acquisition time. Subsequently, the corresponding scene image resource may be queried based on the second acquisition time.
[0183] In actual applications, the time information associated with the on-site image resources may be time interval information including the second acquisition time for acquiring the on-site image resources. For example, if the second acquisition time is moment t1, the time interval information may be time period information from t0 to t2, wherein the time period information from t0 to t2 includes moment t1. In this way, when the specific moment of the second acquisition time cannot be determined, the convenience and success rate of querying the corresponding on-site image resources can be improved.
[0184] During the resource distribution process, in order to further improve resource security, for example, to stop losses in a timely manner in the event of possible resource theft, compliance checks can be performed on resources that have been distributed by the server.
[0185] Optionally, after sending the resource corresponding to the first resource type identifier to the user terminal, the process may also include: obtaining image information captured by a first image capture device at the location of the near-field communication terminal at the second capture time; judging, based on the image information, whether there is a user within a first preset distance from the near-field communication terminal, and obtaining a second usage judgment result; if the second usage judgment result indicates that there is no user within the first preset distance from the near-field communication terminal, generating a warning message; the warning message is used to indicate that there is a risk of resources being illegally acquired at the second capture time.
[0186] In this illustrative embodiment, the image information acquired by the first image acquisition device at the second acquisition time may include: image information acquired at the second acquisition time within a preset time interval including the second acquisition time.
[0187] In the present embodiment, based on the existing image recognition technology, it is possible to identify whether there is a user within the first preset distance from the near field communication terminal in the image information collected by the first image acquisition device at the second collection time. If there is no user, a warning message is generated and sent to the user terminal of the administrator for managing the near field communication terminal. The warning message is used to indicate that there is a risk of illegal acquisition of resources at the second collection time. If there is a user, compliance information is generated and sent to the user terminal of the administrator.
[0188] In practical applications, if the image information collected by the first image collection device at the location of the near field communication terminal at the second collection time is not obtained, a warning message is generated.
[0189] In the embodiment of this description, by checking the compliance of resources issued by the server, when it is found that there is a risk of illegal acquisition of resources, the management personnel can be notified in time to make rectifications to reduce the losses of the resource issuer.
[0190] Optionally, the resource may include a digital collection.
[0191] In the present description embodiment, the explanation of digital collectibles can refer to the above explanation of digital collectibles, which will not be repeated here.
[0192] Based on Figure 2 With the same idea as the solution shown in , the embodiment of this specification also provides a method for sending information based on near field communication. Figure 7This is a flow chart of a method for sending information based on near field communication provided by an embodiment of this specification. From a program perspective, the execution subject of the process can be a program installed on a near field communication terminal. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities.
[0193] like Figure 7 As shown, the process may include the following steps.
[0194] Step 702: Send the near field terminal identifier of the near field communication terminal to the user terminal via near field communication; the near field terminal identifier is used by the user terminal to send the near field terminal identifier and the resource type identifier of the resource to be collected by the user to the server.
[0195] In the embodiments of the present specification, the near field communication terminal may send a near field terminal identifier to the user terminal after establishing a near field communication connection with the user terminal.
[0196] In the embodiments of this specification, the explanation of the resource type identifier and the near field communication terminal identifier can refer to the above Figure 2 The contents explained in the process will not be repeated here.
[0197] Step 704: Obtain the resource type identifier from the user terminal.
[0198] In the embodiment of the present specification, the resource type identifier may be an identifier sent by the user terminal to the near field communication terminal after the user terminal establishes a near field communication connection with the near field communication terminal.
[0199] Step 706: Send the resource type identifier to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
[0200] In the embodiment of this specification, after receiving the resource type identifier sent by the user terminal, the near field communication terminal can send the resource type identifier to the server. After determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal, the server sends the resource corresponding to the resource type identifier to the user terminal.
[0201] Figure 7In the method, the near field communication terminal can send the resource type identifier received from the user terminal to the server, so that the server will send the resource to the user terminal only after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal, thereby avoiding the risk of cheating by the user in the process of receiving resources, thereby improving the security of resource issuance and reducing the risk of resource loss of the resource issuer.
[0202] based on Figure 7 The present specification also provides some improved implementation methods of the method, which are described below.
[0203] In order to facilitate resource distribution, the near field communication terminal may pre-register the designated location information at the server.
[0204] Optionally, before sending the near-field terminal identifier of the near-field communication terminal to the user terminal via the near-field communication method, the process may also include: sending a near-field terminal registration request to the server; the near-field terminal registration request carries the near-field terminal identifier and specified location information of the near-field communication terminal; the near-field terminal registration request is used to request establishment of association relationship information between the near-field terminal identifier and the specified location information.
[0205] In the embodiment of the present specification, the near field terminal registration request may be a request generated by the near field communication terminal for requesting the server to register the association relationship between the near field terminal identifier and the specified location information.
[0206] In an embodiment of the present specification, after the near-field communication terminal is installed, a near-field terminal registration request can be sent to the server, wherein the near-field terminal registration request can carry the near-field terminal identifier and specified location information of the near-field communication terminal, so that after receiving the near-field terminal registration request sent by the near-field communication terminal, the server can respond to the registration request and generate association relationship information between the near-field terminal identifier corresponding to the near-field communication terminal and the specified location information.
[0207] After the association relationship information between the near field communication terminal identifier and the designated location information is generated and saved for the near field communication terminal, it is also possible to verify whether the current location of the near field communication terminal meets the requirements.
[0208] Optionally, after sending the near-field terminal registration request to the server, it may also include: sending near-field terminal heartbeat information to the server according to a preset period; the near-field terminal heartbeat information carries the near-field terminal identifier of the near-field communication terminal and the current location information of the near-field communication terminal, so that the server determines whether to cancel the association relationship information between the near-field terminal identifier and the specified location information.
[0209] In the embodiments of this specification, the near field communication terminal may actively send near field terminal heartbeat information to the server according to a preset period. Alternatively, after receiving a near field terminal heartbeat information acquisition instruction sent by the server according to a preset period, the near field communication terminal may send near field terminal heartbeat information to the server in response to the terminal heartbeat information acquisition instruction. The preset period may be 1 hour, or other values, which are not limited thereto.
[0210] In the embodiment of the present specification, the near-field terminal heartbeat information may carry the near-field terminal identifier of the near-field communication terminal and the current location information of the near-field communication terminal, so that the server can determine the corresponding designated location information based on the near-field terminal identifier, and compare the determined designated location information with the current location information of the near-field communication terminal. If the comparison result indicates that the designated location information is consistent with the current location information of the near-field communication terminal, the generation timestamp of the association relationship information between the near-field terminal identifier and the designated location information generated for the near-field communication terminal is updated. If the comparison result indicates that the designated location information is inconsistent with the current location information of the near-field communication terminal, the association relationship information between the near-field terminal identifier and the designated location information generated for the near-field communication terminal is cancelled.
[0211] In the embodiments of this specification, the current location of the near field communication terminal is periodically checked, thereby avoiding the risk of a malicious user moving the near field communication terminal to another location, thereby improving the security of resource transmission.
[0212] Optionally, the resource may include a digital collection.
[0213] Figure 8 The embodiment of this specification provides the corresponding Figure 2 , Figure 6 as well as Figure 7 A swimlane flow diagram of a resource distribution method. The service execution process of the resource distribution method may involve execution entities such as a user terminal, a near field communication terminal, and a server.
[0214] like Figure 8 As shown, the process may include the following steps.
[0215] Step 802: The near field communication terminal sends a near field terminal registration request to the server.
[0216] In the embodiment of this specification, the near field terminal registration request carries the near field terminal identification and designated location information of the near field communication terminal.
[0217] Step 804: The server establishes and stores, for the near field communication terminal, association relationship information between the near field terminal identifier and the designated location information in response to the near field communication terminal registration request.
[0218] Step 806: The near field communication terminal sends near field terminal heartbeat information to the server.
[0219] In the embodiment of the present specification, the near field terminal heartbeat information carries the near field terminal identifier of the near field communication terminal and the current location information of the near field communication terminal.
[0220] Step 808: The server determines whether the current location information of the near field communication terminal is consistent with the designated location information based on the near field terminal heartbeat information, and obtains a heartbeat determination result.
[0221] Step 810: If the heartbeat judgment result indicates that the current location information is inconsistent with the designated location information, cancel the association relationship information between the near-field terminal identifier and the designated location information.
[0222] Step 812: If the heartbeat judgment result indicates that the current location information is consistent with the designated location information, then update the generation timestamp information of the association relationship information between the near field terminal identification generated for the near field communication terminal and the designated location information.
[0223] Step 814: Obtain the user's trigger operation on the application on the user terminal.
[0224] In the embodiments of the present specification, the application program may be an application program installed on a user terminal and used by the user to collect resources.
[0225] Step 816: In response to the triggering operation on the application, a resource collection page is displayed to the user; the resource collection page includes at least one resource icon.
[0226] Step 818: Receive a user's trigger operation on an icon of the at least one resource icon that represents the resource that the user wants to claim.
[0227] Step 820: Determine the resource type identifier corresponding to the icon targeted by the trigger operation as the resource type identifier to be collected by the user.
[0228] Step 822: Based on the near field communication mode, the near field communication terminal sends a near field terminal identifier to the user terminal.
[0229] Step 824: The user terminal sends a resource type identifier to the near field communication terminal.
[0230] Step 826: The near field communication terminal sends a resource type identifier to the server.
[0231] Step 828: The user terminal sends a resource type identifier, a near-field terminal identifier, and first location information to the server.
[0232] Step 830: Determine whether the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal, and whether the first location information of the user terminal is consistent with the designated location information of the near field communication terminal.
[0233] Step 832: If the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal, and the first location information of the user terminal is also consistent with the specified location information of the near field communication terminal, then optionally, image information captured by the first image acquisition device at the location of the near field communication terminal can be obtained.
[0234] Step 834: Determine, based on the image information, whether there is a user within a first preset distance from the near field communication terminal.
[0235] Step 836: If there is a user within the first preset distance from the near field communication terminal, the resource corresponding to the resource type identifier is sent to the user terminal.
[0236] Step 838: Optionally, an image acquisition instruction may also be sent to a second image acquisition device located at the position indicated by the designated position information.
[0237] Step 840: Acquire the on-site image resources acquired by the second image acquisition device in response to the image acquisition instruction.
[0238] Step 842: Send the on-site image resource to the user terminal.
[0239] Step 844: store the on-site image resource and the second acquisition time of acquiring the on-site image resource in association with each other.
[0240] Step 846: Acquire image information captured by the first image capture device at the location of the near field communication terminal at the second capture time.
[0241] Step 848: Determine whether there is a user within a first preset distance from the near field communication terminal based on the image information.
[0242] Step 850: If there is no user within the first preset distance from the near field communication terminal, generate warning information.
[0243] In the embodiment of this specification, the warning information is used to indicate that there is a risk of illegal acquisition of resources at the second collection time. In actual application, the warning information can be used to send to terminal devices used by one or more parties such as resource issuers and application managers.
[0244] In practical applications, step 806, step 808, step 810 and step 812 may be located at any step stage after step 804, without limitation. The sending time of sending the resource corresponding to the resource type identifier to the user terminal in step 836 may be the same as the sending time of sending the live image resource to the user terminal in step 842, without limitation.
[0245] The various technical features in the above embodiments can be combined arbitrarily as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.
[0246] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0247] Fig. 9 This specification provides an embodiment corresponding to Figure 2 A structural schematic diagram of a resource acquisition device based on near field communication.
[0248] like Fig. 9 As shown, the device may include:
[0249] The user-side near-field communication module 902 is used to obtain the near-field terminal identifier of the near-field communication terminal located at a specified location through near-field communication; send the resource type identifier of the resource to be collected by the user to the near-field communication terminal; the resource type identifier is used to be sent by the near-field communication terminal to the server.
[0250] The request sending module 904 is used to send a resource acquisition request for requesting the resource corresponding to the resource type identifier and the near-field terminal identifier to the server.
[0251] The resource receiving module 906 is used to receive the resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
[0252] based on Fig. 9 The present specification also provides some improved implementation schemes of the device, which are described below.
[0253] Optionally, the device may further include:
[0254] The location information acquisition module is used to acquire the current first location information of the user terminal.
[0255] A location information sending module, configured to send the first location information to the server. The resource sent by the server and received by the user terminal is a resource sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal and the first location information is consistent with the pre-registered designated location information of the near field communication terminal.
[0256] Optionally, the device may further include:
[0257] The resource collection operation receiving module is used to receive the user's resource collection operation.
[0258] The resource type identification determination module is used to determine the resource type identification of the resource to be collected by the user in response to the resource collection operation.
[0259] Optionally, the resources include digital collections.
[0260] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0261] The above is a schematic scheme of a resource acquisition device based on near field communication of this embodiment. It should be noted that the technical scheme of the resource acquisition device based on near field communication and the technical scheme of the resource acquisition method based on near field communication belong to the same concept, and the details of the technical scheme of the resource acquisition device based on near field communication that are not described in detail can be found in the description of the technical scheme of the resource acquisition method based on near field communication.
[0262] Fig.10 This specification provides an embodiment corresponding to Figure 6 A structural schematic diagram of a resource sending device.
[0263] like Fig.10 As shown, the device may include:
[0264] The request receiving module 1002 is used to receive a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near field terminal identifier sent by a user terminal; the near field terminal identifier is an identifier of a near field communication terminal located at a specified location.
[0265] The information acquisition module 1004 is used to acquire a second resource type identifier sent by the near field communication terminal;
[0266] The judgment module 1006 is used to judge whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier judgment result.
[0267] The resource sending module 1008 is configured to send the resource corresponding to the first resource type identifier to the user terminal if the identifier judgment result indicates that the first resource type identifier is consistent with the second resource type identifier.
[0268] based on Fig.10 The present specification also provides some improved implementation schemes of the device, which are described below.
[0269] Optionally, the device may further include:
[0270] The location information receiving module is used to receive first location information indicating the location of the user terminal.
[0271] The designated location information acquisition module is used to acquire designated location information indicating the location of the near field communication terminal.
[0272] The first location information judgment module is used to judge whether the first location information is consistent with the specified location information, and obtain a location judgment result.
[0273] The resource sending module 1008 may specifically include:
[0274] The first resource sending unit is used to send the resource corresponding to the first resource type identifier to the user terminal if the identifier judgment result indicates that the first resource type identifier is consistent with the second resource type identifier and the position judgment result indicates that the first position information is consistent with the specified position information.
[0275] Optionally, the device may further include:
[0276] The first registration request receiving module is configured to receive a near field terminal registration request sent by the near field communication terminal; the near field terminal registration request carries the near field terminal identifier and designated location information of the near field communication terminal.
[0277] The first association relationship information generating module is used to generate and save the association relationship information between the near-field terminal identifier and the specified location information.
[0278] Optionally, the device may further include:
[0279] The second registration request receiving module is used to receive a near field terminal registration request sent by the near field communication terminal; the near field terminal registration request carries the near field terminal identification of the near field communication terminal, the location information of the near field communication terminal and the designated location information to be registered.
[0280] The second location information judgment module is used to judge whether the current location information is consistent with the specified location information, and obtain a registration judgment result.
[0281] The second association relationship information generating module is used to generate and save the association relationship information between the near-field terminal identifier and the specified location information if the registration judgment result indicates that the current location information is consistent with the specified location information.
[0282] Optionally, the device may further include:
[0283] The near field terminal heartbeat information receiving module is used to receive the near field terminal heartbeat information sent by the near field communication terminal according to a preset period; the near field terminal heartbeat information carries the near field terminal identification of the near field communication terminal and the current location information of the near field communication terminal.
[0284] The third location information judgment module is used to judge whether the current location information is consistent with the specified location information to obtain a heartbeat judgment result.
[0285] The association relationship information cancellation module is used to cancel the association relationship information between the near-field terminal identifier and the specified location information if the heartbeat judgment result indicates that the current location information is inconsistent with the specified location information.
[0286] Optionally, the device may further include:
[0287] A first image information acquisition module is used to acquire image information acquired by a first image acquisition device at the location of the near field communication terminal; a first time interval between a first acquisition time for acquiring the image information and a request sending time for the user terminal to send the resource acquisition request is less than or equal to a preset first duration.
[0288] The first user determination module is configured to determine, based on the image information, whether there is a user within a first preset distance from the near field communication terminal, and obtain a first use determination result.
[0289] The resource sending module 1008 may specifically include:
[0290] The second resource sending unit is configured to send the resource corresponding to the first resource type identifier to the user terminal if the first use determination result indicates that there is a user within a first preset distance from the near field communication terminal.
[0291] Optionally, the device may further include:
[0292] The image acquisition instruction sending module is used to send an image acquisition instruction to the second image acquisition device located at the position represented by the designated position information.
[0293] The on-site image resource acquisition module is used to acquire the on-site image resources acquired by the second image acquisition device in response to the image acquisition instruction.
[0294] Optionally, the device may further include:
[0295] The on-site image resource sending module is used to send the on-site image resource to the user terminal; the on-site image resource is used to be displayed to the user on the user terminal.
[0296] Optionally, the device may further include:
[0297] The second acquisition time acquisition module is used to acquire a second acquisition time for acquiring the on-site image resource.
[0298] A storage module is used to store the on-site image resources and the second acquisition time in association with each other.
[0299] Optionally, the device may further include:
[0300] The second image information acquisition module is used to acquire image information acquired by the first image acquisition device at the location of the near field communication terminal at the second acquisition time.
[0301] The second user determination module is configured to determine, based on the image information, whether there is a user within a first preset distance from the near field communication terminal, and obtain a second use determination result.
[0302] A warning information generating module is used to generate a warning information if the second usage judgment result indicates that there is no user within the first preset distance from the near field communication terminal; the warning information is used to indicate that there is a risk of illegal acquisition of resources at the second collection time.
[0303] Optionally, the resources include digital collections.
[0304] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0305] The above is a schematic scheme of a resource sending device of this embodiment. It should be noted that the technical scheme of the resource sending device and the technical scheme of the resource sending method described above are of the same concept, and the details not described in detail in the technical scheme of the resource sending device can be referred to the description of the technical scheme of the resource sending method described above.
[0306] Fig.11 The embodiment of this specification provides the corresponding Figure 7 A structural schematic diagram of an information sending device based on near field communication.
[0307] like Fig.11 As shown, the device may include:
[0308] The device-side near-field communication module 1102 is used to send the near-field terminal identifier of the near-field communication terminal to the user terminal via near-field communication; the near-field terminal identifier is used by the user terminal to send the near-field terminal identifier and the resource type identifier of the resource to be collected by the user to the server; and obtain the resource type identifier from the user terminal.
[0309] The information sending module 1104 is used to send the resource type identifier to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
[0310] based on Fig.11 The present specification also provides some improved implementation schemes of the device, which are described below.
[0311] Optionally, the device may further include:
[0312] A registration request sending module is used to send a near-field terminal registration request to the server; the near-field terminal registration request carries the near-field terminal identifier and the specified location information of the near-field communication terminal; the near-field terminal registration request is used to request to establish an association relationship information between the near-field terminal identifier and the specified location information.
[0313] Optionally, the device may further include:
[0314] A near-field terminal heartbeat information sending module is used to send near-field terminal heartbeat information to the server according to a preset period; the near-field terminal heartbeat information carries the near-field terminal identifier of the near-field communication terminal and the current location information of the near-field communication terminal, so that the server can determine whether to cancel the association relationship information between the near-field terminal identifier and the specified location information.
[0315] Optionally, the resources include digital collections.
[0316] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0317] The above is a schematic scheme of an information transmission device based on near field communication of this embodiment. It should be noted that the technical scheme of the information transmission device based on near field communication and the technical scheme of the information transmission method based on near field communication belong to the same concept, and the details not described in detail in the technical scheme of the information transmission device based on near field communication can be referred to the description of the technical scheme of the information transmission method based on near field communication.
[0318] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0319] Fig.12 The embodiment of this specification provides the corresponding Figure 2 A schematic diagram of the structure of a user terminal device. Fig.12 As shown, the device 1200 may include:
[0320] at least one processor 1220; and,
[0321] A memory 1210 is communicatively connected to the at least one processor; wherein,
[0322] The memory 1210 stores instructions that can be executed by the at least one processor 1220, and the instructions are executed by the at least one processor 1220 so that the at least one processor 1220 can: obtain a near-field terminal identifier of a near-field communication terminal located at a specified location through near-field communication; send a resource type identifier of a resource to be collected by a user to the near-field communication terminal; the resource type identifier is used to be sent by the near-field communication terminal to a server; send a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server; receive the resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near-field communication terminal.
[0323] Fig.12 The structure block diagram of a user terminal device 1200 provided according to an embodiment of the present application is shown. The components of the user terminal device 1200 include but are not limited to a memory 1210 and a processor 1220. The processor 1220 is connected to the memory 1210 via a bus 1230, and the database 1250 is used to store data.
[0324] The user terminal device 1200 also includes an access device 1240 , which enables the user terminal device 1200 to communicate via one or more networks 1260 .
[0325] In one embodiment of the present application, the above components of the user terminal device 1200 and Fig.12 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.12 The user terminal device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art can add or replace other components as needed.
[0326] Among them, when the processor 1220 executes the computer instructions, it implements the steps of the resource acquisition method based on near field communication.
[0327] The above is a schematic scheme of a user terminal device of this embodiment. It should be noted that the technical scheme of the user terminal device and the technical scheme of the resource acquisition method based on near field communication described above belong to the same concept, and the details not described in detail in the technical scheme of the user terminal device can be found in the description of the technical scheme of the resource acquisition method based on near field communication described above.
[0328] Fig.13 This specification provides an embodiment corresponding to Figure 6 A schematic diagram of the structure of a server device. Fig.13 As shown, the device 1300 may include:
[0329] at least one processor 1320; and,
[0330] A memory 1310 is communicatively connected to the at least one processor; wherein,
[0331] The memory 1310 stores instructions that can be executed by the at least one processor 1320, and the instructions are executed by the at least one processor 1320 so that the at least one processor 1320 can: receive a resource acquisition request and a near-field terminal identifier sent by a user terminal to request a resource corresponding to a first resource type identifier; the near-field terminal identifier is an identifier of a near-field communication terminal located at a specified location; obtain a second resource type identifier sent by the near-field communication terminal; determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result; if the identifier determination result indicates that the first resource type identifier is consistent with the second resource type identifier, then send the resource corresponding to the first resource type identifier to the user terminal.
[0332] Fig.13The structure block diagram of a server device 1300 provided according to an embodiment of the present application is shown. The components of the server device 1300 include but are not limited to a memory 1310 and a processor 1320. The processor 1320 is connected to the memory 1310 via a bus 1330, and the database 1350 is used to store data.
[0333] Server device 1300 also includes an access device 1340 that enables server device 1300 to communicate via one or more networks 1360 .
[0334] In one embodiment of the present application, the above components of the server device 1300 and Fig.13 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.13 The server device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0335] Among them, when the processor 1320 executes the computer instructions, the steps of the resource sending method are implemented.
[0336] The above is a schematic solution of a server device of this embodiment. It should be noted that the technical solution of the server device and the technical solution of the above resource sending method belong to the same concept, and the details not described in detail in the technical solution of the server device can be referred to the description of the technical solution of the above resource sending method.
[0337] Fig.14 This specification provides an embodiment corresponding to Figure 7 A schematic diagram of the structure of a near field communication device. Fig.14 As shown, the device 1400 may include:
[0338] at least one processor 1420; and,
[0339] A memory 1410 is communicatively connected to the at least one processor; wherein,
[0340] The memory 1410 stores instructions that can be executed by the at least one processor 1420, and the instructions are executed by the at least one processor 1420 so that the at least one processor 1420 can: send a near-field terminal identifier of the near-field communication terminal to the user terminal via near-field communication; the near-field terminal identifier is used for the user terminal to send the near-field terminal identifier together with the resource type identifier of the resource to be collected by the user to the server; obtain the resource type identifier from the user terminal; send the resource type identifier to the server, so that the server determines that the resource type identifier sent by the near-field communication terminal is consistent with the resource type identifier sent by the user terminal, and then sends the resource corresponding to the resource type identifier to the user terminal.
[0341] Fig.14 The structure block diagram of a near field communication device 1400 provided according to an embodiment of the present application is shown. The components of the near field communication device 1400 include but are not limited to a memory 1410 and a processor 1420. The processor 1420 is connected to the memory 1410 via a bus 1430, and the database 1450 is used to store data.
[0342] The near field communication device 1400 also includes an access device 1440 that enables the near field communication device 1400 to communicate via one or more networks 1460 .
[0343] In one embodiment of the present application, the above components of the near field communication device 1400 and Fig.14 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.14 The structure block diagram of the near field communication device shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0344] Among them, when the processor 1420 executes the computer instructions, it implements the steps of the information sending method based on near field communication.
[0345] The above is a schematic scheme of a near field communication device of this embodiment. It should be noted that the technical scheme of the near field communication device and the technical scheme of the above-mentioned information transmission method based on near field communication belong to the same concept, and the details not described in detail in the technical scheme of the near field communication device can be referred to the description of the technical scheme of the above-mentioned information transmission method based on near field communication.
[0346] Fig.12 Network 1260, Fig.13 Network 1360 in Fig.14Examples of the network 1460 in the example include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0347] The user device 1200, the server device 1300, and the near field communication device 1400 can all be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The near field communication device 1400 can also be a mobile or stationary server.
[0348] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The devices, equipment and methods provided in the embodiments of this specification correspond to each other, so the devices and equipment also have beneficial technical effects similar to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding devices and equipment will not be repeated here.
[0349] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0350] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0351] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0352] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0353] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0354] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0355] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0356] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0357] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0358] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0359] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0360] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0361] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0362] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0363] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A resource acquisition method based on near field communication, applied to a user terminal, comprising: Acquiring a near field communication terminal identifier of a near field communication terminal located at a specified location by means of near field communication; Sending a resource type identifier of a resource to be collected by a user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to a server; Sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server; Receiving a resource corresponding to the resource type identifier sent by the server; The resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
2. The method according to claim 1, before receiving the resource corresponding to the resource type identifier sent by the server, further comprising: Acquire current first location information of the user terminal; sending the first location information to the server; Among them, the resources sent by the server and received by the user terminal are resources sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal and the first location information is consistent with the pre-registered designated location information of the near field communication terminal.
3. The method according to claim 1, before acquiring the near field terminal identification of the near field communication terminal located at the specified location by near field communication, further comprising: Receive the user's resource collection operation; In response to the resource claiming operation, a resource type identifier of a resource to be claimed by the user is determined.
4. The method according to any one of claims 1 to 3, wherein: The resources include digital collections.
5. A resource sending method, applied to a server, comprising: Receiving a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near-field terminal identifier sent by a user terminal; The near field terminal identifier is an identifier of a near field communication terminal located at a specified position; Obtaining a second resource type identifier sent by the near field communication terminal; Determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result; If the identification judgment result indicates that the first resource type identification is consistent with the second resource type identification, the resource corresponding to the first resource type identification is sent to the user terminal.
6. The method according to claim 5, before sending the resource corresponding to the first resource type identifier to the user terminal, further comprising: Receiving first location information indicating the location of the user terminal; Acquiring designated location information for indicating the location of the near field communication terminal; Determine whether the first location information is consistent with the specified location information, and obtain a location determination result; If the identification judgment result indicates that the first resource type identification is consistent with the second resource type identification, sending the resource corresponding to the first resource type identification to the user terminal specifically includes: If the identification judgment result indicates that the first resource type identification is consistent with the second resource type identification and the location judgment result indicates that the first location information is consistent with the specified location information, the resource corresponding to the first resource type identification is sent to the user terminal.
7. The method according to claim 6, before acquiring the designated location information indicating the location of the near field communication terminal, further comprising: Receiving a near field terminal registration request sent by the near field communication terminal; The near field terminal registration request carries the near field terminal identifier and designated location information of the near field communication terminal; Generate and save the association relationship information between the near-field terminal identifier and the specified location information.
8. The method according to claim 6, before acquiring the designated location information indicating the location of the near field communication terminal, further comprising: Receiving a near field terminal registration request sent by the near field communication terminal; The near field terminal registration request carries the near field terminal identifier of the near field communication terminal, the location information of the near field communication terminal and the designated location information to be registered; Determine whether the location information is consistent with the designated location information, and obtain a registration determination result; If the registration determination result indicates that the current location information is consistent with the designated location information, then association relationship information between the near-field terminal identifier and the designated location information is generated and saved.
9. The method according to claim 7 or 8, further comprising: Receiving near field terminal heartbeat information sent by the near field communication terminal according to a preset period; The near field terminal heartbeat information carries the near field terminal identifier of the near field communication terminal and the current location information of the near field communication terminal; Determine whether the current location information is consistent with the specified location information, and obtain a heartbeat determination result; If the heartbeat judgment result indicates that the current location information is inconsistent with the designated location information, the association relationship information between the near-field terminal identifier and the designated location information is cancelled.
10. The method according to claim 5, before sending the resource corresponding to the first resource type identifier to the user terminal, further comprising: Acquire image information captured by a first image capture device at a location where the near field communication terminal is located; A first time interval between a first acquisition time of acquiring the image information and a request sending time at which the user terminal sends the resource acquisition request is less than or equal to a preset first time length; According to the image information, determining whether there is a user within a first preset distance from the near field communication terminal, and obtaining a first use determination result; The sending the resource corresponding to the first resource type identifier to the user terminal specifically includes: If the first usage determination result indicates that there is a user within a first preset distance from the near field communication terminal, the resource corresponding to the first resource type identifier is sent to the user terminal.
11. The method of claim 5, further comprising: Sending an image acquisition instruction to a second image acquisition device located at a position indicated by the designated position information; Acquire the on-site image resources acquired by the second image acquisition device in response to the image acquisition instruction.
12. The method according to claim 11, after acquiring the on-site image resource acquired by the second image acquisition device in response to the image acquisition instruction, further comprising: Sending the on-site image resource to the user terminal; The on-site image resource is used to be displayed to the user on the user terminal.
13. The method according to claim 11, after sending the image acquisition instruction to the second image acquisition device located at the position indicated by the designated position information, further comprising: Acquire a second acquisition time for acquiring the on-site image resource; The on-site image resource and the second acquisition time are associated and stored.
14. The method according to claim 13, after sending the resource corresponding to the first resource type identifier to the user terminal, further comprising: Acquire image information collected by a first image acquisition device at a location where the near field communication terminal is located at the second acquisition time; According to the image information, determining whether there is a user within a first preset distance from the near field communication terminal, and obtaining a second use determination result; If the second use determination result indicates that there is no user within the first preset distance from the near field communication terminal, generating a warning message; The warning information is used to indicate that there is a risk of resources being illegally acquired at the second collection time.
15. The method according to any one of claims 5 to 14, wherein: The resources include digital collections.
16. A method for sending information based on near field communication, applied to a near field communication terminal, comprising: Sending a near field terminal identifier of the near field communication terminal to the user terminal by means of near field communication; The near-field terminal identifier is used for the user terminal to send the near-field terminal identifier and the resource type identifier of the resource to be collected by the user to the server; Acquire the resource type identifier from the user terminal; The resource type identifier is sent to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
17. The method according to claim 16, before sending the near field terminal identifier of the near field communication terminal to the user terminal by near field communication, further comprising: Sending a near-field terminal registration request to the server; The near field terminal registration request carries the near field terminal identifier and designated location information of the near field communication terminal; The near-field terminal registration request is used to request to establish association relationship information between the near-field terminal identifier and the designated location information.
18. The method according to claim 17, after sending the near field terminal registration request to the server, further comprising: Sending near-field terminal heartbeat information to the server according to a preset period; The near field terminal heartbeat information carries the near field terminal identifier of the near field communication terminal and the current location information of the near field communication terminal, so that the server determines whether to cancel the association relationship information between the near field terminal identifier and the specified location information.
19. The method according to any one of claims 16 to 18, wherein: The resources include digital collections.
20. A resource acquisition device based on near field communication, applied to a user terminal, comprising: A user-side near field communication module, used to obtain a near field terminal identifier of a near field communication terminal located at a specified location through near field communication; Sending a resource type identifier of a resource to be collected by a user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to a server; A request sending module, used for sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server; A resource receiving module, used for receiving the resource corresponding to the resource type identifier sent by the server; The resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
21. A resource sending device, applied to a server, comprising: A request receiving module, used to receive a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near-field terminal identifier sent by a user terminal; The near field terminal identifier is an identifier of a near field communication terminal located at a specified position; An information acquisition module, used to acquire a second resource type identifier sent by the near field communication terminal; A judgment module, used to judge whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier judgment result; A resource sending module is used to send the resource corresponding to the first resource type identifier to the user terminal if the identification judgment result indicates that the first resource type identifier is consistent with the second resource type identifier.
22. An information sending device based on near field communication, applied to a near field communication terminal, comprising: A device-side near field communication module, used to send a near field terminal identifier of the near field communication terminal to the user terminal via near field communication; The near-field terminal identifier is used for the user terminal to send the near-field terminal identifier and the resource type identifier of the resource to be collected by the user to the server; Acquire the resource type identifier from the user terminal; The information sending module is used to send the resource type identifier to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
23. A user terminal device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquiring a near field communication terminal identifier of a near field communication terminal located at a specified location by means of near field communication; Sending a resource type identifier of a resource to be collected by a user to the near field communication terminal; the resource type identifier is used to be sent by the near field communication terminal to a server; Sending a resource acquisition request for requesting a resource corresponding to the resource type identifier and the near-field terminal identifier to the server; Receive a resource corresponding to the resource type identifier sent by the server; the resource is sent by the server after determining that the resource type identifier sent by the user terminal is consistent with the resource type identifier sent by the near field communication terminal.
24. A server, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Receiving a resource acquisition request for requesting a resource corresponding to a first resource type identifier and a near field terminal identifier sent by a user terminal; the near field terminal identifier is an identifier of a near field communication terminal located at a specified location; Obtaining a second resource type identifier sent by the near field communication terminal; Determine whether the first resource type identifier is consistent with the second resource type identifier, and obtain an identifier determination result; If the identification judgment result indicates that the first resource type identification is consistent with the second resource type identification, the resource corresponding to the first resource type identification is sent to the user terminal.
25. A near field communication device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Sending a near field terminal identifier of the near field communication terminal to the user terminal by means of near field communication; the near field terminal identifier is used for the user terminal to send the near field terminal identifier and a resource type identifier of a resource to be collected by the user to the server; Acquire the resource type identifier from the user terminal; The resource type identifier is sent to the server, so that the server sends the resource corresponding to the resource type identifier to the user terminal after determining that the resource type identifier sent by the near field communication terminal is consistent with the resource type identifier sent by the user terminal.
Citation Information
Patent Citations
Advertisement putting control method and system
CN113469756A
Resource acquisition method and system, server and storage medium
CN113553600A
Resource acquisition method and device, equipment and computer storage medium
CN116775188A
Payment processing method and device based on near field communication
CN117933987A
SNS posting and reward system, and method using NFC
KR1020140122321A