CN109271388A - A kind of generation method and terminal device of Identity Code - Google Patents

A kind of generation method and terminal device of Identity Code Download PDF

Info

Publication number
CN109271388A
CN109271388A CN201811152184.8A CN201811152184A CN109271388A CN 109271388 A CN109271388 A CN 109271388A CN 201811152184 A CN201811152184 A CN 201811152184A CN 109271388 A CN109271388 A CN 109271388A
Authority
CN
China
Prior art keywords
request
data processing
processing request
data
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
CN201811152184.8A
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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811152184.8A priority Critical patent/CN109271388A/en
Publication of CN109271388A publication Critical patent/CN109271388A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of generation method of Identity Code and terminal devices, obtain a data processing request first;Then distributed lock is utilized to obtain the machine identities code for uniquely characterizing the data processing request corresponding server, in addition, the corresponding serial number of the data processing request and time parameter can be obtained;It is then based on the machine identities code, the serial number of the data processing request, the time parameter of the data processing request generates the request of data Identity Code for uniquely characterizing the data processing request.

Description

A kind of generation method and terminal device of Identity Code
Technical field
This application involves the generation methods and terminal device of field of communication technology more particularly to a kind of Identity Code.
Background technique
With the continuous development of science and technology, the communication technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various conveniences of development in science and technology bring.Present people can be set by various types of electronics It is standby, it enjoys as development in science and technology bring is comfortably lived.
And for current distributed system, for each request of data, can all carry out from increasing in the database Column number, but the source of each request of data can not be distinguished from increasing column number, such as request of data pair can not be distinguished The server answered.
Summary of the invention
The present invention provides a kind of generation method of Identity Code and terminal devices, to solve or partially solve from increasing Sequence number can not distinguish the technical issues of server of each request of data.
In order to solve the above technical problems, the present invention provides a kind of generation methods of Identity Code, which comprises
Obtain a data processing request;
Obtain the machine identities code for uniquely characterizing the data processing request corresponding server;The machine body Part identification code is configured using distributed lock;
Processing request based on the data, obtains the corresponding serial number of the data processing request and time parameter;
Based on the machine identities code, the serial number of the data processing request, the data processing request when Between parameter, generate for uniquely characterizing the request of data Identity Code of the data processing request.
Preferably, the request of data Identity Code by N decimal number indicate, N >=19 and be integer;
Wherein, N of the decimal number include: at least ten three-figure data processing requests time parameter, The serial number of the three-figure machine identities code, at least three-figure data processing request.
Preferably, after the request of data Identity Code generated for uniquely characterizing the data processing request, The method also includes:
M first request relevant with the data processing request is obtained, M is positive integer;
The request of data Identity Code is encapsulated into the M first request.
Preferably, the data processing request is specially ad-request;
After the request of data Identity Code generated for uniquely characterizing the data processing request, the method Further include:
Obtain advertisement exposure request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement exposure request, for characterizing State advertisement exposure request.
Preferably, after the request of data Identity Code generated for uniquely characterizing the data processing request, The method also includes:
Obtain advertisement downloading request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement downloading request, for characterizing State advertisement downloading request.
Preferably, the machine identities code obtained for uniquely characterizing the data processing request corresponding server Later, the method also includes:
If detecting the data processing request processing time-out, the machine identities code is discharged.
Another aspect of the present invention provides a kind of terminal device, comprising:
First obtains module, for obtaining a data processing request;
Second obtains module, for obtaining the machine identity for being used for uniquely characterizing the data processing request corresponding server Identification code;The machine identities code is configured using distributed lock;
Third obtains module, for processing request based on the data, obtains the corresponding flowing water of the data processing request Number and time parameter;
Generation module, for being based on the machine identities code, the serial number of the data processing request, the data The time parameter of request is handled, the request of data Identity Code for uniquely characterizing the data processing request is generated.
Preferably, the request of data Identity Code by N decimal number indicate, N >=19 and be integer;
Wherein, N of the decimal number include: at least ten three-figure data processing requests time parameter, The three-figure machine identities code, the serial number of at least three-figure data processing request.
Preferably, the terminal device further include:
4th obtains module, and for obtaining M first request relevant with the data processing request, M is positive integer;
First package module, for the request of data Identity Code to be encapsulated into the M first request.
Preferably, the data processing request is specially ad-request;
The terminal device further include:
5th obtains module, for obtaining advertisement exposure request;
Second package module, for the request of data Identity Code of the ad-request to be encapsulated into the advertisement exposure In request, for characterizing the advertisement exposure request.
Preferably, the terminal device further include:
6th obtains module, for obtaining advertisement downloading request;
Third package module is downloaded for the request of data Identity Code of the ad-request to be encapsulated into the advertisement In request, for characterizing the advertisement downloading request.
Preferably, the terminal device further include:
Release module, if discharging the machine identities for detecting the data processing request processing time-out Code.
The invention discloses a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed The step of above method is realized when device executes.
The invention discloses a kind of computer equipment, including memory, processor and storage on a memory and can located The step of computer program run on reason device, the processor realizes the above method when executing described program.
One or more technical solution through the invention, the invention has the advantages that advantage:
The invention discloses a kind of generation method of Identity Code and terminal device, this method is mainly used for server Side, comprising: obtain a data processing request first;Then it obtains for uniquely characterizing the corresponding clothes of the data processing request The machine identities code of business device;And machine identities code is configured using distributed lock, and distributed lock is used to configure The machine identities code of Servers-all, and different servers has different machine identities codes, and then with area Not other servers.Further, it processing can request based on the data, obtain the corresponding flowing water of the data processing request Number and time parameter;It is then based on the machine identities code, the serial number of the data processing request, the data processing The time parameter of request generates the request of data Identity Code for uniquely characterizing the data processing request, and then all Data processing request have respective request of data Identity Code, when handling different data processing requests at the same time, then It will not cause confusion.It can be seen that not only containing the flowing water of data processing request in request of data Identity Code of the present invention Number, the time parameter of the data processing request, to distinguish the difference of the data processing request He other data processing requests, In addition also the machine identities code of server is placed in request of data Identity Code, so if there are multiple data processings to ask All, the machine identities code that also can use server distinguishes this multiple data for the serial number asked, time parameter Handle the source of request.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the implementation process figure of the generation method of Identity Code according to an embodiment of the invention;
Fig. 2 shows the schematic diagrames of terminal device according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of generation method of Identity Code, this method is applied to server side, and It actually include many servers in distributed system in the embodiment of the present invention, and for each server The generation method of following Identity Codes can be used.
Referring to Fig. 1, the method in the embodiment of the present invention includes the following steps:
Step 11, a data processing request is obtained.
In the specific implementation process, which is to be sent by user terminal, and data processing request can be with It is multiple types, such as: ad-request, bank data processing request, live data request etc..That is, user terminal On many APP, such as live streaming software, browser software, banking software, motion software, chat software etc. can be installed. And different software is corresponding with different servers.Such as live streaming software is corresponding with the server of response live data, browser Software be corresponding with response web browsing data all kinds of servers (such as response browser page on ad-request advertiser Server, the server for responding video playing data etc.), corresponding server etc. is requested in response bank data processing.
Therefore, each user terminal can actually have data interaction with multiple and different servers.
And for the server of identical type, such as advertiser servers, it actually can receive different use The data processing request that family terminal is sent.
The server for including in the distributed system of the embodiment of the present invention refers to being able to respond the data processing request Server.Such as it is able to respond the server of ad-request, or be able to respond the server of bank data processing request.Therefore And the acquisition data processing request in the present embodiment, some server actually referred in distributed system are obtained by certain The data processing request that a user terminal is sent, the treatment process of other servers is similar, so repeat no more.
Step 12, the machine identities code for uniquely characterizing the data processing request corresponding server is obtained.
In the specific implementation process, the machine identities code is configured using distributed lock.Utilize distribution Lock carrys out dispensation machines Identity Code, is the special mode of one kind of dispensation machines Identity Code in distributed system.Specifically For, the unique ip address of server is obtained using zookeeper distributed lock, and then obtain at least three of distributed environment The lease of several machine identities code ID, and guarantee holding for the machine ID by periodically re-renting.
And for the server with distribution requirements in distributed system, distributed lock can be in the way of from increasing Successively to its dispensation machines ID.For example, it is assumed that machine ID is three digits 000~999, then distributed lock can be according to distribution request Time sequencing machine ID is sequentially allocated according to 000~999 decimal number to each server for initiating distribution request, so respectively The machine ID of server is exactly the number in 000~999.That is, distributed lock is merely able to distribute 1000 servers Machine ID, if being more than the server after 1000 servers, such as the 1001st is initiated distribution requirements to distributed lock Server, then only waiting number is after the server in 001~999 releases machine ID, and distributed lock just can be to its point With machine ID.
And the opportunity of server release machine ID, include at least following several situations: server process finishes data processing Request, data processing request time-out etc..
So the machine ID of the server can be obtained from distributed lock for server in this present embodiment.
From the acquisition pattern of machine ID described in this embodiment it is found that the present embodiment is actually to utilize distributed lock Machine ID is obtained, and the machine ID of different server is different, and then can be used for distinguishing different in distributed system Server.In addition, then machine ID can be distributed by configuring under distributed locking wire on line.
Step 13, processing request based on the data obtains the corresponding serial number of the data processing request and time ginseng Number.
In the specific implementation process, for server, a data processing request, the data processing are often received Request can all have corresponding serial number and time parameter.What serial number indicated is the arrangement of the data processing request in the server Serial number, because other than the data processing request, server also will receive other requests, and each request is according to receiving Sequence arranged, such as 002, expression is that the data processing request is in No. 002.Serial number increases sequence, every receipts certainly To a data processing request serial number with regard to+1.Time parameter is the time for receiving the data processing request, and time parameter has more Kind representation, such as the combination of the one or more kinds of representations of year, month, day, hour, minute, second, millisecond etc..With year, For the moon, day, minute, second, millisecond, one shares 13 decimal numbers.Such as 1802193656345 indicate be at the data Reason request is No. 19 345 milliseconds of acquisitions in 56 seconds the 36th minute in 2 months 18 years.In conjunction with above-mentioned serial number, then the data processing request It is the 002nd number processing request in No. 19 345 milliseconds of acquisitions in 56 seconds the 36th minute in 2 months 18 years.With year, month, day, hour, For minute, second, millisecond, and combine above-mentioned serial number.Such as time parameter is 20180903131356400, serial number is 002, expression be the data processing request be 2018 09 month No. 03 13 points 13 minutes 56 seconds 400 milliseconds when 002 number that obtains It is requested according to processing.
As a kind of optional embodiment, since different servers can receive respective data processing request, so not The time parameter of data processing request in same server may be consistent with serial number.Such as data processing of server A 002 number that request obtains when being 2018 09 month No. 03 13 points 13 minutes 56 seconds 400 milliseconds handles request.Server B is somebody's turn to do 002 number that data processing request obtains when being 2018 09 month No. 03 13 points 13 minutes 56 seconds 400 milliseconds handles request.Two The number of the data processing request of server is consistent, and is handled if being all put into distributed system, and confusion will occur. So this case occurs in order to prevent, machine identities code can also be placed in data processing request and carry out area by the present embodiment Point.Specifically please refer to following step.
Step 14, it is based on the machine identities code, the serial number of the data processing request, the data processing is asked The time parameter asked generates the request of data Identity Code for uniquely characterizing the data processing request.
It in the specific implementation process, include the machine identities code in request of data Identity Code, it is described The serial number of data processing request, the time parameter of the data processing request.In order to distinguish the data processing of different server Request, is also encapsulated into data processing request for the machine ID for being used to characterize server.
The machine identities code, the serial number of the data processing request, the time ginseng of the data processing request When number these three parameters arrangement, can arbitrarily it arrange.
And the request of data Identity Code of the present embodiment, it by N decimal numbers expressions, N >=19 and is positive integer.Its In, N of the decimal number includes: the time parameter of at least ten three-figure data processing requests, three-figure institute State machine identities code, the serial number of at least three-figure data processing request.
By taking 19 metric request of data Identity Codes as an example, arrangement mode is to join the time of data processing request The serial number of number, machine identities code, data processing request.Assuming that 19 request of data Identity Codes are 1802193656345001002 and 1802193656345003002.Wherein, in 1802193656345001002, 1802193656345 expressions are time parameters, and 001 expression is server machine ID code, and 002 is serial number.? In 1802193656345003002,1802193656345 expressions are time parameters, and 003 expression is server machine ID Code, 002 is serial number.
Certainly, other than 19 decimal numbers, it can also be that other digits indicate.Such as 24 digit decimal number It indicates, 20180219133656345 (time parameter) 001 (machine ID) 002 (serial number).
Distributed lock guarantees the uniqueness of each server by machine ID (supporting 1000 machines), that is to say, that single machine It is interior to guarantee that uniquely storage occupies little space by millisecond rank serial number.
In addition, since the present embodiment is using at least 19 decimal number expression request of data Identity Codes, therefore And the actually snowflake algorithm phase of 64 integers of long type and other schemes such as witter is converted into after 2 systems Than the space for needing to store is smaller.
It is the generation method that request of data Identity Code is generated for data processing request, the request of data body above The relevant all requests operations of the data processing request can all be together in series by part identification code.That is, the data processing is asked Ask relevant all request operations that can all carry the request of data Identity Code, and then can be with other data processing requests Operation distinguishes.
And as a kind of optional embodiment, generating the request of data body for uniquely characterizing the data processing request After part identification code, the method also includes:
M first request relevant with the data processing request is obtained, M is positive integer;By the request of data identity Identification code is encapsulated into the M first request.
Specifically, during determining the correlation of the data processing request and the first request, if data processing The operation object of request and the first request is same operation object, then it represents that data processing request is related to the first request.For example, Data processing request and the first request are operated both for the same advertisement.
If data processing request and the first request carry identical label, then it represents that data processing request and the first request It is related.For example, data processing request and the first request all carry the mark of industrial and commercial bank, or all carry RMB mark Label, or identical keyword is all carried, such as oatmeal advertisement.
And as a kind of optional embodiment, data processing request disclosed in the present embodiment does not limit type, such as Ad-request, bank data processing request, live data request etc..
Below by taking the data processing request is specially ad-request as an example, ad-request refers to that user terminal requests add Carry the request of advertisement.
When browser opens Webpage, server will obtain ad-request, and be based on the ad-request carrying advertisement. And in the present embodiment, then the request of data Identity Code for uniquely characterizing ad-request can be generated based on ad-request. Further, after carrying advertisement, server can also obtain the advertisement exposure request of an ad-request, and advertisement exposure is requested, It refers to for advertisement being presented on the request being exposed in Webpage or display interface etc..Advertisement exposure request request with The forms such as advertisement pop-up, advertisement link show one or more advertisement.So then can after obtaining advertisement exposure request The request of data Identity Code of the ad-request is encapsulated into the advertisement exposure request, is exposed for characterizing the advertisement Light request.
Further, after generating the request of data Identity Code for uniquely characterizing the data processing request, Advertisement downloading request can also be obtained;The request of data Identity Code of the ad-request is encapsulated into the advertisement downloading In request, for characterizing the advertisement downloading request.Specifically, after advertisement exposes on Webpage, if user clicks The advertisement is downloaded, then server can receive the advertisement downloading request of user terminal transmission, and then can be by the data of ad-request Request Identity Code is encapsulated into the advertisement downloading request.
It is that the implementation process carried out for ad-request can also be other data other than ad-request above Processing request.The present embodiment with bank handle data instance, it is assumed that bank handle data be remittance data of transferring accounts, then then according to The method of the present embodiment is based on the remittance data of transferring accounts and generates request of data Identity Code.Further, and phase of remitting money of transferring accounts The request of pass operates, such as the request that queries the balance, payment request, credit card repayment request etc., can use identical number According to request Identity Code.
It is worth noting that, the present embodiment is not limited in advertisement, bank etc. etc., other aspects are for example broadcast live, chat It etc. actually can also be using the method provided in the present embodiment.So the method in the present embodiment can actually be applied To multiple fields, such as payment technical field, advertisement field, live streaming field etc..All applications relevant with the present embodiment all should Within the protection scope of the present embodiment.
As a kind of optional embodiment, the machine for uniquely characterizing the data processing request corresponding server is being obtained After device Identity Code, if detecting data processing request processing time-out, that is, data processing request is more than the One preset time threshold is also untreated, then discharges the machine identities code.Further, in response data processing request Afterwards, if the first request relevant with data processing request is not detected in the second preset time threshold, the machine is also discharged Identity Code.
Based on identical inventive concept, the embodiment of the invention discloses a kind of terminal devices, referring to Fig. 2, comprising:
First obtains module 21, for obtaining a data processing request;
Second obtains module 22, for obtaining the machine body for being used for uniquely characterizing the data processing request corresponding server Part identification code;The machine identities code is configured using distributed lock;
Third obtains module 23, for processing request based on the data, obtains the corresponding stream of the data processing request Water number and time parameter;
Generation module 24, for being based on the machine identities code, the serial number of the data processing request, the number According to the time parameter of processing request, the request of data Identity Code for uniquely characterizing the data processing request is generated.
As a kind of optional embodiment, the request of data Identity Code is indicated by N decimal numbers, N >=19 It and is positive integer;
Wherein, N of the decimal number include: at least ten three-figure data processing requests time parameter, The three-figure machine identities code, the serial number of at least three-figure data processing request.
As a kind of optional embodiment, the terminal device further include:
4th obtains module, and for obtaining M first request relevant with the data processing request, M is positive integer;
First package module, for the request of data Identity Code to be encapsulated into the M first request.
As a kind of optional embodiment, the data processing request is specially ad-request;
The terminal device further include:
5th obtains module, for obtaining advertisement exposure request;
Second package module, for the request of data Identity Code of the ad-request to be encapsulated into the advertisement exposure In request, for characterizing the advertisement exposure request.
As a kind of optional embodiment, the terminal device further include:
6th obtains module, for obtaining advertisement downloading request;
Third package module is downloaded for the request of data Identity Code of the ad-request to be encapsulated into the advertisement In request, for characterizing the advertisement downloading request.
As a kind of optional embodiment, the terminal device further include:
Release module, if discharging the machine identities for detecting the data processing request processing time-out Code.
Based on inventive concept same in previous embodiment, the embodiment of the present invention also provides a kind of computer-readable storage The step of medium is stored thereon with computer program, and any the method above is realized when which is executed by processor.
Based on inventive concept same in previous embodiment, the embodiment of the present invention also provides a kind of computer equipment, wraps The computer program that includes memory, processor and storage on a memory and can run on a processor, the processor execute The step of any the method above is realized when described program.
One or more embodiment through the invention, the invention has the advantages that advantage:
The invention discloses a kind of generation method of Identity Code and terminal device, this method is mainly used for server Side, comprising: obtain a data processing request first;Then it obtains for uniquely characterizing the corresponding clothes of the data processing request The machine identities code of business device;And machine identities code is configured using distributed lock, and distributed lock is used to configure The machine identities code of Servers-all, and different servers has different machine identities codes, and then with area Not other servers.Further, it processing can request based on the data, obtain the corresponding flowing water of the data processing request Number and time parameter;It is then based on the machine identities code, the serial number of the data processing request, the data processing The time parameter of request generates the request of data Identity Code for uniquely characterizing the data processing request, and then all Data processing request have respective request of data Identity Code, when handling different data processing requests at the same time, then It will not cause confusion.It can be seen that not only containing the flowing water of data processing request in request of data Identity Code of the present invention Number, the time parameter of the data processing request, to distinguish the difference of the data processing request He other data processing requests, In addition also the machine identities code of server is placed in request of data Identity Code, so if there are multiple data processings to ask All, the machine identities code that also can use server distinguishes this multiple data for the serial number asked, time parameter Handle the source of request.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of generation method of Identity Code, which is characterized in that the described method includes:
Obtain a data processing request;
Obtain the machine identities code for uniquely characterizing the data processing request corresponding server;The machine body Part identification code is configured using distributed lock;
Processing request based on the data, obtains the corresponding serial number of the data processing request and time parameter;
Based on the machine identities code, the serial number of the data processing request, the data processing request when Between parameter, generate for uniquely characterizing the request of data Identity Code of the data processing request.
A2, method as described in a1, which is characterized in that the request of data Identity Code is by N decimal number tables Show, N >=19 and be integer;
Wherein, N of the decimal number include: at least ten three-figure data processing requests time parameter, The serial number of the three-figure machine identities code, at least three-figure data processing request.
A3, method as described in a1, which is characterized in that the number generated for uniquely characterizing the data processing request After request Identity Code, the method also includes:
M first request relevant with the data processing request is obtained, M is positive integer;
The request of data Identity Code is encapsulated into the M first request.
A4, method as described in a1, which is characterized in that the data processing request is specially ad-request;
After the request of data Identity Code generated for uniquely characterizing the data processing request, the method Further include:
Obtain advertisement exposure request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement exposure request, for characterizing State advertisement exposure request.
A5, the method as described in A4, which is characterized in that the number generated for uniquely characterizing the data processing request After request Identity Code, the method also includes:
Obtain advertisement downloading request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement downloading request, for characterizing State advertisement downloading request.
A6, method as described in a1, which is characterized in that described obtain corresponds to for uniquely characterizing the data processing request After the machine identities code of server, the method also includes:
If detecting the data processing request processing time-out, the machine identities code is discharged.
B7, a kind of terminal device characterized by comprising
First obtains module, for obtaining a data processing request;
Second obtains module, for obtaining the machine identity for being used for uniquely characterizing the data processing request corresponding server Identification code;The machine identities code is configured using distributed lock;
Third obtains module, for processing request based on the data, obtains the corresponding flowing water of the data processing request Number and time parameter;
Generation module, for being based on the machine identities code, the serial number of the data processing request, the data The time parameter of request is handled, the request of data Identity Code for uniquely characterizing the data processing request is generated.
B8, terminal device as described in b7, which is characterized in that the request of data Identity Code is by N decimal system Number indicate, N >=19 and be integer;
Wherein, N of the decimal number include: at least ten three-figure data processing requests time parameter, The three-figure machine identities code, the serial number of at least three-figure data processing request.
B9, terminal device as described in b7, which is characterized in that the terminal device further include:
4th obtains module, and for obtaining M first request relevant with the data processing request, M is positive integer;
First package module, for the request of data Identity Code to be encapsulated into the M first request.
B10, terminal device as described in b7, which is characterized in that the data processing request is specially ad-request;
The terminal device further include:
5th obtains module, for obtaining advertisement exposure request;
Second package module, for the request of data Identity Code of the ad-request to be encapsulated into the advertisement exposure In request, for characterizing the advertisement exposure request.
B11, the terminal device as described in B10, which is characterized in that the terminal device further include:
6th obtains module, for obtaining advertisement downloading request;
Third package module is downloaded for the request of data Identity Code of the ad-request to be encapsulated into the advertisement In request, for characterizing the advertisement downloading request.
B12, terminal device as described in b7, which is characterized in that the terminal device further include:
Release module, if discharging the machine identities for detecting the data processing request processing time-out Code.
C13, a kind of computer readable storage medium, are stored thereon with computer program, which is characterized in that the program is located Manage the step of any one of claim A1-A6 the method is realized when device executes.
D14, a kind of computer equipment, including memory, processor and storage can transport on a memory and on a processor Capable computer program, which is characterized in that the processor is realized described in any one of claim A1-A6 when executing described program The step of method.

