CN108881513A - A kind of method, apparatus, equipment and storage medium that device code generates - Google Patents

A kind of method, apparatus, equipment and storage medium that device code generates Download PDF

Info

Publication number
CN108881513A
CN108881513A CN201810697876.4A CN201810697876A CN108881513A CN 108881513 A CN108881513 A CN 108881513A CN 201810697876 A CN201810697876 A CN 201810697876A CN 108881513 A CN108881513 A CN 108881513A
Authority
CN
China
Prior art keywords
device code
code
historical
app
equipment
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.)
Granted
Application number
CN201810697876.4A
Other languages
Chinese (zh)
Other versions
CN108881513B (en
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 Dingsheng Computer Technology Co Ltd
Original Assignee
Shenzhen Dingsheng Computer 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 Dingsheng Computer Technology Co Ltd filed Critical Shenzhen Dingsheng Computer Technology Co Ltd
Priority to CN201810697876.4A priority Critical patent/CN108881513B/en
Publication of CN108881513A publication Critical patent/CN108881513A/en
Application granted granted Critical
Publication of CN108881513B publication Critical patent/CN108881513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides method, apparatus, equipment and readable storage medium storing program for executing that a kind of device code generates, this method includes obtaining the instruction of the APP request execution device code of mobile device, the instruction for executing device code is requested according to the APP, searches current device code corresponding with the mobile device and at least one historical Device code;The current device code and at least one historical Device code are subjected to similarity calculation, according to the relationship of the result of the calculating and given threshold, by one in the current device code or historical Device code as execution device code;The APP that the execution device code is sent to the mobile device is stored.The available stable device code of the embodiment of the present invention realizes the operation to equipment APP, effectively prevent the steal-number behavior of equipment APP, and can be dispersed to avoid the cluster behavior on equipment APP.

Description

A kind of method, apparatus, equipment and storage medium that device code generates
Technical field
The present embodiments relate to computer technology more particularly to a kind of method, apparatus of device code generation, equipment and deposit Storage media.
Background technique
Currently, background server can acquire the International Mobile Station Equipment Identification code of each mobile device for android system (Tnternational Mobile Equipment Identity, IMEI) or Android authentication code AndroidId make For device code;For IOS system, background server can acquire advertisement identifier (Identifier for Advertisement, ) and supplier's identifier (Identifier for Vendor, IDFV) IDFA.
But no matter IMEI, AndroidId or IDFA, IDFV has unstability, in practical applications, such as artificial Malice distorts apparatus characteristic information, such as resolution ratio, hard disk size, memory size, device name, brand etc., at this point, IMEI will It changes;Such as when system upgrade or restoring operation system, even reduction default setting, AndroidId, IDFA will occur Variation;Such as when mobile device unloads supplier APP, when resetting supplier APP, IDFV will be reset.Above-mentioned the case where enumerating An equipment, which will all be will lead to, can be recognized into two equipment, it will the safety for influencing the mobile device that user uses such as usurps shifting The account information of dynamic equipment, by clusters rows such as the more account logins of equipment same in same equipment, more account credits, the transaction of more accounts For dispersion.Cluster behavior in equipment is dispersed.
Summary of the invention
The embodiment of the present invention provides a kind of method, apparatus, equipment and storage medium that device code generates, available stabilization Device code realize operation to equipment APP, avoid the cluster behavior on equipment APP from being dispersed.
In a first aspect, the embodiment of the invention provides a kind of method that device code generates, this method includes:
The PP request for obtaining mobile device executes the instruction of device code;
The instruction for executing device code is requested according to the APP, lookup is corresponding with the mobile device currently to be set Standby code and at least one historical Device code;
The current device code and at least one historical Device code are subjected to similarity calculation, according to the result of the calculating With the relationship of given threshold, one in the current device code or historical Device code is used as and executes device code;
The APP that the execution device code is sent to the mobile device is stored.
Second aspect, the embodiment of the invention also provides the device that a kind of device code generates, which includes:
Instruction acquisition module, the APP for obtaining mobile device code request to execute the instruction of device code;
Device code searching module, the instruction of the execution device code for being requested according to the APP are searched and the shifting The dynamic corresponding current device code of device code and at least one historical Device code;
Device code memory module, the APP for the execution device code to be sent to the mobile device are stored.
The third aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real Apply the method that any device code generates in example.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the method that the device code as described in the embodiment of the present invention is any generates when the program is executed by processor.
The embodiment of the invention provides method, apparatus, equipment and readable storage medium storing program for executing that a kind of device code generates, this method APP request including obtaining mobile device executes the instruction of device code, requests the finger for executing device code according to the APP It enables, searches current device code corresponding with the mobile device and at least one historical Device code;By the current device code Similarity calculation is carried out at least one historical Device code, it, will be described according to the relationship of the result of the calculating and given threshold One in current device code or historical Device code is used as execution device code;The execution device code is sent to the movement to set Standby APP is stored.The available stable device code of the embodiment of the present invention realizes the operation to equipment APP, effectively prevent The steal-number behavior of equipment APP, and can be dispersed to avoid the cluster behavior on equipment APP.
Detailed description of the invention
Fig. 1 is the flow chart for the method that a kind of device code that the embodiment of the present invention one provides generates;
Fig. 2 is the flow chart for the method that a kind of device code provided by Embodiment 2 of the present invention generates;
Fig. 3 is the flow chart for the method that a kind of device code that the embodiment of the present invention three provides generates;
Fig. 4 is the structural schematic diagram for the device that a kind of device code that the embodiment of the present invention four provides generates;
Fig. 5 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just In description, only some but not all contents related to the present invention are shown in the drawings.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, Many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be pacified again Row.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing.Institute Stating processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart for the method that a kind of device code that the embodiment of the present invention one provides generates, and the present embodiment can fit When updating device code for mobile device, background server generates the case where stable device code is sent to mobile device APP, should Method can be executed by the device that device code generates, which can be realized by the mode of software and/or hardware, and generally may be used It is integrated in background server.The method of the present embodiment specifically comprises the following steps:
Step 110, the application software APP request for obtaining mobile device execute the instruction of device code.
Wherein, when the application software APP of mobile device detect it is corresponding with the APP be locally stored middle nothing with it is described When the execution device code of the corresponding operation of APP, obtains the APP and request the instruction for executing device code.
In a mobile device, for guarantee APP using safe, when executing the relevant operation of APP, need to call APP sheet Device code in ground storage.However, when mobile device upgrade/restoring operation system, reduction default setting or malice usurps The operation etc. such as change and will lead to device code and changes.APP in a mobile device occurs in the device code of each mobile device When variation, the device code being locally stored is by the deletion of adaptability, so as to cause the feelings that middle no device code is locally stored of the APP Condition.For example, the APP on mobile device such as mobile phone, such as " Alipay ", when mobile phone updates operating system, the device code of mobile phone is more Newly, but adaptability during update of the device code in " Alipay " is deleted, when the equipment that someone maliciously distorts mobile phone at this time The update device code of information characteristics (such as resolution ratio, hard disk size, memory size, device name, brand etc.), generation grasps malice " Alipay " for making user steals user " Alipay " account, carries out more account logins, more accounts to user " Alipay " Credit, the cluster behavior such as more accounts transaction, seriously affect " Alipay " using safe.Therefore, it is locally stored when APP is detected When middle no device code, the device code new to server application is needed, the anti-fraud fingerprinting service application equipment such as into server Code.
Step 120 requests the instruction for executing device code according to the APP, searches corresponding with the mobile device Current device code and at least one historical Device code.
Wherein, historical Device code is stored in the corresponding database of server, and current device code can be acquired by APP, As android system acquire current device code such as IMEI or AndroidId, IOS system acquisition current device code such as IDFA or Person IDFV, and the APP current device code acquired is uploaded in the corresponding database of server.
The current device code and at least one historical Device code are carried out similarity calculation by step 130, according to the meter The result of calculation and the relationship of given threshold, by one in the current device code or historical Device code as execution device code.
Wherein it is possible to current device code and at least one historical Device code be carried out vectorization, according to cosine similarity, Europe The methods of distance, Pearson correlation coefficients are obtained in several to calculate similarity of each historical Device code relative to current device code.Show Example property, as AndroidId, AndroidId be generated at random by system when equipment starts for the first time a string 64 16 into System number, in equipment brush machine wipe data or factory reset, AndroidId can be reset, therefore, in the number of server According to the current value and history value for acquiring AndroidId in library, the phase of history value and current value is calculated by cosine similarity algorithm Like degree.
Selection for current device code or historical Device code can be chosen according to the following two kinds mode:
Illustratively, if the quantity of the historical Device code found is one, by the current device code and The historical Device code carries out similarity calculation, using the metric of the similarity calculation as calculated result;
If the metric is greater than or equal to the given threshold, set the historical Device code as the execution Standby code;
If the metric is less than the given threshold, using the current device code as execution device code.
It illustratively, respectively will be described current if the quantity of the historical Device code found is at least two Device code and at least two historical Devices code carry out similarity calculation, at least two measurements of the similarity calculation Value is used as calculated result;
If maximum metric is greater than or equal to the given threshold in the metric, by the maximum metric Corresponding historical Device code is as execution device code;
If the maximum metric is less than the given threshold, using the current device code as execution device code.
Wherein, metric is greater than the corresponding historical Device code of given threshold and current device code belongs to same equipment, Metric is less than the corresponding historical Device code of given threshold and current device code belongs to distinct device.
It is understood that the determination of given threshold can be according to artificial setting, it can also be true according to ASSOCIATE STATISTICS value Surely meet actual given threshold.Given threshold, which will have, guarantees that historical Device code and current device code belong to same set in equipment Standby ability.
Step 140 stores the APP that the execution device code is sent to the mobile device.
Wherein it is possible to understand, it, can be to user when server detects that mobile device is broken up into distinct device The APP indicating risk in mobile device or mobile device used, allows user to be further determined whether to continue to execute the correlation of APP Operation, to guarantee that it is safe that user APP is used.
The embodiment of the invention provides a kind of method that device code generates, this method includes that the APP of acquisition mobile device is asked The instruction for executing device code is asked, the instruction for executing device code is requested according to the APP, is searched opposite with the mobile device The current device code and at least one historical Device code answered;The current device code and at least one historical Device code are subjected to phase It is calculated like degree, it, will be in the current device code or historical Device code according to the relationship of the result of the calculating and given threshold One as execution device code;The APP that the execution device code is sent to the mobile device is stored.The present invention is implemented Operation of the stable device code execution to equipment APP may be implemented in example, effectively prevent the steal-number behavior of equipment APP, and can keep away The cluster behavior exempted from equipment APP is dispersed.
Embodiment two
Fig. 2 is the flow chart for the method that a kind of device code provided in an embodiment of the present invention generates, and the present embodiment is above-mentioned The current device code and historical Device code in the present embodiment, are carried out similarity meter by advanced optimizing on the basis of embodiment It calculates, specially:Obtain at least two apparatus characteristic informations of each mobile device, wherein the apparatus characteristic information includes: Resolution ratio, hard disk size, memory size, device name, device model, equipment brand, the address equipment mac, operating system version And network formats;According to preset rules, the weight of each apparatus characteristic information is determined;According to each apparatus characteristic information With the weight of each apparatus characteristic information, the similarity of the current device code and historical Device code is calculated.
Correspondingly, as shown in Fig. 2, this method comprises the following steps:
Step 210, the application software APP request for obtaining mobile device execute the instruction of device code.
Step 220 requests the instruction for executing device code according to the APP, searches corresponding with the mobile device Current device code and at least one historical Device code.
Step 230, at least two apparatus characteristic informations for obtaining each mobile device.
Wherein, the apparatus characteristic information includes:Resolution ratio, hard disk size, memory size, device name, device model, Equipment brand, the address equipment mac, operating system version and network formats.
Illustratively, the corresponding apparatus characteristic information of current device code is acquired by APP, and is uploaded to server, serviced Historical Device code and apparatus characteristic information corresponding with historical Device code are stored in associated databases in device.It is understood that , the more of corresponding apparatus characteristic information acquisition are distinguished with current device code and historical Device code, and similarity calculation is got over Stablize.
Step 240, according to preset rules, determine the weight of each apparatus characteristic information.
Wherein, preset rules include:
According to each apparatus characteristic information, determining classification information corresponding with each apparatus characteristic information and letter of classifying The quantity of breath;
The number of users for counting the corresponding mobile device of the classification information determines that the number of users is 1 corresponding point The quantity of category information;
When there are the classification information that number of users is 1, the quantity that user's number is 1 corresponding classification information is existed Initial weight of the accounting as each apparatus characteristic information in the quantity of all classification informations;
When there is no the classification information that number of users is 1, using the inverse of the quantity of the classification information as the equipment The initial weight of characteristic information;
By accounting of the initial weight of each apparatus characteristic information in the sum of initial weight of each apparatus characteristic information Weight as each apparatus characteristic information.
Wherein, the corresponding classification information of apparatus characteristic information, illustratively, if apparatus characteristic information is " equipment brand ", And there is much equipment brand in mobile device, such as " OPPO ", " Huawei ", " millet ", these specific device names are point Category information.In all mobile devices of server, can to all devices characteristic information to should classification information and point The quantity of category information is counted.
Illustratively, according to preset rules, determine the weight of each apparatus characteristic information, can using following example into Row explanation:
" the equipment brand ", " device model " of all mobile devices (such as mobile phone, tablet computer) in statistical server, " point Three apparatus characteristic informations of resolution ", " equipment brand " corresponding classification information have " OPPO ", " Huawei ", three kinds of " millet ", " set The corresponding classification information of standby model " has two kinds of " BLN-AL10 ", " MCE16 ", and " resolution ratio " corresponding classification information has " 720* 1280","1080*1920";It is assumed that " OPPO ", " Huawei ", " millet " corresponding number of users are respectively 1,1,3, then " equipment The corresponding initial weight of brand " is (1+1)/(1+1+3)=2/5;It is assumed that " BLN-AL10 ", " MCE16 " corresponding number of users Respectively 1,3, then initial weight corresponding with " device model " is 1/4;It is assumed that " 720*1280 ", " 1080*1920 " are corresponding Number of users is respectively 3,6, then initial weight corresponding with " resolution ratio " is 1/2.Then the weight of " equipment brand " be 2/5 divided by (2/5+1/4+1/2) is equal to 8/23, and the weight of " device model " is 5/23, and the weight of " resolution ratio " is 10/23.
The method of the calculating apparatus characteristic information weight, the characteristic information based on mobile devices all in server are united Meter, therefore, the weight of calculating more closing to reality.
Step 250, according to the weight of each apparatus characteristic information and each apparatus characteristic information, calculate described current The similarity of device code and historical Device code.
Wherein, current device code has corresponding apparatus characteristic information, and historical Device code also has corresponding equipment feature to believe Breath, e.g., current device code or historical Device code are " d812be93caaab696 ", its corresponding apparatus characteristic information is:Equipment Model is R11s, and brand name is oppo, and memory size is 2G, and disk size is 126G.
Using the weight of apparatus characteristic information and facility information as measurement current device code and historical Device code similarity Factor.Illustratively, each apparatus characteristic information vectorization can be inputted the apparatus characteristic information of vectorization and its weight Into similarity model, similarity mode, the degree of similarity of the available historical Device code relative to current device code are carried out Magnitude.
Step 260, according to the result of the calculating and the relationship of given threshold, by a conduct in the current device Execute device code.
Step 270 stores the APP that the execution device code is sent to the mobile device.
The embodiment of the present invention passes through the weight of apparatus characteristic information and apparatus characteristic information, as current device code and history The measuring similarity factor of device code in the server counts the characteristic information of all devices by statistical analysis, The actual apparatus characteristic information weight of coincidence statistics is obtained, artificial setting apparatus characteristic information weight is avoided, to make phase Statistics reality is more in line with like the result that degree calculates.
Embodiment three
Fig. 3 is the flow chart for the method that a kind of device code provided in an embodiment of the present invention generates, and the present embodiment is above-mentioned Advanced optimizing on the basis of embodiment according to the result of the calculating and the relationship of given threshold, is incited somebody to action in the present embodiment One in the current device code or historical Device code also specifically includes as before executing device code:Each movement is counted to set In standby, current device code and historical Device code belong to the quantity of same mobile device when different threshold values are arranged, and with same equipment Accounting of the quantity in the quantity of all mobile devices as same mobile device rate;Threshold value is established to set with the same movement Function relation figure between standby rate, and establish in function relation figure the longitudinally split line of first threshold and second threshold;It is described The function relation figure is divided into three regions by the longitudinally split line of first threshold and second threshold, when three regions are full When foot setting distribution occasion, it is determined that the second threshold is given threshold.
Correspondingly, as shown in figure 3, this method comprises the following steps:
Step 310, the application software APP request for obtaining mobile device execute the instruction of device code.
Step 320 requests the instruction for executing device code according to the APP, searches corresponding with the mobile device Current device code and at least one historical Device code.
In step 330, each mobile device of statistics, when different threshold values are arranged, current device code and historical Device code belong to The quantity of same mobile device, and using accounting of the quantity of same equipment in the quantity of all mobile devices as same movement Equipment rate.
Wherein, server is stored with the current device code and historical Device code of each mobile device, can collect a period of time The current device code and historical Device code of interior each mobile device, e.g., can be collection 3 months in opened " Alipay " this The mobile device of APP.
According to the calculation method of similarity in above-described embodiment, can calculate the historical Device code of each mobile device relative to The similarity of current device code determines the quantity for the mobile device that each mobile device is broken up into according to the different threshold values of setting. Illustratively, mobile device A has 3 historical Device codes, the measuring similarity value relative to current device code is respectively 45, 55,65, it assumes that threshold value 40, then mobile device A is 1 equipment, if threshold value is 50, mobile device A is broken up into 2 and sets Standby, if threshold value is 60, mobile device A is broken up into 3 equipment, then when threshold value is 40, mobile device A is same equipment.
Step 340 establishes function relation figure between threshold value and the same mobile device rate, and in function relation figure Establish the longitudinally split line of first threshold and second threshold.
Wherein, based on the mass data of server, the function that can establish corresponding same equipment rate when each threshold value is closed System's figure.First threshold can be determined according to expertise, in order to guarantee that same equipment rate and the mobile device of mobile device are used The safety at family, it is 50 that first threshold, which is usually arranged, and second threshold is greater than first threshold, i.e., in function relation figure, second The longitudinally split line of threshold value is on the right side of first threshold cut-off rule.
The function relation figure is divided into three by the longitudinally split line of step 350, the first threshold and second threshold Region, when three regions meet setting distribution occasion, it is determined that the second threshold is given threshold.
Wherein, distribution occasion can be based on statistical analysis foundation, first threshold cut-off rule and second threshold segmentation Line traverses function relation figure, three regions of function relation figure segmentation is carried out areal calculation, it is larger to meet two sides area, intermediate Area is smaller, that is, can determine that second threshold is given threshold.If illustrating in calculating process without there is above-mentioned distribution occasion It may be the unreasonable of unreasonable and/or apparatus characteristic information the weight setting of second threshold setting.
The current device code of the mobile device and at least one historical Device code are carried out similarity calculation by step 360, According to the relationship of the result of the calculating and given threshold, by one in the current device as execution device code.
Step 370 stores the APP that the execution device code is sent to the mobile device.
The embodiment of the present invention determines given threshold, phase by the function relation figure established between threshold value and same equipment rate Compared with the usually manual setting of given threshold in the prior art, the determination method of given threshold provided in an embodiment of the present invention is more Coincidence statistics are practical.And the execution device code determined based on setting value is also more accurate, to effectively prevent the robber of equipment APP Number behavior, and can be dispersed to avoid the cluster behavior on equipment APP.
Example IV
Fig. 4 is the structural schematic diagram for the device that a kind of device code provided in an embodiment of the present invention generates, as shown in figure 4, should Device includes instruction acquisition module 410, device code searching module 420, executes device code determining module 430 and device code storage mould Block 440, wherein:
Instruction acquisition module 410, the application software APP for obtaining mobile device request to execute the instruction of device code;
Device code searching module 420, the instruction of the execution device code for being requested according to the APP, lookup and institute State the corresponding current device code of mobile device code and at least one historical Device code;
Device code determining module 430 is executed, for the current device code and at least one historical Device code to be carried out phase It is calculated like degree, it, will be in the current device code or historical Device code according to the relationship of the result of the calculating and given threshold One as execution device code;
Device code memory module 440, the APP for the execution device code to be sent to the mobile device are deposited Storage.
The device that a kind of device code provided in an embodiment of the present invention generates, the APP by obtaining mobile device request to execute The instruction of device code requests the instruction for executing device code according to the APP, searches work as corresponding with the mobile device Preceding device code and at least one historical Device code;The current device code and at least one historical Device code are subjected to similarity meter It calculates, according to the relationship of the result of the calculating and given threshold, by a work in the current device code or historical Device code To execute device code;The APP that the execution device code is sent to the mobile device is stored.The embodiment of the present invention can be with It realizes that stable device code executes the operation to equipment APP, effectively prevent the steal-number behavior of equipment APP, and can be to avoid Cluster behavior on equipment APP is dispersed.
On the basis of the various embodiments described above, described instruction obtains module, is specifically used for:
When the application software APP of mobile device detects that corresponding with the APP that middle nothing is locally stored is corresponding with the APP Operation execution device code when, obtain the APP request it is described execute device code instruction.
On the basis of the various embodiments described above, the execution device code determining module further includes:Similarity calculation submodule, The similarity calculation submodule, is specifically used for:
Obtain at least two apparatus characteristic informations of each mobile device;Wherein, the apparatus characteristic information includes:Point Resolution, hard disk size, memory size, device name, device model, equipment brand, the address equipment mac, operating system version with And network formats;
According to preset rules, the weight of each apparatus characteristic information is determined;
According to the weight of each apparatus characteristic information and each apparatus characteristic information, calculate the current device code and The similarity of historical Device code.
Further, the preset rules include:
According to each apparatus characteristic information, determining classification information corresponding with each apparatus characteristic information and letter of classifying The quantity of breath;
The number of users for counting the corresponding mobile device of the classification information determines that the number of users is 1 corresponding point The quantity of category information;
When there are the classification information that number of users is 1, the quantity that user's number is 1 corresponding classification information is existed Initial weight of the accounting as each apparatus characteristic information in the quantity of all classification informations;
When there is no the classification information that number of users is 1, using the inverse of the quantity of the classification information as the equipment The initial weight of characteristic information;
By accounting of the initial weight of each apparatus characteristic information in the sum of initial weight of each apparatus characteristic information Weight as each apparatus characteristic information.
On the basis of the various embodiments described above, the execution device code determining module further includes:Given threshold determines submodule Block, the given threshold determine submodule, are specifically used for:
It, will be in the current device code or historical Device code according to the result of the calculating and the relationship of given threshold One, as before executing device code, counts in each mobile device, current device code and historical Device code when different threshold values are arranged Belong to the quantity of same mobile device, and using accounting of the quantity of same equipment in the quantity of all mobile devices as same Mobile device rate;
The function relation figure between threshold value and the same mobile device rate is established, and establishes first in function relation figure The longitudinally split line of threshold value and second threshold;
The function relation figure is divided into three regions by the longitudinally split line of the first threshold and second threshold, works as institute When stating three regions satisfaction setting distribution occasions, it is determined that the second threshold is given threshold.
On the basis of the various embodiments described above, the execution device code determining module is specifically used for:
If the quantity of the historical Device code found is one, the current device code and the history are set Standby code carries out similarity calculation, using the metric of the similarity calculation as calculated result;
If the metric is greater than or equal to the given threshold, set the historical Device code as the execution Standby code;
If the metric is less than the given threshold, using the current device code as execution device code.
On the basis of the various embodiments described above, the execution device code determining module, also particularly useful for:
If the quantity of the historical Device code found is at least two, respectively by the current device code and At least two historical Devices code carries out similarity calculation, using at least two metrics of the similarity calculation as calculating As a result;
If maximum metric is greater than or equal to the given threshold in the metric, by the maximum metric Corresponding historical Device code is as execution device code;
If the maximum metric is less than the given threshold, using the current device code as execution device code.
Provided by any embodiment of the invention set can be performed in the device that device code provided by the embodiment of the present invention generates The method that standby code generates, has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention five provides, as shown in figure 5, the equipment includes place Manage device 50, memory 51, input unit 52 and output device 53;The quantity of processor 50 can be one or more in equipment, In Fig. 5 by taking a processor 50 as an example;Equipment/in processor 50, memory 51, input unit 52 and output device 53 can be with It is connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of theme update method in the embodiment of the present invention is (for example, device code generates Device in instruction acquisition module 410, device code searching module 420, execute device code determining module 430 and device code storage Module 440).Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing setting The various function application and data processing of standby/terminal/server realize above-mentioned theme update method.
Memory 51 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 51 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 51 can be further Including the memory remotely located relative to processor 50, these remote memories can by network connection to equipment/terminal/ Server.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 52 can be used for receiving the number or character information of input, and generate and equipment/terminal/server User setting and the related key signals input of function control.Output device 53 may include that display screen etc. shows equipment.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held When being executed by computer processor for executing a kind of searching method, this method includes for row instruction:
The application software APP request for obtaining mobile device executes the instruction of device code;
The instruction for executing device code is requested according to the APP, lookup is corresponding with the mobile device currently to be set Standby code and at least one historical Device code;
The current device code and at least one historical Device code are subjected to similarity calculation;According to the result of the calculating With the relationship of given threshold, one in the current device code or historical Device code is used as and executes device code;
The APP that the execution device code is sent to the mobile device is stored.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above, can also be performed searching method provided by any embodiment of the invention In relevant operation
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, included each unit and module are only in the embodiment for the device that above equipment code generates It is to be divided according to the functional logic, but be not limited to the above division, as long as corresponding functions can be realized;Separately Outside, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method that device code generates, which is characterized in that including:
The application software APP request for obtaining mobile device executes the instruction of device code;
The instruction for executing device code is requested according to the APP, searches current device code corresponding with the mobile device With at least one historical Device code;
The current device code and at least one historical Device code are subjected to similarity calculation;According to the result of the calculating and set The relationship for determining threshold value, by one in the current device code or historical Device code as execution device code;
The APP that the execution device code is sent to the mobile device is stored.
2. the method according to claim 1, wherein the APP request for obtaining mobile terminal executes the finger of device code It enables, including:
When the application software APP of mobile device is detected and the APP is corresponding that middle nothing behaviour corresponding with the APP is locally stored When the execution device code of work, obtains the APP and request the instruction for executing device code.
3. the method according to claim 1, wherein the current device code is similar with the progress of historical Device code Degree calculates, including:
Obtain at least two apparatus characteristic informations of each mobile device;
Wherein, the apparatus characteristic information includes:Resolution ratio, hard disk size, memory size, device name, device model, equipment Brand, the address equipment mac, operating system version and network formats;
According to preset rules, the weight of each apparatus characteristic information is determined;
According to the weight of each apparatus characteristic information and each apparatus characteristic information, the current device code and history are calculated The similarity of device code.
4. according to the method described in claim 3, it is characterized in that, the preset rules include:
According to each apparatus characteristic information, determining classification information corresponding with each apparatus characteristic information and classification information Quantity;
The number of users for counting the corresponding mobile device of the classification information determines that the number of users is 1 corresponding classification letter The quantity of breath;
It is the quantity of 1 corresponding classification information all by user's number when there are the classification information that number of users is 1 Initial weight of the accounting as each apparatus characteristic information in the quantity of classification information;
When there is no the classification information that number of users is 1, using the inverse of the quantity of the classification information as the equipment feature The initial weight of information;
Using accounting of the initial weight of each apparatus characteristic information in the sum of initial weight of each apparatus characteristic information as The weight of each apparatus characteristic information.
5. the method according to claim 1, wherein by the current device code and at least one historical Device code Similarity calculation is carried out, according to the relationship of the result of the calculating and given threshold, by the current device code or historical Device One in code is used as execution device code, including:
If the quantity of the historical Device code found is one, by the current device code and the historical Device code Similarity calculation is carried out, using the metric of the similarity calculation as calculated result;
If the metric is greater than or equal to the given threshold, using the historical Device code as the execution equipment Code;
If the metric is less than the given threshold, using the current device code as execution device code.
6. the method according to claim 1, wherein according to the result of the calculating and the pass of given threshold One in the current device code or historical Device code is used as before executing device code, further includes by system:
It counts in each mobile device, when different threshold values are arranged, current device code and historical Device code belong to same mobile device Quantity, and using accounting of the quantity of same equipment in the quantity of all mobile devices as same mobile device rate;
The function relation figure between threshold value and the same mobile device rate is established, and establishes first threshold in function relation figure With the longitudinally split line of second threshold;
The function relation figure is divided into three regions by the longitudinally split line of the first threshold and second threshold, when described three When a region meets setting distribution occasion, it is determined that the second threshold is given threshold.
7. the method according to claim 1, wherein by the current device code and at least one historical Device code Similarity calculation is carried out, according to the relationship of the result of the calculating and given threshold, by the current device code or historical Device One in code further includes as device code is executed:
If the quantity of the historical Device code found is at least two, respectively by the current device code and described At least two historical Device codes carry out similarity calculation, tie using at least two metrics of the similarity calculation as calculating Fruit;
It is if maximum metric is greater than or equal to the given threshold in the metric, the maximum metric is corresponding Historical Device code as execute device code;
If the maximum metric is less than the given threshold, using the current device code as execution device code.
8. the device that a kind of device code generates, which is characterized in that including;
Instruction acquisition module, the application software APP for obtaining mobile device request to execute the instruction of device code;
Device code searching module, the instruction of the execution device code for being requested according to the APP, lookup are set with the movement The standby corresponding current device code of code and at least one historical Device code;
Device code determining module is executed, by carrying out the current device code and at least one historical Device code based on similarity It calculates, according to the relationship of the result of the calculating and given threshold, by a work in the current device code or historical Device code To execute device code;
Device code memory module, the APP for the execution device code to be sent to the mobile device are stored.
9. 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 equipment as described in any in claim 1-7 when executing described program The method that code generates.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method that the device code as described in any in claim 1-7 generates is realized when execution.
CN201810697876.4A 2018-06-29 2018-06-29 Method, device, equipment and storage medium for generating equipment code Active CN108881513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810697876.4A CN108881513B (en) 2018-06-29 2018-06-29 Method, device, equipment and storage medium for generating equipment code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810697876.4A CN108881513B (en) 2018-06-29 2018-06-29 Method, device, equipment and storage medium for generating equipment code

Publications (2)

Publication Number Publication Date
CN108881513A true CN108881513A (en) 2018-11-23
CN108881513B CN108881513B (en) 2021-07-27

Family

ID=64297292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810697876.4A Active CN108881513B (en) 2018-06-29 2018-06-29 Method, device, equipment and storage medium for generating equipment code

Country Status (1)

Country Link
CN (1) CN108881513B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020164272A1 (en) * 2019-02-13 2020-08-20 平安科技(深圳)有限公司 Network access device identifying method and apparatus, storage medium and computer device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187237A (en) * 2015-08-12 2015-12-23 百度在线网络技术(北京)有限公司 Method and device for searching associated user identifications
US20160127398A1 (en) * 2014-10-30 2016-05-05 The Johns Hopkins University Apparatus and Method for Efficient Identification of Code Similarity
CN106453437A (en) * 2016-12-22 2017-02-22 中国银联股份有限公司 Equipment identification code acquisition method and device
CN107908666A (en) * 2017-10-23 2018-04-13 北京京东尚科信息技术有限公司 A kind of method and apparatus of identification equipment mark

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160127398A1 (en) * 2014-10-30 2016-05-05 The Johns Hopkins University Apparatus and Method for Efficient Identification of Code Similarity
CN105187237A (en) * 2015-08-12 2015-12-23 百度在线网络技术(北京)有限公司 Method and device for searching associated user identifications
CN106453437A (en) * 2016-12-22 2017-02-22 中国银联股份有限公司 Equipment identification code acquisition method and device
CN107908666A (en) * 2017-10-23 2018-04-13 北京京东尚科信息技术有限公司 A kind of method and apparatus of identification equipment mark

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020164272A1 (en) * 2019-02-13 2020-08-20 平安科技(深圳)有限公司 Network access device identifying method and apparatus, storage medium and computer device

Also Published As

Publication number Publication date
CN108881513B (en) 2021-07-27

Similar Documents

Publication Publication Date Title
US20210319375A1 (en) Churn prediction in a broadband network
US20150371163A1 (en) Churn prediction in a broadband network
CN106951765A (en) A kind of zero authority mobile device recognition methods based on browser fingerprint similarity
CN104731816A (en) Method and device for processing abnormal business data
CN110737818A (en) Network release data processing method and device, computer equipment and storage medium
WO2019061664A1 (en) Electronic device, user's internet surfing data-based product recommendation method, and storage medium
CN107305611A (en) The corresponding method for establishing model of malice account and device, the method and apparatus of malice account identification
CN105721629A (en) User identifier matching method and device
CN111651741B (en) User identity recognition method, device, computer equipment and storage medium
WO2019024497A1 (en) Method, device, terminal equipment and medium for generating customer return visit event
CN116629937A (en) Marketing strategy recommendation method and device
TW202111592A (en) Learning model application system, learning model application method, and program
CN106301975A (en) A kind of data detection method and device thereof
CN108171570A (en) A kind of data screening method, apparatus and terminal
CN105930713A (en) Method and terminal for generating identifying codes
CN113556368A (en) User identification method, device, server and storage medium
CN114253746A (en) Product application service management method, device, equipment and medium based on software as a service (SaaS)
CN114756466A (en) Test case obtaining method and device and storage medium
CN108881513A (en) A kind of method, apparatus, equipment and storage medium that device code generates
CN112686690A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112882758B (en) iOS device identifier generation method and system
CN105591842A (en) Method and device for obtaining version of mobile terminal operating system
CN113505369B (en) Method and device for training user risk recognition model based on space-time perception
CN115689708A (en) Screening method, risk assessment method, device, equipment and medium of training data
CN114595216A (en) Data verification method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant