CN113779096A - Identification code generation method, device, equipment and storage medium - Google Patents

Identification code generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113779096A
CN113779096A CN202010525654.1A CN202010525654A CN113779096A CN 113779096 A CN113779096 A CN 113779096A CN 202010525654 A CN202010525654 A CN 202010525654A CN 113779096 A CN113779096 A CN 113779096A
Authority
CN
China
Prior art keywords
identification code
color
user
evaluation index
determining
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
CN202010525654.1A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010525654.1A priority Critical patent/CN113779096A/en
Publication of CN113779096A publication Critical patent/CN113779096A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/30ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • Public Health (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Epidemiology (AREA)
  • Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides an identification code generation method, an identification code generation device, identification code generation equipment and a storage medium, wherein the method comprises the following steps: acquiring a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes; and determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of the user, wherein the candidate identification code colors are selected from multiple preset identification code colors. And determining the color of the target identification code corresponding to the identification code according to the candidate identification code color corresponding to each of the plurality of evaluation indexes. And generating the color of the identification code target identification code according to the user identification information to reflect the health state of the user. An identification code which can reflect the health state of the user is generated for the user based on various evaluation indexes, and intelligent management of the user based on the health state of the user can be conveniently realized.

Description

Identification code generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an identification code generation method, apparatus, device, and storage medium.
Background
In daily work and life of people, various safety problems are concerned, such as equipment operation safety problems, diet safety problems, hospitalizing environment safety problems and the like.
Many safety issues focus on a common point-human health issues. For example, in order to ensure the safety of the masses, many sites need to detect the health status of the entering masses, so as to avoid the potential safety hazard caused by the users infected with some infectious diseases entering the sites at will.
Therefore, it is an urgent problem to provide an intelligent solution for conveniently monitoring the health condition of a user.
Disclosure of Invention
The embodiment of the invention provides an identification code generation method, an identification code generation device, equipment and a storage medium, wherein the identification code capable of reflecting the health state of a user is generated, so that the health state of the user is monitored based on the identification code.
In a first aspect, an embodiment of the present invention provides an identification code generation method, where the method includes:
acquiring a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes;
determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of a user, wherein the candidate identification code colors are selected from multiple preset identification code colors;
and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the health state of the user.
In a second aspect, an embodiment of the present invention provides an identification code generating apparatus, where the apparatus includes:
the system comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is used for acquiring a first evaluation index set adopted currently, and the first evaluation index set comprises a plurality of evaluation indexes;
the determining module is used for determining candidate identification code colors corresponding to the evaluation indexes according to user data corresponding to the evaluation indexes, wherein the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the health state of the user.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the identification code generation method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the identification code generation method according to the first aspect.
In a fifth aspect, an embodiment of the present invention provides an identification code generation method, where the method includes:
acquiring a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes;
determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of a user, wherein the candidate identification code colors are selected from multiple preset identification code colors;
and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the attribute information of the user.
In a sixth aspect, an embodiment of the present invention provides an identification code generating apparatus, where the apparatus includes:
the system comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is used for acquiring a first evaluation index set adopted currently, and the first evaluation index set comprises a plurality of evaluation indexes;
the determining module is used for determining candidate identification code colors corresponding to the evaluation indexes according to user data corresponding to the evaluation indexes, wherein the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the attribute information of the user.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the identification code generation method according to the fifth aspect.
In an eighth aspect, the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least the identification code generation method according to the fifth aspect.
In the embodiment of the invention, an identification code for representing the identity of the user can be generated for the user on line based on the user identification information, and certain set attribute information, such as the physical health state, can be reflected by the color of the identification code. In fact, multiple identification code colors can be preset according to actual requirements, and different identification code colors correspond to different body health states. In addition, when the physical health state of a person is comprehensively evaluated, a plurality of evaluation indexes are often involved, so that after an identification code corresponding to a certain user is generated for the certain user, the color of the target identification code indicating the physical health state of the user can be determined in the following way (the color of the finally determined identification code is referred to as the color of the target identification code): according to user data corresponding to a plurality of currently adopted evaluation indexes of a user, determining identification code colors (called candidate identification code colors) corresponding to the evaluation indexes from the preset identification code colors, and further determining target identification code colors according to the candidate identification code colors corresponding to the evaluation indexes, namely determining one of the candidate identification code colors corresponding to the evaluation indexes as the target identification code color according to a set judgment strategy, wherein the target identification code color can accurately reflect the body health state of the user. Based on the identification code which is generated for the user and can reflect the health state of the user, the intelligent management of the user based on the health state of the user can be conveniently realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of an identification code generation method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of an identification code generation method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for determining whether a color of a target identification code corresponding to an identification code is invalid according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a process of re-determining a color of a target identification code corresponding to the identification code according to an embodiment of the present invention;
fig. 5 is a flowchart of an identification code generation method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an identification code generating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the identification code generating apparatus provided in the embodiment shown in fig. 6;
fig. 8 is a schematic structural diagram of an identification code generating apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device corresponding to the identification code generating apparatus provided in the embodiment shown in fig. 8.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
The identification code generation method provided by the embodiment of the invention can be executed by certain electronic equipment, and the electronic equipment can be a server or a server cluster at the cloud end and can be collectively called as a server.
The identification code generation method provided by the embodiment of the invention mainly aims to: an identification code reflecting its own health status is generated for the user, which may be referred to visually as a health code. Specifically, the identification code ultimately needs to embody two dimensions of information of the user: the first is identity information and the second is health status. Therefore, in the embodiment of the invention, the following identification code generation thought is adopted: firstly, an identification code is generated based on user identification information, and secondly, the color of the identification code is determined according to a set policy.
The user identification information may be understood as user identity information, and the identification code generated based on the user identification information is actually an identification code having a specific pattern shape or code string. For example, when the identification code is a two-dimensional code, the pattern shape of the two-dimensional code is influenced by the user identification information.
In the embodiment of the invention, the health state of the user is reflected by the color of the identification code. That is, after generating an identification code having a certain code string or pattern shape based on user identification information, it is necessary to determine the color of the identification code according to some set policy so as to reflect the health status of the user based on the color. Therefore, in some practical application scenes, the related staff can directly know the current health state of the user based on the color of the identification code of the user, and the intelligent management of the user is convenient to realize.
In addition, it is understood that the health status of the user may change dynamically, and thus, when the health status of the user changes, the color of the corresponding identification code needs to be updated in time.
The following exemplifies the practical application scenario of the above identification code reflecting the health status of the user through different colors.
Given that an epidemic of an infectious disease is outbreaking in a certain area, the epidemic of the infectious disease can be spread by some means. Enterprises or other places need to detect people who enter and exit for the purpose of safe production and the like, and timely discover users who have infectious diseases or users with high infection risks. At this time, the identification code is generated for the user, and the health state of the user (the health state refers to the risk of the user infecting the infectious disease) is reflected through the color of the identification code, so that the related staff can intuitively know the risk of each user infecting the infectious disease according to the color of the identification code of each user, and corresponding prevention and control measures are taken. For example, if the identification code of a certain user is green, it indicates that the user has a very low risk of contracting an infectious disease; if the identification code of a certain user is yellow, the user is indicated to have a medium risk level of infecting infectious diseases; if the identification code of a certain user is red, it indicates that the user has a very high risk of contracting an infectious disease.
As can be seen from the above examples, the color of the identification code reflects the health condition of the respective user and whether there is a potential health risk. If the color of the identification code is not updated in time, the potential health risks of the corresponding user and other users in close contact therewith are increased, and therefore, the timely update of the color of the identification code is important.
The following embodiments are provided to specifically describe how to determine the color of the identification code and timely update the color of the identification code.
Fig. 1 is a flowchart of an identification code generation method according to an embodiment of the present invention, and as shown in fig. 1, the identification code generation method may include the following steps:
101. the method comprises the steps of obtaining a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes.
102. And determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of the user, wherein the candidate identification code colors are selected from multiple preset identification code colors.
103. And determining the color of the target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the plurality of evaluation indexes, wherein the identification code is generated according to the user identification information, and the color of the target identification code can reflect the health state of the user.
In the embodiment of the invention, in order to generate the identification code reflecting the health state of the user, information related to the user needs to be acquired, and the information comprises user identification information representing the identity of the user and other related data. These user-related information are all available for user authorization.
The identification code may be a two-dimensional code, and of course, may also be a barcode, a QR code, and the like.
Alternatively, the user identification information may be acquired to generate the identification code based on the user identification information as follows: and the server receives an acquisition request for acquiring the identification code sent by the user through the client, and acquires user identification information according to the user real-name authentication information bound by the client.
After receiving the acquisition request, the server corresponding to the client may perform real-name authentication on the user based on user real-name authentication information bound to the user when registering the client, and after the authentication is passed, may obtain user identification information based on the user real-name authentication information. The user identification information is used to uniquely identify the user, and in practical applications, the user identification information may include, for example: name, telephone number, certificate number, city of residence, etc.
Of course, the obtaining manner of the user identification information is not limited to the above-mentioned implementation manner, and may also be obtained by other manners, such as manually inputting the user identification information by the user.
After the user identification information is obtained, the user identification information is used as input information for generating the identification code to generate the identification code containing the user identification information.
In practical applications, the input information may also include time stamp information and other required information during the process of generating the identification code. Such as: the time stamp information and the user identification information are used as input information for generating the identification code.
After generating the identification code containing the user identification information, it is necessary to determine the color of the identification code so as to reflect the health status of the user at the time of generating the identification code by the color.
In fact, multiple identification code colors can be preset according to actual requirements, and different identification code colors correspond to different body health states. For the avoidance of doubt, it is to be understood that the plurality of codes are not the plurality of colors.
For example, the plurality of identification code colors includes: red, yellow, green. Then, for example, the identification code C generated for a certain user is determined to be one of the three colors.
In addition, when the physical health state of a person is comprehensively evaluated, a plurality of evaluation indexes are often involved, so that after an identification code C corresponding to a certain user is generated for the certain user, the following ideas can be adopted to determine the color of the identification code C: firstly, determining the color of the identification code corresponding to each evaluation index, then comprehensively considering the colors of the identification codes corresponding to the plurality of evaluation indexes, and finally determining the color of the identification code C.
For convenience of description, the identification code color corresponding to each evaluation index is called a candidate identification code color; and finally, the finally determined identification code color corresponding to a certain identification code is called a target identification code color. The candidate identification code color and the target identification code color are selected from the preset multiple identification code colors.
In practical applications, various evaluation indexes for evaluating the health status of the user may change dynamically, for example, some evaluation indexes may be added or some evaluation indexes may be deleted. Related staff can configure the evaluation indexes required to be used in different time periods at the server according to actual conditions. For example, if an epidemic situation of a certain infectious disease begins to outbreak in the area a, the set evaluation indexes may include an evaluation index of "whether to go to the area a". However, with the development of the epidemic situation, after a while, the area a does not belong to the disaster area, but the epidemic situation of the area B becomes more serious, at this time, the previous evaluation index is deleted, and a new evaluation index "whether to go to the area B" is added.
Based on this, taking the user X as an example, assuming that the identification code C has been generated for the user based on the user identification information thereof, in the process of determining the color of the target identification code of the identification code C, first, a first evaluation index set currently used for determining the color of the identification code needs to be acquired, and it is assumed that the plurality of evaluation indexes included in the first evaluation index set include an evaluation index 1, an evaluation index 2, an evaluation index 3, and an evaluation index 4. And then, determining candidate identification code colors corresponding to the multiple evaluation indexes according to the user data corresponding to the multiple evaluation indexes of the user. And finally, determining the color of the target identification code corresponding to the identification code C according to the candidate identification code color corresponding to each of the plurality of evaluation indexes.
In practical application, for any evaluation index i in the first evaluation index set, a corresponding relationship between the corresponding determination result and the color of the identification code is set, and when the user data corresponding to the evaluation index i meets a certain determination result corresponding to the evaluation index i, the color of the candidate identification code corresponding to the evaluation index i is determined according to the corresponding relationship.
In practical applications, several determination results corresponding to the evaluation index i may be preset, and in this case, the user data corresponding to the evaluation index i may be what determination result the user corresponds to among the several determination results corresponding to the evaluation index i. For example, the evaluation index i is: whether fever occurs or not, and the corresponding judgment result comprises the following steps: yes and no. The user data corresponding to a certain user under the evaluation index i may be the user belonging to one of the two determination results corresponding to the evaluation index i.
For ease of understanding, the above-described process of determining the color of the identification code is exemplified below with reference to fig. 2.
Fig. 2 illustrates an application scenario in which the risk of infection of an individual user due to an infection outbreak needs to be taken into account, as also exemplified above. The preset colors of the identification codes are assumed as follows: red, yellow, green.
Assume that the identification code C generated for the user X is a two-dimensional code illustrated in fig. 2. In fig. 2, it is assumed that the evaluation index 1 is: whether fever occurs; the evaluation index 2 was: whether a cough is present; the evaluation index 3 was: whether the user goes to the area A or not; the evaluation index 4 was: whether or not contact has been made with a person who has visited area a.
Further, it is assumed that, for the evaluation index 1, if the determination result is: and if fever occurs, the corresponding candidate identification code has the color as follows: red; if the judgment result is that: if no fever occurs, the corresponding candidate identification code has the color: green in color. For the evaluation index 2, if the determination result is: cough, then the corresponding candidate identification code color is: red; if the judgment result is that: if the cough does not appear, the corresponding candidate identification code has the color: green in color. For the evaluation index 3, if the determination result is: after that, the corresponding candidate identification code has the color: red; if the judgment result is that: if the candidate identification code is not used, the corresponding color of the candidate identification code is as follows: green in color. For the evaluation index 4, if the determination result is: after contact, the corresponding candidate identification code has the color: yellow; if the judgment result is that: if not, the corresponding candidate identification code has the color: green in color.
Based on the above assumption, in practical applications, after the server generates the identification code C based on the user identification information, the server may send a determination request to the data provider corresponding to each evaluation index based on the user identification information, where the determination request is used to request the corresponding data provider to give a corresponding determination result of the user under the corresponding evaluation index based on the user data maintained by the corresponding data provider.
Taking the evaluation index 1 and the evaluation index 2 as an example, since both of the evaluation indexes are indexes corresponding to the symptoms, it is possible to determine whether the user has symptoms of fever and cough based on user data such as medical attendance and medicine purchase of the user. Assuming that a data provider maintains user data such as medical treatment and medicine purchase of a large number of users, the server may send a determination request containing user identification information corresponding to the user X to the data provider, where the determination request is used to request the data provider to give a symptom of whether the user X currently has a cough or fever. The data provider inquires about the hospitalizing and medicine purchasing data of the user X based on the user identification information carried in the judgment request, and if the data provider finds that the data provider just purchases a medicine for treating fever and cough in the near future or inquires about a visit record of the user in the near future, and the visit record records that the user has symptoms of fever and cough, the data provider feeds back a judgment result to the server: user X has symptoms of fever, cough. Based on this, for the identification code C of the user X, the server determines that the color of the candidate identification code corresponding to the evaluation index 1 is red, and determines that the color of the candidate identification code corresponding to the evaluation index 2 is red.
Similarly, the server may send a determination request to the data provider maintaining the movement trajectory information of the large number of users, so as to request the data provider to feed back a determination result of whether the user X has traveled through the area a in the near future. The server may send a query message directly to user X to query user X whether user X has contacted people who have traveled to area a.
In fig. 2, it is assumed that the color of the candidate identifier corresponding to the evaluation index 3 is green, and the color of the candidate identifier corresponding to the evaluation index 4 is yellow.
And finally, the server determines the color of the target identification code corresponding to the identification code C based on the color of the candidate identification code corresponding to each evaluation index.
In the determination of the target identification code color, specifically, the target identification code color may be determined based on the priorities of a plurality of preset identification code colors. It is assumed that the colors of the identification codes are arranged in the order of priority from high to low: red, yellow, green. In fig. 2, based on the setting of the priority, the color of the target identification code corresponding to the identification code C is finally determined as follows: red, indicating that user X is at a high risk of contracting an infectious disease.
The following describes in detail how the target identification code color is determined based on the priority of the plurality of identification code colors.
In practical application, in the process of determining the colors of the candidate identification codes corresponding to the multiple evaluation indexes, the following three situations may be encountered:
the first case: the candidate identification code color corresponding to each of all the multiple evaluation indexes can be successfully determined.
The second case: and the candidate identification code color corresponding to part of the evaluation indexes is not successfully determined.
The third situation: and determining that the color of the candidate identification code corresponding to at least one evaluation index is the color of the identification code with the highest priority, namely red.
The third case is a special case, namely, no matter whether the color of the candidate identification code corresponding to each of all the multiple evaluation indexes is successfully determined, the color of the candidate identification code corresponding to one evaluation index is red.
In the following, regarding the three situations, still taking the identification code C as an example, the determination strategy of the color of the target identification code corresponding to the identification code C is described:
for the first case: if the candidate identification code colors corresponding to all the multiple evaluation indexes are successfully determined, determining the target identification code color as the candidate identification code color with the highest priority in the candidate identification code colors corresponding to the multiple evaluation indexes according to the priorities of the multiple preset identification code colors.
For example, it is assumed that the plurality of evaluation indexes are still four evaluation indexes illustrated in fig. 2, and it is assumed that the color of the candidate identifier corresponding to the evaluation index 1 is green, the color of the candidate identifier corresponding to the evaluation index 2 is green, the color of the candidate identifier corresponding to the evaluation index 3 is green, and the color of the candidate identifier corresponding to the evaluation index 4 is yellow. It is assumed that the colors of the identification codes are arranged in the order of priority from high to low: red, yellow, green. Based on the above assumption, since the identification code color with the highest priority among the candidate identification code colors corresponding to the four evaluation indexes is the candidate identification code color-yellow corresponding to the evaluation index 4, the target identification code color corresponding to the identification code C is: yellow.
For the second case: firstly, the candidate identification code color corresponding to part of the evaluation indexes is determined to be unsuccessfully determined. Secondly, if the identification code color with the highest priority in the multiple identification code colors does not exist in the candidate identification code colors corresponding to other evaluation indexes according to the priorities of the multiple preset identification code colors, determining the candidate identification code color corresponding to the part of the evaluation indexes according to the user data corresponding to the part of the evaluation indexes.
For example, it is assumed that the colors of the identification codes are arranged in the order of priority from high to low: red, yellow, green. Assume that the plurality of evaluation indexes are still four evaluation indexes illustrated in fig. 2, and assume that the color of the candidate identification code corresponding to the evaluation index 1 is green, the color of the candidate identification code corresponding to the evaluation index 2 is green, the color of the candidate identification code corresponding to the evaluation index 3 is green, and assume that the color of the candidate identification code corresponding to the evaluation index 4 is not successfully determined. Based on the above assumption, because the color of the candidate identification code corresponding to the evaluation index 4 is not successfully determined, and the colors of the candidate identification codes corresponding to the other three evaluation indexes are all green, and there is no preset color of the identification code with the highest priority — red, the color of the target identification code of the identification code C cannot be given at this time, and the color of the candidate identification code corresponding to the evaluation index 4 needs to be recalculated based on the user data corresponding to the evaluation index 4, so that the color of the target identification code of the identification code C is determined by finally combining the determined color of the candidate identification code corresponding to the evaluation index 4.
The reason why the target identification code color of the identification code C cannot be obtained until the candidate identification code color corresponding to the evaluation index 4 is not determined is that the priority of the candidate identification code colors corresponding to the other three evaluation indexes is not the highest, and the candidate identification code color corresponding to the evaluation index 4 may be the identification code color with the highest priority, namely red. If the color of the target identification code of the identification code C is given based on the colors of the candidate identification codes of the three evaluation indexes directly, the determination result of the color of the target identification code of the identification code C will be wrong in the case that the color of the candidate identification code corresponding to the evaluation index 4 is the color of the identification code with the highest priority, namely red.
The reason why the color of the candidate identification code corresponding to the evaluation index 4 is not successfully determined may be various, such as network connection jitter between the server and the corresponding data provider.
It should be noted that if the candidate identification code color corresponding to the evaluation index 4 is not successfully determined after repeated processes, an error prompt message may be output.
For the third case: and according to the preset priorities of the multiple identification code colors, if the identification code color with the highest priority in the multiple identification code colors exists in the candidate identification code colors corresponding to the multiple evaluation indexes, determining that the target identification code color is the identification code color with the highest priority in the multiple identification code colors.
For example, it is assumed that the colors of the identification codes are arranged in the order of priority from high to low: red, yellow, green. Assume that the plurality of evaluation indexes are still four evaluation indexes illustrated in fig. 2, and assume that the color of the candidate identifier corresponding to the evaluation index 1 is red, the color of the candidate identifier corresponding to the evaluation index 2 is red, the color of the candidate identifier corresponding to the evaluation index 3 is green, and the color of the candidate identifier corresponding to the evaluation index 4 is yellow (or assume that the color of the candidate identifier corresponding to the evaluation index 4 is not successfully determined). Based on the above assumption, since there is a preset identification code color with the highest priority-red among the candidate identification code colors corresponding to the four evaluation indexes, the target identification code color corresponding to the identification code C is: red.
In the embodiment of the invention, the identification code which is generated for the user and can reflect the health state of the user can be suitable for various application scenes needing to manage the user, such as application scenes needing to control the access of the user: whether the user is allowed to enter a certain place is determined according to the color of the identification code presented by the user.
The above describes the process of generating an identification code for a user, mainly involving the process of generating the identification code and determining the colour of the identification code. As mentioned above, since the health status of the user is reflected by the color of the identification code, and the health status of the user is dynamically changed, this involves a dynamic update process of the color of the identification code.
It should be noted that, in the embodiment of the present invention, emphasis is placed on the process of updating the color of a certain identification code that has been generated for a certain user, and the dynamic update process of this identification code (i.e., the update process of the code string) is not emphasized, and in fact, the identification code may also be dynamically updated. For example, assume that the identification code C1 is generated based on the user identification information and the time stamp of the user X, and then another identification code C2 is generated based on another time stamp and the user identification information after a set time interval. In practice, the execution of the process of updating the color of the identification code (i.e. the re-determination of the color of the target identification code corresponding to the newly generated identification code C2) may be triggered automatically when the identification code is updated, but the execution of the process of updating the color of the identification code does not necessarily depend on this precondition.
In practical applications, still taking the user X illustrated in fig. 2 as an example, after the user X applies for the identification code for the first time, the server feeds back the generated identification code C with the color of the target identification code, red, to the terminal device of the user X based on the processing procedure described in the foregoing embodiment, the user X may not use the identification code C immediately, and the user X may not use the identification code C for a long period of time in the future. If the user does not use the identification code C, it is not practical to update the color of the target identification code of the identification code C, and the waste of computing resources of the server is also caused. Therefore, the embodiment of the invention provides the following processing idea of updating the color of the target identification code corresponding to the identification code:
receiving a verification request corresponding to the identification code;
determining whether the color of the target identification code corresponding to the identification code is invalid;
and if the color of the target identification code is invalid, re-determining the color of the target identification code corresponding to the identification code.
Still taking the identification code C generated for the user X in fig. 2 as an example, in practical applications, for example, the user X wants to enter a certain building, and the staff in the building checks the health status of the staff entering the building at the entrance. If the target identification code of the identification code presented by the user is green, allowing the user X to enter the building; if the target identification code of the identification code presented by the user is yellow or red, the user X is not allowed to enter the building, or the user X needs to wear some protective equipment before entering the building. In this exemplary scenario, the user X may trigger an authentication request corresponding to the identification code C by an operation of presenting the identification code C through the terminal device, that is, the terminal device may automatically trigger an authentication request corresponding to the identification code C to the server, where the authentication request is used to request the server to verify whether the color of the target identification code corresponding to the current identification code C is valid, and if the color of the target identification code corresponding to the current identification code C is valid, the color of the target identification code of the identification code C is not updated, otherwise, if the color of the target identification code corresponding to the identification code C is invalid, the color of the target identification code corresponding to the identification code C is determined again.
The following describes how to determine whether the color of the target identification code corresponding to the determined identification code is invalid or not in detail with reference to the embodiment shown in fig. 3.
Fig. 3 is a flowchart illustrating a method for determining whether a color of a target identification code corresponding to an identification code is invalid according to an embodiment of the present invention, as shown in fig. 3, the method may include the following steps:
301. an authentication request corresponding to the identification code is received.
302. And determining whether the color of the target identification code corresponding to the identification code reaches a set life cycle, if so, executing step 306, otherwise, executing step 303.
303. And acquiring a second evaluation index set currently used for determining the color of the identification code, determining whether the first evaluation index set and the second evaluation index set corresponding to the color of the target identification code are the same, if so, executing a step 306, otherwise, executing a step 304.
304. And acquiring user data updating time corresponding to the plurality of evaluation indexes in the second evaluation index set.
305. And determining whether the user data updating time corresponding to at least one evaluation index is later than the determination time of the color of the target identification code, if so, executing step 306, otherwise, executing step 307.
306. And determining that the color of the target identification code corresponding to the identification code is invalid, and re-determining the color of the target identification code corresponding to the identification code.
307. And determining that the color of the target identification code corresponding to the identification code is not invalid.
In the present embodiment, for convenience of description, it is assumed that an identification code C1 is generated for a certain user Y, the determined color of the target identification code corresponding to the identification code C1 is referred to as a first identification code color, and it is assumed that a first evaluation index set used in the process of determining the first identification code color is made up of an evaluation index a and an evaluation index b, and the time at which the first identification code color is determined is T1.
In order to execute the determination process provided by this embodiment, in practical applications, when the color of the first identification code is determined, record information corresponding to the color of the first identification code may be generated, where the record information may include the following information: the determination time T1 of the color of the first identification code, the life cycle (for example, 24 hours) of the color of the first identification code, the first evaluation index set, and the user data update time corresponding to each evaluation index in the first evaluation index set.
Assuming that the server receives the verification request for the identifier code C1 at time T2, and T2 is later than T1, if it is found that the current time T2 has reached the lifetime of the first identifier code color, it may be determined that the first identifier code color is invalid directly, based on the determination time T1 of the first identifier code color in the recorded information and the set lifetime. If the current time T2 has not reached the life cycle of the first identification code color, it is necessary to determine whether the first identification code color is invalid by combining other conditions.
Specifically, at this time, the server acquires a second evaluation index set adopted at time T2, and if the second evaluation index set is different from the first evaluation index set, it is determined that the color of the first identification code is invalid. If the second evaluation index set is the same as the first evaluation index set, that is, the currently adopted first evaluation index set is still the first evaluation index set, it needs to further determine whether the color of the first identification code is invalid by combining the user data update time corresponding to each evaluation index in the first evaluation index set.
For convenience of description, it is assumed that the above-described identification code C1 is an identification code generated for the first time for the user Y, and the first identification code color is a color of a target identification code determined for the first time corresponding to the identification code C1. Ignoring the short processing time, the user data update time corresponding to the evaluation index a and the evaluation index b of the user Y may be considered as the determination time T1 of the color of the first identification code.
When finding that the user data is updated subsequently, the data provider providing the user data can notify the server, so that the server can obtain the user data update time corresponding to the user Y under the evaluation index a and the evaluation index b. Of course, if some user data is manually updated by the user Y, the server side may also obtain the corresponding user data update time based on the operation of manual update by the user.
At the current time T2, if it is found that the user data update time corresponding to the user Y under the above evaluation index a and evaluation index b is still kept to be T1, that is, the user data update time corresponding to the user Y under the above evaluation index a and evaluation index b is not later than the determination time T1 of the color of the first identification code, it is determined that the color of the first identification code is valid, and conversely, it is determined that the color of the first identification code is invalid at this time, assuming that it is found that the user data update time corresponding to the user Y under the above evaluation index a is updated to be a certain time T3 later from T1.
Based on the above judgment process, it can be finally determined whether the color of the first identification code is valid. When it is determined that the color of the first identification code is valid, the color of the identification code C1 is maintained unchanged, and conversely, when it is determined that the color of the first identification code is invalid, the color of the target identification code corresponding to the identification code C1 needs to be re-determined, and the re-determination result may be different from or the same as the color of the first identification code.
Based on the judgment process, the situation that the color of the target identification code corresponding to the identification code needs to be determined again can be found in time, so that the color of the target identification code can accurately reflect the real-time health condition of the user.
In addition, still taking the identification code C1 as an example, assuming that the second evaluation index set is currently adopted, in the process of re-determining the color of the target identification code corresponding to the identification code C1, optionally, the process of step 101 and step 103 may be performed again to finally obtain a new color of the target identification code corresponding to the identification code C1.
However, this method will cause the computation pressure of the server to be large, and will cause the server to frequently call the interfaces of the data providers to perform data interaction, especially when a large number of users apply for the identification codes. To this end, the embodiment of the present invention provides a scheme for re-determining the color of the target identification code corresponding to the identification code as shown in fig. 4.
Fig. 4 is a flowchart of re-determining a color of an object identification code corresponding to an identification code according to an embodiment of the present invention, as shown in fig. 4, the method may include the following steps:
401. and acquiring a second evaluation index set adopted currently.
402. And if the second evaluation index set has a newly added first evaluation index, determining the color of the candidate identification code corresponding to the first evaluation index according to the user data corresponding to the first evaluation index of the user.
403. And if the used second evaluation index exists in the second evaluation index set, determining whether the candidate identification code color corresponding to the second evaluation index can be reused.
404. And re-determining the color of the target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each evaluation index in the second evaluation index set.
In this embodiment, still taking the identifier code C1 corresponding to the user Y as an example, assume that the color of the target identifier code corresponding to the identifier code C1 is determined based on the first evaluation index set at the previous time and is referred to as a first identifier code color, and assume that the first evaluation index set includes an evaluation index a and an evaluation index b, and in the process of determining the color of the first identifier code, the color of the candidate identifier code corresponding to the evaluation index a is color Z1, and the color of the candidate identifier code corresponding to the evaluation index b is color Z2. In addition, it is assumed that the determination time of the first identification code color and the determination times of the two candidate identification code colors are both time T1.
It is assumed that the second evaluation index set includes an evaluation index c in addition to the evaluation index a and the evaluation index b, and thus the second evaluation index set is different from the first evaluation index set.
It is assumed that the color of the target identification code corresponding to the identification code C1, which is finally determined again based on the second evaluation index set, is referred to as a second identification code color. In fact, the second identification code color is still determined based on the candidate identification code color corresponding to each evaluation index in the second evaluation index set, but different from the embodiment shown in fig. 1, in this embodiment, the determination manner of the candidate identification code color corresponding to each evaluation index is different.
Specifically, for the evaluation index c newly added compared to the first evaluation index set, the color of the candidate identification code corresponding to the evaluation index c may still be determined in the manner in the embodiment shown in fig. 1, that is, the color of the candidate identification code corresponding to the evaluation index c is determined according to the user data corresponding to the user Y under the evaluation index c. For a specific implementation process, reference may be made to the related description in the embodiment shown in fig. 1, which is not described herein again.
For the evaluation index a and the evaluation index b existing in the first evaluation index set, it needs to first determine whether the candidate identification code color corresponding to the two evaluation indexes can be multiplexed in the process of determining the first identification code color: color Z1 and color Z2. For example, if the determination result indicates that the color Z1, which is the latest candidate identifier color corresponding to the evaluation index a, may not be reused, then the process of determining the candidate identifier color corresponding to the evaluation index a according to the user data corresponding to the user Y currently under the evaluation index a is executed again.
Alternatively, taking the rating index a as an example, if the following two conditions are simultaneously satisfied, it is determined that the color Z1, which is the candidate identification code color corresponding to the rating index a, can be reused:
determining the cache duration of the candidate identification code color corresponding to the evaluation index a not reached by the current time from the determination time of the candidate identification code color (color Z1) corresponding to the evaluation index a; and determining that the updating time of the user data corresponding to the evaluation index a is earlier than the determination time of the color of the candidate identification code corresponding to the evaluation index a.
Based on the above assumptions, the determination time of the candidate identifier color (color Z1) corresponding to the evaluation index a is T1, the current time is assumed to be the following T2, and it is assumed that the preset buffer duration of the candidate identifier color is 7 hours, then if the difference between the T2 time and the T1 time is greater than or equal to the buffer duration (indicating that the buffer duration has been exceeded), it is determined that the candidate identifier color of the color Z1 corresponding to the evaluation index a cannot be reused, otherwise, if the difference between the T2 time and the T1 time is less than the buffer duration (indicating that the buffer duration has not been exceeded), another condition is further determined: and determining whether the updating time of the user data corresponding to the evaluation index a is earlier than the determination time of the color of the candidate identification code corresponding to the evaluation index a.
Specifically, if the update time of the user data corresponding to the evaluation index a is earlier than the determination time T1 of the color Z1, which is the candidate identifier color corresponding to the evaluation index a, it indicates that, after the color Z1 is determined, the user data corresponding to the user Y under the evaluation index a has not changed, and therefore, it may be finally determined that the color Z1, which is the candidate identifier color corresponding to the latest determined evaluation index a before can be reused, whereas, if the update time of the user data corresponding to the evaluation index a is later than the determination time T1 of the color Z1, which is the candidate identifier color corresponding to the evaluation index a after the color Z1 is determined, it indicates that, after the color Z1 is determined, the user data corresponding to the user Y under the evaluation index a has changed, and therefore, the color Z1, which is the candidate identifier color corresponding to the latest determined evaluation index a before cannot be reused.
It should be noted that the determination order of the two determination conditions is not strictly limited, and in addition, only when the two determination conditions are simultaneously satisfied, the color of the candidate identification code that is the latest before the second evaluation index can be reused, and when any determination condition is not satisfied, it can be determined that the color of the candidate identification code that is the latest before the second evaluation index can not be reused.
After the candidate identification code color corresponding to each evaluation index in the second evaluation index set is obtained, the target identification code color corresponding to the identification code C1, that is, the second identification code color, is determined according to the candidate identification code color corresponding to each evaluation index, and the process of determining the second identification code color is described in the embodiment shown in fig. 1, which is not repeated herein.
Based on the solution provided in this embodiment, in the above-mentioned recorded information, the following information may also be recorded for performing the determination process described in this embodiment: for the user Y, in the process of determining the color of the first identification code, the determination time and the storage time of the color of the candidate identification code and the candidate identification code color corresponding to each evaluation index in the first evaluation index set are determined.
Fig. 5 is a flowchart of an identification code generation method according to an embodiment of the present invention, and as shown in fig. 5, the identification code generation method may include the following steps:
501. the method comprises the steps of obtaining a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes.
502. And determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of the user, wherein the candidate identification code colors are selected from multiple preset identification code colors.
503. And determining the color of the target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the plurality of evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code can reflect the attribute information of the user.
In this embodiment, the color of the identification code may reflect the attribute information of the preset type of the user, and may include not only the attribute information of the health status described in the foregoing other embodiments, but also some other attribute information, such as: whether it has certain credentials, whether it has performed certain prescribed actions, etc.
Taking the example that the attribute information is embodied as the health state of the user, the identification code capable of reflecting the health state of the user can be applied to various application scenarios, such as the application scenario of access control introduced in the foregoing, that is, whether the user is allowed to enter a certain place is determined based on the color of the target identification code corresponding to the identification code of the user. Besides, the method can also be applied to other application scenes. For example, in practical applications, health status requirements may be required for practitioners in certain professions, such as a driver, who may not be suffering from mental diseases, hypertension, and the like. Based on the requirement, in the process of generating the identification code for the driver user and determining the color of the target identification code corresponding to the identification code, the adopted multiple evaluation indexes can comprise an index for determining whether the user suffers from the diseases, so that the color of the target identification code reflecting whether the driver user suffers from the diseases can be finally obtained. When the driver user is on duty, the health condition of the driver user can be determined by checking the color of the target identification code. The above description only takes the professional scene of the driver as an example, and other professional scenes are the same. That is to say, in fact, different professional scenes may have different requirements on the health status of the practitioners, the color of the identification code may reflect whether the user has a professional qualification of a certain occupation, and a plurality of evaluation indexes for evaluating whether the user has the professional qualification of the certain occupation may be set according to the different professional scenes.
The attribute information is embodied as whether the user executes a certain specified behavior, the identification code can reflect whether the user executes the certain specified behavior, and the method and the device can be applied to application scenes such as industrial hazardous waste tracking. Briefly, in the process of transporting industrial hazardous waste to a designated processing place for processing, related organizations can specify the types of roads that can be used for transporting different types of hazardous waste, for example, transportation of some hazardous waste by highways is not possible. Based on this, it is possible to determine whether the travel route of the driver satisfies the prescribed requirement based on the real-time detection of the position of the transportation vehicle, and based on the determination result, it is possible to determine the color of the target identification code of the corresponding identification code by which whether the driver has performed the prescribed transportation behavior is reflected. At this time, the identification code may be generated according to the information related to the transported hazardous waste.
The attribute information is embodied as whether the user has a certain certificate or not, the identification code which can reflect whether the user has a certain certificate or not can be used in various application scenarios. For example, for a certain profession, a practitioner is required to provide a certain certificate of eligibility on a regular basis. For another example, a food or pharmaceutical manufacturing enterprise may need to have certain business licenses. In the above exemplary scenarios, it may be determined whether the user has the corresponding certificate based on the user data generated by the corresponding data provider when the user transacts the certificates, so as to determine the color of the target identification code corresponding to the identification code generated for the user, and thus, the relevant inspector may know whether the user has the corresponding certificate by checking the color of the target identification code.
The above only illustrates several user attribute information that the color of the identification code can reflect, and in fact, the invention is not limited thereto.
For the implementation process not expanded in this embodiment, reference may be made to the related descriptions in the foregoing other embodiments, which are not described herein again.
The identification code generation device, the person health management device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these means can each be constructed using commercially available hardware components and by performing the steps taught in this disclosure.
Fig. 6 is a schematic structural diagram of an identification code generating device according to an embodiment of the present invention, where the identification code generating device may be applied to a server. As shown in fig. 6, the apparatus includes: the device comprises an acquisition module 11 and a determination module 12.
The obtaining module 11 is configured to obtain a first currently-used evaluation index set, where the first evaluation index set includes multiple evaluation indexes.
The determining module 12 is configured to determine, according to user data corresponding to the multiple evaluation indexes of the user, candidate identification code colors corresponding to the multiple evaluation indexes, where the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the health state of the user.
Optionally, in the process of determining the color of the target identification code corresponding to the identification code, the determining module 12 may be specifically configured to: if the candidate identification code colors corresponding to the multiple evaluation indexes are successfully determined, determining the target identification code color as the candidate identification code color with the highest priority in the candidate identification code colors corresponding to the multiple evaluation indexes according to the preset priorities of the multiple identification code colors.
Optionally, in the process of determining the color of the target identification code corresponding to the identification code, the determining module 12 may be specifically configured to: and according to the preset priorities of the multiple identification code colors, if the identification code color with the highest priority in the multiple identification code colors exists in the candidate identification code colors corresponding to the multiple evaluation indexes, determining that the target identification code color is the identification code color with the highest priority in the multiple identification code colors.
Optionally, in the process of determining the color of the target identification code corresponding to the identification code, the determining module 12 may be specifically configured to: determining the color of the candidate identification code corresponding to the unsuccessfully determined part of the evaluation indexes; and if the identification code color with the highest priority in the multiple identification code colors does not exist in the candidate identification code colors corresponding to other evaluation indexes according to the preset priorities of the multiple identification code colors, determining the candidate identification code color corresponding to the partial evaluation index again according to the user data corresponding to the partial evaluation index of the user.
Optionally, the apparatus further comprises: the device comprises a receiving module and a judging module. Wherein the content of the first and second substances,
and the receiving module is used for receiving the verification request corresponding to the identification code. And the judging module is used for determining whether the color of the target identification code is invalid. The determination module 12 may also be configured to: and if the color of the target identification code is invalid, re-determining the color of the target identification code corresponding to the identification code.
Optionally, the determining module may be specifically configured to: and if the color of the target identification code reaches the set life cycle, determining that the color of the target identification code is invalid.
Optionally, the determining module may be specifically configured to: determining that the color of the target identification code does not reach a set life cycle; acquiring a second evaluation index set adopted currently; and if the first evaluation index set is different from the second evaluation index set, determining that the color of the target identification code is invalid.
Optionally, the determining module may be specifically configured to: determining that the first set of evaluation metrics is the same as the second set of evaluation metrics; and if the user data updating time corresponding to at least one evaluation index in the plurality of evaluation indexes is later than the determination time of the color of the target identification code, determining that the color of the target identification code is invalid.
Optionally, in the process of re-determining the color of the target identification code corresponding to the identification code, the determining module 12 may be specifically configured to: acquiring a second evaluation index set currently used for determining the color of the identification code; if a newly added first evaluation index exists in the second evaluation index set, determining the color of the candidate identification code corresponding to the first evaluation index according to the user data corresponding to the first evaluation index of the user; if the second evaluation index set has the used second evaluation index, determining whether the color of the candidate identification code corresponding to the second evaluation index can be reused; and re-determining the color of the target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each evaluation index in the second evaluation index set.
Optionally, in the process of determining whether the color of the candidate identification code corresponding to the second evaluation index can be reused, the determining module 12 may be specifically configured to: if the following two conditions are simultaneously met, determining that the color of the candidate identification code corresponding to the second evaluation index can be reused: determining that the current time does not reach the cache duration of the candidate identification code color corresponding to the second evaluation index from the determination time of the candidate identification code color corresponding to the second evaluation index; and determining that the user data updating time corresponding to the second evaluation index is earlier than the determination time of the candidate identification code color corresponding to the second evaluation index.
The apparatus shown in fig. 6 may perform the identification code generation method provided in the embodiments shown in fig. 1 to fig. 4, and the detailed implementation process and technical effect are described in the embodiments, which are not described herein again.
In one possible design, the structure of the identification code generating apparatus shown in fig. 6 may be implemented as an electronic device, which corresponds to the server in the foregoing. As shown in fig. 7, the electronic device may include: a first processor 21, a first memory 22, a first communication interface 23. Wherein the first memory 22 has stored thereon executable code which, when executed by the first processor 21, makes the first processor 21 at least to implement the identification code generation method as provided in the aforementioned embodiments shown in fig. 1 to 4.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the identification code generation method provided in the foregoing embodiments shown in fig. 1 to 4.
Fig. 8 is a schematic structural diagram of an identification code generating device according to an embodiment of the present invention, where the identification code generating device can be applied to a server. As shown in fig. 8, the apparatus includes: an acquisition module 31 and a determination module 32.
The obtaining module 31 is configured to obtain a first currently-used evaluation index set, where the first evaluation index set includes multiple evaluation indexes.
The determining module 32 is configured to determine, according to user data corresponding to the multiple evaluation indexes of the user, candidate identification code colors corresponding to the multiple evaluation indexes, where the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the attribute information of the user.
The apparatus shown in fig. 8 may perform the identification code generation method provided in the foregoing embodiment shown in fig. 5, and the detailed execution process and technical effect refer to the description in the foregoing embodiment, which is not described herein again.
In one possible design, the structure of the identification code generating apparatus shown in fig. 8 may be implemented as an electronic device, which corresponds to the server in the foregoing. As shown in fig. 9, the electronic device may include: a second processor 41, a second memory 42, a second communication interface 43. Wherein the second memory 22 has stored thereon executable code which, when executed by the second processor 41, makes the second processor 41 at least implement the identification code generation method as provided in the aforementioned embodiment shown in fig. 5.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the identification code generation method provided in the foregoing embodiment shown in fig. 5.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (17)

1. An identification code generation method, comprising:
acquiring a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes;
determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of a user, wherein the candidate identification code colors are selected from multiple preset identification code colors;
and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the health state of the user.
2. The method according to claim 1, wherein the determining a target identification code color corresponding to the identification code according to the candidate identification code color corresponding to each of the plurality of evaluation indexes comprises:
if the candidate identification code colors corresponding to the multiple evaluation indexes are successfully determined, determining the target identification code color as the candidate identification code color with the highest priority in the candidate identification code colors corresponding to the multiple evaluation indexes according to the preset priorities of the multiple identification code colors.
3. The method according to claim 1, wherein the determining a target identification code color corresponding to the identification code according to the candidate identification code color corresponding to each of the plurality of evaluation indexes comprises:
and according to the preset priorities of the multiple identification code colors, if the identification code color with the highest priority in the multiple identification code colors exists in the candidate identification code colors corresponding to the multiple evaluation indexes, determining that the target identification code color is the identification code color with the highest priority in the multiple identification code colors.
4. The method according to claim 1, wherein the determining a target identification code color corresponding to the identification code according to the candidate identification code color corresponding to each of the plurality of evaluation indexes comprises:
determining the color of the candidate identification code corresponding to the unsuccessfully determined part of the evaluation indexes;
and if the identification code color with the highest priority in the multiple identification code colors does not exist in the candidate identification code colors corresponding to other evaluation indexes according to the preset priorities of the multiple identification code colors, determining the candidate identification code color corresponding to the partial evaluation index again according to the user data corresponding to the partial evaluation index of the user.
5. The method of claim 1, further comprising:
receiving an authentication request corresponding to the identification code;
determining whether the target identification code color is invalid;
and if the color of the target identification code is invalid, re-determining the color of the target identification code corresponding to the identification code.
6. The method of claim 5, wherein the determining whether the target identification code color is invalid comprises:
and if the color of the target identification code reaches the set life cycle, determining that the color of the target identification code is invalid.
7. The method of claim 5, wherein the determining whether the target identification code color is invalid comprises:
determining that the color of the target identification code does not reach a set life cycle;
acquiring a second evaluation index set adopted currently;
and if the first evaluation index set is different from the second evaluation index set, determining that the color of the target identification code is invalid.
8. The method of claim 7, wherein the determining whether the target identification code color is invalid comprises:
determining that the first set of evaluation metrics is the same as the second set of evaluation metrics;
and if the user data updating time corresponding to at least one evaluation index in the plurality of evaluation indexes is later than the determination time of the color of the target identification code, determining that the color of the target identification code is invalid.
9. The method of claim 5, wherein said re-determining the color of the target identification code corresponding to the identification code comprises:
acquiring a second evaluation index set currently used for determining the color of the identification code;
if a newly added first evaluation index exists in the second evaluation index set, determining the color of the candidate identification code corresponding to the first evaluation index according to the user data corresponding to the first evaluation index of the user;
if the second evaluation index set has the used second evaluation index, determining whether the color of the candidate identification code corresponding to the second evaluation index can be reused;
and re-determining the color of the target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each evaluation index in the second evaluation index set.
10. The method of claim 9, wherein the determining whether the color of the candidate identification code corresponding to the second evaluation index can be reused comprises:
if the following two conditions are simultaneously met, determining that the color of the candidate identification code corresponding to the second evaluation index can be reused:
determining that the current time does not reach the cache duration of the candidate identification code color corresponding to the second evaluation index from the determination time of the candidate identification code color corresponding to the second evaluation index; and the number of the first and second groups,
and determining that the updating time of the user data corresponding to the second evaluation index is earlier than the determination time of the color of the candidate identification code corresponding to the second evaluation index.
11. An identification code generation apparatus, characterized by comprising:
the system comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is used for acquiring a first evaluation index set adopted currently, and the first evaluation index set comprises a plurality of evaluation indexes;
the determining module is used for determining candidate identification code colors corresponding to the evaluation indexes according to user data corresponding to the evaluation indexes, wherein the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the health state of the user.
12. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the identification code generation method of any of claims 1 to 10.
13. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the identification code generation method of any one of claims 1 to 10.
14. An identification code generation method, comprising:
acquiring a first evaluation index set adopted currently, wherein the first evaluation index set comprises a plurality of evaluation indexes;
determining candidate identification code colors corresponding to the multiple evaluation indexes according to user data corresponding to the multiple evaluation indexes of a user, wherein the candidate identification code colors are selected from multiple preset identification code colors;
and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the attribute information of the user.
15. An identification code generation apparatus, characterized by comprising:
the system comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is used for acquiring a first evaluation index set adopted currently, and the first evaluation index set comprises a plurality of evaluation indexes;
the determining module is used for determining candidate identification code colors corresponding to the evaluation indexes according to user data corresponding to the evaluation indexes, wherein the candidate identification code colors are selected from multiple preset identification code colors; and determining the color of a target identification code corresponding to the identification code according to the color of the candidate identification code corresponding to each of the evaluation indexes, wherein the identification code is generated according to the user identification information of the user, and the color of the target identification code is used for reflecting the attribute information of the user.
16. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the identification code generation method of claim 14.
17. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the identification code generation method of claim 14.
CN202010525654.1A 2020-06-10 2020-06-10 Identification code generation method, device, equipment and storage medium Pending CN113779096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010525654.1A CN113779096A (en) 2020-06-10 2020-06-10 Identification code generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010525654.1A CN113779096A (en) 2020-06-10 2020-06-10 Identification code generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113779096A true CN113779096A (en) 2021-12-10

Family

ID=78834816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010525654.1A Pending CN113779096A (en) 2020-06-10 2020-06-10 Identification code generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113779096A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111710422A (en) * 2020-06-04 2020-09-25 四川虹微技术有限公司 Identification code determination method and device, electronic equipment and readable storage medium
CN114397886A (en) * 2021-12-20 2022-04-26 烟台杰瑞石油服务集团股份有限公司 Charging method and charging system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111710422A (en) * 2020-06-04 2020-09-25 四川虹微技术有限公司 Identification code determination method and device, electronic equipment and readable storage medium
CN111710422B (en) * 2020-06-04 2024-01-26 四川虹微技术有限公司 Identification code determining method and device, electronic equipment and readable storage medium
CN114397886A (en) * 2021-12-20 2022-04-26 烟台杰瑞石油服务集团股份有限公司 Charging method and charging system
CN114397886B (en) * 2021-12-20 2024-01-23 烟台杰瑞石油服务集团股份有限公司 Charging method and charging system

Similar Documents

Publication Publication Date Title
US20130054598A1 (en) Entity resolution based on relationships to a common entity
CN111710421B (en) Personnel health management and information processing method, device, equipment and storage medium
JP5651237B2 (en) Dynamic real-time reports based on social networks
US9906543B2 (en) Automated abnormality detection in service networks
US20130055202A1 (en) Identifying components of a bundled software product
MX2010007291A (en) Tax return evaluation system.
CN113779096A (en) Identification code generation method, device, equipment and storage medium
CN109543891B (en) Method and apparatus for establishing capacity prediction model, and computer-readable storage medium
US20230208882A1 (en) Policy - aware vulnerability mapping and attack planning
US11888597B2 (en) Computer-executable and traceable metric queues system
CN109710689B (en) Enterprise supervision method, system, device, equipment and readable storage medium
US20100318859A1 (en) Production control for service level agreements
JP2017516202A (en) Promotion status data monitoring method, apparatus, device, and non-executable computer storage medium
CA3097613A1 (en) Method and system for providing patient data to a patient data server following an offline network condition
EP3188022B1 (en) System monitoring device
CN111710422A (en) Identification code determination method and device, electronic equipment and readable storage medium
JP6814637B2 (en) A system for analyzing electronic legal invoice data
WO2022068190A1 (en) Version verification method and apparatus, electronic device and storage medium
CN111917760B (en) Network collaborative manufacturing cross-domain fusion trust management and control method based on identification analysis
CN111222162B (en) Industry cloud resource access control method and device
CN117375921A (en) Access control policy configuration method, device, equipment and storage medium
Hosking et al. Data linkage and computerised algorithmic coding to enhance individual clinical care for Aboriginal people living with chronic hepatitis B in the Northern Territory of Australia–Is it feasible?
CN112735602A (en) Block chain risk value management method and device, electronic equipment and storage medium
CN114334111B (en) Medical information management method, device, server and readable storage medium
CN110232143A (en) Pass through the question and answer data query method and its equipment of block chain

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40063984

Country of ref document: HK