CN106203916A - A kind of distributed pickup code generating method - Google Patents

A kind of distributed pickup code generating method Download PDF

Info

Publication number
CN106203916A
CN106203916A CN201610540585.5A CN201610540585A CN106203916A CN 106203916 A CN106203916 A CN 106203916A CN 201610540585 A CN201610540585 A CN 201610540585A CN 106203916 A CN106203916 A CN 106203916A
Authority
CN
China
Prior art keywords
pickup code
generatmg
pickup
express mail
code
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
CN201610540585.5A
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.)
Shenzhen Yihaogui Technology Co Ltd
Original Assignee
Shenzhen Yihaogui Technology 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 Shenzhen Yihaogui Technology Co Ltd filed Critical Shenzhen Yihaogui Technology Co Ltd
Priority to CN201610540585.5A priority Critical patent/CN106203916A/en
Publication of CN106203916A publication Critical patent/CN106203916A/en
Pending legal-status Critical Current

Links

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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0836Recipient pick-ups
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/10Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of distributed pickup code generating method, comprise the steps: that per interval T checks once whether current express delivery cabinet has people using, without people in the generating algorithm using then recursive call pickup code, pre-generatmg pickup code, until the quantity of pre-generatmg pickup code is N number of, and N number of pre-generatmg pickup code is stored in pre-generatmg pickup code table;When courier deposits express mail, obtain express delivery odd numbers and the phone number of addressee, from the N number of pickup code previously generated, take out the pickup code pickup code as this express mail, and this pickup code is deleted from pre-generatmg table, and the part record of depositing of this express mail is stored in the local database;Described part record of depositing includes the pickup code of express mail.The present invention can reduce the pressure of express delivery cabinet server, shortens depositing the part time of courier, improves and deposits part efficiency.

Description

