CN111127125A - Virtual bill issuing method, device, server and storage medium - Google Patents

Virtual bill issuing method, device, server and storage medium Download PDF

Info

Publication number
CN111127125A
CN111127125A CN201911362937.2A CN201911362937A CN111127125A CN 111127125 A CN111127125 A CN 111127125A CN 201911362937 A CN201911362937 A CN 201911362937A CN 111127125 A CN111127125 A CN 111127125A
Authority
CN
China
Prior art keywords
user equipment
user
identifier
target
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911362937.2A
Other languages
Chinese (zh)
Inventor
高星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Missfresh Ecommerce Co Ltd
Original Assignee
Beijing Missfresh Ecommerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Missfresh Ecommerce Co Ltd filed Critical Beijing Missfresh Ecommerce Co Ltd
Priority to CN201911362937.2A priority Critical patent/CN111127125A/en
Publication of CN111127125A publication Critical patent/CN111127125A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Abstract

The application discloses a virtual bill issuing method, a virtual bill issuing device, a server and a storage medium, and belongs to the field of data processing. The method comprises the following steps: responding to a received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying a network environment where the user equipment is located; generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment; identifying the user equipment according to a distribution condition corresponding to the target virtual bill type of the virtual bill acquisition instruction and the unique identifier of the user equipment; and if the user equipment is identified as the issuable object, issuing a virtual bill to the user account which is currently logged in on the user equipment. According to the method and the device, the unique identifier of the user equipment is generated through various identifiers, and the identification accuracy of the user equipment can be greatly improved.

Description