Claims (10)

1. a kind of generation method of Identity Code, which is characterized in that the described method includes:
Obtain a data processing request;
Obtain the machine identities code for uniquely characterizing the data processing request corresponding server;The machine identity mark Know code to configure using distributed lock;
Processing request based on the data, obtains the corresponding serial number of the data processing request and time parameter;
Based on the machine identities code, the serial number of the data processing request, the time ginseng of the data processing request Number generates the request of data Identity Code for uniquely characterizing the data processing request.
2. the method as described in claim 1, which is characterized in that the request of data Identity Code is by N decimal numbers Indicate, N >=19 and be integer;
Wherein, N of the decimal number includes: the time parameter of at least ten three-figure data processing requests, three The serial number of several the machine identities code, at least three-figure data processing request.
3. the method as described in claim 1, which is characterized in that described to generate for uniquely characterizing the data processing request After request of data Identity Code, the method also includes:
M first request relevant with the data processing request is obtained, M is positive integer;
The request of data Identity Code is encapsulated into the M first request.
4. the method as described in claim 1, which is characterized in that the data processing request is specially ad-request;
After the request of data Identity Code generated for uniquely characterizing the data processing request, the method is also wrapped It includes:
Obtain advertisement exposure request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement exposure request, it is described wide for characterizing Accuse exposure request.
5. method as claimed in claim 4, which is characterized in that described to generate for uniquely characterizing the data processing request After request of data Identity Code, the method also includes:
Obtain advertisement downloading request;
The request of data Identity Code of the ad-request is encapsulated into the advertisement downloading request, it is described wide for characterizing Accuse downloading request.
6. the method as described in claim 1, which is characterized in that described to obtain for uniquely characterizing the data processing request pair After the machine identities code for answering server, the method also includes:
If detecting the data processing request processing time-out, the machine identities code is discharged.
7. a kind of terminal device characterized by comprising
First obtains module, for obtaining a data processing request;
Second obtains module, for obtaining the machine identities for being used for uniquely characterizing the data processing request corresponding server Code;The machine identities code is configured using distributed lock;
Third obtain module, for based on the data processing request, obtain the corresponding serial number of the data processing request and Time parameter;
Generation module, for being based on the machine identities code, the serial number of the data processing request, the data processing The time parameter of request generates the request of data Identity Code for uniquely characterizing the data processing request.
8. terminal device as claimed in claim 7, which is characterized in that the request of data Identity Code by N ten into Number processed indicates, N >=19 and be integer;
Wherein, N of the decimal number includes: the time parameter of at least ten three-figure data processing requests, three Several machine identities codes, the serial number of at least three-figure data processing request.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-6 the method is realized when row.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the step of any one of claim 1-6 the method when executing described program Suddenly.
CN201811152184.8A 2018-09-29 2018-09-29 A kind of generation method and terminal device of Identity Code Pending CN109271388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811152184.8A CN109271388A (en) 2018-09-29 2018-09-29 A kind of generation method and terminal device of Identity Code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811152184.8A CN109271388A (en) 2018-09-29 2018-09-29 A kind of generation method and terminal device of Identity Code