A kind of distributed pickup code generating method
Technical field
The present invention relates to sample cabinet pickup code generation technique field, particularly to a kind of distributed pickup code generation side Method.
Background technology
In the field of express delivery cabinet, courier carries out express mail when send with charge free, it will usually running into addressee cannot be at once The situation of pickup, thus needs courier first express mail to be stored in express delivery cabinet, and courier can cashier's office in a shop input express mail in express delivery Information, comprises the essential information such as cell-phone number of express delivery odd numbers and addressee, after inputting these information and completing, and express delivery cabinet meeting By this express mail information reporting to background server, after server receives this information, generate six figure places can to this express mail Pickup code, this pickup code is cashier's office in a shop unique in this express delivery, is then stored in data base, and returns express delivery cabinet and deposit part and successfully disappear Breath;One SMS of transmission of addressee can be given in backstage simultaneously, and short message content comprises address and six bit digital of express delivery cabinet Pickup code.After pickup people receives note, by the pickup code of six figure places to this express delivery cabinet is got oneself express mail.
Having following weak point in the middle of this process: first, server must generate one for each express mail and exist This express delivery unique pickup code cashier's office in a shop, in order to prevent a pickup code to be reused in the near future, therefore it is required that generate takes Part code is unique in this express delivery in the most continuous 15 days, so generates a pickup code the most time-consuming, if express delivery cabinet ratio More, the pressure of server can be the biggest;Second, courier deposits in the middle of part process, the express mail letter that express delivery cabinet can be deposited courier Breath reports server, waits server to generate pickup code, returns again to deposit the successful message of part to express delivery cabinet, deposit part flow process and just calculate knot Bundle, if the time generating pickup code is the longest, the time that courier deposits an express mail is long, deposits part efficiency comparison low.
Summary of the invention
During it is an object of the invention to overcome existing pickup code to generate the longest, to bigger the lacking of server stress Fall into, it is provided that a kind of distributed pickup code generating method, it is possible to reduce the pressure of express delivery cabinet server, shorten depositing of courier The part time, improve and deposit part efficiency.
The technical scheme is that
A kind of distributed pickup code generating method, comprises the steps:
Per interval T checks once whether current express delivery cabinet has people using, and is using then recursive call pickup without people The generating algorithm of code, pre-generatmg pickup code, until the quantity of pre-generatmg pickup code is N number of, and N number of pre-generatmg pickup code is stored In pre-generatmg pickup code table;
When courier deposits express mail, obtain express delivery odd numbers and the phone number of addressee, take from the N number of pickup code previously generated Go out the pickup code pickup code as this express mail, and this pickup code is deleted from pre-generatmg table, and this express mail deposited part Record storage is in the local database;Described part record of depositing includes the pickup code of express mail.
Preferably, the express mail before deleting M days from local data base every day deposits part record, so that in local data base Store the express mail in nearest M days and deposit part record.
Preferably, the generating algorithm of described pickup code includes:
The numeral of one L figure place of stochastic generation, is converted into this numeral six digital character strings, as pickup code, and guarantees This pickup code is not the most in pre-generatmg pickup code table, the most in the local database.
Preferably, T is 10 minutes.
Preferably, N is equal to 200.
Preferably, M is equal to 15.
Preferably, L is equal to 6.
Beneficial effects of the present invention is embodied in following aspect: the distributed pickup code generating method that the present invention provides, Generate pickup code when of the express delivery cabinet free time, extract the when of needs, it is possible to the pressure reducing express delivery cabinet server shortens Courier deposits the part time, improves and deposits part efficiency.The pickup code generated will not with 15 days in the pickup code-phase that used with, improve Safety, prevents the express mail from maliciously being taken away.
Accompanying drawing explanation
Fig. 1 is the flow chart previously generating pickup code of the present invention.
Fig. 2 is pickup code generating algorithm flow chart of the present invention.
Fig. 3 is that courier deposits part process flow diagram flow chart.
Detailed description of the invention
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to description literary composition Word can be implemented according to this.
The invention provides a kind of distributed pickup code generating method, comprise the steps:
Step one: as it is shown in figure 1, express delivery cabinet checks once every 10 minutes whether current express delivery cabinet has people using, if do not had Someone just checks whether the pickup code number previously generated has 200, if less than 200, then starting generation and take in use Part code, the generating algorithm of recursive call pickup code, until the quantity of pre-generatmg pickup code is 200, then pre-by 200 Generate pickup code to store in pre-generatmg pickup code table.
Step 2: the when that courier depositing express mail, inputs the essential information of express mail, including express delivery odd numbers, addressee After the phone number of people, express delivery cabinet can take out a pickup code as this express mail from 200 the pickup codes previously generated Pickup code, and this pickup code is deleted from pre-generatmg table, then this is deposited number of packages evidence, including odd numbers, the addressee of this express mail The pickup code of people's cell-phone number and this part express mail stores in the local database and reports server.
Step 3: server receives deposits number of packages evidence afterwards, and pickup code and express delivery cabinet address are sent to addressee, and notice is received Part people goes express delivery cabinet pickup with pickup code.
In another embodiment, express delivery cabinet can be every day 0 when, and that deletes before 15 days from local data base is fast Part deposits part record, makes the express mail stored in local data base formula in nearest 15 days deposit part record.
As in figure 2 it is shown, in step one, the generating algorithm of pickup code is: the numeral of one six figure place of stochastic generation, by this number Word is converted into 6 digital character strings, as pickup code, then judge this pickup code whether in pre-generatmg pickup code table, if , then need to regenerate, different to guarantee each pickup code;If not existing, in addition it is also necessary to judge that whether this pickup code is at express mail In storage local data base, if regenerating being also required to, to guarantee that the pickup code generated will not use in 15 days Pickup code-phase with.If the pickup code of stochastic generation is not the most in pre-generatmg pickup code table, do not store local data at express mail In storehouse, then the pickup code generated is effective, can be stored in pre-generatmg pickup code table by this pickup code.
As it is shown on figure 3, in step 2, courier deposits the flow process of express mail and is: first courier is on express delivery cabinet interface Log in, after logining successfully, then enter main interface, click on and deposit part, the odd numbers of scanning express mail, and input both sides addressee continuously After people's cell-phone number, express delivery cabinet can open a bin, and prompting courier puts into express mail, and closes the door.Courier puts into express mail also After closing bin, express delivery cabinet ejects prompting, and inquiry express mail has been put well, if not putting well, needs motor again to deposit part.If After putting well, from pre-generatmg pickup code table, take out a pickup code, and this pickup code is removed from pre-generatmg pickup code table.? This pickup code, as the pickup code of this express mail, is stored in local data base, and the part record of depositing of this this express mail is reported service Device, after server receives express mail information, sends an SMS to addressee, comprises pickup code and express delivery cabinet address, notifies addressee Express delivery cabinet pickup is gone with pickup code.
The distributed pickup code generating method that the present invention provides, generates pickup code the express delivery cabinet free time when, needs When extract, it is possible to the pressure reducing express delivery cabinet server shortens the depositing the part time of courier, improves and deposits part efficiency.Raw The pickup code become will not with 15 days in the pickup code-phase that used with, improve safety, prevent express mail from maliciously being taken away.
Embodiment of the present invention are disclosed as above, but it is not restricted in description and embodiment listed fortune With.It can be applied to various applicable the field of the invention completely.For those skilled in the art, can be easily real The most other amendment.Therefore, under the general concept limited without departing substantially from claim and equivalency range, the present invention is not limited to Specific details and shown here as with the legend described.

