CN111290761A - Gray scale distribution method, device, medium and electronic equipment - Google Patents

Gray scale distribution method, device, medium and electronic equipment Download PDF

Info

Publication number
CN111290761A
CN111290761A CN201811502044.9A CN201811502044A CN111290761A CN 111290761 A CN111290761 A CN 111290761A CN 201811502044 A CN201811502044 A CN 201811502044A CN 111290761 A CN111290761 A CN 111290761A
Authority
CN
China
Prior art keywords
serial number
identification code
gray scale
user
gray
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811502044.9A
Other languages
Chinese (zh)
Inventor
于佳欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201811502044.9A priority Critical patent/CN111290761A/en
Publication of CN111290761A publication Critical patent/CN111290761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords

Abstract

The embodiment of the invention provides a gray scale release method, a gray scale release device, a gray scale release medium and electronic equipment. The gray scale release method comprises the following steps: generating a serial number corresponding to the identification code according to the identification code of the user; acquiring the gray release percentage, and calculating the boundary value of the serial number according to the gray release percentage; and determining the users participating in the gray scale release according to the boundary value. The technical scheme of the embodiment of the invention can improve the accuracy of the user flow in the gray release.

Description

Gray scale distribution method, device, medium and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a grayscale distribution method, a grayscale distribution apparatus, a storage medium, and an electronic device.
Background
With the development of computer technology, internet companies are increasingly competitive, and the update and upgrade periods of software products are shorter and shorter, for example, Application programs (APPs) on mobile phones are updated at intervals, operating systems are released with latest systems at intervals, and the like.
The gray release may refer to a release manner in which a part of users who use an old version is transferred to a newly released version, the new version is adjusted according to the use of the part of users, and all the users are gradually transferred to the new version. The method can find problems in time according to the use of a part of users, improve the problems and enable the new version to be more optimized, has smaller influence range, is more convenient when the new version needs to be withdrawn, and enables the release of the new version to be more controllable. Therefore, it becomes very important how to screen all users for using the new version.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
An embodiment of the present invention provides a gray scale publishing method, a gray scale publishing device, a storage medium, and an electronic device, so as to overcome, at least to a certain extent, a problem that a user traffic of gray scale publishing cannot be accurately determined.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of the embodiments of the present invention, there is provided a gray scale issuing method including:
generating a serial number corresponding to the identification code according to the identification code of the user;
acquiring the gray release percentage, and calculating the boundary value of the serial number according to the gray release percentage;
and determining the users participating in the gray scale release according to the boundary value.
In an example embodiment of the present invention, the generating a serial number corresponding to the identification code according to the identification code of the user includes;
and numbering the identification codes of the users in sequence according to the total number of the users to generate serial numbers corresponding to the identification codes.
In an exemplary embodiment of the present invention, after generating the serial number corresponding to the identification code, the method further includes:
updating the identification code every other preset time period;
and regenerating the serial number corresponding to the identification code according to the updated identification code.
In an example embodiment of the present invention, a serial number corresponding to an identification code is generated according to the identification code of a user, including;
and generating a serial number corresponding to the identification code of the user based on the distributed lock.
In an exemplary embodiment of the present invention, the determining, according to the boundary value, a user participating in gray release includes:
judging whether the serial number corresponding to the identification code of the user is smaller than the boundary value or not;
and if the serial number is smaller than the boundary value, determining that the user corresponding to the serial number is a user participating in gray scale release.
In an exemplary embodiment of the present invention, after determining, according to the boundary value, a user participating in the gray release, the method further includes:
and deleting the serial number corresponding to the identification code when the preset gray scale period is finished.
In an exemplary embodiment of the present invention, calculating the boundary value of the serial number according to the gray release percentage includes:
and calculating the boundary value of the serial number according to the total number of the identification codes and the gray level release percentage.
According to a second aspect of the embodiments of the present invention, there is provided a gradation issuance apparatus including:
the serial number acquisition unit is used for generating a serial number corresponding to the identification code according to the identification code of the user;
the interface value acquisition unit is used for acquiring the gray level release percentage and calculating the interface value of the serial number according to the gray level release percentage;
and the participating user determining unit is used for determining the users participating in the gray release according to the boundary value.
In an exemplary embodiment of the present invention, the sequence number obtaining unit includes:
and the serial number generation first unit is used for sequentially numbering the identification codes of the users according to the total number of the users and generating the serial numbers corresponding to the identification codes.
In an exemplary embodiment of the present invention, the gradation issuance apparatus further includes:
the identification code updating unit is used for updating the identification code every other preset time period;
and the serial number generation second unit is used for regenerating the serial number corresponding to the identification code according to the updated identification code.
In an exemplary embodiment of the present invention, the sequence number obtaining unit includes:
and the serial number generation third unit is used for generating a serial number corresponding to the identification code of the user based on the distributed lock.
In an exemplary embodiment of the present invention, the participating user determining unit includes:
the judging unit is used for judging whether the serial number corresponding to the identification code of the user is smaller than the boundary value or not;
and the determining unit is used for determining that the user corresponding to the serial number is the user participating in gray scale release if the serial number is smaller than the boundary value.
In an exemplary embodiment of the present invention, the gradation issuance apparatus further includes:
and the serial number deleting unit is used for deleting the serial number corresponding to the identification code when the preset gray scale period is finished.
In an exemplary embodiment of the present invention, the boundary value obtaining unit includes:
and the calculating unit is used for calculating the boundary value of the serial number according to the total number of the identification codes and the gray level release percentage.
According to a third aspect of embodiments of the present invention, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the gray scale publishing method as described in the first aspect of the embodiments above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the greyscale distribution method as described in the first aspect of the above embodiments.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical scheme provided by some embodiments of the present invention, a serial number corresponding to an identification code is generated by the identification code of a user, then a gray scale release percentage is obtained, a boundary value of the serial number is calculated according to the gray scale release percentage, and the user participating in gray scale release is determined according to the boundary value; on one hand, the method can realize accurate positioning of the participating users of the gray release and improve the flow accuracy of the gray release users; on the other hand, the method can be applied to different gray scale publishing scenes through different gray scale publishing percentages, is simple and flexible, and improves the gray scale publishing efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 schematically shows a system architecture diagram for implementing a gray scale publishing method in an embodiment in accordance with the invention;
FIG. 2 schematically shows a flow chart of a gray scale publishing method according to an embodiment of the invention;
fig. 3 schematically shows a flow chart of a gray scale publishing method according to another embodiment of the invention;
fig. 4 schematically shows a structural diagram of a gradation issuance apparatus according to an embodiment of the present invention;
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The present exemplary embodiment first provides a system architecture for implementing a grayscale publishing method, which can be applied to various product publishing scenarios, such as product update, product online, and the like. Referring to fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send request instructions or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a photo processing application, a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for shopping-like websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the gray scale distribution method provided by the embodiment of the present invention is generally executed by the server 105, and accordingly, the gray scale distribution apparatus is generally provided in the terminal device 101.
Based on the system architecture 100 described above, an exemplary embodiment of the present invention provides a gray scale publishing method. As shown in fig. 2, the method may include steps S210, S220, S230. Wherein:
step S210, generating a serial number corresponding to the identification code according to the identification code of the user;
step S220, obtaining the gray level release percentage, and calculating the boundary value of the serial number according to the gray level release percentage;
and step S230, determining the users participating in the gray release according to the boundary value.
In the gray scale publishing method of the exemplary embodiment, a serial number corresponding to an identification code is generated through the identification code of a user, then a gray scale publishing percentage is obtained, a boundary value of the serial number is calculated according to the gray scale publishing percentage, and the user participating in gray scale publishing is determined according to the boundary value; on one hand, the method can realize accurate positioning of the participating users of the gray release and improve the flow accuracy of the gray release users; on the other hand, the method can be applied to different gray scale publishing scenes through different gray scale publishing percentages, is simple and flexible, and improves the gray scale publishing efficiency.
Next, each step of the gradation issuance method in the present exemplary embodiment will be described in more detail with reference to fig. 2 to 3.
Step S210, generating a serial number corresponding to the identification code according to the identification code of the user.
In the present exemplary embodiment, the identification code of the user may include information identifying the user or information capable of verifying the identity of the user. The identification codes may be unique to each user and do not duplicate each other. Also, the identification code may be composed of characters of numbers, letters, or non-numeric letters, such as 123456, abcd, @ # $, or the like, or may be composed of characters of numbers, letters, or non-numeric letters, such as 123abc, 2323@ abc, or the like, which is not limited in this example embodiment. In addition, the length of the identification code may be any length according to the actual situation, for example, 5 characters, 10 characters, and so on.
Likewise, the serial number may comprise a non-repeating, long string of characters, which may include numeric, alphabetic, non-numeric alphabetic characters, or combinations thereof, e.g., 123a56, 1, abc, and the like. Also, the serial numbers may have a relationship with each other, e.g., the numeric portions of the serial numbers may be progressively larger, progressively smaller, etc., the alphabetical portions of the serial numbers may vary alphabetically, etc.
For example, a serial number corresponding to the identification code may be generated according to the identification code of the user, the user may be numbered in sequence according to a random order of the user, and the generated serial number may be used as the serial number corresponding to the identification code of the user. For another example, a string of numbers may be randomly generated for each identification code, and the string of numbers may be used as a serial number corresponding to the identification code of the user without being repeated. Of course, the serial number corresponding to the identification code may be generated in other manners according to actual situations, for example, a serial number generator is used to generate the serial number corresponding to each identification code, or a custom function method is used to generate the serial number corresponding to the identification code. Preferably, the identification codes of the users may be sequentially numbered according to the total number of the users, and a serial number corresponding to the identification code is generated. Specifically, the method comprises the following steps:
the user identification codes may be sequentially numbered according to the total number of the users, for example, the serial number corresponding to the identification code of the first user may be "1", and the serial number corresponding to the identification code of the second user may be "2", until the last user, whose serial number corresponds to the identification code of the last user is the total number of the users. Of course, the identification codes of the users may be numbered in other manners, for example, by using a random number generator, randomly generating a serial number corresponding to the identification code of each user, and so on.
Further, in order to prevent the multiple threads from generating the serial numbers at the same time, which causes confusion of the correspondence relationship between the identification codes of the users and the serial numbers, the serial numbers corresponding to the identification codes of the users can be generated based on the distributed lock. That is to say, a distributed lock may be set, the distributed lock is acquired when a serial number corresponding to the identification code of the user needs to be generated, the serial number corresponding to the identification code of the user may be generated after the distributed lock is acquired, and the distributed lock may be released after the serial number corresponding to the identification code of the user is generated, so that it is ensured that the acquired serial number corresponds to the identification code of the user one to one.
Various information of the user can be stored in the database, and thus the identification code of the user can also be acquired by accessing the database. In a distributed environment, multiple requests may be processed simultaneously, that is, multiple threads may access user information simultaneously. When a plurality of threads simultaneously request user information to generate a serial number corresponding to a user, the serial numbers generated by the respective threads may be repeated, that is, a plurality of users may correspond to the same serial number. Therefore, a distributed lock can be set for the user information, and when the serial number corresponding to the user needs to be generated, the user information only responds to one request at a time, so that the data required by the request is provided. In detail, in a distributed environment, when a plurality of threads simultaneously request to acquire an identification code of a user, a distributed lock configured for information including the identification code of the user needs to be acquired first. The thread which acquires the distributed lock can further acquire the identification code of the user, so that a serial number corresponding to the identification code of the user is generated, the distributed lock can be released after the task execution of the thread is completed, and the thread which does not acquire the distributed lock can acquire the distributed lock again after waiting for the distributed lock to be released. For example, the thread a and the thread B request to acquire the user identification code at the same time, and the thread a preemptively acquires the lock of the user identification code, then the thread a may acquire the user identification code, and further generate a corresponding serial number according to the user identification code, and the thread B may wait for the thread a to release the lock and then acquire the lock again, and only the thread that acquires the lock may operate on the user identification code.
It will be appreciated that instead of providing a distributed lock to the user's identification code, a distributed lock may be provided to the method of generating the identification code. In detail, a distributed lock may be set to lock a method of generating a corresponding serial number according to an identification code of a user. At this time, if the thread requests execution of the method for generating a serial number, the lock of the method may be acquired first, and after the lock of the method is acquired, the method may be executed. However, other distributed locks may be provided, such as a distributed lock for a method of obtaining a user identification code, and so forth.
Still further, due to the continuous updating of the user, the identification code of the user may be cancelled after the user cancels the account, at this time, the corresponding relationship between the serial number of the user and the identification code does not exist, and the serial number of the user may not have meaning and becomes redundant data. Therefore, after the serial number corresponding to the identification code is generated, the identification code can be updated every preset time period; and then, according to the updated identification code, the serial number corresponding to the identification code is regenerated.
Step S220, obtaining the gray level release percentage, and calculating the boundary value of the serial number according to the gray level release percentage.
Grayscale publishing may be used to publish any new products, e.g., new application systems, new applications, etc. The gray release can separate a part of users who use a new product from users who use an old product, and then can improve the new product according to the use opinions of the part of users, and gradually increase the total number of users who use the new product until all the users use the new product. Therefore, the gradation issuance percentage may include a proportion of users participating in gradation issuance among all users, that is, a proportion of users using a new product. The percentage of gray release may be set by the operation and maintenance personnel, and the percentage of gray release may be different for each product, e.g., 10%, 20%, etc. Of course, the percentages of the multiple gray releases may be the same, for example, unified to a default value of 20%.
In the exemplary embodiment, after the gray scale issuance percentage is determined, the boundary value of the serial number may be calculated according to the gray scale issuance percentage. The boundary value of the serial number can be determined by performing mathematical calculation on the gray scale release percentage and the total number of the users, or the identification code of the user is transformed to obtain the mathematical expression of the identification code, and then the boundary value of the serial number is determined according to the calculation between the gray scale release percentage and the mathematical expression. For example, the number of users who can participate in the gray release can be obtained by multiplying the total number of the identification codes, that is, the total number of the users by the gray release percentage, and the number is used as a boundary value of the serial number. For example, the total number of users is 10000, the gray scale release percentage is 10%, and the product of the total number of users and the gray scale release percentage, that is, the boundary value of the serial number may be 1000. Of course, the boundary value of the serial number may be calculated by other methods, for example, the difference between the maximum value and the minimum value of the serial number is used, and then the result of multiplying the maximum value by the gray release percentage is used as the boundary value, and the like. Preferably, the boundary value of the serial number is calculated according to the total number of the identification codes and the gray scale release percentage.
And step S230, determining the users participating in the gray release according to the boundary value.
In the present exemplary embodiment, after the boundary value of the serial number is determined, the user participating in the gray release may be determined according to the boundary value. The user participating in the gradation issuance may be a user who satisfies a specific relationship between the serial number and the boundary value, and for example, a user corresponding to a serial number smaller than the boundary value may be determined as a user participating in the gradation issuance. Of course, the users participating in the gray scale distribution may also be determined in other manners according to the boundary value, for example, the user corresponding to the serial number with the serial number being a multiple of the boundary value is the user participating in the gray scale distribution, and so on.
Therefore, in the present exemplary embodiment, step S230 may further include step S301 and step S302. As shown in fig. 3, wherein:
step S301, judging whether the serial number corresponding to the identification code of the user is smaller than the demarcation value;
step S302, if the serial number is smaller than the boundary value, determining that the user corresponding to the serial number is a user participating in gray scale release.
That is, the serial number corresponding to the user may be sequentially compared with the boundary value, and the serial number smaller than the boundary value may be the serial number corresponding to the user participating in the gray scale distribution.
Further, after the user participating in the gray scale release is determined, the serial number corresponding to the identification code can be deleted when the preset gray scale period is over. The preset gray scale period may include an effective time of gray scale release. The gray scale release may be valid within the preset gray scale period, and if the preset gray scale period is exceeded, it may be determined that the gray scale release is ended. At the end of the release of the gradation, the above-mentioned serial number may be deleted. And, the preset gray period may be set by operation and maintenance personnel, and different gray releases may set gray periods with different durations, for example, 5 days, 8 days, and so on. Alternatively, a default value may be set, and the default value may be used as a preset gray scale period for gray scale distribution, for example, 5 days.
The following describes embodiments of the apparatus of the present invention, which can be used to implement the above-described gray scale distribution method of the present invention. As shown in fig. 4, the gray scale issuing apparatus 400 may include:
a serial number obtaining unit 410, configured to generate a serial number corresponding to an identification code according to the identification code of a user;
a boundary value obtaining unit 420, configured to obtain a gray release percentage, and calculate a boundary value of the serial number according to the gray release percentage;
and a participating user determining unit 430, configured to determine, according to the boundary value, a user participating in the gray-scale distribution.
In an exemplary embodiment of the present invention, the serial number obtaining unit 410 includes:
a first serial number generation unit 401, configured to sequentially number the identification codes of the users according to the total number of the users, and generate a serial number corresponding to the identification code.
In an exemplary embodiment of the present invention, the gray scale issuing apparatus 400 further includes:
an identification code updating unit 402, configured to update the identification code every preset time period;
a second serial number generation unit 403, configured to regenerate, according to the updated identification code, a serial number corresponding to the identification code.
In an exemplary embodiment of the present invention, the serial number obtaining unit 410 includes:
a third serial number generation unit 404 is configured to generate a serial number corresponding to the identification code of the user based on the distributed lock.
In an exemplary embodiment of the present invention, the participating user determining unit 430 includes:
a determining unit 405, configured to determine whether the serial number corresponding to the identification code of the user is smaller than the boundary value;
a determining unit 406, configured to determine, if the serial number is smaller than the boundary value, that the user corresponding to the serial number is a user participating in gray scale publishing.
In an exemplary embodiment of the present invention, the gray scale issuing apparatus 400 further includes:
and the serial number deleting unit 407 is configured to delete the serial number corresponding to the identification code when the preset gray scale period ends.
In an exemplary embodiment of the present invention, the boundary value obtaining unit 420 includes:
the calculating unit 408 is configured to calculate a boundary value of the serial number according to the total number of the identification codes and the gray scale issue percentage.
As the respective functional blocks of the gray scale distribution device of the exemplary embodiment of the present invention correspond to the steps of the exemplary embodiment of the gray scale distribution method described above, for details not disclosed in the embodiment of the device of the present invention, refer to the above-described embodiment of the gray scale distribution method of the present invention.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The CPU501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the gradation issuance method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 2: step S210, generating a serial number corresponding to the identification code according to the identification code of the user; step S220, obtaining the gray level release percentage, and calculating the boundary value of the serial number according to the gray level release percentage; and step S230, determining the users participating in the gray release according to the boundary value.
As another example, the electronic device may implement the steps shown in fig. 3.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A gray scale issuing method characterized by comprising:
generating a serial number corresponding to the identification code according to the identification code of the user;
acquiring the gray release percentage, and calculating the boundary value of the serial number according to the gray release percentage;
and determining the users participating in the gray scale release according to the boundary value.
2. The gray scale publishing method according to claim 1, wherein the generating of the serial number corresponding to the identification code according to the identification code of the user comprises;
and numbering the identification codes of the users in sequence according to the total number of the users to generate serial numbers corresponding to the identification codes.
3. The method for issuing gray scale according to claim 2, wherein after generating the serial number corresponding to the identification code, the method further comprises:
updating the identification code every other preset time period;
and regenerating the serial number corresponding to the identification code according to the updated identification code.
4. The gray scale publishing method of claim 1, wherein a serial number corresponding to the identification code is generated according to the identification code of the user, comprising;
and generating a serial number corresponding to the identification code of the user based on the distributed lock.
5. The method for issuing gray scale according to claim 1, wherein said determining users participating in gray scale issuing according to the boundary value comprises:
judging whether the serial number corresponding to the identification code of the user is smaller than the boundary value or not;
and if the serial number is smaller than the boundary value, determining that the user corresponding to the serial number is a user participating in gray scale release.
6. The method for issuing gradation according to claim 1, further comprising, after determining the user who participates in gradation issuance based on the boundary value:
and deleting the serial number corresponding to the identification code when the preset gray scale period is finished.
7. The gray scale issuance method according to claim 1, wherein calculating the boundary value of the serial number according to the gray scale issuance percentage comprises:
and calculating the boundary value of the serial number according to the total number of the identification codes and the gray level release percentage.
8. A gradation issuance apparatus comprising:
the serial number acquisition unit is used for generating a serial number corresponding to the identification code according to the identification code of the user;
the interface value acquisition unit is used for acquiring the gray level release percentage and calculating the interface value of the serial number according to the gray level release percentage;
and the participating user determining unit is used for determining the users participating in the gray release according to the boundary value.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the gray scale distribution method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the gray scale publishing method as claimed in any one of claims 1-7.
CN201811502044.9A 2018-12-10 2018-12-10 Gray scale distribution method, device, medium and electronic equipment Pending CN111290761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811502044.9A CN111290761A (en) 2018-12-10 2018-12-10 Gray scale distribution method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811502044.9A CN111290761A (en) 2018-12-10 2018-12-10 Gray scale distribution method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111290761A true CN111290761A (en) 2020-06-16