Publications (1)

Publication Number Publication Date
CN109271388A true CN109271388A (en) 2019-01-25

Family

ID=65195205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811152184.8A Pending CN109271388A (en) 2018-09-29 2018-09-29 A kind of generation method and terminal device of Identity Code

Country Status (1)

Country Link
CN (1) CN109271388A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021217863A1 (en) * 2020-04-29 2021-11-04 平安科技(深圳)有限公司 Order identifier generation method and apparatus, server, and storage medium
CN114462979A (en) * 2022-02-24 2022-05-10 北京京东振世信息技术有限公司 Data identifier generation method, device, equipment, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647763A (en) * 2013-11-28 2014-03-19 北京掌阔移动传媒科技有限公司 Mobile terminal advertisement invoking method and system
US20170193559A1 (en) * 2015-12-30 2017-07-06 Vizury Interactive Solutions Private Limited Computer implemented method for partner pixelling for user identification
CN107360224A (en) * 2017-07-07 2017-11-17 携程旅游信息技术(上海)有限公司 Sequence number generation method, system, equipment and storage medium in distributed system
CN108089916A (en) * 2017-12-15 2018-05-29 北京搜狐新媒体信息技术有限公司 A kind of method and device for generating ID
CN108459939A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 A kind of log collecting method, device, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647763A (en) * 2013-11-28 2014-03-19 北京掌阔移动传媒科技有限公司 Mobile terminal advertisement invoking method and system
US20170193559A1 (en) * 2015-12-30 2017-07-06 Vizury Interactive Solutions Private Limited Computer implemented method for partner pixelling for user identification
CN107360224A (en) * 2017-07-07 2017-11-17 携程旅游信息技术(上海)有限公司 Sequence number generation method, system, equipment and storage medium in distributed system
CN108089916A (en) * 2017-12-15 2018-05-29 北京搜狐新媒体信息技术有限公司 A kind of method and device for generating ID
CN108459939A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 A kind of log collecting method, device, terminal device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021217863A1 (en) * 2020-04-29 2021-11-04 平安科技(深圳)有限公司 Order identifier generation method and apparatus, server, and storage medium
CN114462979A (en) * 2022-02-24 2022-05-10 北京京东振世信息技术有限公司 Data identifier generation method, device, equipment, medium and program product