Claims (7)

1. a distributed pickup code generating method, it is characterised in that comprise the steps:
Per interval T checks once whether current express delivery cabinet has people using, and is using then recursive call pickup without people The generating algorithm of code, pre-generatmg pickup code, until the quantity of pre-generatmg pickup code is N number of, and N number of pre-generatmg pickup code is stored In pre-generatmg pickup code table;
When courier deposits express mail, obtain express delivery odd numbers and the phone number of addressee, take from the N number of pickup code previously generated Go out the pickup code pickup code as this express mail, and this pickup code is deleted from pre-generatmg table, and this express mail deposited part Record storage is in the local database;Described part record of depositing includes the pickup code of express mail.
Distributed pickup code generating method the most according to claim 1, it is characterised in that every day is from local data base Express mail before deleting M days deposits part record, so that the express mail stored in local data base in nearest M days deposits part record.
Distributed pickup code generating method the most according to claim 2, it is characterised in that the generation of described pickup code is calculated Method includes:
The numeral of one L figure place of stochastic generation, is converted into this numeral six digital character strings, as pickup code, and guarantees This pickup code is not the most in pre-generatmg pickup code table, the most in the local database.
Distributed pickup code generating method the most according to claim 1, it is characterised in that T is 10 minutes.
Distributed pickup code generating method the most according to claim 1, it is characterised in that N is equal to 200.
Distributed pickup code generating method the most according to claim 2, it is characterised in that M is equal to 15.
Distributed pickup code generating method the most according to claim 3, it is characterised in that L is equal to 6.
CN201610540585.5A 2016-07-11 2016-07-11 A kind of distributed pickup code generating method Pending CN106203916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610540585.5A CN106203916A (en) 2016-07-11 2016-07-11 A kind of distributed pickup code generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610540585.5A CN106203916A (en) 2016-07-11 2016-07-11 A kind of distributed pickup code generating method

Publications (1)

Publication Number Publication Date
CN106203916A true CN106203916A (en) 2016-12-07

Family

ID=57474061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610540585.5A Pending CN106203916A (en) 2016-07-11 2016-07-11 A kind of distributed pickup code generating method

Country Status (1)