Virtual bill issuing method, device, server and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a server, and a storage medium for issuing a virtual ticket.
Background
With the development of network technology, people can complete the actions of ordering food, shopping and the like through various applications. Various applications sometimes issue large-amount virtual tickets for specific users in order to attract users, and how to identify the specific users is key to reducing operation cost and determining the number of real specific users.
In the related art, it is often determined whether a user using a current ue is a specific user based on an International Mobile Equipment Identity (IMEI) or a device serial number of the ue, and the method is simple.
When a user maliciously tampers with an International Mobile Equipment Identity (IMEI) or an equipment serial number of the equipment, the user may still be identified as a specific user, and virtual tickets provided by various applications can be received, so that the identification effect of the specific user is poor, and the operation cost of the various applications is increased. Therefore, a method for accurately identifying a user device and sending a virtual ticket to the user is needed.
Disclosure of Invention
The embodiment of the application provides a virtual bill issuing method, a virtual bill issuing device, a virtual bill issuing server and a virtual bill issuing storage medium, and the identification effect of user equipment in the related technology can be improved. The technical scheme is as follows:
in one aspect, a virtual ticket issuing method is provided, and the method includes:
responding to a received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying a network environment where the user equipment is located;
generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment;
identifying the user equipment according to a distribution condition corresponding to the target virtual bill type of the virtual bill acquisition instruction and the unique identifier of the user equipment;
and if the user equipment is identified as the issuable object, issuing a virtual bill to the user account which is currently logged in on the user equipment.
In a possible embodiment, the generating the unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment includes:
mapping a plurality of hardware identifications and a plurality of network environment identifications of the user equipment to hashes of a plurality of target lengths based on a hash function;
linearly combining the hashes of the plurality of target lengths to generate a unique identification of the user device.
In a possible implementation manner, the identifying, according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment, the user equipment includes:
determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions, and generating a unique identification list of the target equipment based on unique identifications of the plurality of target user equipment, wherein the target user equipment is the issuable object;
and if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is a releasable object.
In a possible implementation manner, the identifying, according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment, the user equipment includes:
and if the current login user account on the user equipment conforms to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment does not exist in the database, determining that the user equipment is the issuable object.
In a possible implementation manner, before the identifying the user device according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user device, the method further includes:
and determining the user account currently logged in the user equipment as the user account which does not acquire the virtual bill.
In one aspect, a virtual ticket issuing apparatus is provided, the apparatus including:
the acquisition module is used for responding to the received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of the user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying the network environment where the user equipment is located;
the generating module is used for generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment;
the identification module is used for identifying the user equipment according to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment;
and the issuing module is used for issuing a virtual bill to the user account which is logged in currently on the user equipment if the user equipment is identified as the issuable object.
In one possible implementation, the generating module includes:
a mapping unit for mapping a plurality of hardware identifications and a plurality of network environment identifications of the user equipment to hashes of a plurality of target lengths based on a hash function;
a generating unit, configured to linearly combine the hashes of the multiple target lengths to generate a unique identifier of the user equipment.
In one possible embodiment, the identification module is configured to:
determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions;
generating a unique identifier list of target equipment based on unique identifiers of a plurality of target user equipment, wherein the target user equipment is the issuable object;
and if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is a releasable object.
In a possible implementation, the identification module is further configured to:
and if the current login user account on the user equipment conforms to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment does not exist in the database, determining that the user equipment is the issuable object.
In a possible embodiment, the apparatus further comprises:
and the determining module is used for determining that the user account currently logged in the user equipment is the user account which does not acquire the virtual bill.
In one aspect, a server is provided and includes one or more processors and one or more memories having at least one instruction stored therein, the instruction being loaded and executed by the one or more processors to implement the operations performed by the virtual ticket issuing method.
In one aspect, a readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the virtual ticket issuing method.
According to the method provided by the embodiment of the application, the server can generate the unique identifier of the user equipment based on various hardware identifiers or network environment identifiers of the user equipment, determine whether the user account currently logged in on the user equipment is the object capable of releasing the virtual ticket or not based on the unique identifier of the user equipment, and send the virtual ticket to the user account currently logged in on the user equipment when the user equipment is the object capable of releasing, so that the accuracy of the server in identifying the user equipment can be improved, and the operation cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a virtual ticket issuing method provided in an embodiment of the present application;
fig. 2 is a flowchart of a virtual ticket issuing method provided in an embodiment of the present application;
fig. 3 is a flowchart of a virtual ticket issuing method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a user device interface provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a virtual bill issuing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a virtual ticket issuing method according to an embodiment of the present application, and referring to fig. 1, the implementation environment includes a user device 110 and a server 140.
The user device 110 is connected to the server 110 through a wireless network or a wired network. The user device 110 may be a smartphone, tablet, portable computer, or the like. The user device 110 is installed and operated with an application program supporting virtual ticket issuance. The application may be a take-away or shopping type application or the like. Illustratively, the user device 110 is a device used by a user, and a user account is logged in an application program running in the user device 110.
The user device 110 is connected to the server 140 through a wireless network or a wired network.
Optionally, the server 140 comprises: the system comprises an access server, a virtual bill issuing server and a database. The access server is used to provide access services for the user equipment 110. The virtual bill issuing server is used for providing background services related to virtual bill issuing. The database may include a device identification database, a user account database, and the like, and of course, the database may correspond to different databases based on different services provided by the server, and the number of the virtual ticket issuing servers may be one or more. When there are multiple virtual ticket issuing servers, there are at least two virtual ticket issuing servers for providing different services, and/or there are at least two virtual ticket issuing servers for providing the same service, for example, providing the same service in a load balancing manner, which is not limited in the embodiment of the present application.
The user equipment 110 may refer to one of a plurality of user equipments, and the embodiment is only illustrated by the user equipment 110.
Those skilled in the art will appreciate that the number of user devices described above may be greater or fewer. For example, the number of the user equipment may be only one, or several tens or several hundreds, or more, and in this case, the implementation environment further includes other user equipment. The number and the type of the user equipment are not limited in the embodiment of the application.
Fig. 2 is a flowchart of a virtual ticket issuing method provided in an embodiment of the present application, and referring to fig. 2, the method includes:
201. and responding to the received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of the user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying the network environment where the user equipment is located.
202. And generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment.
203. And identifying the user equipment according to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment.
204. And if the user equipment is identified as the issuable object, issuing a virtual bill to the user account which is currently logged in on the user equipment.
According to the method provided by the embodiment of the application, the server can generate the unique identifier of the user equipment based on various hardware identifiers or network environment identifiers of the user equipment, determine whether the user account currently logged in on the user equipment is the object capable of releasing the virtual ticket or not based on the unique identifier of the user equipment, and send the virtual ticket to the user account currently logged in on the user equipment when the user equipment is the object capable of releasing, so that the accuracy of the server in identifying the user equipment can be improved, and the operation cost is reduced.
In one possible embodiment, generating the unique identifier of the user equipment based on the hardware identifier of the user equipment and the network environment identifier comprises:
the plurality of hardware identifications and the plurality of network environment identifications of the user device are mapped to hashes of a plurality of target lengths based on a hash function.
The hashes of multiple target lengths are linearly combined to generate a unique identification of the user device.
In a possible implementation manner, identifying the user equipment according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment includes:
and determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions, and generating a unique identifier list of the target equipment based on the unique identifiers of the plurality of target user equipment, wherein the target user equipment is an issuable object.
And if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is an issuable object.
In a possible implementation manner, identifying the user equipment according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment includes:
and if the current login user account on the user equipment conforms to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment does not exist in the database, determining that the user equipment is an issuable object.
In a possible implementation manner, before identifying the user equipment according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment, the method further includes:
and determining the user account currently logged in the user equipment as the user account which does not acquire the virtual bill.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 3 is a flowchart of a virtual ticket issuing method provided in an embodiment of the present application, and referring to fig. 3, the method includes:
301. and the server determines that the user account currently logged in on the user equipment is the user account which does not acquire the virtual bill.
The user equipment may be a mobile terminal used by a user, a computer device of the user, and other devices having network connection and Application (APP) running capabilities. It should be noted that the virtual ticket in the embodiment of the present application may be coupons specially prepared for new users for various APPs, and may also be coupons prepared for specific users for various APPs, where the virtual ticket may reduce or avoid a certain fee when a user places an order, the virtual ticket may be automatically used when the user places an order, or may be manually selected by the user for use, and the virtual ticket may have a certain validity period.
In a possible implementation manner, when the server detects that the user logs in the user account through the user device, the server may query, based on a virtual ticket database maintained by the server, a virtual ticket issuance history of the user account, and determine, based on a result of the query, whether the user account currently logged in by the user device is a user account that has not acquired the virtual ticket. In a possible implementation manner, if the server queries that the virtual ticket is sent to the user account, the server may further query a history order of the user account in a history order server, and if the user account does not use the virtual ticket, the server may also determine that the user account currently logged in on the user equipment is a user account that has not acquired the virtual ticket.
302. And the server responds to the received virtual bill acquisition instruction, acquires the hardware identifier and the network environment identifier of the user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying the network environment where the user equipment is located.
The hardware identifier of the ue includes, but is not limited to, an International Mobile Equipment Identity (IMEI) of the ue, a manufacturer name, an Android Device unique identifier (Android ID, ADID), an International Mobile Subscriber Identity (IMSI), a storage space of the ue, a Media Access Control Address (MAC) of the ue, a processor Serial Number of the ue, and a Device Serial Number (Device Serial Number) of the ue. The network environment identifier of the user equipment includes, but is not limited to, a hotspot name of a router connected to the user equipment, a service provider of a mobile communication network used by the user equipment, and the like.
In one possible implementation, referring to fig. 4, a user may issue a virtual ticket obtaining operation to a user device, and after detecting the virtual ticket obtaining operation, the user device may collect a hardware identifier and a network environment identifier of the user device, and generate a virtual ticket obtaining instruction based on the hardware identifier and the network environment identifier of the user device. The user equipment encapsulates the virtual bill acquisition instruction and sends the virtual bill acquisition instruction to the server, and the server de-encapsulates the acquired virtual bill acquisition instruction and acquires a hardware identifier and a network environment identifier of the user equipment.
303. The server generates a unique identification of the user device based on the hardware identification of the user device and the network environment identification.
In one possible implementation, the server may map the plurality of hardware identifications and the plurality of network environment identifications of the user device to hashes of a plurality of target lengths based on a hash function. The hashes of multiple target lengths are linearly combined to generate a unique identification of the user device. Specifically, the server may map a plurality of hardware identifications and a plurality of network environment identifications different in length to hashes of a plurality of target lengths based on a hashing (Hash) algorithm, linearly combine the hashes of the plurality of target lengths based on a plurality of target coefficients, and generate the unique identification of the user equipment, for example, take formula (1) to linearly combine the hashes of the plurality of target lengths.
P=k1X1+k2X2+……+knXn(1)
Wherein, P is the unique identification of the user equipment, k1-knCan be set for a plurality of target coefficients according to actual needs, X1-XnA hash of multiple target lengths.
Of course, the server may map the hardware identifiers and the network identifiers of the user and the device into hashes of a plurality of target lengths based on other algorithms, such as a Message-Digest Algorithm (MD 5), which is not limited in this embodiment.
In one possible embodiment, the server may directly combine each hardware identifier and each network environment identifier to generate a unique identifier for the user device. Or generating a matrix based on each hardware identifier and each network environment identifier, and using the matrix as the unique identifier of the user equipment.
In a possible implementation manner, the server may combine the hardware identifiers of the target number and the network environment identifiers in multiple ways to obtain device identifier groups of multiple user devices, and use the device identifier groups of the multiple user devices as unique identifiers of the user devices. For example, the server may use the IMEI, the ADID, and the Mac of the user equipment as a first equipment identifier group of the user equipment, use the ADID, the Mac, and the manufacturer name of the user equipment as a second equipment identifier group of the user equipment, use the IMEI, the storage space, and the Mac of the user equipment as a third equipment identifier group of the user equipment, and combine the first equipment identifier group, the second equipment identifier group, and the third equipment identifier group to obtain a unique identifier of the user equipment.
In a possible implementation manner, the server may further send a user identity information acquisition request to the user equipment, and after receiving the user identity information acquisition request, the user equipment may acquire identity information of the user based on a user identity information acquisition device on the user equipment, and generate a unique identifier of the device based on the identity information and a hardware identifier and a network environment identifier of the user equipment. Specifically, the user equipment can be provided with a camera, an iris recognition module, a fingerprint recognition module and other devices, and the user equipment can control the devices to start, prompt the user to perform corresponding operation and acquire the identity information of the user. The user equipment can send the user identity information, the hardware identifier and the network environment identifier of the user equipment to the server, and the server binds the obtained user identity information, the hardware identifier and the network environment identifier to serve as the unique identifier of the user equipment.
In a possible implementation manner, if the user account is bound to a mobile phone number of the user, the server may further determine identity information of the user corresponding to the mobile phone number, and generate a unique identifier of the user equipment based on the identity information, a hardware identifier of the user equipment, and a network environment identifier.
In one possible implementation, the server may send an application installation list acquisition request to the user device, where the application installation list is used to indicate names of users installed on the user device. The server may generate a unique identification for the user device based on the application installation list. For example, the user device may have A, B and C applications installed thereon, and then the user and the device may package and send names, version numbers, and account information logged in on each application of the A, B and C applications to the server, where the server serves as a unique identifier of the user device based on the obtained information and the hardware identifier and the network environment identifier of the user device.
In one possible implementation, if the user device stores the location information of the user at different time periods, the server may send a location obtaining request to the user device, the server may generate portrait information of the user based on the obtained location information of the user at different time periods, and generate a unique identifier of the user device based on the portrait information of the user and the hardware identifier and the network environment identifier of the user device.
It should be noted that the server may generate the unique identifier of the user equipment in any one of the above manners, and the manner of generating the unique identifier of the user equipment is not limited in the embodiment of the present application.
304. And the server identifies the user equipment according to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment.
In one possible implementation, if the virtual ticket is a virtual ticket prepared for various APPs for a specific user, the server may determine whether there is a target type of historical order from historical orders of the user account based on a historical order database maintained by the server, where the target type of historical order conforms to an order of target virtual ticket issuing conditions, if there is no target type of historical order, determine that the user account is not an alternative user, and if there is a target type of historical order, determine that the user account is an alternative user. If the user account is an alternative user, the server may determine a plurality of target user devices based on the issuing conditions corresponding to the target virtual ticket types of the virtual ticket acquiring instructions, generate a unique identifier list of the target devices based on unique identifiers of the plurality of target user devices, and the target user devices are issuable objects. And if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is an issuable object.
In one possible implementation, if the virtual ticket is a coupon prepared for a new user by each APP, the server may query a registration duration of a user account currently logged in on the user equipment, and determine that the user account is an alternative user when the registration duration is shorter than the target duration. If the user account is an alternative user, the server may query a corresponding unique identifier in the device identifier database based on the unique identifier of the user device, and if a consistent unique identifier is not queried, identify the user device as an issuable object, otherwise identify the user device as an issuable object.
In a possible implementation manner, if the virtual ticket is a coupon prepared for a new user by various APPs, the server may query a historical order of the user account based on a historical order database maintained by the server, and if the server determines that an order of the user account has never been placed, it may determine that the user account currently logged in by the user equipment is an alternative user. If the server queries the historical order of the user account, it may be determined that the user account currently logged in by the user equipment is not an alternative user. If the user account is an alternative user, the server may query a corresponding unique identifier in the device identifier database based on the unique identifier of the user device, and if a consistent unique identifier is not queried, identify the user device as an issuable object, otherwise identify the user device as an issuable object.
In a possible implementation manner, after determining that the user account is the alternative user, the server may query, based on the identity information of the user, whether the same identity information exists in the corresponding database, and if so, identify the user device as an undispensable object, otherwise, identify the user device as an issuable object.
In a possible implementation manner, after the user account is determined to be the alternative user, if the user account is bound to a mobile phone number of the user, the server may identify whether the user equipment is the issuable object based on user identity information corresponding to the mobile phone number, when the server queries corresponding user identity information in a corresponding database, the user equipment is identified as the non-issuable object, otherwise, the user equipment is identified as the issuable object. Specifically, the server may search, based on the mobile phone number bound to the user account, whether the user account corresponding to the mobile phone number exists in the user information database, and identify the user equipment as an undispensable object if the corresponding user identity information is not searched, or identify the user equipment as an issuable object if the corresponding user identity information is not searched.
In one possible implementation, after determining that the user account is an alternative user, the server may determine whether the user equipment is a issuable object based on an application information table of the user equipment, where the application information table reflects various information of applications installed on the user equipment. Specifically, the server may generate the application information table based on at least one of the name, version number, and account information registered on each application. The server may determine whether the user equipment is an issuable object based on the application information table, and if the server queries a corresponding database for a consistent application information table, the user equipment may be determined to be an issuable object, otherwise, the user equipment is identified as an issuable object.
In one possible embodiment, after determining that the user account is an alternative user, the server may generate user representation information reflecting the user's preferred location based on the user's location information over different time periods. The server may determine whether similar user portrait information exists in the corresponding database, and identify the user device as a non-dispensable object if the similar user portrait information exists, or identify the user device as a dispensable object if the similar user portrait information does not exist. Specifically, whether similar user portrait information exists in the database may be determined by a method of calculating cosine similarity, and certainly, whether similar user portrait information exists in the database may also be determined by other methods, which is not limited in this embodiment of the application.
It should be noted that any of the above manners may be adopted to identify the user equipment, which is not limited in the embodiment of the present application.
In order to more clearly describe the method for identifying the dispensable object by the unique identifier in the embodiment of the present application, three specific embodiments will be described below, and of course, the specific embodiments given below are only set for easy understanding and cannot unduly limit the present application.
In a possible implementation manner, if the virtual ticket is a coupon prepared for a new user by various types of APPs, the unique identifier of the user equipment consists of hashes with a plurality of target lengths, the server can search the unique identifier of the user equipment in the equipment identifier database, and when the unique identifier of the user equipment cannot be searched, the server can determine that the user equipment is a issuable object, otherwise, the user equipment is an issuable object.
In a possible implementation manner, if the virtual ticket is a coupon prepared for a new user by various APPs, the unique identifier of the user equipment is composed of hashes with a plurality of target lengths, the server can match the unique identifier of the user equipment in the equipment identifier database, calculate similarity information between the unique identifier of the user equipment and the equipment identifiers of other equipment, determine that the user equipment is a issuable object if the similarity information between the unique identifier of the user equipment and other equipment in the database is less than the target similarity, and determine that the user equipment is an issuable object if the similarity information between the unique identifier of any other equipment and the unique identifier of the user equipment is greater than the target similarity. For example, each hash of the target length represents a hardware identifier or a network environment identifier of the user equipment, when it is detected that a hash is the same as a hash in the unique identifier of any other device in the database, the similarity of the hash is marked as 1, if the hash is not the same as the hash, the similarity of the hash is marked as 0, the server may set different weights for different hashes, and the server may sum the similarity weights of the hashes based on the different weights to obtain the similarity information between the user equipment and the other device. For example, the unique identifier of the user device is composed of hashes A, B and C, and the unique identifier of one other device is composed of hashes A, D and C in the database, the server may determine that the similarities of the three hashes are 1,0, and 1, respectively, if the server sets a weight for the first hash to 0.1, a weight for the second hash to 0.3, and a weight for the third hash to 0.6, the similarity information of the unique identifiers of the two devices may be obtained as 1 × 0.1+0 × 0.3+1 × 0.6 to 0.7, and if the target similarity is 0.2, the user device may be determined as a non-issuable object.
In a possible implementation manner, if the virtual ticket is a coupon prepared for a new user by various APPs, the unique identifier of the user equipment is formed by device identifier groups of a plurality of user equipment, the server may compare relationships between the unique identifiers of other devices and the unique identifier of the user equipment in the device identifier database, respectively, and when any one of the device identifier groups of the unique identifiers of the user equipment is the same as any one of the device identifier groups of any one of the other devices in the device identifier database, determine that the user equipment is an undistributable object.
305. If the user equipment is identified as the issuable object, the server issues a virtual bill to the user account currently logged in on the user equipment.
306. And if the user equipment is identified as the non-issuable object, the server issues other types of virtual tickets to the user account logged in the user equipment based on the equipment identification of the user equipment.
In a possible implementation manner, the server may query a historical order of a user using the user device based on an identifier of the user device, determine goods or services similar to the historical order of the user based on the historical order of the user, generate a corresponding virtual ticket based on the goods or services similar to the historical order, and issue the virtual ticket into a user account currently registered by the user device.
In a possible implementation manner, the server may determine, based on the identifier of the user device, a rating of a user using the user device, and issue, based on the rating of the user, a virtual ticket corresponding to the rating of the user to a user account currently logged in on the user device, where the rating of the user may be determined based on the number and amount of historical orders of the user, and of course, the rating of the user may be determined in other manners, which is not limited in this embodiment of the present application.
In one possible implementation, the server may generate a piece of virtual ticket lottery information, where the virtual ticket lottery information carries virtual ticket identifications of different levels and corresponding probabilities. The server may send the virtual identification lottery information to an APP on the user equipment, and the user equipment displays the virtual ticket lottery information in a target manner, where the target manner may include a turntable or the like. After the user equipment detects the lottery drawing instruction of the user, the target virtual bill can be randomly determined for the user based on the probability corresponding to the virtual bill identification, and the target virtual bill is issued to the user account number which is currently logged in by the user equipment.
Through the three implementation modes, the server can send other types of virtual bills to corresponding accounts according to the equipment identification of the user equipment, and the user can be further attracted to use the corresponding APP.
In addition, if the server detects that the user does not use the issued virtual ticket within the target deadline, a prompt message can be sent to the user equipment, and the user equipment can display the prompt message to remind the user to use the virtual ticket.
According to the method provided by the embodiment of the application, the server can generate the unique identifier of the user equipment based on various hardware identifiers or network environment identifiers of the user equipment, determine whether the user account currently logged in on the user equipment is the object capable of releasing the virtual ticket or not based on the unique identifier of the user equipment, and send the virtual ticket to the user account currently logged in on the user equipment when the user equipment is the object capable of releasing, so that the accuracy of the server in identifying the user equipment can be improved, and the operation cost is reduced.
Fig. 5 is a schematic structural diagram of a virtual ticket issuing apparatus provided in an embodiment of the present application, and referring to fig. 5, the apparatus includes: an acquisition module 501, a generation module 502, an identification module 503, and an issuance module 504.
The obtaining module 501 is configured to, in response to the received virtual ticket obtaining instruction, obtain a hardware identifier and a network environment identifier of the user equipment, where the hardware identifier and the network environment identifier are carried by the virtual ticket obtaining instruction, and the network environment identifier is used to uniquely identify a network environment where the user equipment is located.
A generating module 502, configured to generate a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment.
The identification module 503 is configured to identify the user equipment according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user equipment.
And the issuing module 504 is used for issuing the virtual ticket to the user account currently logged in on the user equipment if the user equipment is identified as the issuable object.
In one possible implementation, the generating module includes:
a mapping unit for mapping the plurality of hardware identifications and the plurality of network environment identifications of the user equipment to hashes of a plurality of target lengths based on a hash function.
And the generating unit is used for linearly combining the hashes with the target lengths to generate the unique identification of the user equipment.
In one possible embodiment, the identification module is configured to:
and determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions.
And generating a unique identification list of the target equipment based on the unique identifications of the target user equipment, wherein the target user equipment is a issuable object.
And if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is an issuable object.
In one possible embodiment, the identification module is further configured to:
and if the current login user account on the user equipment conforms to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment does not exist in the database, determining that the user equipment is an issuable object.
In one possible embodiment, the apparatus further comprises:
and the determining module is used for determining the user account currently logged in the user equipment as the user account which does not acquire the virtual bill.
By the device provided by the embodiment of the application, the server can generate the unique identifier of the user equipment based on various hardware identifiers or network environment identifiers of the user equipment, determine whether the user account currently logged in on the user equipment is the object capable of releasing the virtual ticket or not based on the unique identifier of the user equipment, and send the virtual ticket to the user account currently logged in on the user equipment when the user equipment is the object capable of releasing, so that the accuracy of the server in identifying the user equipment can be improved, and the operation cost is reduced.
It should be noted that: in the virtual ticket issuing apparatus provided in the above embodiment, when issuing a virtual ticket, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the user equipment is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual ticket issuing device and the virtual ticket issuing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 600 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 601 and one or more memories 602, where at least one instruction is stored in the one or more memories 602, and is loaded and executed by the one or more processors 601 to implement the methods provided by the foregoing method embodiments. Of course, the server 600 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 600 may also include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, there is also provided a storage medium, such as a memory, including instructions executable by a processor to perform the virtual ticket issuance method of the above embodiments. For example, the storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A virtual ticket issuance method, comprising:
responding to a received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying a network environment where the user equipment is located;
generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment;
identifying the user equipment according to a distribution condition corresponding to the target virtual bill type of the virtual bill acquisition instruction and the unique identifier of the user equipment;
and if the user equipment is identified as the issuable object, issuing a virtual bill to the user account which is currently logged in on the user equipment.
2. The method of claim 1, wherein generating the unique identifier of the user device based on the hardware identifier and the network environment identifier of the user device comprises:
mapping a plurality of hardware identifications and a plurality of network environment identifications of the user equipment to hashes of a plurality of target lengths based on a hash function;
linearly combining the hashes of the plurality of target lengths to generate a unique identification of the user device.
3. The method according to claim 1, wherein the identifying the user device according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user device comprises:
determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions, and generating a unique identification list of the target equipment based on unique identifications of the plurality of target user equipment, wherein the target user equipment is the issuable object;
and if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is a releasable object.
4. The method according to claim 1, wherein the identifying the user device according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user device comprises:
and if the current login user account on the user equipment conforms to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment does not exist in the database, determining that the user equipment is the issuable object.
5. The method according to claim 1, wherein before identifying the user device according to the issuing condition corresponding to the target virtual ticket type of the virtual ticket obtaining instruction and the unique identifier of the user device, the method further comprises:
and determining the user account currently logged in the user equipment as the user account which does not acquire the virtual bill.
6. A virtual ticket dispensing apparatus, the apparatus comprising:
the acquisition module is used for responding to the received virtual bill acquisition instruction, acquiring a hardware identifier and a network environment identifier of the user equipment carried by the virtual bill acquisition instruction, wherein the network environment identifier is used for uniquely identifying the network environment where the user equipment is located;
the generating module is used for generating a unique identifier of the user equipment based on the hardware identifier and the network environment identifier of the user equipment;
the identification module is used for identifying the user equipment according to the issuing condition corresponding to the target virtual bill type of the virtual bill acquiring instruction and the unique identifier of the user equipment;
and the issuing module is used for issuing a virtual bill to the user account which is logged in currently on the user equipment if the user equipment is identified as the issuable object.
7. The apparatus of claim 6, wherein the generating module comprises:
a mapping unit for mapping a plurality of hardware identifications and a plurality of network environment identifications of the user equipment to hashes of a plurality of target lengths based on a hash function;
a generating unit, configured to linearly combine the hashes of the multiple target lengths to generate a unique identifier of the user equipment.
8. The apparatus of claim 6, wherein the identification module is configured to:
determining a plurality of target user equipment based on the issuing conditions corresponding to the target virtual bill types of the virtual bill acquiring instructions;
generating a unique identifier list of target equipment based on unique identifiers of a plurality of target user equipment, wherein the target user equipment is the issuable object;
and if the unique identifier of the user equipment exists in the unique identifier list of the target user equipment, determining that the user equipment is a releasable object.
9. A server, comprising one or more processors and one or more memories having stored therein at least one instruction, the instruction being loaded and executed by the one or more processors to perform operations performed by the virtual ticket issuance method according to any one of claims 1 to 5.
10. A storage medium having stored therein at least one instruction that is loaded and executed by a processor to perform operations performed by the virtual ticket issuance method according to any one of claims 1 to 5.
CN201911362937.2A 2019-12-26 2019-12-26 Virtual bill issuing method, device, server and storage medium Pending CN111127125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911362937.2A CN111127125A (en) 2019-12-26 2019-12-26 Virtual bill issuing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911362937.2A CN111127125A (en) 2019-12-26 2019-12-26 Virtual bill issuing method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN111127125A true CN111127125A (en) 2020-05-08