Similar Documents

Publication Publication Date Title
CN104572968B (en) A kind of method for updating pages and device
CA2469655C (en) Prioritization of third party access to an online commerce site
US10417066B2 (en) Adapting legacy endpoints to modern APIs
CN105303423A (en) Patent information interaction method, patent information interaction device and terminal
US8620774B1 (en) Automated marketplace management service
CN104572907B (en) A kind of acquisition methods and device of business object
CN111857974A (en) Service access method and device based on load balancer
CN109271388A (en) A kind of generation method and terminal device of Identity Code
CN110197398A (en) The information processing method and device of electronic ticket
CN106294746A (en) A kind of concurrent transaction data processing method and device
CN103778358A (en) Method and system for realizing online shopping
CN109032629A (en) A kind of code update method and device
CN110135938A (en) The processing method and processing device of the acknowledgement of orders page
CN109240802A (en) request processing method and device
CN107623693A (en) Domain name mapping means of defence and device, system, computing device, storage medium
CN107730390A (en) Data processing method and device, computer-readable medium, electronic equipment
KR102215542B1 (en) Processing data service
CN110889073A (en) Page request response method, server and computer storage medium
CN107295052A (en) A kind of method for processing business and device
CN109559158A (en) Promotion message put-on method, device, electronic equipment and readable storage medium storing program for executing
CN109150643B (en) Service processing abnormity detection method and device
CN109285049A (en) Method of calibration, system, electronic equipment and the storage medium of order
CN112990991B (en) Method and device for combined invoicing
EP3016050A1 (en) System and method for handling a payment link
CN108255875A (en) Message is stored to the method and apparatus of distributed file system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication