CN110247828A - Identity assignments method and device - Google Patents

Identity assignments method and device Download PDF

Info

Publication number
CN110247828A
CN110247828A CN201910696593.2A CN201910696593A CN110247828A CN 110247828 A CN110247828 A CN 110247828A CN 201910696593 A CN201910696593 A CN 201910696593A CN 110247828 A CN110247828 A CN 110247828A
Authority
CN
China
Prior art keywords
identification code
client
current business
test
test result
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
CN201910696593.2A
Other languages
Chinese (zh)
Other versions
CN110247828B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910696593.2A priority Critical patent/CN110247828B/en
Publication of CN110247828A publication Critical patent/CN110247828A/en
Application granted granted Critical
Publication of CN110247828B publication Critical patent/CN110247828B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is about a kind of identity assignments method, and applied to the server-side in system, the system comprises server-sides and client;The described method includes: obtaining the identity assignments request of client current business;It is requested in response to the identity assignments, is that the current business of the client distributes a specified identification code;The numerical value of the specified identification code is not less than pre-set test threshold;The current business that the client is tested based on the specified identification code, obtains test result;Determine that the current business corresponds to the data type and value range of identification code according to the test result.

Description

Identity assignments method and device
Technical field
This disclosure relates to computer software application field more particularly to identity assignments method and device.
Background technique
In the development phase of application program, it will usually according to the service condition of prediction, for the data class that data setting is suitable Type.But in the service stage of application program, it is possible that practical do not meet with prediction, and cause data type not applicable The case where.For example, the demand of the identification codes such as user or works distribution ID is existed in certain application programs, in development phase technology Personnel can generally predict ID demand, to set the data types such as integer, long for identification code, but with application program The growth of user volume or works amount influences the sendout upper limit that the actual demand amount of ID may be supported beyond data type The normal function of application program.
In the related technology, usually after application program goes wrong, determine that problem is related to the data type of identification code Afterwards, modify, upgrade further according to data type of the situation to identification code, consequently found that problem is later, issue resolution cycle compared with It is long, influence the experience sense that user uses application program.
Summary of the invention
The disclosure provides a kind of identity assignments method, apparatus, electronic equipment and storage medium, at least to solve related skill The problem of causing application program to malfunction by the data type of distributed identification code in art.The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of identity assignments method is provided, applied to the service in system End, the system comprises server-sides and client;Include:
Obtain the identity assignments request of client current business;
It is requested in response to the identity assignments, is that the current business of the client distributes a specified identification code;Institute The numerical value of specified identification code is stated not less than pre-set test threshold;
The current business that the client is tested based on the specified identification code, obtains test result;
Determine that the current business corresponds to the data type and value range of identification code according to the test result.
In a kind of possible implementation, the current business for the client distributes a specified identification code, packet It includes:
Determine pre-set test threshold;
One, which is distributed, according to the current business that first allocation rule is the client is not less than the test threshold The first identification code.
In a kind of possible implementation, the current business for the client distributes a specified identification code, packet It includes:
The second identification code is distributed for the current business of the client;
According to preset adjustment rule, second identification code is adjusted to the identification code not less than the test threshold.
In a kind of possible implementation, the test threshold is greater than the maximum value of integer data.
In a kind of possible implementation, the current business that the client is tested based on the specified identification code, Obtain test result, comprising:
The specified identification code is sent to the client, so that the client is based on the specified identification code test The current business, and test result is returned into the server-side.
In a kind of possible implementation, the current business that the client is tested based on the specified identification code, Obtain test result, comprising:
Based on the specified identification code, the virtual client in the server-side is run, so that the virtual client end group The current business is tested in the specified identification code, and obtains test result;The virtual client are as follows: it is pre-set with The corresponding virtual client of the client.
It is described to determine that the current business corresponds to identification code according to the test result in a kind of possible implementation Data type and value range, comprising:
If the test result indicates the current business, there are failures, it is determined that the current business is corresponded to identification code Current data type is revised as goal-selling type;
If the test result indicates that failure is not present in the current business, it is determined that retain the corresponding knowledge of the current business The current data type of other code.
It is described the current business is corresponded into the current data type of identification code to be revised as in a kind of possible implementation Goal-selling type, comprising:
Obtain recorded in the test result there are the code positions of failure;
The data type of the code position is revised as goal-selling type.
In a kind of possible implementation, the method also includes:
Receive the service request of the client;
In the case where including identification code in the service request, determine whether included identification code is not less than the survey Try threshold value;
If so, included identification code is adjusted to corresponding and is less than the test threshold according to preset adjustment rule The identification code of value.
In a kind of possible implementation, determining that the current business corresponds to the number of identification code according to the test result After type and value range, further includes:
The current business is added to pre-set business white list.
According to the second aspect of an embodiment of the present disclosure, a kind of identity assignments device is provided, applied to the service in system End, the system comprises server-sides and client;Include:
Module is obtained, is configured as executing the identity assignments request for obtaining client current business;
Distribution module is configured as executing and request in response to the identity assignments, is the current business of the client Distribute a specified identification code;The numerical value of the specified identification code is not less than pre-set test threshold;
Test module is configured as executing the current business for being tested the client based on the specified identification code, be obtained Test result;
Determining module, is configured as executing and determines that the current business corresponds to the data of identification code according to the test result Type and value range.
In a kind of possible implementation, the distribution module, comprising:
Test threshold determination unit is configured as executing determining pre-set test threshold;
First identity assignments unit, being configured as executing according to first allocation rule is the current of the client Traffic assignments one is not less than the first identification code of the test threshold.
In a kind of possible implementation, the distribution module, comprising:
Second identity assignments unit is configured as executing and distributes the second identification code for the current business of the client;
Identification code adjustment unit is configured as executing according to preset adjustment rule, second identification code is adjusted to Not less than the identification code of the test threshold.
In a kind of possible implementation, the test threshold is greater than the maximum value of integer data.
In a kind of possible implementation, the test module is specifically used for:
The specified identification code is sent to the client, so that the client is based on the specified identification code test The current business, and test result is returned into the server-side.
In a kind of possible implementation, the test module is specifically used for:
Based on the specified identification code, the virtual client in the server-side is run, so that the virtual client end group The current business is tested in the specified identification code, and obtains test result;The virtual client are as follows: it is pre-set with The corresponding virtual client of the client.
In a kind of possible implementation, the determining module is specifically used for:
It indicates that the current business is deposited in the case of a fault in the test result, determines the current business is corresponding The current data type of identification code is revised as goal-selling type;
In the case where the test result indicates that failure is not present in the current business, determines and retain the current business The current data type of corresponding identification code.
In a kind of possible implementation, the determining module is specifically used in the following manner by the current business pair The data type for answering identification code current is revised as goal-selling type:
Obtain recorded in the test result there are the code positions of failure;
The data type of the code position is revised as goal-selling type.
In a kind of possible implementation, described device further includes adjustment module, is specifically used for:
Receive the service request of the client;
In the case where including identification code in the service request, determine whether included identification code is not less than the survey Try threshold value;
If so, included identification code is adjusted to corresponding and is less than the test threshold according to preset adjustment rule The identification code of value.
In a kind of possible implementation, described device further includes white list module, is used for:
It, will after determining that the current business corresponds to the data type and value range of identification code according to the test result The current business is added to pre-set business white list.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to described instruction is executed, to realize the possibility of first aspect and first aspect Identity assignments method described in any one of implementation.
According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by When the processor of identity assignments electronic equipment executes so that identity assignments electronic equipment be able to carry out such as first aspect and Identity assignments method described in any one of possibility implementation of first aspect.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product, including one or more instruction are provided, When one or more instruction can be executed by the processor of electronic equipment, so that the electronic equipment is able to carry out first aspect And operation performed by identity assignments method described in any one of possibility implementation of first aspect.
The technical scheme provided by this disclosed embodiment is at least brought following the utility model has the advantages that receiving the current industry of client After the identity assignments request of business, server-side passes through the specified identification code distributed, the current business of test client, according to survey Test result determines the data type of the current business identification code, and the actual demand current according to application program, to data type The operation of modification or reservation is taken, the final current business for client distributes the suitable identification code of value, in this way can be to avoid There is the problem related to data type in application program, reduces the time used in technical staff's orientation problem, promoted development efficiency with And the usage experience of user.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of configuration diagram of application program system shown according to an exemplary embodiment;
Fig. 2 is a kind of flow diagram of identity assignments shown according to an exemplary embodiment;
Fig. 3 is a kind of structural schematic diagram of identity assignments device shown according to an exemplary embodiment;
Fig. 4 is a kind of structural schematic diagram of distribution module shown according to an exemplary embodiment;
Fig. 5 is another structural schematic diagram of distribution module shown according to an exemplary embodiment;
Fig. 6 is another structural schematic diagram of identity assignments device shown according to an exemplary embodiment;
Fig. 7 is another structural schematic diagram of identity assignments device shown according to an exemplary embodiment;
Fig. 8 is a kind of structural schematic diagram of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.
In this specification embodiment, the system of application program is C/S (client-side/server-side) framework, identity assignments Process is related to the server-side and client of system, and corresponding system architecture schematic diagram is as shown in Figure 1, include 10 He of server device Client device 20.
Client device can be the terminal devices such as smart phone, tablet computer, desktop computer, and client then can be and answer The part of terminal device is installed on program;The concrete form of server device can be a specific server or service The forms such as device cluster, terminal device can be communicated to connect by various forms of network implementationss, this specification this is not needed into Row limits.
Further, it is to be appreciated that client and server-side in this specification embodiment, it can be practical for application program Client and server-side when use in system architecture, or for the client and service in the system architecture of test End can be to avoid data contamination by setting up dedicated test client in server-side, and can pass through setting white list Strategy guarantees the comprehensive of detection.
Fig. 2 is a kind of flow chart of identity assignments shown according to an exemplary embodiment, as shown in Fig. 2, identification code Distribution method is applied to the server-side in system, comprising the following steps:
In step s 11, the identity assignments request of client current business is obtained;
As previously described, client device can be communicated to connect with server device by various forms of network implementationss, from And server-side by the communication connection established, can obtain the identity assignments request of client.
In the present embodiment, it is not limited to the concrete form of the identification code of client traffic distribution, for example, can infuse for user The User ID distributed after volume, or identification code of works such as video, article in application program, etc..
In step s 12, it is requested in response to the identity assignments, is that the current business of the client distributes a finger Determine identification code;
The data type for the identification code that server-side is distributed can be set to the multiple types such as integer, long, character string, Different types of data respectively correspond it is different can sendout.For example, integer data can range of distribution be [0,65535], i.e., Can sendout be 65536 numerical value;Signless long data can range of distribution be [0,4294967295], can sendout be 4294967296 numerical value.
After distributing an identification code for the current business of client, the identification code can be further advanced by current industry The data type for corresponding identification code of being engaged in is detected, i.e. the current business based on the identification code test client distributed, thus According to test result, it is determined whether need to modify the data type that current business corresponds to identification code, it is corresponding to avoid current business The actual demand amount of identification code be more than can sendout, and application program is caused to go wrong.
Therefore, can according to different types of data can sendout, be arranged in correspondence with test threshold, in advance so as to logical Test threshold is crossed to test and distinguish different data types.
It can be assumed for instance that server-side is currently the identification code of client distribution, data type is that integer or length are whole Type, wherein if it is integer data, in current or subsequent identity assignments, appearance can sendout be unable to satisfy reality The problem of border demand, it is therefore desirable to which data type is revised as long by integer.
Accordingly, test threshold can be set to the numerical value for being greater than shape data maximum value, thus test and area Dividing current business to correspond to the data type of identification code is integer or long.
Certainly, server-side is requested in response to the identity assignments of client, is that the current business of client distributes one greatly In or equal to default test threshold specified identification code process, can specifically be accomplished in several ways.
In one example, test threshold can be preset.A finger is distributed in the current business for the client When determining identification code, preset test threshold can be determined first, then distributed one for the current business of the client and be greater than Or the first identification code equal to the test threshold.
It is, of course, also possible to preset the allocation order of identification code, it can such as be randomly determined one and be greater than or equal to survey The numerical value for trying threshold value, as the specified identification code distributed for client current business;It can also be according to numerical order, with fixed Interval of values (such as plus 1 plus 2), is sequentially allocated the numerical value for being greater than or equal to test threshold;Etc., this specification is implemented It is not limited this in example.
In another example, the regular with adjustment of identification code can be preset.
It may include test threshold and the adjustment mode to identification code in adjustment rule, such as increase a fixed value.
It can first be the current industry of client when distributing a specified identification code for the current business of the client Then identification code is adjusted to the identification code not less than test threshold by business one identification code of distribution according to adjustment rule.
The allocation rule of identification code can also be preset, may include the allocation order of identification code in allocation rule, is had Body can be taken such as the allocation order in above-mentioned example, can also take other allocation orders, to this in this specification embodiment Without limitation.
It can be first visitor according to allocation rule when distributing a specified identification code for the current business of the client The current business at family end distributes an identification code, and then identification code is adjusted to not less than test threshold further according to adjustment rule Identification code.
In step s 13, the current business that the client is tested based on the specified identification code, obtains test result;
In this specification embodiment, server-side can be realized and be surveyed based on the specified identification code by a variety of concrete modes The current business for trying the client, obtains test result.
In one example, the specified identification code can be sent to the client by server-side, be based on by client Specified identification code tests current business, and test result is returned to server-side.
If there is the problems such as collapse, abnormal when based on identification code operation business in client, then can from client to Server-side sends exception reporting, i.e. test result can be exception reporting;If client based on identification code operation business when, It not going wrong, then client can send the report that not go wrong to server-side, it can not also send report, and server-side In the case where not receiving exception reporting after preset time period, determine that test result is not go wrong.
In another example, server-side can also build virtual client corresponding with practical client in local terminal in advance End, is then based on the specified identification code, runs the virtual client in the server-side, is based on the finger by virtual client Determine identification code and tests the current business.
Whether server-side can go wrong directly by the test of virtual client according in test process, determine and survey Test result.
In addition, may be received during testing the current business of the client based on the specified identification code The service request sent during the test to client, for example, client executing checks the operation of the buddy list of certain user When, the information of each user in buddy list may be requested to server-side, so that the identification code (User ID) of each user be sent To server-side.
Therefore, in the case where in the service request received including identification code, whether not included identification code is determined Less than the test threshold, if it is, included identification code can be adjusted to corresponding according to preset adjustment rule Less than the identification code of the test threshold.
In step S14, according to the test result determine the current business correspond to identification code data type and take It is worth range.
As described in step S13, server-side can obtain test result from client or virtual client, then in root When determining that the current business corresponds to the data type and value range of identification code according to the test result, implement in this specification In a kind of specific embodiment of example:
If the test result indicates that the current business there are failure, can determine that current business corresponds to identification code and works as Preceding data type is not preset target data type, needs to correspond to the current business into the current data class of identification code Type is revised as goal-selling type.
For example, for long and two kinds of data types of character string, it has been determined that signless long data can sendout can not Meet actual demand amount, i.e. target data type is character string type.Therefore, it is necessary to be distinguished as the identification code of current business distribution It whether is character string type, it can current business is tested using the identification code not less than long maximum value, and Current business is identified according to test result to deposit in the case of a fault, determines that distributed designated identification code has exceeded long class The numerical upper limits of type, i.e. current business should actually use long identification code, and non-targeted data type is needed identity type It is revised as character string type.
And if the test result indicates that failure is not present in the current business, can determine the corresponding identification of current business The current data type of code is target data type, can directly retain the current business and correspond to the current data of identification code Type.
When the current business being corresponded to the current data type of identification code being revised as goal-selling type, in this explanation In a kind of specific embodiment of book embodiment, can obtain recorded in the test result there are the code position of failure, Then the data type of the code position is revised as goal-selling type.
In addition, business white list can also be arranged in the scheme that this specification embodiment provides, tied according to the test After fruit determines the data type and value range that the current business corresponds to identification code, the current business can be added to industry Business white list, to directly distribute the identification code of target data type in subsequent identity assignments.
Below with reference to one, more specifically example, the identity assignments method provided this specification are illustrated.
Whether it is integer to detect the ID distributed in certain video application by each video, builds dedicated test Server-side and test client, and identification code is distributed for test client.
The allocated several video ID of application program are modified, it, will if the identification code of video ID is distributed since 1 Allocated each video ID increases the maximum value of integer data, i.e., each ID is revised as " id+=Integer.MAX_ VALUE ", wherein Integer.MAX_VALUE is the maximum value of integer data, so that modified each ID is more than integer The maximum value of data.
When user uploads certain video again, ID distribution request is initiated from client to server-side, server-side is according to ID points With rule, for video distribution ID, and it is revised as " id+=Integer.MAX_VALUE ", i.e., on the basis of currently distribution ID On, increase the maximum value of shape data, the ID is made centainly to exceed the range of integer data.
Then the modified ID is sent to client by server-side.
After client receives the ID, use the modified numerical value as the ID of the video, and video is carried out a series of Operation, so that the problems such as whether application program will appear collapse, exception detected.
For example, can click application program by user according to the associated video of the video push, then client is in order to clothes The resource of the associated video is requested at business end, needs the ID of the associated video being sent to server-side.
After server-side receives the ID of client transmission, in order to avoid causing data contamination, need the ID carrying out " id- The modification of=Integer.MAX_VALUE ", and judge modified ID whether (0, Integer.MAX_VALUE) area Between in range.
If application program in the detection process, does not go wrong, it may be considered that the mark distributed and non-integer, Even if therefore increasing the numerical value of " Integer.MAX_VALUE ", it is also not out the maximum value of real data type, such as can Think long or character string, therefore the operation of application program can't be made to go wrong;
If in the detection process, there is abnormal, collapse, dodges the problems such as moving back in application program, it may be considered that being distributed Mark be integer data, need to be repaired the data type in corresponding code according to the code position recorded in abnormal log It is changed to long or character string, so that it is guaranteed that being in actual use not in problem, influences the use of user.
Fig. 3 is a kind of identity assignments device block diagram shown according to an exemplary embodiment, which is applied to such as Fig. 1 Shown in server device 10.
Referring to Fig. 3, which includes obtaining module 110, distribution module 120, test module 130 and determining module 140.
The acquisition module 110 is configured as executing the identity assignments request for obtaining client current business;
The distribution module 120 is configured as executing and request in response to the identity assignments, is the current of the client One specified identification code of traffic assignments;The numerical value of the specified identification code is not less than pre-set test threshold;
The test module 130 is configured as executing the current business for testing the client based on the specified identification code, Obtain test result;
The determining module 140 is configured as execution according to the test result and determines that the current business corresponds to identification code Data type and value range.
In a kind of possible implementation, referring to Fig. 4, the distribution module 120, comprising:
Test threshold determination unit 121 is configured as executing determining pre-set test threshold;
First identity assignments unit 122, being configured as executing according to first allocation rule is the client Current business distributes first identification code for being not less than the test threshold.
In a kind of possible implementation, referring to Fig. 5, the distribution module 120, comprising:
Second identity assignments unit 123 is configured as executing the second identification of current business distribution for the client Code;
Identification code adjustment unit 124 is configured as executing according to preset adjustment rule, second identification code is adjusted For the identification code not less than the test threshold.
In a kind of possible implementation, the test threshold is greater than the maximum value of integer data.
In a kind of possible implementation, the test module 130 is specifically used for:
The specified identification code is sent to the client, so that the client is based on the specified identification code test The current business, and test result is returned into the server-side.
In a kind of possible implementation, the test module 130 is specifically used for:
Based on the specified identification code, the virtual client in the server-side is run, so that the virtual client end group The current business is tested in the specified identification code, and obtains test result;The virtual client are as follows: it is pre-set with The corresponding virtual client of the client.
In a kind of possible implementation, the determining module 140 is specifically used for:
It indicates that the current business is deposited in the case of a fault in the test result, determines the current business is corresponding The current data type of identification code is revised as goal-selling type;
In the case where the test result indicates that failure is not present in the current business, determines and retain the current business The current data type of corresponding identification code.
In a kind of possible implementation, the determining module 140 is specifically used in the following manner by the current industry The current data type of corresponding identification code of being engaged in is revised as goal-selling type:
Obtain recorded in the test result there are the code positions of failure;
The data type of the code position is revised as goal-selling type.
In a kind of possible implementation, referring to Fig. 6, described device further includes adjustment module 150, is specifically used for:
Receive the service request of the client;
In the case where including identification code in the service request, determine whether included identification code is not less than the survey Try threshold value;
If so, included identification code is adjusted to corresponding and is less than the test threshold according to preset adjustment rule The identification code of value.
In a kind of possible implementation, referring to Fig. 7, described device further includes white list module 160, is used for:
It, will after determining that the current business corresponds to the data type and value range of identification code according to the test result The current business is added to pre-set business white list.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 8 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment 1100 can be with It is mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building Equipment, personal digital assistant and server etc..
Referring to Fig. 8, electronic equipment 1100 may include following one or more components: processing component 1102, memory 1104, power supply module 1106, multimedia component 1108, audio component 1110, the interface 1112 of input/output (I/O), sensor Component 1114 and communication component 1116.
The integrated operation of the usual controlling electronic devices 1100 of processing component 1102, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1102 may include one or more processors 1120 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1102 may include one or more Module, convenient for the interaction between processing component 1102 and other assemblies.For example, processing component 1102 may include multimedia mould Block, to facilitate the interaction between multimedia component 1108 and processing component 1102.
Memory 1104 is configured as storing various types of data to support the operation in electronic equipment 1100.These numbers According to example include any application or method for being operated on electronic equipment 1100 instruction, contact data, electricity Talk about book data, message, picture, video etc..Memory 1104 can be by any kind of volatibility or non-volatile memory device Or their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1106 provides electric power for the various assemblies of electronic equipment 1100.Power supply module 1106 may include power supply Management system, one or more power supplys and other with for electronic equipment 1100 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1108 includes the screen of one output interface of offer between electronic equipment 1100 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1108 includes a front camera and/or rear camera.When electronic equipment 1100 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1110 is configured as output and/or input audio signal.For example, audio component 1110 includes a wheat Gram wind (MIC), when electronic equipment 1100 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1104 or via Communication component 1116 is sent.In some embodiments, audio component 1110 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1112 provides interface, above-mentioned peripheral interface module between processing component 1102 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1114 includes one or more sensors, for providing the shape of various aspects for electronic equipment 1100 State assessment.For example, sensor module 1114 can detecte the state that opens/closes of electronic equipment 1100, component it is relatively fixed Position, such as the component are the display and keypad of electronic equipment 1100, and sensor module 1114 can also detect electronics and set For 1100 or the position change of 1,100 1 components of electronic equipment, the existence or non-existence that user contacts with electronic equipment 1100, The temperature change in 1100 orientation of electronic equipment or acceleration/deceleration and electronic equipment 1100.Sensor module 1114 may include connecing Nearly sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1114 is also It may include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, should Sensor module 1114 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure sensor or temperature pass Sensor.
Communication component 1116 is configured to facilitate the logical of wired or wireless way between electronic equipment 1100 and other equipment Letter.Electronic equipment 1100 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G) or their combination.In one exemplary embodiment, communication component 1116 is received via broadcast channel from external wide The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication component 1116 also wraps Near-field communication (NFC) module is included, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is red Outer data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In one embodiment of the disclosure, electronic equipment 1100 can be by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), scene can It programs gate array (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, for executing the above method.
In one embodiment of the disclosure, a kind of non-transitorycomputer readable storage medium including instruction is additionally provided, Memory 1104 for example including instruction, above-metioned instruction can be executed by the processor 1120 of electronic equipment 1100 to complete above-mentioned obtain The method for taking viewing duration.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In one embodiment of the disclosure, a kind of application program is additionally provided, when the application program is by the processing of electronic equipment When device executes, so that the electronic equipment is able to carry out above-mentioned identity assignments method, to obtain identical technical effect.
In one embodiment of the disclosure, a kind of computer program product is additionally provided, when the computer program product is by electricity When the processor of sub- equipment executes, so that the electronic equipment is able to carry out above-mentioned identity assignments method, it is identical to obtain Technical effect.
Optionally, storage medium can be non-transitorycomputer readable storage medium, for example, the non-transitory calculates Machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices Deng.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of identity assignments method, which is characterized in that applied to the server-side in system, the system comprises server-side with Client;The described method includes:
Obtain the identity assignments request of client current business;
It is requested in response to the identity assignments, is that the current business of the client distributes a specified identification code;The finger The numerical value of identification code is determined not less than pre-set test threshold;
The current business that the client is tested based on the specified identification code, obtains test result;
Determine that the current business corresponds to the data type and value range of identification code according to the test result.
2. identity assignments method according to claim 1, which is characterized in that the current business for the client Distribute a specified identification code, comprising:
Determine pre-set test threshold;
First identification code for being not less than the test threshold is distributed for the current business of the client.
3. identity assignments method according to claim 1, which is characterized in that the current business for the client Distribute a specified identification code, comprising:
The second identification code is distributed for the current business of the client;
According to preset adjustment rule, second identification code is adjusted to the identification code not less than the test threshold.
4. identity assignments method according to claim 1, which is characterized in that described based on the specified identification code test The current business of the client, obtains test result, comprising:
The specified identification code is sent to the client, so that the client is based on described in the specified identification code test Current business, and test result is returned into the server-side.
5. identity assignments method according to claim 1, which is characterized in that described based on the specified identification code test The current business of the client, obtains test result, comprising:
Based on the specified identification code, the virtual client in the server-side is run, so that the virtual client is based on institute It states specified identification code and tests the current business, and obtain test result;The virtual client are as follows: it is pre-set with it is described The corresponding virtual client of client.
6. identity assignments method according to claim 1, which is characterized in that described to determine institute according to the test result State data type and value range that current business corresponds to identification code, comprising:
If the test result indicates the current business, there are failures, it is determined that it is current that the current business is corresponded to identification code Data type be revised as goal-selling type;
If the test result indicates that failure is not present in the current business, it is determined that retain the current business and correspond to identification code Current data type.
7. identity assignments method according to claim 6, which is characterized in that described by the corresponding identification of the current business The current data type of code is revised as goal-selling type, comprising:
Obtain recorded in the test result there are the code positions of failure;
The data type of the code position is revised as goal-selling type.
8. a kind of identity assignments device, which is characterized in that applied to the server-side in system, the system comprises server-side with Client;Described device includes:
Module is obtained, is configured as executing the identity assignments request for obtaining client current business;
Distribution module is configured as executing and request in response to the identity assignments, is that the current business of the client is distributed One specified identification code;The numerical value of the specified identification code is not less than pre-set test threshold;
Test module is configured as executing the current business for being tested the client based on the specified identification code, be tested As a result;
Determining module, is configured as executing and determines that the current business corresponds to the data type of identification code according to the test result And value range.
9. a kind of electronic equipment characterized by comprising
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to executing described instruction, to realize the knowledge as described in any one of claims 1 to 7 Other code distributing method.
10. a kind of storage medium, when the instruction in the storage medium is executed by the processor of identity assignments electronic equipment, So that identity assignments electronic equipment is able to carry out the identity assignments method as described in any one of claims 1 to 7.
CN201910696593.2A 2019-07-30 2019-07-30 Identification code allocation method and device Active CN110247828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910696593.2A CN110247828B (en) 2019-07-30 2019-07-30 Identification code allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910696593.2A CN110247828B (en) 2019-07-30 2019-07-30 Identification code allocation method and device

Publications (2)

Publication Number Publication Date
CN110247828A true CN110247828A (en) 2019-09-17
CN110247828B CN110247828B (en) 2020-12-15

Family

ID=67893798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910696593.2A Active CN110247828B (en) 2019-07-30 2019-07-30 Identification code allocation method and device

Country Status (1)

Country Link
CN (1) CN110247828B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882133A (en) * 2005-06-14 2006-12-20 明基电通股份有限公司 Identification code distributing system and its method
CN107786628A (en) * 2017-07-24 2018-03-09 上海壹账通金融科技有限公司 Business numbering distribution method, device, computer equipment and storage medium
US20180300623A1 (en) * 2017-04-17 2018-10-18 Microsoft Technology Licensing, Llc Multifactor venue localization using centralized learning
CN109862097A (en) * 2019-01-31 2019-06-07 上海易点时空网络有限公司 ID generation method and device
CN109960676A (en) * 2019-03-21 2019-07-02 浪潮商用机器有限公司 A kind of electronic system and its Position Number distribution method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882133A (en) * 2005-06-14 2006-12-20 明基电通股份有限公司 Identification code distributing system and its method
US20180300623A1 (en) * 2017-04-17 2018-10-18 Microsoft Technology Licensing, Llc Multifactor venue localization using centralized learning
CN107786628A (en) * 2017-07-24 2018-03-09 上海壹账通金融科技有限公司 Business numbering distribution method, device, computer equipment and storage medium
CN109862097A (en) * 2019-01-31 2019-06-07 上海易点时空网络有限公司 ID generation method and device
CN109960676A (en) * 2019-03-21 2019-07-02 浪潮商用机器有限公司 A kind of electronic system and its Position Number distribution method

Also Published As

Publication number Publication date
CN110247828B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN106020592A (en) Split screen display method and device
RU2652452C2 (en) Device and method for network status information representation
CN109445811A (en) Gray scale dissemination method, device, computer equipment and computer storage medium
CN110633151A (en) Method, device and storage medium for balancing distributed message issuing cluster partitions
CN110309002A (en) Message treatment method, device, electronic equipment and storage medium
CN106201686A (en) Management method, device and the terminal of application
CN106710540A (en) Liquid crystal display method and device
CN113329240A (en) Screen projection method and device
CN108965611B (en) Shooting interface switching method, device, equipment and storage medium
CN113365153B (en) Data sharing method and device, storage medium and electronic equipment
CN109863810A (en) Reference signal transmission method and device
CN106710539A (en) Liquid crystal display method and device
CN105912450A (en) Method and device for displaying state information of application
CN106383627A (en) Information displaying method and apparatus
CN110446079A (en) Obtain method, apparatus, electronic equipment and the storage medium of viewing duration
CN105159676B (en) The loading method of progress bar, device and system
CN107330391A (en) Product information reminding method and device
CN109951701A (en) Monitor fault handling method and device
CN106254669A (en) Data traffic based reminding method and device
CN113705389A (en) Face recognition module testing method and device, storage medium and electronic equipment
CN109376013A (en) Load-balancing method and device
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN111338971A (en) Application testing method and device, electronic equipment and storage medium
CN110247828A (en) Identity assignments method and device
CN107846481A (en) account management method and device

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