Family

ID=70502723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911362937.2A Pending CN111127125A (en) 2019-12-26 2019-12-26 Virtual bill issuing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111127125A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519121A (en) * 2013-09-30 2015-04-15 瞻博网络公司 Session-aware service chaining within computer networks
CN104899747A (en) * 2014-08-28 2015-09-09 腾讯科技(深圳)有限公司 Virtual bill generating and verifying method, apparatus and system
CN104969519A (en) * 2013-04-27 2015-10-07 华为技术有限公司 Message distributing method and device, and wireless gateway
CN104980420A (en) * 2014-09-28 2015-10-14 腾讯科技(深圳)有限公司 Business processing method, device, terminal and server
CN106778285A (en) * 2016-12-09 2017-05-31 美的智慧家居科技有限公司 For method, the device upgraded to equipment
CN106815742A (en) * 2016-12-07 2017-06-09 乐视控股(北京)有限公司 A kind of sending method of electronic ticket data, device and electronic equipment
CN107229846A (en) * 2017-05-31 2017-10-03 奇酷互联网络科技(深圳)有限公司 Information protecting method, device, mobile terminal and read/write memory medium
CN108960930A (en) * 2018-07-18 2018-12-07 天津璧合信息技术有限公司 A kind of put-on method and device of electronic coupons

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104969519A (en) * 2013-04-27 2015-10-07 华为技术有限公司 Message distributing method and device, and wireless gateway
CN104519121A (en) * 2013-09-30 2015-04-15 瞻博网络公司 Session-aware service chaining within computer networks
CN104899747A (en) * 2014-08-28 2015-09-09 腾讯科技(深圳)有限公司 Virtual bill generating and verifying method, apparatus and system
CN104980420A (en) * 2014-09-28 2015-10-14 腾讯科技(深圳)有限公司 Business processing method, device, terminal and server
CN106815742A (en) * 2016-12-07 2017-06-09 乐视控股(北京)有限公司 A kind of sending method of electronic ticket data, device and electronic equipment
CN106778285A (en) * 2016-12-09 2017-05-31 美的智慧家居科技有限公司 For method, the device upgraded to equipment
CN107229846A (en) * 2017-05-31 2017-10-03 奇酷互联网络科技(深圳)有限公司 Information protecting method, device, mobile terminal and read/write memory medium
CN108960930A (en) * 2018-07-18 2018-12-07 天津璧合信息技术有限公司 A kind of put-on method and device of electronic coupons