Country Link
CN (1) CN106203916A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766169A (en) * 2017-09-12 2018-03-06 深圳市丰巢科技有限公司 A kind of pickup code generating method, storage device and electronic equipment
CN109472331A (en) * 2018-11-16 2019-03-15 努比亚技术有限公司 Generation method, device, mobile terminal and the storage medium of traffic payment graphic code
CN109948988A (en) * 2019-03-28 2019-06-28 上海中通吉网络技术有限公司 A kind of package management method
CN111696275A (en) * 2020-06-18 2020-09-22 深圳市丰巢科技有限公司 Method, device, server and storage medium for identifying identity of pickup person
CN112735051A (en) * 2021-02-07 2021-04-30 圆通速递有限公司 Express cabinet sharing method and system
CN113112700A (en) * 2021-03-08 2021-07-13 中国—东盟信息港股份有限公司 Internet of things connection service system and method
CN113436394A (en) * 2021-03-23 2021-09-24 浙江口碑网络技术有限公司 Storage method and device of intelligent cabinet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203149724U (en) * 2013-03-29 2013-08-21 北京聚宝信通科技有限公司 Intelligent self-service pick-up system
CN103310323A (en) * 2013-06-18 2013-09-18 四川九洲电器集团有限责任公司 Method and device for picking up logistical parcels via mobile phones
CN103584701A (en) * 2013-11-30 2014-02-19 耿晓菊 Intelligent mailbox, intelligent mail box system and related method
CN104616402A (en) * 2015-02-13 2015-05-13 广州硕鑫网络科技有限公司 System for mobile client terminal to rent and control storage cabinet
CN104616159A (en) * 2015-02-14 2015-05-13 成都我来啦网格信息技术有限公司 Intelligent locker express item picking method based on cooperation E-business

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203149724U (en) * 2013-03-29 2013-08-21 北京聚宝信通科技有限公司 Intelligent self-service pick-up system
CN103310323A (en) * 2013-06-18 2013-09-18 四川九洲电器集团有限责任公司 Method and device for picking up logistical parcels via mobile phones
CN103584701A (en) * 2013-11-30 2014-02-19 耿晓菊 Intelligent mailbox, intelligent mail box system and related method
CN104616402A (en) * 2015-02-13 2015-05-13 广州硕鑫网络科技有限公司 System for mobile client terminal to rent and control storage cabinet
CN104616159A (en) * 2015-02-14 2015-05-13 成都我来啦网格信息技术有限公司 Intelligent locker express item picking method based on cooperation E-business

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766169A (en) * 2017-09-12 2018-03-06 深圳市丰巢科技有限公司 A kind of pickup code generating method, storage device and electronic equipment
CN107766169B (en) * 2017-09-12 2021-05-28 深圳市丰巢科技有限公司 Pickup code generation method, storage device and electronic device
CN109472331A (en) * 2018-11-16 2019-03-15 努比亚技术有限公司 Generation method, device, mobile terminal and the storage medium of traffic payment graphic code
CN109472331B (en) * 2018-11-16 2024-02-20 努比亚技术有限公司 Method and device for generating traffic payment graphic code, mobile terminal and storage medium
CN109948988A (en) * 2019-03-28 2019-06-28 上海中通吉网络技术有限公司 A kind of package management method
CN111696275A (en) * 2020-06-18 2020-09-22 深圳市丰巢科技有限公司 Method, device, server and storage medium for identifying identity of pickup person
CN112735051A (en) * 2021-02-07 2021-04-30 圆通速递有限公司 Express cabinet sharing method and system
CN113112700A (en) * 2021-03-08 2021-07-13 中国—东盟信息港股份有限公司 Internet of things connection service system and method
CN113436394A (en) * 2021-03-23 2021-09-24 浙江口碑网络技术有限公司 Storage method and device of intelligent cabinet

Similar Documents

Publication Publication Date Title
CN106203916A (en) A kind of distributed pickup code generating method
CN107944868A (en) A kind of electronics deposit system and management method based on block chain intelligence contract
CN101958848B (en) There is the answer system that the social community of collaboration constraints generates
CN104573094B (en) Network account identifies matching process
CN105027196A (en) Fast out-of-vocabulary search in automatic speech recognition systems
CN107147501A (en) Timestamp processing method and processing device
CN102902762B (en) A kind of methods, devices and systems of deleting duplicated data
CN106648903A (en) Method and system for calling distributed file system
CN104637185A (en) Offline box opening method of intelligent storage cabinet
CN102291693B (en) A kind of converged message service implementation method and device based on terminal
CN110648112A (en) Information change notification method and system for JIRA system
CN105791099A (en) Message prompting method, device and system
CN106126356A (en) The realization of a kind of server buffer, generation method and system
CN105023137A (en) E-mail evidence processing system and processing method
CN104636477A (en) Push list duplicate removal method before information push
CN111461751A (en) Block chain-based house property information chain organization method, historical state tracing method and device
CN103903124A (en) E-mail processing method and apparatus
CN107644106A (en) The internuncial method of automatic mining business, terminal device and storage medium
CN102651714B (en) A kind of time slot scrambling of addresses of items of mail and device
CN106033438A (en) Public sentiment data storage method and server
CN108462625B (en) Method and device for determining recipients in process of replying electronic mail
CN106250501A (en) Report processing method and reporting system
CN104363160B (en) It is a kind of to carry the email processing method of document attachment, device and system
CN104579920A (en) Mail sending method and device
CN107886008A (en) File management method and system

Legal Events

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

Application publication date: 20161207

WD01 Invention patent application deemed withdrawn after publication