Family

ID=71021540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811502044.9A Pending CN111290761A (en) 2018-12-10 2018-12-10 Gray scale distribution method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111290761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650523A (en) * 2020-12-02 2021-04-13 青岛海尔科技有限公司 Data distribution method, device and equipment for gray scale release

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650523A (en) * 2020-12-02 2021-04-13 青岛海尔科技有限公司 Data distribution method, device and equipment for gray scale release
CN112650523B (en) * 2020-12-02 2023-06-16 青岛海尔科技有限公司 Data distribution method, device and equipment for gray level release

Similar Documents

Publication Publication Date Title
CN107145395B (en) Method and device for processing task
CN109299348B (en) Data query method and device, electronic equipment and storage medium
CN108520470B (en) Method and apparatus for generating user attribute information
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN108933695B (en) Method and apparatus for processing information
CN113656179A (en) Scheduling method and device of cloud computing resources, electronic equipment and storage medium
CN111126948A (en) Processing method and device for approval process
CN111062572A (en) Task allocation method and device
CN107291923B (en) Information processing method and device
CN109218024B (en) Method and device for controlling authority
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN111290761A (en) Gray scale distribution method, device, medium and electronic equipment
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN111125503B (en) Method and apparatus for generating information
CN108804442B (en) Serial number generation method and device
CN109472540B (en) Service processing method and device
CN110020040B (en) Method, device and system for querying data
CN116204428A (en) Test case generation method and device
CN114399259A (en) Employee data processing method and device
CN111767290B (en) Method and apparatus for updating user portraits
CN109408716B (en) Method and device for pushing information
CN113722007A (en) Configuration method, device and system of VPN branch equipment
EP3617906A1 (en) Method and apparatus for updating information
CN113362097B (en) User determination method and device
CN111143408B (en) Event processing method and device based on business rule

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