Similar Documents

Publication Publication Date Title
US10073916B2 (en) Method and system for facilitating terminal identifiers
CN112398895B (en) Method and device for providing service information
US20180276677A1 (en) Method and apparatus for establishing association relationship
CN108256718B (en) Policy service task allocation method and device, computer equipment and storage equipment
CN110677492B (en) Access request processing method and device, electronic equipment and storage medium
CN110602056B (en) Service parameter transmission method and device
KR20140116295A (en) method of entrance control through instant QR code
TW201520917A (en) Processing method and device
CN102958152A (en) WLAN (wireless local area network) positioning method and positioning server for positioning third part
CN108684044B (en) User behavior detection system, method and device
CN109299234B (en) Information query method and device and computer readable storage medium
CN106681799A (en) Disk inserting method, device and system
CN108073408B (en) System updating method and device of self-service terminal
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
US20150140957A1 (en) Prepaid phone card charging
CN109600738B (en) User information updating method, device, equipment and storage medium
CN111127125A (en) Virtual bill issuing method, device, server and storage medium
RU2659475C1 (en) Method of efficiency measurement of online advertising campaign placing (options)
CN104731660A (en) Data distribution method, device and system
CN104518947A (en) Information modification notification device and information modification notification method
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
CN106534382A (en) Method and system for determining position information of family group and family gateway
CN109362079B (en) Data processing method and device
CN108268545A (en) A kind of method and apparatus of the establishment in the user tag library of classification
CN110418020B (en) List state information processing method and device, electronic terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200508

WD01 Invention patent application deemed withdrawn after publication