Disclosure of Invention
In view of the above, the embodiments of the present invention provide an information generating method and apparatus, so as to solve the technical problem that personal privacy is easy to leak.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided an information generating method including:
Receiving a user identifier sent by a first client, and searching receiving information matched with the user identifier in a database according to the user identifier;
generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, and storing the corresponding relation into the database;
and returning the logistics order identification to the first client.
Optionally, searching the receiving information matched with the user identifier in the database according to the user identifier, including:
judging whether default information matched with the user identification exists or not;
if yes, taking the default information as receiving information matched with the user identification;
If not, searching the distribution information corresponding to the user identification in the preset time period in the database, and determining the receiving information matched with the user identification according to the distribution information.
Optionally, searching the distribution information corresponding to the user identifier in the preset time period in the database, determining the receiving information matched with the user identifier according to the distribution information, and including:
Searching distribution information corresponding to the user identification in a preset time period in the database, and judging whether the number of orders corresponding to the user identification is larger than zero;
if yes, taking the distribution information with the largest occurrence number in the preset time period as receiving information matched with the user identification;
if not, a prompt message is returned to the first client.
Optionally, the method further comprises:
receiving a logistics order identifier sent by a second client, and searching receiving information matched with the logistics order identifier in a database according to the logistics order identifier;
and returning the receiving information to the second client.
In addition, according to another aspect of an embodiment of the present invention, there is provided an information generating apparatus including:
The receiving module is used for receiving the user identification sent by the first client, and searching the receiving information matched with the user identification in the database according to the user identification;
The storage module is used for generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, and storing the corresponding relation into the database;
and the return module is used for returning the logistics order identification to the first client.
Optionally, searching the receiving information matched with the user identifier in the database according to the user identifier, including:
judging whether default information matched with the user identification exists or not;
if yes, taking the default information as receiving information matched with the user identification;
If not, searching the distribution information corresponding to the user identification in the preset time period in the database, and determining the receiving information matched with the user identification according to the distribution information.
Optionally, searching the distribution information corresponding to the user identifier in the preset time period in the database, determining the receiving information matched with the user identifier according to the distribution information, and including:
Searching distribution information corresponding to the user identification in a preset time period in the database, and judging whether the number of orders corresponding to the user identification is larger than zero;
if yes, taking the distribution information with the largest occurrence number in the preset time period as receiving information matched with the user identification;
if not, a prompt message is returned to the first client.
Optionally, the receiving module is further configured to receive a logistics order identifier sent by the second client, and search, according to the logistics order identifier, for receiving information matched with the logistics order identifier in a database;
the return module is further configured to return the receiving information to the second client.
According to another aspect of an embodiment of the present invention, there is also provided an electronic device including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of any of the embodiments described above.
According to another aspect of an embodiment of the present invention, there is also provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method according to any of the embodiments described above.
The embodiment of the invention has the advantages that the technical means that the logistics order identification is generated according to the receiving information, the corresponding relation between the logistics order identification and the receiving information is established, the corresponding relation is stored in the database, and then the logistics order identification is returned to the first client, so that the technical problem that personal privacy is easy to leak is solved. When the sender delivers goods, only the user identification of the receiver is required to be input, and the server side determines the receiving information through the user identification of the receiver and returns the logistics order identification to the sender, so that only the logistics order identification is required to be displayed on the package. The embodiment of the invention effectively protects the personal information privacy of the user, improves the security of stranger transactions and the user experience of second-hand transactions, and subsequently improves the market liveness of second-hand transactions. Moreover, the embodiment of the invention can play an important role in the C2C (electronic commerce) logistics industry and ensure the personal information safety of both parties.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of an information generating method according to an embodiment of the present invention. As an embodiment of the present invention, as shown in fig. 1, the information generating method may include:
step 101, receiving a user identifier sent by a first client, and searching for receiving information matched with the user identifier in a database according to the user identifier.
Before step 101, the addressee needs to register on the logistics system to obtain an account number, an account name or an ID, and the like, then fill in the receiving information, and store the corresponding relationship between the account number, the account name or the ID, and the like and the receiving information into a database.
In the embodiment of the invention, the user identifier can comprise an account number, an account name or an ID (identity) and the like registered by the user on the logistics system, and has uniqueness, namely each user can obtain the unique user identifier through registration and can not be repeated. It should be noted that each user identification may correspond to a plurality of pieces of shipping information, each piece of shipping information including a shipping address, a shipping telephone, and the like.
When the sender needs to send the express delivery, the user identifier of the receiver can be input into the first client (such as a mobile phone, a tablet computer and a personal computer), and the user identifier of the receiver is sent to the server through the first client.
After receiving the user identification sent by the first client, the server searches the receiving information matched with the user identification in a database (the corresponding relation between the user identification and the receiving information is stored in advance) according to the user identification.
However, since one user identifier may correspond to a plurality of pieces of receiving information, or default information may be included in a plurality of pieces of receiving information corresponding to some user identifiers, the step of searching the database for receiving information matching the user identifier according to the user identifier includes:
judging whether default information matched with the user identification exists or not;
if yes, taking the default information as receiving information matched with the user identification;
If not, searching the distribution information corresponding to the user identification in the preset time period in the database, and determining the receiving information matched with the user identification according to the distribution information.
In an embodiment of the present invention, the default information (such as a default shipping address, a default shipping telephone, etc.) has the highest priority, and if there is default information matching the user identifier, the default information is used as shipping information matching the user identifier. And if the default information matched with the user identification does not exist, determining the goods receiving information according to the delivery information corresponding to the user identification in the preset time period. For example, the receiving information of the receiver is determined according to the distribution information in the order data of the receiver within 3 months or 6 months nearest to the current time.
Optionally, searching the distribution information corresponding to the user identifier in the preset time period in the database, determining the receiving information matched with the user identifier according to the distribution information, and including:
Searching distribution information corresponding to the user identification in a preset time period in the database, and judging whether the number of orders corresponding to the user identification is larger than zero;
if yes, taking the distribution information with the largest occurrence number in the preset time period as receiving information matched with the user identification;
if not, a prompt message is returned to the first client.
For example, if the number of orders of a certain addressee in the past 3 months or 6 months is greater than zero, the distribution information with the largest occurrence number is selected from the order data as the receiving information of the addressee.
Step 102, generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, and storing the corresponding relation into the database.
After the receiving information is determined, the server side generates a logistics order identifier (unique identifier, which is not repeated) through a logistics system, establishes a corresponding relation between the logistics order identifier and the receiving information, and stores the corresponding relation into the database. Specifically, the receiving address and the receiving phone in the receiving information may be stored in the receiving address field and the receiving phone field corresponding to the sending information, respectively. Optionally, the correspondence between the user identifier, the logistics order identifier and the receiving information can be further stored, so that the user can conveniently inquire.
And step 103, returning the logistics order identification to the first client.
After the logistics order identification is generated, the service end returns the logistics order identification to the first client end, so that a sender can conveniently track the logistics state. After the first customer receives the logistics order identification, the logistics order identification is printed on the package. In this process, the sender cannot know the recipient's receipt information, thereby avoiding disclosure of the recipient's receipt information.
According to the various embodiments described above, it can be seen that the present invention solves the problem that personal privacy is easy to leak by generating the logistics order identifier according to the receiving information, establishing the correspondence between the logistics order identifier and the receiving information, storing the correspondence in the database, and then returning the logistics order identifier to the technical means of the first client. When the sender delivers goods, only the user identification of the receiver is required to be input, and the server side determines the receiving information through the user identification of the receiver and returns the logistics order identification to the sender, so that only the logistics order identification is required to be displayed on the package. The embodiment of the invention effectively protects the personal information privacy of the user, improves the security of stranger transactions and the user experience of second-hand transactions, and subsequently improves the market liveness of second-hand transactions. Moreover, the embodiment of the invention can play an important role in the C2C logistics industry and ensure the personal information safety of both parties.
Fig. 2 is a schematic diagram of main flow of an information generating method according to a referenceable embodiment of the present invention, where the information generating method may specifically include:
step 201, receiving a user identifier sent by a first client, and searching for receiving information matched with the user identifier in a database according to the user identifier.
When the sender needs to send the express delivery, the user identifier of the receiver can be input into the first client (such as a mobile phone, a tablet computer and a personal computer), and the user identifier of the receiver is sent to the server through the first client. After receiving the user identification sent by the first client, the server searches the receiving information matched with the user identification in a database (the corresponding relation between the user identification and the receiving information is stored in advance) according to the user identification.
Step 202, generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, and storing the corresponding relation into the database.
After the receiving information is determined, the server side generates a logistics order identifier through a logistics system, establishes a corresponding relation between the logistics order identifier and the receiving information, and stores the corresponding relation into the database. Specifically, the receiving address and the receiving phone in the receiving information may be stored in the receiving address field and the receiving phone field corresponding to the sending information, respectively.
And step 203, returning the logistics order identification to the first client.
After the logistics order identification is generated, the service end returns the logistics order identification to the first client end, so that a sender can conveniently track the logistics state. After the first client receives the logistics order identification, the logistics order identification is printed on the package, so that the receiving information of the receiver is prevented from being revealed.
And 204, receiving a logistics order identifier sent by a second client, searching receiving information matched with the logistics order identifier in a database according to the logistics order identifier, and returning the receiving information to the second client.
And when the delivery personnel delivers the package, scanning the logistics order identification on the package through the second client, and then sending the logistics order identification to the server. The second client may be a Personal computer (PDA) DIGITAL ASSISTANT, which is generally carried by the delivery personnel when delivering the package.
After receiving the logistics order identification sent by the second client, the server searches the receiving information matched with the logistics order identification in the database according to the logistics order identification, namely the receiving address and the receiving telephone of the receiver, and then returns the receiving information to the second client. The second client side can be displayed on the screen after receiving the receiving information, so that only the delivery personnel can see the personal information of the addressee, and the personal information safety of the addressee is ensured.
In addition, in the embodiment of the present invention, the implementation of the information generating method is described in detail in the above information generating method, so that the description is not repeated here.
Fig. 3 is a schematic diagram of main flow of an information generating method according to another referenceable embodiment of the present invention, where the information generating method may specifically include:
Step 301, receiving a user identifier sent by a first client;
step 302, judging whether the user identification exists and is valid, if yes, executing step 303, and if not, executing step 309;
step 303, judging whether default information matched with the user identifier exists or not, if so, executing step 304, and if not, executing step 305;
Step 304, obtaining the default information, and using the default information as receiving information matched with the user identifier;
Step 305, searching the distribution information corresponding to the user identifier in the preset time period in the database, judging whether the number of orders corresponding to the user identifier is greater than zero, if so, executing step 306, otherwise, executing step 309;
step 306, obtaining the distribution information with the largest occurrence number in the preset time period, and taking the distribution information as the receiving information matched with the user identifier;
Step 307, generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, and storing the corresponding relation in the database;
step 308, returning the logistics order identification to the first client;
Step 309, a prompt message of "can not use the user identifier to send a mail" is returned to the first client.
In addition, in another embodiment of the present invention, the implementation of the information generating method is described in detail in the above information generating method, so that the description is not repeated here.
One embodiment is specifically described below:
when a sender sends a package, the account name of the recipient (the account name is used as a unique identifier of the user) is filled in, such as wangkaibin;
the server judges that the account name Pin is wangkaibin and is effective;
the server judges that the account name Pin is wangkaibin, and default receiving address information exists;
The server obtains default receiving address information of account name wangkaibin { "address": "Beijing Daxing area economic technology development area scientific originality No. 18 Beijing east building", "phone": "156000888888" }, and takes the default receiving address information as receiving information of the package;
And the server saves the receiving information of the package to a receiving address field and a receiving telephone field corresponding to the sending information. Namely, writing 'Beijing Daxing area economic technology development area science wound No. 18 Beijing Dong mansion' into the receiving address of the package, and writing '156000888888' into the receiving telephone field;
the server side generates a logistics order mark according to the receiving information, establishes a corresponding relation between the logistics order mark and the receiving information, stores the corresponding relation in a database, and then returns the logistics order mark to the client side of the sender.
When the sender's client receives the logistics order identification, the logistics order identification may be printed on the package.
When a delivery person delivers the package, the PDA scans the logistics order mark on the package, and then the logistics order mark is sent to the server.
After receiving the logistics order identification sent by the PDA, the server side searches the receiving information matched with the logistics order identification in the database according to the logistics order identification, namely the receiving address and the receiving telephone of the receiver, namely { "address": "the Beijing Daxing area economic technology development area scientific creation Inlet 18 # the Beijing east building", "phone": "156000888888" }, and then returns the receiving information to the second client side.
The second client side can be displayed on the screen after receiving the receiving information, so that only the delivery personnel can see the personal information of the addressee, and the personal information safety of the addressee is ensured.
Fig. 4 is a schematic diagram of main modules of an information generating apparatus according to an embodiment of the present invention, and as shown in fig. 4, the information generating apparatus 400 includes a receiving module 401, a storing module 402, and a returning module 403. The receiving module 401 receives a user identifier sent by a first client, searches for receiving information matched with the user identifier in a database according to the user identifier, the storage module 402 generates a logistics order identifier according to the receiving information, establishes a corresponding relation between the logistics order identifier and the receiving information, and stores the corresponding relation in the database, and the returning module 403 returns the logistics order identifier to the first client.
Optionally, searching the receiving information matched with the user identifier in the database according to the user identifier, including:
judging whether default information matched with the user identification exists or not;
if yes, taking the default information as receiving information matched with the user identification;
If not, searching the distribution information corresponding to the user identification in the preset time period in the database, and determining the receiving information matched with the user identification according to the distribution information.
Optionally, searching the distribution information corresponding to the user identifier in the preset time period in the database, determining the receiving information matched with the user identifier according to the distribution information, and including:
Searching distribution information corresponding to the user identification in a preset time period in the database, and judging whether the number of orders corresponding to the user identification is larger than zero;
if yes, taking the distribution information with the largest occurrence number in the preset time period as receiving information matched with the user identification;
if not, a prompt message is returned to the first client.
Optionally, the receiving module 401 further receives a logistics order identifier sent by a second client, and searches for receiving information matched with the logistics order identifier in a database according to the logistics order identifier;
the return module 403 further returns the receiving information to the second client.
According to the various embodiments described above, it can be seen that the present invention solves the problem that personal privacy is easy to leak by generating the logistics order identifier according to the receiving information, establishing the correspondence between the logistics order identifier and the receiving information, storing the correspondence in the database, and then returning the logistics order identifier to the technical means of the first client. When the sender delivers goods, only the user identification of the receiver is required to be input, and the server side determines the receiving information through the user identification of the receiver and returns the logistics order identification to the sender, so that only the logistics order identification is required to be displayed on the package. The embodiment of the invention effectively protects the personal information privacy of the user, improves the security of stranger transactions and the user experience of second-hand transactions, and subsequently improves the market liveness of second-hand transactions. Moreover, the embodiment of the invention can play an important role in the C2C logistics industry and ensure the personal information safety of both parties.
The specific implementation of the information generating apparatus according to the present invention is described in detail in the above-described information generating method, and therefore, the description thereof will not be repeated here.
Fig. 5 illustrates an exemplary system architecture 500 to which the information generating method or information generating apparatus of the embodiment of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 504 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the information generating method provided in the embodiment of the present invention is generally performed on the terminal devices 501, 502, 503 in the public place, or may be performed by the server 505, and accordingly, the information generating apparatus is generally provided on the terminal devices 501, 502, 503 in the public place, or may be provided in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Connected to the I/O interface 605 are an input section 606 including a keyboard, a mouse, and the like, an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 608 including a hard disk, and the like, and a communication section 609 including a network interface card such as a LAN card, a modem, and the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as a processor comprising a receiving module, a storage module and a return module, wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As a further aspect, the invention also provides a computer readable medium which may be comprised in the device described in the above embodiments or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the equipment, the equipment comprises a user identifier sent by a first client, receiving information matched with the user identifier in a database according to the user identifier, generating a logistics order identifier according to the receiving information, establishing a corresponding relation between the logistics order identifier and the receiving information, storing the corresponding relation in the database, and returning the logistics order identifier to the first client.
According to the technical scheme provided by the embodiment of the invention, the technical means that the logistics order identification is generated according to the receiving information, the corresponding relation between the logistics order identification and the receiving information is established, the corresponding relation is stored in the database, and then the logistics order identification is returned to the first client, so that the technical problem that personal privacy is easy to leak is solved. When the sender delivers goods, only the user identification of the receiver is required to be input, and the server side determines the receiving information through the user identification of the receiver and returns the logistics order identification to the sender, so that only the logistics order identification is required to be displayed on the package. The embodiment of the invention effectively protects the personal information privacy of the user, improves the security of stranger transactions and the user experience of second-hand transactions, and subsequently improves the market liveness of second-hand transactions. Moreover, the embodiment of the invention can play an important role in the C2C logistics industry and ensure the personal information safety of both parties.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.