WO2020024824A1 - Method and device for determining user status identifier - Google Patents
Method and device for determining user status identifier Download PDFInfo
- Publication number
- WO2020024824A1 WO2020024824A1 PCT/CN2019/097002 CN2019097002W WO2020024824A1 WO 2020024824 A1 WO2020024824 A1 WO 2020024824A1 CN 2019097002 W CN2019097002 W CN 2019097002W WO 2020024824 A1 WO2020024824 A1 WO 2020024824A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- state
- identifiers
- identifier
- status
- user
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Definitions
- the present application relates to the field of information technology, and in particular, to a method and device for determining a user status identifier.
- the first method is to directly update the status of the user to a status that matches the grouping property according to the grouping attribute corresponding to the user. If the user is logging in for the first time, the user is updated. Label the status of the first login.
- the second is to establish a user identification system with at least three dimensions of market, condition, and status, and implement a logic of user status identification through a large number of if, if-else and other script statements based on JavaScript.
- the geographic location information of the user determines the market in which the user is located, further determines the status of the user based on the user behavior information of the user, and binds the status to the user to determine the status of the user.
- an embodiment of the present application provides a method for determining a user status identifier.
- This application provides multiple first status identifiers, and the multiple first status identifiers correspond to multiple second status identifiers and multiple second status identifiers, respectively.
- the purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status
- the response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
- an embodiment of the present application further provides a user status identifier determining device, which is used to ensure the implementation and application of the foregoing method.
- an embodiment of the present application discloses a method for determining a user status identifier, including:
- the multiple first status identifiers corresponding to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
- the current first state identifier According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers A transition condition between determining a target second state identifier of the user.
- an embodiment of the present application further discloses a device for determining a user status identifier, including:
- a providing module configured to provide multiple first status identifiers, where the multiple first status identifiers correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers;
- An obtaining module configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request;
- a determining module configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and multiple corresponding ones of the multiple first state identifiers and the multiple first state identifiers A transition condition between the second state identifiers determines a target second state identifier of the user.
- an embodiment of the present application further discloses a device, including:
- One or more processors are One or more processors.
- One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the device to execute a method for determining a user status identifier.
- the embodiment of the present application also discloses one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the device to execute a method for determining a user status identifier.
- the embodiment of the present application includes: providing a plurality of first status identifiers, each of which corresponds to a plurality of second status identifiers and a transition condition between a plurality of second status identifiers; receiving a user request; Request to obtain the user ’s current first state identifier, current second state identifier, and user attribute information; according to the current first state identifier, current second state identifier, user attribute information, and multiple first state identifiers, multiple first A transition condition between a plurality of second state identifiers corresponding to the state identifiers determines a target second state identifier of the user.
- the purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status
- the response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
- FIG. 1 is a system architecture diagram of a method for determining a user status identifier according to an embodiment of the present application
- FIG. 2 is a system interaction diagram of a method for determining a user status identifier according to an embodiment of the present application
- FIG. 3 is a flowchart of steps of a method for determining a user status identifier at a system level according to an embodiment of the present application
- FIG. 4 is a schematic diagram of a state condition query table of a state machine according to an embodiment of the present application.
- FIG. 5 is a flowchart of specific steps of a method for determining a user status identifier at a system level according to an embodiment of the present application
- FIG. 6 is a flowchart of specific steps of another method for determining a user status identifier at a system level according to an embodiment of the present application
- FIG. 7 is a configuration file data structure diagram under a two-dimensional precondition provided by an embodiment of the present application.
- FIG. 8 is a structural diagram of an apparatus for determining a user status identifier according to an embodiment of the present application.
- FIG. 9 is a specific structural diagram of an apparatus for determining a user status identifier according to an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of a device according to another embodiment of the present application.
- FIG. 1 illustrates a system architecture according to an embodiment of the present application, which may include at least:
- the business server 10 includes an identification engine 101 and a local data storage 102.
- the service server 10 is a server that provides a corresponding personalized service for the client 40 of the user based on the user request.
- the service server 10 can provide a personalized recommendation to the user and the details of the personalized recommendation.
- corresponding status identifiers can be set for the users to group users according to different market attributes and grouping attributes, so that the business server 10 can identify according to the user's status.
- the client 40 is provided with a service corresponding to the status identification, so as to meet the needs of different users.
- a status identifier corresponding to the user account is generated to indicate the current status of the user.
- the status identifier can be a Status labels, for example, when a user first signs up for an account, a status label of "newcomer” can be displayed near the user's avatar to indicate the "newcomer identity" of the user, and the status identifier can be changed. Updated "newcomer" status label to "loyal users".
- the service server 10 is provided with a mark engine 101 (Mark Engine) and a local data storage 102 (Local Data).
- the local data storage 102 may store a status configuration file 201 related to a user status identifier obtained from the configuration center 20, and the status configuration file 201 may store multiple first status identifiers, multiple second status identifiers, and multiple first status identifiers.
- the identifier engine 101 is an independent thread used to parse the state profile 201 in the local data store 102. Under the current application architecture, it can often be a business plug-in in the business server 10. The service plug-in can load the status configuration file 201 pushed down by the configuration center 20 to update the status of the user.
- Configuration Center 20 (Config Server), which often stores various status configuration files 201 used in business services in the form of key-value pairs.
- the configuration center 20 can update the status configuration file 201 or push the status configuration file 201 to the business.
- the server 10 wherein the state configuration file 201 stores at least one first state identifier, a plurality of second state identifiers corresponding to the first state identifier, and transition conditions between the plurality of second state identifiers, the first state identifier and The correspondence between the second state identifier and the transition conditions between the plurality of second state identifiers may be written in the form of key-value pairs.
- the user attribute data server 30 stores user attribute information and the current second status identifier of each user.
- the user attribute data is an effective tool for sketching target users, contacting user demands and design directions.
- User attribute data can enable application products
- the service object is more focused and more focused.
- the data source established by the user attribute data server is data related to user behavior generated by the user when using the application product, such as the name, gender, and age filled in by the user's registered account. Information such as location information, geographic location, and browsing history information and behavior information generated by the user in the application. By collecting this information, a user attribute data server 30 including the user can be established. Using the data in the user attribute data server 30, the Determine the user's corresponding market attributes and grouping attributes in the market.
- the first state identifier may be a state label used to indicate a dimension attribute of the user.
- the attributes of the user ’s nationality, region, gender, etc. that do not change during the first time period
- the second status identifier can also be a status label, which indicates the attributes of the user in another dimension, such as the user's new / old users, etc. Properties that change during the second time period.
- the dimensions corresponding to the first status identifier and the dimensions corresponding to the second status identifier may be different dimensions; of course, the specific dimension attributes corresponding to the first status identifier and the second status identifier may be set according to needs, and this embodiment does not change them. Be restricted.
- the transition condition is a parameter set according to the execution logic of the finite state machine for the purpose of triggering the corresponding second state identifier of the target.
- the subsequent second status identifier is obtained according to the relationship between the second status identifier + the trigger condition; the user attribute information is a type of information generated based on user behavior, such as user browsing records, user behavior records, and the like.
- the current first status identifier of the user can correspond to the market dimension, and can be used to divide the market and determine the user's market attributes. Usually, it can be the user ’s nationality or the current geographic location, such as the United States, China, and North China. Region, etc., the user's current first status identifier can be obtained according to the positioning of the user's Internet Protocol (IP, Internet Protocol), or can be obtained according to the registration information entered by the user when registering an account.
- IP Internet Protocol
- the user ’s first and second status identifiers can correspond to the grouping dimension, which can be used to divide the grouping and determine the grouping attributes of the user, which is usually the current state of the user.
- the user For example, the user ’s "newcomer”, “loyal user” and other tags, or XX big promotion "," 20% off consumption "and other service-related tags.
- User attribute information can be obtained by using some previous user behavior data or user identity data of the user. For example, the user's first login time is within one month and The order has been placed, the user has participated in the XX big promotion, etc., and the current second status identifier of the user can usually be bound to the user identification (ID, identification) to facilitate the use of the user ID to query the corresponding second current status identifier of the user .
- ID user identification
- the user's current second state identifier can change continuously as the user's behavior increases, and because the user's market attributes are usually fixed, the chance of change is small, so the user's current first state identifier can be It will not change within a certain time range. For example, the country and region where the user is located usually does not change, or the chance of change is small.
- User attribute data can be considered as data related to user behavior. User attribute data It will only increase as user behavior increases, which indicates that the nature of user behavior will not change.
- the market dimension is used to divide users into specific countries or markets. For example, if a user accesses Russian business, the user will be divided into the Russian market.
- the condition dimension is used to further group users that are divided into specific markets.
- Finite state machine Finite -state machine (FSM), also known as a finite state automaton, or state machine for short, is a mathematical model representing a finite number of states and behaviors such as transitions and actions between these states.
- FSM Finite State Machine
- the first state in the state configuration file 201 Identification can correspond to market dimensions, can be used to divide the market, determine the user's market attributes, limited status
- the state machine is used to obtain the corresponding target second state identifier based on the user's current second state identifier and user attribute data, and to update the target second state identifier to the user's current second state identifier in a specific market group, that is, to further establish User grouping attributes.
- a system architecture interaction diagram based on FIG. 2 includes:
- Step S1 The configuration center pushes a status configuration file to the service server.
- the configuration center pushes the status configuration file to the service server.
- the status configuration file may include multiple first status identifiers, multiple second status identifiers corresponding to the multiple first status identifiers, and multiple second status identifiers. The transition conditions between them enable the business server to use the status configuration file to update the corresponding status identifier for the user.
- the configuration center can also update the status configuration file and push the updated status configuration file to the business server.
- Step S2 The service server receives a user request sent by the client.
- the client When a client user needs to access the business server, the client sends a user request to the business server.
- the user request can be bound to the user ID (identification) of the corresponding user, and the user ID can be used to query the service server.
- the current first status identifier is used to match the first status identifier in the status configuration file.
- Step S3 The service server obtains the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
- the user ’s current first state identifier, current second state identifier, and user attribute information are obtained by querying the user ID in the user request. Specifically, the current first state identifier and user attribute information are obtained from the user attribute data server according to the user ID. The query is used to update the user status.
- Step S4 The service server according to the current first state identifier, the current second state identifier, the user attribute information, and the transition conditions between the multiple first state identifiers and the multiple second state identifiers corresponding to the multiple first state identifiers. To determine the user's target second status identifier.
- this step by using the current first state identifier as the query KEY and matching the first state identifier KEY in the state configuration file, a value corresponding to the first state identifier KEY can be determined, and the Value can be For the transition conditions between multiple second status identifiers and multiple second status identifiers, the current first status identifier—first status identifier—multiple second status identifiers and multiple second status identifiers can be obtained by matching. Corresponding relationship between conversion conditions, this matching method has the beneficial effects of simple logic, small amount of code, and fast response speed. For example, when a user establishes an account and the nationality entered is Russian, the information can be imported into the user's user attribute information and exists as the current first state identifier. By matching with the first state identifier whose content is Russian, it can quickly Determine a plurality of second state identifiers corresponding to the Russian market and transition conditions between the plurality of second state identifiers.
- the status identifier is updated through multiple second state identifiers and transition conditions between multiple second state identifiers.
- the specific implementation can be implemented by a finite state machine.
- the logic of the finite state machine can be embodied in the form of a condition query table.
- the service server can use the user attribute information as the condition, and the current second state identifier can be used as the current state.
- the second status identifier is used as the next status to update the current second status identifier of the user.
- the user attribute information can be the user's login record.
- the current second state identifier can be updated from the "newcomer" state to the "loyal user".
- the service server provides a corresponding service to the client of the user according to the target second state identifier.
- the service server may provide the user with a business service corresponding to the updated target second status identifier, for example, Users are grouped into loyal users in the Russian market.
- the service server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users.
- this application can provide multiple first status identifiers, and multiple first status identifiers respectively correspond to multiple second status identifiers and transition conditions between multiple second status identifiers; receive user requests; and obtain according to user requests The user's current first state identifier, current second state identifier, and user attribute information; according to the current first state identifier, current second state identifier, user attribute information, and multiple first state identifiers, multiple first state identifiers The transition conditions between the corresponding second state identifiers determine the target second state identifier of the user.
- the purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status
- the response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
- FIG. 3 a flowchart of a method for determining a user status identifier at a system level provided in the present application is shown, which may specifically include the following steps:
- Step 301 Provide a plurality of first state identifiers, where the plurality of first state identifiers respectively correspond to a plurality of second state identifiers and transition conditions between the plurality of second state identifiers.
- a plurality of first state identifiers, a plurality of second state identifiers corresponding to the plurality of first state identifiers, and transition conditions between the plurality of second state identifiers may be written into the state configuration file to
- the configuration file is stored, and the status configuration file can be pushed by the configuration center, and the configuration center can push the configuration file to any business server for its use.
- market attributes can usually be specific markets, such as country, region, operation type, etc. Grouping attributes can usually use some previous user behavior data of the user. Or obtained from user identity data. For example, if the user's first login time is within one month and an order has been placed, its grouping attribute can be "non-newcomer user", and its status is updated from new to first.
- determining a market attribute may be implemented by a first state identifier in a state configuration file
- determining a grouping attribute may be implemented by a second state identifier corresponding to the first state identifier and a transition condition between the second state identifiers, such as establishing Tags of multiple countries, different countries can correspond to different first state identifiers, and establish a corresponding relationship between the corresponding second state identifier and the transition conditions between the second state identifiers for each country to update this country User status in the market.
- the specific implementation of the transition condition between the first state identifier, the corresponding second state identifier, and the second state identifier in the state configuration file can be achieved through the form of key-value, which can reduce the amount of code and increase the corresponding speed.
- Step 302 Receive a user request.
- the client When the user client needs to access the service server, the client sends a user request to the service server.
- the user request may store the user ID of the corresponding user, and the current second state of the user can be queried by the user ID.
- the current first state identifier is used to match the first state identifier in the state configuration file.
- Step 303 Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
- the user's current first state identifier and user attribute information of the user under the user ID can be called by accessing the user attribute data server, and the data source established by the user attribute data server It is data related to user behavior generated by the user when using the application, such as data such as identity information entered by the user when establishing an account.
- the current first state identifier can generally correspond to market attributes, such as the user's nationality, region, etc.
- the user attribute information can correspond to grouping attributes, such as the user's historical browsing records, user behavior records, and so on.
- the user's status identifier can also be bound to the user ID, and the current second status identifier of the user can also be obtained by querying in the status management thread through the corresponding user ID.
- Step 304 According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of first state identifiers corresponding to the plurality of first state identifiers. A transition condition between the two state identifiers determines a target second state identifier of the user.
- the identification engine of the service server can determine the transition between multiple second status identifiers corresponding to the first status identifier and multiple second status identifiers by matching the current first status identifier with the first status identifier in the status configuration file. Conditions to obtain the corresponding relationship between the current first state identifier—first state identifier—multiple second state identifiers and multiple second state identifiers.
- This matching method has simple logic, small amount of code, and response speed Quick beneficial effects. For example, when the user establishes an account, the nationality entered is Russia, and by matching with the first state identifier whose content is Russia, the state machine corresponding to the Russian market can be determined.
- the identification engine of the service server retrieves user attribute information whether the state machine trigger condition is met. If it exists, the target second state identifier is triggered to update the current second state identifier of the user. If it does not exist, when the updated user attribute information is obtained next time, whether the state machine trigger condition is satisfied when retrieving the updated user attribute information, Until the user's current second status identifier is updated.
- FIG. 4 a schematic diagram of a state condition query table of a state machine is shown.
- the state machine is a mathematical model representing a finite number of states and behaviors such as transitions and actions between the states.
- the state machine is based on business logic.
- a trigger logic lookup table of the current state / condition is established.
- the identification engine of the service server can update the current second state identifier of the corresponding user in the state machine, and the service server can provide the user with the business service corresponding to the updated target second state identifier. For example, if the user is a group of loyal users in the Russian market, the business server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users. .
- a method for determining a user status identifier includes: providing a plurality of first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and multiple second statuses, respectively. Conversion conditions between identities; receiving user requests; obtaining the user's current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information And transition conditions between multiple first state identifiers and multiple second state identifiers corresponding to the multiple first state identifiers to determine a user's target second state identifier.
- the purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status
- the response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
- FIG. 5 a flowchart of specific steps of a system-level user status identifier determination method provided in the present application is shown, which may specifically include the following steps:
- Step 501 Provide a status configuration file; in the status configuration file, the first status identifier serves as a key, between a plurality of second status identifiers corresponding to the first status identifier and the plurality of second status identifiers. As the key value.
- an empty status configuration file file needs to be established for writing configuration data.
- the value corresponding to the first state identifier KEY can be determined, and the current first state identifier—first state identifier—multiple The correspondence between the second state identifier and the transition conditions between multiple second state identifiers.
- This matching method has the beneficial effects of simple logic, small amount of code, and fast response speed.
- the sub-step 501 may further include a sub-step A1.
- Sub-step A1 using the first state identifier as a key, and using a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a key in a notation format of the object Value, the state configuration file is generated as a key-value pair.
- JSON object notation
- JavaScript JavaScript
- Object Notation object notation
- JSON is a lightweight Data exchange format, which uses a text format that is completely independent of the programming language to store and represent data.
- the concise and clear hierarchical structure makes JSON an ideal data exchange language that is easy for humans to read and write, and also easy for machines to parse and generate, and is effective To improve network transmission efficiency.
- the set of key-value pairs in the state configuration file can be as follows:
- KEY is the corresponding Value in the Russian and Spanish markets, where the state machine Value is implemented in JSON format, and the value is a transition condition between multiple second state identifiers and multiple second state identifiers.
- the state machine logic is implemented. In the value, capital letters such as A represent states, and lowercase letters such as a represent conditions.
- Table 1 shows only the key-value pairs of the state machine corresponding to the one-dimensional first state identifier, and the first state identifier only represents the dimension of the market.
- Step 502 Store the state configuration file in a local data store; or, and store the state configuration file in a cache data store.
- the identification server of the business server when it obtains the status configuration file, it can store the status configuration file in the local data store for further use next time.
- the identification engine can also store the status configuration file in the cache data store.
- the identification engine can also store the state configuration file in both the cache data store and the local data store. Compared with the local data store, the speed of extracting the state configuration file from the cache data store is faster, but Cache data storage is usually used to run threads. It is relatively unstable, and when the cache data storage is occupied by too many resources in the state configuration file, it will affect the normal use of business services. Therefore, the state configuration file can also be stored in the local data storage.
- the local data storage has a larger storage space and more stable storage performance.
- step 502 may include sub-step 5021.
- Sub-step 5021 When a status configuration update file for the status configuration file is obtained, store the status configuration update file in a local data store instead of the status configuration file; or and, update the status configuration The file is stored in a cache data store, replacing the state configuration file.
- the status configuration file needs to be frequently updated to meet its timeliness requirements.
- the configuration center can obtain the status configuration update file and push the status configuration update file to Business server, the business server will automatically store the status configuration update file in the corresponding storage, replacing the original status configuration file.
- Step 503 Receive a user request.
- This step may refer to the above step 302, which is not repeated here.
- Step 504 Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
- This step may refer to the above step 303, which is not repeated here.
- the current first state identifier is generated by a user behavior corresponding to a first priority level of the user object
- the user attribute information is generated by a user behavior corresponding to a second priority level of the user object
- the first priority level The priority of is greater than the priority of the second priority level.
- the plurality of second state identifiers and the plurality of second state identifiers In the embodiment of the present application, based on determining the corresponding plurality of second state identifiers and the transition conditions between the plurality of second state identifiers through the current first state identifier, the plurality of second state identifiers and the plurality of second state identifiers In the corresponding relationship between the conversion conditions, and then using the business logic of the user attribute information to update the status, it can be determined that the priority of the current first state identifier is greater than the priority of the user attribute information.
- this priority can be reflected in the sequence in which user behavior occurs.
- a user accesses a web application, he first clicks on the US tab, enters the US page for business access, and performs the corresponding operation. Therefore, the US The tag can determine the user's market attributes, and can be correspondingly generated as the current first state identifier.
- the corresponding operation performed by the user when entering the US page can determine the user's grouping attribute, and can be correspondingly generated as the user attribute information.
- Step 505 Match the current first state identifier with the plurality of first state identifiers, and determine a target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers.
- the identification engine of the service server can determine the target transition conditions between multiple matching second status identifiers and multiple matching second status identifiers by matching the current first status identifier with multiple first status identifiers.
- the first state identifier the first state identifier—the corresponding relationship of the target transition conditions between the multiple matching second state identifiers and the multiple matching second state identifiers.
- This matching method has a simple logic, a small amount of code, and a response Fast speed benefits. For example, when the user creates an account, the nationality entered is Russia, and by matching with the first state identifier whose content is Russia, one of the multiple matching second state identifiers and the multiple matching second state identifiers in the Russian market can be determined. Between target transitions.
- step 505 may further include:
- Sub-step 5051 In the state configuration file, use the current first state identifier as a query key, determine a key corresponding to the first state identifier, and a plurality of matching first key corresponding to the first state identifier key. A key value of a target transition condition between the two state identifiers and the plurality of matching second state identifiers.
- the Value corresponding to the first state identifier KEY can be determined and obtained
- Step 506 Match the current second state identifier with the determined plurality of second state identifiers, and match the user attribute information with the target transition condition to determine the target second state identifier.
- the identification engine of the business server retrieves whether there is a current second state identifier and user attribute information that meet the trigger conditions of the state machine. If it exists, the target second state identifier is triggered to update If the current second state identifier does not exist, the next time the updated user attribute information is obtained, it is retrieved whether the updated user attribute information satisfies the triggering condition of the state machine until the user's current second state identifier is updated.
- the identification engine of the service server can update the current second state identifier of the corresponding user in the state machine, and the business server can provide the user with a business service corresponding to the updated target second state identifier. For example, if the user is a group of loyal users in the Russian market, the business server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users. .
- step 506 may further include:
- Sub-step 5061 in the key value of the target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers, the current second state identifier and the determined Multiple second state identifiers are matched, and the user attribute information is matched with the target transition condition to determine the target second state identifier.
- the Value corresponding to the first state identifier KEY can be determined and obtained
- the state logic is used to update the state by using the trigger logic of the state machine to obtain the updated target second state identifier.
- This matching method has the beneficial effects of simple logic, small amount of code, and fast response speed.
- a method for determining a user status identifier includes providing a plurality of first status identifiers, and the multiple first status identifiers correspond to multiple second status identifiers and multiple second status identifiers, respectively.
- a status identifier is matched with the current first status identifier to determine a plurality of second status identifiers corresponding to the status update, and The corresponding relationship of the transition conditions between the plurality of second state identifiers, and then the current second state identifier of the user is updated in the correspondence relationship through the current second state identifier and the user attribute information, thereby implementing in multiple dimensions.
- the purpose of state identification verification, and the data structure of key-value pairs in the state configuration file is simple, and the amount of code is small, making the state identification verification response faster.
- FIG. 6 there is shown a flowchart of specific steps of another method for determining a user status identifier provided at the system level, which may specifically include the following steps:
- a state configuration file is provided; in the state configuration file, the first state identifier is used as a key, between a plurality of second state identifiers corresponding to the first state identifier and the plurality of second state identifiers.
- the transition conditions are used as key values, where the first state identifier includes multiple first state sub-identifiers, and each first state sub-identifier corresponds to a plurality of second state sub-identifiers and between the plurality of second state sub-identifiers, respectively.
- the condition of the converter is provided in the state configuration file, the first state identifier is used as a key, between a plurality of second state identifiers corresponding to the first state identifier and the plurality of second state identifiers.
- FIG. 5 shows a one-dimensional first precondition scheme.
- it can also be extended to a two-dimensional first precondition scheme, such as selecting a condition of a corresponding state machine. It is not only a precondition dimension of the country, but also the business model in which the user is located, such as a self-employed model or a platform business model. This can make the determination of market attributes more accurate and provide users with more accurate services.
- the first state identifier may include multiple first state sub-identifiers, and each first state sub-identifier corresponds to multiple second state sub-identifiers and transition sub-conditions between the multiple second state sub-identifiers, respectively.
- the second state sub-identifier and the transition sub-conditions between the plurality of second state sub-identifiers can be implemented in the form of a sub-state machine. For example, for the market dimension of each country, the business model of this country market is further subdivided. Is it a self-employed model or a platform business model.
- each of the first state identifiers may be Including two first state sub-identifiers a ', b', a 'can represent the self-employed mode, b' can represent the platform business model, each first state identifier can correspond to a state machine set, set in the state machine set There are two sub-state machines corresponding to the first state sub-identities a 'and b', respectively.
- the first state identifier, the first state sub-identity, and the data structure of the sub-state machine in the state configuration file under the two-dimensional precondition can be Implemented as key-value pairs.
- the set of key-value pairs in the state configuration file under the two-dimensional precondition can be as shown in Table 2:
- Table 2 shows only the key-value pairs of the state machine corresponding to the two-dimensional first state identifier.
- 1ST represents the self-operating business model, that is, a first state sub-identifier
- 3RD represents the platform business model, that is, another first A state sub-identifier
- different business models correspond to different sub-state machines.
- Step 602 Store the state configuration file in a local data storage; or, and store the state configuration file in a cached data storage.
- This step may refer to the above step 502, which is not repeated here.
- step 602 may include sub-step 6021.
- Sub-step 6021 when a status configuration update file for the status configuration file is obtained, store the status configuration update file in a local data store instead of the status configuration file; or, and update the status configuration The file is stored in a cache data store, replacing the state configuration file.
- This step may refer to the above step 5021, which is not repeated here.
- Step 603 Receive a user request.
- This step may refer to the above step 302, which is not repeated here.
- Step 604 Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
- This step may refer to the above step 303, which is not repeated here.
- the current first state identifier is generated by a user behavior corresponding to a first priority level of the user object
- the user attribute information is generated by a user behavior corresponding to a second priority level of the user object
- the first priority level The priority of is greater than the priority of the second priority level.
- Step 605 Obtain business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier.
- business database data may be stored in the database of the business server.
- the business model data is established according to business logic.
- the business model data includes a business model identifier that matches the first state sub-identifier, indicating the first State ID-first state sub-identity-business model ID-correspondence between multiple second state sub-identities and transition sub-conditions between multiple second state sub-identities, such as the Russian market is currently self-operating mode,
- the US market is currently a platform business model.
- Step 606 Match the current first state identifier with the plurality of first state identifiers to determine a plurality of target first state sub-identities.
- Step 607 Match the business mode identifier with the target first state sub-identifier, and determine corresponding target second state sub-identifiers and target transition sub-conditions between the multiple target second state sub-identifiers. .
- the current first state identifier is matched with the first state identifier to determine the corresponding state machine.
- the state machine includes multiple sub-state machines.
- the business mode identifier and the first state sub-identifier are used.
- the sub-state machine in the state machine set can be determined for status update through the sub-state machine.
- the sub-state machine is between multiple target second-state sub-identifiers and the multiple target second-state sub-identifiers. The specific realization of the target transition condition.
- Step 608 In the plurality of target second-state sub-identifiers and the target transition sub-condition between the plurality of target second-state sub-identifiers, combine the current second state identifier and the target second-state sub-condition. Matching the identifier, and matching the user attribute information with the target conversion sub-condition to determine the target second state identifier.
- the operation logic of the sub-state machine under the two-dimensional precondition is the same as that of the state machine under the one-dimensional precondition, which will not be repeated here.
- a method for determining a user status identifier includes: matching a provided first status identifier with a current first status identifier of a user obtained according to a user request, and determining a plurality of corresponding matches.
- the second state identifier and the transition conditions between the plurality of matching second state identifiers, and the second state identifier and the plurality of second states are obtained through the user ’s current second state identifier and user attribute information obtained according to the user request
- the transition conditions between the identifiers are matched to obtain the target second state identifier of the user.
- This application uses a first state identifier as a key, a substate machine set corresponding to the first state sub-identifier as a value, and generates a corresponding state configuration file in the form of a key-value pair. Further, the first state stored in the state configuration file is used.
- the state identifier matches the current first state identifier, multiple target first state sub-identifiers, the business model identifier is matched with the target first state sub-identifier, and the corresponding multiple target second state sub-identifiers and multiple target first
- the second state identifier is used to update the current second state identifier of the user object, which achieves the purpose of verifying the state identifier in multiple dimensions.
- the solution in the two-dimensional market dimension can make the determination of market attributes more accurate and provide users with more accurate Service, and the data structure of the key-value pairs in the state configuration file is simple, the amount of code is small, so that State identification verification response speed.
- FIG. 8 a structure diagram of a system for determining a user status identifier in a specific example of the present application is shown, including:
- a providing module 701 is configured to provide multiple first status identifiers, where the multiple first status identifiers respectively correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers;
- a receiving module 702 configured to receive a user request
- An obtaining module 703, configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request;
- a determining module 704 configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and the multiple first state identifiers and the multiple first state identifiers corresponding to A transition condition between a plurality of second state identifiers determines a target second state identifier of the user.
- an apparatus for determining a user status identifier includes: providing multiple first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and multiple second statuses, respectively. Conversion conditions between identities; receiving user requests; obtaining the user's current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information And transition conditions between multiple first state identifiers and multiple second state identifiers corresponding to the multiple first state identifiers to determine a target second state identifier for the user.
- the purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response of the identification is fast.
- FIG. 9 a specific structural diagram of a system-level user state identification determining device in a specific example of the present application is shown, including:
- a providing module 801 is configured to provide multiple first status identifiers, where the multiple first status identifiers correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
- a module 801 including:
- the first status identifier serves as a key, a plurality of second status identifiers corresponding to the first status identifier, and the plurality of second status identifiers
- the transition conditions between the state identifiers are used as key values.
- submodules including:
- a providing unit configured to use the first state identifier as a key, and use a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a notation format
- the key value is used to generate the state configuration file in the form of a key value pair.
- the storage sub-module 8012 is configured to store the status configuration file in a local data storage, or and, store the status configuration file in a cache data storage.
- a configuration update submodule 8013 configured to store the status configuration update file in a local data store when the status configuration update file for the status configuration file is obtained, instead of the status configuration file;
- the state configuration update file is stored in a cache data storage, replacing the state configuration file.
- the receiving module 802 is configured to receive a user request.
- the obtaining module 803 is configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request.
- a determining module 804 configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and the multiple first state identifiers and the multiple first state identifiers corresponding to A transition condition between a plurality of second state identifiers determines a target second state identifier of the user.
- the determining module 804 includes:
- a first matching sub-module 8041 configured to match the current first state identifier with the plurality of first state identifiers, determine a plurality of matching second state identifiers, and the plurality of matching second state identifiers; Between target conversion conditions;
- the first matching sub-module includes:
- a first determining unit configured to use the current first state identifier as a query key in the state configuration file, determine a key corresponding to the first state identifier, and a plurality of keys corresponding to the first state identifier key A key value of a target transition condition between the matched second state identifiers and the plurality of matched second state identifiers.
- An obtaining unit configured to obtain business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier;
- a first matching unit configured to match the current first state identifier with the plurality of first state identifiers, and determine multiple target first state sub-identifiers
- a second matching unit configured to match the business mode identifier with the target first-state sub-identifier, and determine the correspondence between the corresponding multiple target second-state sub-identifiers and the multiple target second-state sub-identifiers Target transition subcondition.
- a second matching submodule 8042 configured to match the current second state identifier with the determined plurality of second state identifiers, and match the user attribute information with the target transition condition to determine the Target second status identification.
- the second matching sub-module includes:
- a second determining unit configured to: among the key values of the target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers, compare the current second state identifier with all Matching the determined plurality of second state identifiers, and matching the user attribute information with the target conversion condition to determine the target second state identifier.
- a third determining unit configured to: in the target transition sub-condition between the multiple target second-state sub-identifiers and the target second-state sub-identifiers, associate the current second status identifier with the target Match the second status sub-identifier, and match the user attribute information with the target transition sub-condition to determine the target second status id.
- an apparatus for determining a user status identifier includes: matching a first status identifier provided with a current first status identifier of a user obtained according to a user request to determine a plurality of corresponding matches; The second state identifier and the transition conditions between the plurality of matching second state identifiers, and the second state identifier and the plurality of second states are obtained through the user ’s current second state identifier and user attribute information obtained according to the user request The conversion conditions between the identifiers are matched to obtain the target second state identifier of the user.
- This application uses the first state identifier as the key, and the substate machine set corresponding to the first state sub-identifier as the value, and is generated in the form of key-value pairs.
- the corresponding state configuration file further uses the first state identifier stored in the state configuration file to match the current first state identifier, and multiple target first state sub-identities to match the business mode identifier with the target first state sub-identity.
- Match to determine the corresponding multiple target second state sub-identifiers and multiple target second state sub-identifiers Between target transition sub-conditions, matching the current second state identifier with the target second state sub-identifier, and matching user attribute information with target transition sub-conditions, determining the target second state identifier, and Update the current second status identifier of the user object to achieve the purpose of verifying the status identifier in multiple dimensions.
- the solution in the two-dimensional market dimension can make the determination of market attributes more accurate, provide users with more accurate services, and configure the status.
- the data structure of the key-value pairs in the file is simple, and the amount of code is small, which makes the response of the status identification verification faster.
- the description is relatively simple.
- the related parts refer to the description of the method embodiment.
- FIG. 10 is a schematic structural diagram of a device according to an embodiment of the present application.
- the server 900 may be configured to implement the user state identifier determination method provided in the foregoing embodiment.
- the server 900 may have relatively large differences due to different configurations or performance, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and memory 932, one or one
- the above storage medium 930 (for example, one or one storage device) storing application programs 942 or data 944.
- the memory 932 and the storage medium 930 may be temporarily stored or persistently stored.
- the program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server.
- the central processing unit 922 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the server 900.
- the server 900 may also include one or more power sources 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, one or more keyboards 956, and / or and, one or more operating systems. 941, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM and so on.
- the central processing unit 922 may execute the following operations on the server 900:
- the multiple first status identifiers corresponding to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
- the current first state identifier According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers A transition condition between determining a target second state identifier of the user.
- This application also provides one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the device to execute a method for determining a user status identifier.
- the present application provides a device having one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, causes the device to execute a method for displaying business progress.
- This application also provides one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the device to execute a method for displaying business progress.
- the embodiments of the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
- computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal device Means are generated for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction means, the The instruction device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
- These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operating steps can be performed on the computer or other programmable terminal device to produce a computer-implemented process, so that the computer or other programmable terminal device can
- the instructions executed on the steps provide steps for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present application provides a method and a device for determining a user status identifier, comprising: providing a plurality of first status identifiers, wherein the plurality of first status identifiers respectively correspond to a plurality of second status identifiers and conversion conditions between the plurality of second status identifiers; receiving a user request; obtaining, according to the user request, a current first status identifier, a current second status identifier, and user attribute information of a user; and determining a target second status identifier of the user according to the current first status identifier, the current second status identifier, the user attribute information, the plurality of first status identifiers, and the conversion conditions between the plurality of second status identifiers corresponding to the plurality of first status identifiers. The invention performs status identifier authorization in multiple dimensions, data structures of the plurality of second status identifiers and the conversion conditions between the plurality of second status identifiers corresponding to the first status identifiers are simple, and the amount of codes thereof are small, increasing the response speed of user status identifier determination.
Description
本申请要求2018年07月31日递交的申请号为201810856553.5、发明名称为“一种用户状态标识确定方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on July 31, 2018 with an application number of 201810856553.5 and an invention name of "a method and device for determining user status identification", the entire contents of which are incorporated herein by reference.
本申请涉及信息技术领域,特别是涉及一种用户状态标识确定方法及装置。The present application relates to the field of information technology, and in particular, to a method and device for determining a user status identifier.
在无线应用的大规模应用的背景下,针对多国家多市场的业务,通常需要进行标识用户的状态,以便根据用户状态,有针对性的为用户提供服务,达到优化用户体验的效果。In the context of large-scale application of wireless applications, for multi-country and multi-market services, it is usually necessary to identify the status of users in order to provide targeted services to users based on the status of users to achieve the effect of optimizing the user experience.
在目前,对用户进行状态标识的具体实现方法有两种,第一种,根据用户对应的分组属性,直接将用户的状态更新为与分组属性匹配的状态,如用户为初次登录,则将用户打上首次登录的状态标签。第二种,建立至少以市场、条件、状态三个维度的用户标识系统,并通过大量的if、if-else等基于脚本语言(JavaScript)的代码语句来实现进行用户状态标识的逻辑,如根据用户所处地理位置信息确定用户所在的市场,进一步根据用户的用户行为信息确定用户的状态,并将该状态与用户进行绑定,从而确定用户的状态。At present, there are two specific implementation methods for identifying the status of a user. The first method is to directly update the status of the user to a status that matches the grouping property according to the grouping attribute corresponding to the user. If the user is logging in for the first time, the user is updated. Label the status of the first login. The second is to establish a user identification system with at least three dimensions of market, condition, and status, and implement a logic of user status identification through a large number of if, if-else and other script statements based on JavaScript. The geographic location information of the user determines the market in which the user is located, further determines the status of the user based on the user behavior information of the user, and binds the status to the user to determine the status of the user.
但是,发明人在研究过程中发现:目前第一种方案中,基于用户状态的判断条件过少,可利用的条件维度过低,使得对用户状态的确定精度低下,第二种方案中,通过大量的JavaScript代码语句实现多维度的用户状态标识会导致代码量过多,处理逻辑繁琐,处理效率低下的问题。However, during the research process, the inventors found that in the first solution, there are too few judgment conditions based on the user status, and the available condition dimension is too low, which makes the determination of the user status inaccurate. In the second solution, A large number of JavaScript code statements to implement multi-dimensional user state identification will cause too much code, tedious processing logic, and low processing efficiency.
发明内容Summary of the invention
鉴于上述问题,本申请实施例提供一种用户状态标识确定方法,本申请利用提供多个第一状态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的 转换条件,确定用户的目标第二状态标识。实现了多个维度下进行状态标识验证的目的,并且第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件的数据结构简单,代码量少,使得用户状态标识确定的响应速度较快,解决现有技术中处理逻辑繁琐,处理效率低下的问题。In view of the above problems, an embodiment of the present application provides a method for determining a user status identifier. This application provides multiple first status identifiers, and the multiple first status identifiers correspond to multiple second status identifiers and multiple second status identifiers, respectively. Conversion conditions between; receiving a user request; obtaining the user ’s current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information, And transition conditions between the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers to determine a target second state identifier of the user. The purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
相应的,本申请实施例还提供了一种用户状态标识确定装置,用以保证上述方法的实现及应用。Correspondingly, an embodiment of the present application further provides a user status identifier determining device, which is used to ensure the implementation and application of the foregoing method.
为了解决上述问题,本申请实施例公开了一种用户状态标识确定方法,包括:In order to solve the above problem, an embodiment of the present application discloses a method for determining a user status identifier, including:
提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;Providing multiple first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
接收用户请求;Receiving user requests;
根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;Acquiring, according to the user request, a current first state identifier, a current second state identifier, and user attribute information of the user;
根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers A transition condition between determining a target second state identifier of the user.
相应的,本申请实施例还公开了一种用户状态标识确定装置,包括:Correspondingly, an embodiment of the present application further discloses a device for determining a user status identifier, including:
提供模块,用于提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;A providing module, configured to provide multiple first status identifiers, where the multiple first status identifiers correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers;
接收模块,用于接收用户请求;A receiving module for receiving a user request;
获取模块,用于根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;An obtaining module, configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request;
确定模块,用于根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。A determining module, configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and multiple corresponding ones of the multiple first state identifiers and the multiple first state identifiers A transition condition between the second state identifiers determines a target second state identifier of the user.
相应的,本申请实施例还公开了一种装置,包括:Correspondingly, an embodiment of the present application further discloses a device, including:
一个或多个处理器;和One or more processors; and
其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行一种用户状态标识确定方法。One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the device to execute a method for determining a user status identifier.
相应的,本申请实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行一种用户状态标识确定方法。Correspondingly, the embodiment of the present application also discloses one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the device to execute a method for determining a user status identifier.
本申请实施例包括以下优点:The embodiments of the present application include the following advantages:
本申请实施例包括:包括:提供多个第一状态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定用户的目标第二状态标识。实现了多个维度下进行状态标识验证的目的,并且第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件的数据结构简单,代码量少,使得用户状态标识确定的响应速度较快,解决现有技术中处理逻辑繁琐,处理效率低下的问题。The embodiment of the present application includes: providing a plurality of first status identifiers, each of which corresponds to a plurality of second status identifiers and a transition condition between a plurality of second status identifiers; receiving a user request; Request to obtain the user ’s current first state identifier, current second state identifier, and user attribute information; according to the current first state identifier, current second state identifier, user attribute information, and multiple first state identifiers, multiple first A transition condition between a plurality of second state identifiers corresponding to the state identifiers determines a target second state identifier of the user. The purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
图1是本申请一实施例提供的一种用户状态标识确定方法的系统架构图;FIG. 1 is a system architecture diagram of a method for determining a user status identifier according to an embodiment of the present application; FIG.
图2是本申请一实施例提供的一种用户状态标识确定方法的系统交互图;2 is a system interaction diagram of a method for determining a user status identifier according to an embodiment of the present application;
图3是本申请一实施例提供的系统级的一种用户状态标识确定方法的步骤流程图;3 is a flowchart of steps of a method for determining a user status identifier at a system level according to an embodiment of the present application;
图4是本申请一实施例提供的一种状态机的状态条件查询表的示意图;4 is a schematic diagram of a state condition query table of a state machine according to an embodiment of the present application;
图5是本申请一实施例提供的一种系统级的用户状态标识确定方法的具体步骤流程图;5 is a flowchart of specific steps of a method for determining a user status identifier at a system level according to an embodiment of the present application;
图6是本申请一实施例提供的另一种系统级的用户状态标识确定方法的具体步骤流程图;FIG. 6 is a flowchart of specific steps of another method for determining a user status identifier at a system level according to an embodiment of the present application; FIG.
图7是本申请一实施例提供的一种二维前置条件下的配置文件数据结构图;7 is a configuration file data structure diagram under a two-dimensional precondition provided by an embodiment of the present application;
图8是本申请一实施例提供的一种用户状态标识确定装置的结构图;FIG. 8 is a structural diagram of an apparatus for determining a user status identifier according to an embodiment of the present application; FIG.
图9是本申请一实施例提供的一种用户状态标识确定装置的具体结构图;FIG. 9 is a specific structural diagram of an apparatus for determining a user status identifier according to an embodiment of the present application; FIG.
图10是本申请另一实施例提供的一种装置的结构示意图。FIG. 10 is a schematic structural diagram of a device according to another embodiment of the present application.
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above-mentioned objects, features, and advantages of this application more comprehensible, the following further describes this application in detail with reference to the accompanying drawings and specific embodiments.
参照图1,其示出了本申请实施例的一种系统架构,其至少可以包括:Referring to FIG. 1, which illustrates a system architecture according to an embodiment of the present application, which may include at least:
业务服务器10、配置中心20、用户属性数据服务器30和客户端40,其中业务服务器10包括:标识引擎101和本地数据存储102。The business server 10, the configuration center 20, the user attribute data server 30, and the client 40. The business server 10 includes an identification engine 101 and a local data storage 102.
业务服务器10,是一种针对用户请求,为用户的客户端40提供相应个性化服务的服务器,例如可以向用户提供个性化推荐,以及该个性化推荐的详细内容,在本申请实施例中,为了对业务服务器10所面对的海量用户进行区分和分组,可以为用户设置对应的状态标识,以将用户按照市场属性和分组属性的不同进行分组,使得业务服务器10可以根据用户的状态标识,向客户端40提供对应该状态标识的服务,达到满足不同用户需求的目的。The service server 10 is a server that provides a corresponding personalized service for the client 40 of the user based on the user request. For example, the service server 10 can provide a personalized recommendation to the user and the details of the personalized recommendation. In the embodiment of the present application, In order to distinguish and group the large number of users faced by the business server 10, corresponding status identifiers can be set for the users to group users according to different market attributes and grouping attributes, so that the business server 10 can identify according to the user's status. The client 40 is provided with a service corresponding to the status identification, so as to meet the needs of different users.
需要说明的是,用户在首次登录业务服务器10进行业务访问时,可以建立相关的用户账号,同时会生成一个对应该用户账号的状态标识,以表明该用户的当前状态,该状态标识可以为一个状态标签,例如,当用户首次注册账号是,可以在用户头像附近显示“新人”的状态标签,以表明用户的“新人身份”,状态标识可以进行更改,例如,随着用户登录次数增多,可以将“新人”的状态标签更新为“忠实用户”。It should be noted that when a user logs in to the service server 10 for business access for the first time, a related user account can be established, and a status identifier corresponding to the user account is generated to indicate the current status of the user. The status identifier can be a Status labels, for example, when a user first signs up for an account, a status label of "newcomer" can be displayed near the user's avatar to indicate the "newcomer identity" of the user, and the status identifier can be changed. Updated "newcomer" status label to "loyal users".
具体的,业务服务器10中设置有标识引擎101(Mark Engine)和本地数据存储102(Local Data)。本地数据存储102中可以存储有从配置中心20获取的与用户状态标识相关的状态配置文件201,状态配置文件201中可以存储有多个第一状态标识、多个第二状态标识以及多个第二状态标识之间的转换条件,标识引擎101是用来解析本地数据存储102中状态配置文件201的独立的线程,在当前应用架构下,其往往可以是业务服务器10中的一个业务插件,这个业务插件可以加载配置中心20推送下来的状态配置文件201,对用户的状态进行更新。Specifically, the service server 10 is provided with a mark engine 101 (Mark Engine) and a local data storage 102 (Local Data). The local data storage 102 may store a status configuration file 201 related to a user status identifier obtained from the configuration center 20, and the status configuration file 201 may store multiple first status identifiers, multiple second status identifiers, and multiple first status identifiers. The transition conditions between the two state identifiers. The identifier engine 101 is an independent thread used to parse the state profile 201 in the local data store 102. Under the current application architecture, it can often be a business plug-in in the business server 10. The service plug-in can load the status configuration file 201 pushed down by the configuration center 20 to update the status of the user.
配置中心20(Config Server),常以键值对的形式存储业务服务中使用到的各种状态配置文件201,配置中心20可以对状态配置文件201进行更新,或将状态配置文件201推送至业务服务器10,其中,状态配置文件201中存储有至少一个第一状态标识、与第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件,第一状态标识和第二状态标识以及多个第二状态标识之间的转换条件的对应关系可以以键值对的形式进行写入。Configuration Center 20 (Config Server), which often stores various status configuration files 201 used in business services in the form of key-value pairs. The configuration center 20 can update the status configuration file 201 or push the status configuration file 201 to the business. The server 10, wherein the state configuration file 201 stores at least one first state identifier, a plurality of second state identifiers corresponding to the first state identifier, and transition conditions between the plurality of second state identifiers, the first state identifier and The correspondence between the second state identifier and the transition conditions between the plurality of second state identifiers may be written in the form of key-value pairs.
用户属性数据服务器30中,存储有各个用户的用户属性信息和当前第二状态标识等,用户属性数据是一种勾画目标用户、联系用户诉求与设计方向的有效工具,用户属性数据可以使应用产品的服务对象更加聚焦,更加的专注,用户属性数据服务器建立的数据来源是用户在使用该应用产品时,所产生的与用户行为相关的数据,例如,用户注册账号所填写的姓名、性别、年龄、地理位置等信息,用户在该应用中所产生的浏览记录信息、行为信息等,通过收集这些信息,可以建立包括该用户的用户属性数据服务器 30,利用用户属性数据服务器30中的数据,可以确定用户对应的市场属性以及在市场中的分组属性。The user attribute data server 30 stores user attribute information and the current second status identifier of each user. The user attribute data is an effective tool for sketching target users, contacting user demands and design directions. User attribute data can enable application products The service object is more focused and more focused. The data source established by the user attribute data server is data related to user behavior generated by the user when using the application product, such as the name, gender, and age filled in by the user's registered account. Information such as location information, geographic location, and browsing history information and behavior information generated by the user in the application. By collecting this information, a user attribute data server 30 including the user can be established. Using the data in the user attribute data server 30, the Determine the user's corresponding market attributes and grouping attributes in the market.
需要说明的是,针对本申请中的第一状态标识、第二状态标识、转换条件和用户属性信息,其中,第一状态标识可以为一个状态标签,用以表明用户的一种维度的属性,如用户国籍、所在地区、性别等在第一时间段内不变化的属性,第二状态标识同样可以为一个状态标签,用以表明用户另一种维度的属性,如用户的新/老用户等在第二时间段内变化的属性。第一状态标识所对应的维度与第二状态标识所对应的维度可以为不同的维度;当然,第一状态标识和第二状态标识具体对应的维度属性可以根据需要设置,本申请实施例不对其加以限定。转换条件是根据有限状态机的执行逻辑,所设定的一个以触发对应目标第二状态标识为目的的参数,可以预先设定第二状态标识+触发条件=目标第二状态标识的对应关系,使得后续根据第二状态标识+触发条件的关系,得到对应的目标第二状态标识;用户属性信息是一种根据用户行为生成的信息,如用户浏览记录、用户行为记录等。It should be noted that, for the first state identifier, the second state identifier, the transition condition, and the user attribute information in this application, the first state identifier may be a state label used to indicate a dimension attribute of the user. For example, the attributes of the user ’s nationality, region, gender, etc. that do not change during the first time period, the second status identifier can also be a status label, which indicates the attributes of the user in another dimension, such as the user's new / old users, etc. Properties that change during the second time period. The dimensions corresponding to the first status identifier and the dimensions corresponding to the second status identifier may be different dimensions; of course, the specific dimension attributes corresponding to the first status identifier and the second status identifier may be set according to needs, and this embodiment does not change them. Be restricted. The transition condition is a parameter set according to the execution logic of the finite state machine for the purpose of triggering the corresponding second state identifier of the target. The corresponding relationship of the second state identifier + trigger condition = target second state identifier can be set in advance. The subsequent second status identifier is obtained according to the relationship between the second status identifier + the trigger condition; the user attribute information is a type of information generated based on user behavior, such as user browsing records, user behavior records, and the like.
需要说明的是,用户的当前第一状态标识可以对应市场维度,可以用于划分市场,确定用户的市场属性,通常可以为用户的国籍或当前所在的地理位置,例如,美国、中国、中国华北地区等,用户的当前第一状态标识可以根据对用户网络互连协议(IP,Internet Protocol)的定位得到,也可以根据用户在注册账号时输入的注册信息得到。用户的前第二状态标识可以对应分组维度,可以用于划分分组,确定用户的分组属性,通常即为用户的当前状态,例如,用户的“新人”“忠实用户”等标签,或者“可参加XX大促销”,“消费8折优惠”等一些与业务关联的标签,用户属性信息可以是利用该用户之前的一些用户行为数据或用户身份数据得到,如,用户首次登录时间在一个月内且已下过单,用户已参加XX大促销等,并且,用户的当前第二状态标识通常可以与用户标识(ID,identification)进行绑定,以方便利用用户ID查询对应的用户当前第二状态标识。It should be noted that the current first status identifier of the user can correspond to the market dimension, and can be used to divide the market and determine the user's market attributes. Usually, it can be the user ’s nationality or the current geographic location, such as the United States, China, and North China. Region, etc., the user's current first status identifier can be obtained according to the positioning of the user's Internet Protocol (IP, Internet Protocol), or can be obtained according to the registration information entered by the user when registering an account. The user ’s first and second status identifiers can correspond to the grouping dimension, which can be used to divide the grouping and determine the grouping attributes of the user, which is usually the current state of the user. For example, the user ’s "newcomer", "loyal user" and other tags, or XX big promotion "," 20% off consumption "and other service-related tags. User attribute information can be obtained by using some previous user behavior data or user identity data of the user. For example, the user's first login time is within one month and The order has been placed, the user has participated in the XX big promotion, etc., and the current second status identifier of the user can usually be bound to the user identification (ID, identification) to facilitate the use of the user ID to query the corresponding second current status identifier of the user .
其中,用户的当前第二状态标识可以随着用户行为的增加而不断变化,而因为用户的市场属性通常是固定的,其发生变化的几率较小,因此,用户的当前第一状态标识则可以在一定时间范围内不会发生变化,例如,用户所在的国家和地区通常不会发生变化,或者说发生变化的几率较小,用户属性数据则可以认为是与用户行为相关的数据,用户属性数据只会随着用户行为的增加而增加,其表明用户行为的本质不会发生改变。Among them, the user's current second state identifier can change continuously as the user's behavior increases, and because the user's market attributes are usually fixed, the chance of change is small, so the user's current first state identifier can be It will not change within a certain time range. For example, the country and region where the user is located usually does not change, or the chance of change is small. User attribute data can be considered as data related to user behavior. User attribute data It will only increase as user behavior increases, which indicates that the nature of user behavior will not change.
在业务服务全球化部署的趋势下,针对多国家多市场的业务,在标识用户状态时,会面临至少市场、条件、状态三个维度,市场维度用于将用户划分到具体的国家或市场 中,如,用户访问俄罗斯业务,则用户会被划分到俄罗斯市场中,条件维度用于将划分到具体市场的用户进行进一步的分组,其具体实现与有限状态机的逻辑相似,包括:当前状态+条件=下一状态,通过将用户划分至具体的市场,并在该市场中更新状态,因此,本申请中对用户当前第二状态标识的更新可以利用有限状态机来完成,有限状态机(Finite-state machine,FSM),又称有限状态自动机,简称状态机,是表示有限个状态以及在这些状态之间的转移和动作等行为的数学模型,其中,状态配置文件201中的第一状态标识可以对应市场维度,可以用于划分市场,确定用户的市场属性,有限状态机用于基于用户的当前第二状态标识和用户属性数据,得到对应的目标第二状态标识,并在具体的市场分组将目标第二状态标识更新用户的当前第二状态标识,即进一步确立用户的分组属性。Under the trend of global deployment of business services, for multi-country and multi-market businesses, when identifying user status, they will face at least three dimensions: market, condition, and status. The market dimension is used to divide users into specific countries or markets. For example, if a user accesses Russian business, the user will be divided into the Russian market. The condition dimension is used to further group users that are divided into specific markets. The specific implementation is similar to the logic of the finite state machine, including: current state + Condition = next state, by dividing the user into a specific market and updating the state in that market, therefore, the update of the user's current second state identifier in this application can be done using a finite state machine, Finite State Machine (Finite -state machine (FSM), also known as a finite state automaton, or state machine for short, is a mathematical model representing a finite number of states and behaviors such as transitions and actions between these states. Among them, the first state in the state configuration file 201 Identification can correspond to market dimensions, can be used to divide the market, determine the user's market attributes, limited status The state machine is used to obtain the corresponding target second state identifier based on the user's current second state identifier and user attribute data, and to update the target second state identifier to the user's current second state identifier in a specific market group, that is, to further establish User grouping attributes.
具体的,参照图2,基于图2示出的一种系统架构交互图,包括:Specifically, referring to FIG. 2, a system architecture interaction diagram based on FIG. 2 includes:
步骤S1、配置中心向业务服务器推送状态配置文件。Step S1. The configuration center pushes a status configuration file to the service server.
在该步骤中,配置中心通过向业务服务器推送状态配置文件,状态配置文件可以包括多个第一状态标识,多个第一状态标识分别对应的多个第二状态标识以及多个第二状态标识之间的转换条件,使得业务服务器可以利用状态配置文件,为用户更新相应的状态标识,另外,配置中心也可以更新状态配置文件,并将更新后的状态配置文件推送至业务服务器。In this step, the configuration center pushes the status configuration file to the service server. The status configuration file may include multiple first status identifiers, multiple second status identifiers corresponding to the multiple first status identifiers, and multiple second status identifiers. The transition conditions between them enable the business server to use the status configuration file to update the corresponding status identifier for the user. In addition, the configuration center can also update the status configuration file and push the updated status configuration file to the business server.
步骤S2、业务服务器接收客户端发送的用户请求。Step S2: The service server receives a user request sent by the client.
当客户端用户需要进行针对业务服务器的访问时,客户端会向业务服务器发送用户请求,其中,用户请求中可以绑定有对应用户的用户标识(ID,identification),通过用户ID可以查询到该用户的当前第二状态标识,以及该用户的当前第一状态标识和用户属性信息,当前第一状态标识用于与状态配置文件中的第一状态标识进行匹配。When a client user needs to access the business server, the client sends a user request to the business server. The user request can be bound to the user ID (identification) of the corresponding user, and the user ID can be used to query the service server. The current second status identifier of the user, and the current first status identifier and user attribute information of the user. The current first status identifier is used to match the first status identifier in the status configuration file.
步骤S3、业务服务器根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息。Step S3: The service server obtains the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
用户的当前第一状态标识、当前第二状态标识和用户属性信息是根据用户请求中的用户ID查询得到的,具体的,当前第一状态标识、用户属性信息是根据用户ID在用户属性数据服务器中查询得到的,用于后续进行用户状态的更新。The user ’s current first state identifier, current second state identifier, and user attribute information are obtained by querying the user ID in the user request. Specifically, the current first state identifier and user attribute information are obtained from the user attribute data server according to the user ID. The query is used to update the user status.
步骤S4,业务服务器根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定用户的目标第二状态标识。Step S4: The service server according to the current first state identifier, the current second state identifier, the user attribute information, and the transition conditions between the multiple first state identifiers and the multiple second state identifiers corresponding to the multiple first state identifiers. To determine the user's target second status identifier.
在该步骤中,通过将当前第一状态标识作为查询KEY(键),与状态配置文件中的第一状态标识KEY进行匹配,可以确定第一状态标识KEY对应的Value(值),该Value可以为多个第二状态标识以及多个第二状态标识之间的转换条件,通过匹配,可以得到当前第一状态标识—第一状态标识—多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系,这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。例如,用户建立账号时,输入的国籍为俄罗斯,则该信息可以被导入该用户的用户属性信息中,作为当前第一状态标识存在,通过与内容为俄罗斯的第一状态标识进行匹配,可以快速确定俄罗斯市场对应的多个第二状态标识以及多个第二状态标识之间的转换条件。In this step, by using the current first state identifier as the query KEY and matching the first state identifier KEY in the state configuration file, a value corresponding to the first state identifier KEY can be determined, and the Value can be For the transition conditions between multiple second status identifiers and multiple second status identifiers, the current first status identifier—first status identifier—multiple second status identifiers and multiple second status identifiers can be obtained by matching. Corresponding relationship between conversion conditions, this matching method has the beneficial effects of simple logic, small amount of code, and fast response speed. For example, when a user establishes an account and the nationality entered is Russian, the information can be imported into the user's user attribute information and exists as the current first state identifier. By matching with the first state identifier whose content is Russian, it can quickly Determine a plurality of second state identifiers corresponding to the Russian market and transition conditions between the plurality of second state identifiers.
进一步的,通过多个第二状态标识以及多个第二状态标识之间的转换条件进行状态标识的更新,其具体实现可以由有限状态机来实现,有限状态机的实现逻辑为:当前状态+条件=下一个状态,具体可以参照图1中,有限状态机的逻辑可以由条件查询表的形式来体现,业务服务器可以利用用户属性信息作为条件,当前第二状态标识作为当前状态,得到目标第二状态标识作为下一个状态,对用户的当前第二状态标识进行更新,例如,用户属性信息可以为用户的登录记录,假设当用户登录100次后,可以将用户划分为忠实用户分组,则当某个用户第100次进行业务访问时,则根据状态机的逻辑,可以将当前第二状态标识从“新人”状态更新为“忠实用户”。Further, the status identifier is updated through multiple second state identifiers and transition conditions between multiple second state identifiers. The specific implementation can be implemented by a finite state machine. The implementation logic of the finite state machine is: current state + Condition = next state. For details, refer to Figure 1. The logic of the finite state machine can be embodied in the form of a condition query table. The service server can use the user attribute information as the condition, and the current second state identifier can be used as the current state. The second status identifier is used as the next status to update the current second status identifier of the user. For example, the user attribute information can be the user's login record. Assuming that the user can be divided into loyal user groups after the user logs in 100 times, then when When a user makes a business visit for the 100th time, according to the logic of the state machine, the current second state identifier can be updated from the "newcomer" state to the "loyal user".
S5,业务服务器根据所述目标第二状态标识,向用户的客户端提供对应的服务。S5. The service server provides a corresponding service to the client of the user according to the target second state identifier.
在本申请实施例中,当业务服务器基于市场、条件、状态三个维度对用户进行状态标识/验证后,业务服务器可以向用户提供对应更新后的目标第二状态标识对应的业务服务,例如,用户为俄罗斯市场中的忠实用户分组,则业务服务器可以为用户提供俄罗斯市场中的会员办理推荐,以供忠实用户了解会员权益,且忠实用户办理会员的几率相较于新人用户大大提高。In the embodiment of the present application, after the service server performs status identification / verification on the user based on the three dimensions of market, condition, and status, the service server may provide the user with a business service corresponding to the updated target second status identifier, for example, Users are grouped into loyal users in the Russian market. The service server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users.
因此,本申请可以提供多个第一状态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定用户的目标第二状态标识。实现了多个维度下进行状态标识验证的目的,并且第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件的数据结构简单,代码量少,使得用户状态标识确定的响应速 度较快,解决现有技术中处理逻辑繁琐,处理效率低下的问题。Therefore, this application can provide multiple first status identifiers, and multiple first status identifiers respectively correspond to multiple second status identifiers and transition conditions between multiple second status identifiers; receive user requests; and obtain according to user requests The user's current first state identifier, current second state identifier, and user attribute information; according to the current first state identifier, current second state identifier, user attribute information, and multiple first state identifiers, multiple first state identifiers The transition conditions between the corresponding second state identifiers determine the target second state identifier of the user. The purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
参照图3,示出了本申请提供的系统级的一种用户状态标识确定方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3, a flowchart of a method for determining a user status identifier at a system level provided in the present application is shown, which may specifically include the following steps:
步骤301,提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件。Step 301: Provide a plurality of first state identifiers, where the plurality of first state identifiers respectively correspond to a plurality of second state identifiers and transition conditions between the plurality of second state identifiers.
在本申请实施例中,多个第一状态标识,多个第一状态标识分别对应的多个第二状态标识以及多个第二状态标识之间的转换条件可以被写入状态配置文件,以配置文件的形式进行存储,状态配置文件可以由配置中心进行推送,配置中心可以将配置文件推送至任何一个业务服务器上以供其进行使用。In the embodiment of the present application, a plurality of first state identifiers, a plurality of second state identifiers corresponding to the plurality of first state identifiers, and transition conditions between the plurality of second state identifiers may be written into the state configuration file to The configuration file is stored, and the status configuration file can be pushed by the configuration center, and the configuration center can push the configuration file to any business server for its use.
具体的,基于目前验证用户当前第二状态标识的操作,具有市场、条件、状态三个维度的需求,即标识用户状态可以先确定市场属性,再进一步确定该市场中的分组属性,这个分组属性就是用户的变更后的目标第二状态标识,基于目前的市场规则,市场属性通常可以是具体的市场,如国家、地区、运营类型等,分组属性通常可以是利用该用户之前的一些用户行为数据或用户身份数据得到的,如,用户首次登录时间在一个月内且已下过单,则其分组属性可以为“非新人用户”,将其状态由new更新为first。Specifically, based on the current operation of verifying the user ’s current second status identification, there are three dimensions of market, condition, and status. That is, to identify the user status, the market attribute can be determined first, and then the grouping attribute in the market can be further determined. This grouping attribute It is the user ’s changed target second state identifier. Based on the current market rules, market attributes can usually be specific markets, such as country, region, operation type, etc. Grouping attributes can usually use some previous user behavior data of the user. Or obtained from user identity data. For example, if the user's first login time is within one month and an order has been placed, its grouping attribute can be "non-newcomer user", and its status is updated from new to first.
进一步的,确定市场属性可以由状态配置文件中的第一状态标识来实现,确定分组属性可以由第一状态标识对应的第二状态标识以及第二状态标识之间的转换条件来实现,比如建立多个国家的标签,不同的国家可以对应不同的第一状态标识,并为每个国家建立对应的第二状态标识以及第二状态标识之间的转换条件之间的对应关系,以更新这个国家市场下的用户状态。其中,状态配置文件中的第一状态标识与对应第二状态标识以及第二状态标识之间的转换条件的具体实现可以通过key-value的形式,可以达到减少代码量,提高相应速度的目的。Further, determining a market attribute may be implemented by a first state identifier in a state configuration file, and determining a grouping attribute may be implemented by a second state identifier corresponding to the first state identifier and a transition condition between the second state identifiers, such as establishing Tags of multiple countries, different countries can correspond to different first state identifiers, and establish a corresponding relationship between the corresponding second state identifier and the transition conditions between the second state identifiers for each country to update this country User status in the market. The specific implementation of the transition condition between the first state identifier, the corresponding second state identifier, and the second state identifier in the state configuration file can be achieved through the form of key-value, which can reduce the amount of code and increase the corresponding speed.
步骤302,接收用户请求。Step 302: Receive a user request.
当用户客户端需要进行针对业务服务器的访问时,客户端会向业务服务器发送用户请求,其中,用户请求中可以存储有对应用户的用户ID,通过用户ID可以查询到该用户的当前第二状态标识,以及该用户的当前第一状态标识和用户属性信息,当前第一状态标识用于与状态配置文件中的第一状态标识进行匹配。When the user client needs to access the service server, the client sends a user request to the service server. The user request may store the user ID of the corresponding user, and the current second state of the user can be queried by the user ID. The identifier, and the current first state identifier and user attribute information of the user. The current first state identifier is used to match the first state identifier in the state configuration file.
步骤303,根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息。Step 303: Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
在该步骤中,根据用户请求中存储的对应用户的用户ID,可以通过访问用户属性数 据服务器,调用该用户ID下用户的当前第一状态标识和用户属性信息,用户属性数据服务器建立的数据来源是用户在使用该应用时,所产生的与用户行为相关的数据,例如用户建立账号时输入的身份信息等数据,当前第一状态标识一般可以对应市场属性,比如为用户的国籍、所在地区等,用户属性信息可以对应分组属性,比如为用户的历史浏览记录、用户行为记录等。In this step, according to the user ID of the corresponding user stored in the user request, the user's current first state identifier and user attribute information of the user under the user ID can be called by accessing the user attribute data server, and the data source established by the user attribute data server It is data related to user behavior generated by the user when using the application, such as data such as identity information entered by the user when establishing an account. The current first state identifier can generally correspond to market attributes, such as the user's nationality, region, etc. The user attribute information can correspond to grouping attributes, such as the user's historical browsing records, user behavior records, and so on.
进一步的,用户的状态标识也可以与用户ID进行绑定,获取用户的当前第二状态标识也可以通过相应的用户ID,在状态管理线程中查询得到。Further, the user's status identifier can also be bound to the user ID, and the current second status identifier of the user can also be obtained by querying in the status management thread through the corresponding user ID.
步骤304,根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。Step 304: According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of first state identifiers corresponding to the plurality of first state identifiers. A transition condition between the two state identifiers determines a target second state identifier of the user.
业务服务器的标识引擎通过将当前第一状态标识与状态配置文件中的第一状态标识进行匹配,可以确定第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件,得到当前第一状态标识—第一状态标识—多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系,这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。例如,用户建立账号时,输入的国籍为俄罗斯,通过与内容为俄罗斯的第一状态标识进行匹配,可以确定俄罗斯市场对应的状态机。The identification engine of the service server can determine the transition between multiple second status identifiers corresponding to the first status identifier and multiple second status identifiers by matching the current first status identifier with the first status identifier in the status configuration file. Conditions to obtain the corresponding relationship between the current first state identifier—first state identifier—multiple second state identifiers and multiple second state identifiers. This matching method has simple logic, small amount of code, and response speed Quick beneficial effects. For example, when the user establishes an account, the nationality entered is Russia, and by matching with the first state identifier whose content is Russia, the state machine corresponding to the Russian market can be determined.
在确定一个具体市场属性对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件时,此时业务服务器的标识引擎检索是否满足状态机触发条件的用户属性信息,若存在,则触发目标第二状态标识更新用户的当前第二状态标识,若不存在,则在下一次获取到更新后的用户属性信息时,检索更新后的用户属性信息时是否满足状态机触发条件,直至用户的当前第二状态标识被更新。When determining a plurality of second state identifiers corresponding to a specific market attribute and a transition condition between the plurality of second state identifiers, at this time, the identification engine of the service server retrieves user attribute information whether the state machine trigger condition is met. If it exists, the target second state identifier is triggered to update the current second state identifier of the user. If it does not exist, when the updated user attribute information is obtained next time, whether the state machine trigger condition is satisfied when retrieving the updated user attribute information, Until the user's current second status identifier is updated.
参照图4,其示出了一种状态机的状态条件查询表的示意图,状态机是表示有限个状态以及在这些状态之间的转移和动作等行为的数学模型,其中,状态机根据业务逻辑建立了当前状态/条件的触发逻辑查询表,在图4中,示出了状态A、状态B、状态C三个触发状态,以及条件1、条件2、条件3三个触发条件,其触发逻辑可以包括状态C+条件1=状态B,将其结合业务逻辑示例说明可以表示为新人状态+登录次数大于或等于100=忠实用户状态。Referring to FIG. 4, a schematic diagram of a state condition query table of a state machine is shown. The state machine is a mathematical model representing a finite number of states and behaviors such as transitions and actions between the states. The state machine is based on business logic. A trigger logic lookup table of the current state / condition is established. In FIG. 4, three trigger states of state A, state B, and state C, and three trigger conditions of condition 1, condition 2, and condition 3 are shown. It can include state C + condition 1 = state B, which can be expressed as a newcomer state + login times greater than or equal to 100 = loyal user state in combination with business logic.
通过当前第一状态标识、用户属性信息,业务服务器的标识引擎可以在状态机中进行相应用户当前第二状态标识的更新,业务服务器可以向用户提供对应更新后的目标第二状态标识的业务服务,例如,用户为俄罗斯市场中的忠实用户分组,则业务服务器可 以为用户提供俄罗斯市场中的会员办理推荐,以供忠实用户了解会员权益,且忠实用户办理会员的几率相较于新人用户大大提高。Based on the current first state identifier and user attribute information, the identification engine of the service server can update the current second state identifier of the corresponding user in the state machine, and the service server can provide the user with the business service corresponding to the updated target second state identifier. For example, if the user is a group of loyal users in the Russian market, the business server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users. .
综上所述,本申请实施例提供的一种用户状态标识确定方法,包括:提供多个第一状态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定用户的目标第二状态标识。实现了多个维度下进行状态标识验证的目的,并且第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件的数据结构简单,代码量少,使得用户状态标识确定的响应速度较快,解决现有技术中处理逻辑繁琐,处理效率低下的问题。In summary, a method for determining a user status identifier provided in an embodiment of the present application includes: providing a plurality of first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and multiple second statuses, respectively. Conversion conditions between identities; receiving user requests; obtaining the user's current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information And transition conditions between multiple first state identifiers and multiple second state identifiers corresponding to the multiple first state identifiers to determine a user's target second state identifier. The purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response speed of the identification is relatively fast, which solves the problems of cumbersome processing logic and low processing efficiency in the prior art.
参照图5,示出了本申请提供的一种系统级的用户状态标识确定方法的具体步骤流程图,具体可以包括如下步骤:Referring to FIG. 5, a flowchart of specific steps of a system-level user status identifier determination method provided in the present application is shown, which may specifically include the following steps:
步骤501,提供一状态配置文件;所述状态配置文件中,所述第一状态标识作为键,所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件作为键值。Step 501: Provide a status configuration file; in the status configuration file, the first status identifier serves as a key, between a plurality of second status identifiers corresponding to the first status identifier and the plurality of second status identifiers. As the key value.
在本申请实施例中,生成状态配置文件,首先需要建立一个空的状态配置文件文档,用于写入配置数据。In the embodiment of the present application, to generate a status configuration file, first, an empty status configuration file file needs to be established for writing configuration data.
进一步的,可以在状态配置文件中写入KEY=(第一状态标识),Value=(该第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件),通过将当前第一状态标识作为查询KEY,与状态配置文件中的第一状态标识KEY进行匹配,可以确定第一状态标识KEY对应的Value,得到当前第一状态标识—第一状态标识—多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系,这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。Further, KEY = (first state identifier) and Value = (multiple second state identifiers corresponding to the first state identifier and transition conditions between multiple second state identifiers) may be written in the state configuration file, By using the current first state identifier as the query KEY and matching the first state identifier KEY in the state configuration file, the value corresponding to the first state identifier KEY can be determined, and the current first state identifier—first state identifier—multiple The correspondence between the second state identifier and the transition conditions between multiple second state identifiers. This matching method has the beneficial effects of simple logic, small amount of code, and fast response speed.
可选的,子步骤501还可以包括子步骤A1。Optionally, the sub-step 501 may further include a sub-step A1.
子步骤A1,将所述第一状态标识作为键,将所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件以对象简谱的格式作为键值,以键值对的方式,生成所述状态配置文件。Sub-step A1, using the first state identifier as a key, and using a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a key in a notation format of the object Value, the state configuration file is generated as a key-value pair.
在本申请实施例中,将第一状态标识对应的状态机以对象简谱(JSON,JavaScript Object Notation)的格式作为值,可以有效降低代码量和代码逻辑复杂度,JSON是一种 轻量级的数据交换格式,采用完全独立于编程语言的文本格式来存储和表示数据,简洁和清晰的层次结构使得JSON成为理想的数据交换语言,易于人阅读和编写,同时也易于机器解析和生成,并有效地提升网络传输效率。In the embodiment of the present application, using the state machine corresponding to the first state identifier in the format of object notation (JSON, JavaScript, Object Notation) as the value can effectively reduce the amount of code and the complexity of the code logic. JSON is a lightweight Data exchange format, which uses a text format that is completely independent of the programming language to store and represent data. The concise and clear hierarchical structure makes JSON an ideal data exchange language that is easy for humans to read and write, and also easy for machines to parse and generate, and is effective To improve network transmission efficiency.
在具体示例中,状态配置文件中的键值对集合可以如下表1:In a specific example, the set of key-value pairs in the state configuration file can be as follows:
表1Table 1
在表1中,示出了KEY为俄罗斯和西班牙市场下的对应Value,其中状态机Value是以JSON格式实现的,value为多个第二状态标识以及多个第二状态标识之间的转换条件的状态机逻辑实现,value中大写字母如A代表状态,小写字母如a代表条件,其触发逻辑包括俄罗斯:状态A+条件a=状态B。西班牙:状态A+条件b=状态B等。In Table 1, it is shown that KEY is the corresponding Value in the Russian and Spanish markets, where the state machine Value is implemented in JSON format, and the value is a transition condition between multiple second state identifiers and multiple second state identifiers. The state machine logic is implemented. In the value, capital letters such as A represent states, and lowercase letters such as a represent conditions. The trigger logic includes Russia: state A + condition a = state B. Spain: State A + condition b = state B, etc.
其中,表1示出的仅为一维第一状态标识对应的状态机的键值对,第一状态标识仅表示市场的维度。Table 1 shows only the key-value pairs of the state machine corresponding to the one-dimensional first state identifier, and the first state identifier only represents the dimension of the market.
步骤502,将所述状态配置文件存储在本地数据储存中;或和,将所述状态配置文件存储在缓存数据储存中。Step 502: Store the state configuration file in a local data store; or, and store the state configuration file in a cache data store.
在该步骤中,业务服务器的标识引擎在获取到状态配置文件时,可以将状态配置文件存储在本地数据储存,以便下次继续使用,另外,标识引擎也可以将状态配置文件存储在缓存数据储存中,进一步的,标识引擎也可以将状态配置文件既存储在缓存数据储存中,又存储在本地数据储存中,相较于本地数据储存,从缓存数据储存提取状态配置文件的速度更快,但是缓存数据储存通常用于运行线程,其较不稳定,且缓存数据储存被状态配置文件占用的资源过多时,会影响业务服务的正常使用,因此,还可以将状态配置文件存储在本地数据储存,本地数据储存的存储空间更大,存储性能也更加稳定。In this step, when the identification server of the business server obtains the status configuration file, it can store the status configuration file in the local data store for further use next time. In addition, the identification engine can also store the status configuration file in the cache data store. In addition, the identification engine can also store the state configuration file in both the cache data store and the local data store. Compared with the local data store, the speed of extracting the state configuration file from the cache data store is faster, but Cache data storage is usually used to run threads. It is relatively unstable, and when the cache data storage is occupied by too many resources in the state configuration file, it will affect the normal use of business services. Therefore, the state configuration file can also be stored in the local data storage. The local data storage has a larger storage space and more stable storage performance.
可选的,步骤502可以包括子步骤5021。Optionally, step 502 may include sub-step 5021.
子步骤5021、当获取到针对所述状态配置文件的状态配置更新文件时,将所述状态配置更新文件存储在本地数据储存中,替代所述状态配置文件;或和,将所述状态配置更新文件存储在缓存数据储存中,替代所述状态配置文件。Sub-step 5021: When a status configuration update file for the status configuration file is obtained, store the status configuration update file in a local data store instead of the status configuration file; or and, update the status configuration The file is stored in a cache data store, replacing the state configuration file.
在本申请实施例中,基于商家开展业务时数据的时效性,需要经常更新状态配置文件以满足其时效性的需求,此时配置中心可以获取状态配置更新文件,并将状态配置更新文件推送至业务服务器,业务服务器会自动将状态配置更新文件存储相应储存中,替 代原有的状态配置文件。In the embodiment of the present application, based on the timeliness of the data when the business is conducted by the merchant, the status configuration file needs to be frequently updated to meet its timeliness requirements. At this time, the configuration center can obtain the status configuration update file and push the status configuration update file to Business server, the business server will automatically store the status configuration update file in the corresponding storage, replacing the original status configuration file.
步骤503,接收用户请求。Step 503: Receive a user request.
该步骤可以参照上述步骤302,此处不再赘述。This step may refer to the above step 302, which is not repeated here.
步骤504,根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息。Step 504: Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
该步骤可以参照上述步骤303,此处不再赘述。This step may refer to the above step 303, which is not repeated here.
可选的,当前第一状态标识由所述用户对象对应第一优先级别的用户行为生成,所述用户属性信息由所述用户对象对应第二优先级别的用户行为生成;所述第一优先级别的优先度大于所述第二优先级别的优先度。Optionally, the current first state identifier is generated by a user behavior corresponding to a first priority level of the user object, and the user attribute information is generated by a user behavior corresponding to a second priority level of the user object; the first priority level The priority of is greater than the priority of the second priority level.
在本申请实施例中,基于通过当前第一状态标识确定对应的多个第二状态标识以及多个第二状态标识之间的转换条件,在多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系中,再通过用户属性信息进行状态更新的业务逻辑,可以确定当前第一状态标识的优先度大于用户属性信息的优先度。In the embodiment of the present application, based on determining the corresponding plurality of second state identifiers and the transition conditions between the plurality of second state identifiers through the current first state identifier, the plurality of second state identifiers and the plurality of second state identifiers In the corresponding relationship between the conversion conditions, and then using the business logic of the user attribute information to update the status, it can be determined that the priority of the current first state identifier is greater than the priority of the user attribute information.
例如,这种优先度可以体现在用户行为发生的时序先后上,某用户访问网页应用时,先点击了美国的标签,进入了美国页面进行业务访问,并执行了对应的操作,因此,美国的标签可以确定用户的市场属性,可以对应生成为当前第一状态标识,用户进入了美国页面执行的对应操作则可以确定用户的分组属性,可以对应生成为用户属性信息。For example, this priority can be reflected in the sequence in which user behavior occurs. When a user accesses a web application, he first clicks on the US tab, enters the US page for business access, and performs the corresponding operation. Therefore, the US The tag can determine the user's market attributes, and can be correspondingly generated as the current first state identifier. The corresponding operation performed by the user when entering the US page can determine the user's grouping attribute, and can be correspondingly generated as the user attribute information.
步骤505,将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件。Step 505: Match the current first state identifier with the plurality of first state identifiers, and determine a target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers.
业务服务器的标识引擎通过将当前第一状态标识与多个第一状态标识进行匹配,可以确定多个匹配的第二状态标识以及多个匹配的第二状态标识之间的目标转换条件,得到当前第一状态标识—第一状态标识—多个匹配的第二状态标识以及多个匹配的第二状态标识之间的目标转换条件的对应关系,这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。例如,用户建立账号时,输入的国籍为俄罗斯,通过与内容为俄罗斯的第一状态标识进行匹配,可以确定俄罗斯市场对应的多个匹配的第二状态标识以及多个匹配的第二状态标识之间的目标转换条件。The identification engine of the service server can determine the target transition conditions between multiple matching second status identifiers and multiple matching second status identifiers by matching the current first status identifier with multiple first status identifiers. The first state identifier—the first state identifier—the corresponding relationship of the target transition conditions between the multiple matching second state identifiers and the multiple matching second state identifiers. This matching method has a simple logic, a small amount of code, and a response Fast speed benefits. For example, when the user creates an account, the nationality entered is Russia, and by matching with the first state identifier whose content is Russia, one of the multiple matching second state identifiers and the multiple matching second state identifiers in the Russian market can be determined. Between target transitions.
可选的,步骤505还可以包括:Optionally, step 505 may further include:
子步骤5051,在所述状态配置文件中,将所述当前第一状态标识作为查询键,确定对应的第一状态标识的键,以及所述第一状态标识的键对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值。Sub-step 5051: In the state configuration file, use the current first state identifier as a query key, determine a key corresponding to the first state identifier, and a plurality of matching first key corresponding to the first state identifier key. A key value of a target transition condition between the two state identifiers and the plurality of matching second state identifiers.
在本申请实施例中,通过将当前第一状态标识作为查询KEY(键),与状态配置文件中的第一状态标识KEY进行匹配,可以确定第一状态标识KEY对应的Value(值),得到当前第一状态标识—第一状态标识—多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系,这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。In the embodiment of the present application, by using the current first state identifier as the query KEY and matching the first state identifier KEY in the state configuration file, the Value corresponding to the first state identifier KEY can be determined and obtained The current first state identifier—the first state identifier—the correspondence between multiple second state identifiers and the transition conditions between multiple second state identifiers. This matching method has the advantages of simple logic, small amount of code, and fast response speed. effect.
步骤506,将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。Step 506: Match the current second state identifier with the determined plurality of second state identifiers, and match the user attribute information with the target transition condition to determine the target second state identifier.
在确定一个具体市场属性对应的状态机时,此时业务服务器的标识引擎检索是否有满足状态机触发条件的当前第二状态标识和用户属性信息,若存在,则触发目标第二状态标识来更新当前第二状态标识,若不存在,则在下一次获取到更新后的用户属性信息时,检索该更新后的用户属性信息是否满足状态机的触发条件,直至用户当前第二状态标识被更新。When determining the state machine corresponding to a specific market attribute, at this time, the identification engine of the business server retrieves whether there is a current second state identifier and user attribute information that meet the trigger conditions of the state machine. If it exists, the target second state identifier is triggered to update If the current second state identifier does not exist, the next time the updated user attribute information is obtained, it is retrieved whether the updated user attribute information satisfies the triggering condition of the state machine until the user's current second state identifier is updated.
通过当前第二状态标识和用户属性信息,业务服务器的标识引擎可以在状态机中进行相应用户当前第二状态标识的更新,业务服务器可以向用户提供对应更新后的目标第二状态标识的业务服务,例如,用户为俄罗斯市场中的忠实用户分组,则业务服务器可以为用户提供俄罗斯市场中的会员办理推荐,以供忠实用户了解会员权益,且忠实用户办理会员的几率相较于新人用户大大提高。Based on the current second state identifier and the user attribute information, the identification engine of the service server can update the current second state identifier of the corresponding user in the state machine, and the business server can provide the user with a business service corresponding to the updated target second state identifier. For example, if the user is a group of loyal users in the Russian market, the business server can provide users with recommendations for members in the Russian market for loyal users to understand the rights and interests of members, and the probability of loyal users to apply for membership is greatly improved compared to new users. .
可选的,步骤506还可以包括:Optionally, step 506 may further include:
子步骤5061,在所述多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值中,将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。Sub-step 5061, in the key value of the target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers, the current second state identifier and the determined Multiple second state identifiers are matched, and the user attribute information is matched with the target transition condition to determine the target second state identifier.
在本申请实施例中,通过将当前第一状态标识作为查询KEY(键),与状态配置文件中的第一状态标识KEY进行匹配,可以确定第一状态标识KEY对应的Value(值),得到当前第一状态标识—第一状态标识—多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系,再在多个第二状态标识以及多个第二状态标识之间的转换条件的对应关系中,利用状态机的触发逻辑,通过用户的当前第二状态标识和用户属性信息进行状态更新,得到更新后的目标第二状态标识。这种匹配方式具有逻辑简单,代码量少,响应速度快的有益效果。In the embodiment of the present application, by using the current first state identifier as the query KEY and matching the first state identifier KEY in the state configuration file, the Value corresponding to the first state identifier KEY can be determined and obtained The corresponding relationship between the current first state identifier—first state identifier—multiple second state identifiers and multiple second state identifiers, and then between multiple second state identifiers and multiple second state identifiers In the corresponding relationship of the transition conditions, the state logic is used to update the state by using the trigger logic of the state machine to obtain the updated target second state identifier. This matching method has the beneficial effects of simple logic, small amount of code, and fast response speed.
综上所述,本申请实施例提供的一种用户状态标识确定方法,包括提供多个第一状 态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定用户的目标第二状态标识;本申请将第一状态标识作为键,将第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件作为值,通过键值对的形式生成对应的状态配置文件,利用状态配置文件中存储的第一状态标识与当前第一状态标识进行匹配,确定对应进行状态更新的多个第二状态标识以及所述多个第二状态标识之间的转换条件的对应关系,再通过当前第二状态标识和用户属性信息,在该对应关系中更新用户的当前第二状态标识,实现了多个维度下进行状态标识验证的目的,并且状态配置文件中键值对的数据结构简单,代码量少,使得状态标识验证的响应速度较快。In summary, a method for determining a user status identifier provided in an embodiment of the present application includes providing a plurality of first status identifiers, and the multiple first status identifiers correspond to multiple second status identifiers and multiple second status identifiers, respectively. Conversion conditions between; receiving a user request; obtaining the user ’s current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information, And the transition conditions between multiple first status identifiers and multiple second status identifiers corresponding to multiple first status identifiers to determine a user's target second status identifier; this application uses the first status identifier as a key, A state identifier corresponds to a plurality of second state identifiers and a transition condition between the plurality of second state identifiers as values, and a corresponding state configuration file is generated in the form of a key-value pair. A status identifier is matched with the current first status identifier to determine a plurality of second status identifiers corresponding to the status update, and The corresponding relationship of the transition conditions between the plurality of second state identifiers, and then the current second state identifier of the user is updated in the correspondence relationship through the current second state identifier and the user attribute information, thereby implementing in multiple dimensions. The purpose of state identification verification, and the data structure of key-value pairs in the state configuration file is simple, and the amount of code is small, making the state identification verification response faster.
参照图6,示出了本申请提供的另一种系统级的用户状态标识确定方法的具体步骤流程图,具体可以包括如下步骤:Referring to FIG. 6, there is shown a flowchart of specific steps of another method for determining a user status identifier provided at the system level, which may specifically include the following steps:
步骤601,提供一状态配置文件;所述状态配置文件中,所述第一状态标识作为键,所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件作为键值,其中,第一状态标识包括多个第一状态子标识,每个第一状态子标识分别对应多个第二状态子标识以及所述多个第二状态子标识之间的转换子条件。In step 601, a state configuration file is provided; in the state configuration file, the first state identifier is used as a key, between a plurality of second state identifiers corresponding to the first state identifier and the plurality of second state identifiers. The transition conditions are used as key values, where the first state identifier includes multiple first state sub-identifiers, and each first state sub-identifier corresponds to a plurality of second state sub-identifiers and between the plurality of second state sub-identifiers, respectively. The condition of the converter.
图5示出的是一种一维第一前置条件方案,在本申请实施例的另一种实现方式中,还可以扩展到二维第一前置条件方案,如选择相应状态机的条件不仅仅是国家一个前置条件维度,还需要用户所在的业务模式,如自营模式或者平台经营模式,这样可以使得市场属性的确定更加精确,为用户提供更精准的服务。FIG. 5 shows a one-dimensional first precondition scheme. In another implementation manner of the embodiment of the present application, it can also be extended to a two-dimensional first precondition scheme, such as selecting a condition of a corresponding state machine. It is not only a precondition dimension of the country, but also the business model in which the user is located, such as a self-employed model or a platform business model. This can make the determination of market attributes more accurate and provide users with more accurate services.
因此,第一状态标识可以包括多个第一状态子标识,每个第一状态子标识分别对应多个第二状态子标识以及所述多个第二状态子标识之间的转换子条件,多个第二状态子标识以及所述多个第二状态子标识之间的转换子条件则可以由子状态机的形式实现,如,针对各个国家的市场维度,再进一步细分这个国家市场的业务模式为自营模式还是平台经营模式。Therefore, the first state identifier may include multiple first state sub-identifiers, and each first state sub-identifier corresponds to multiple second state sub-identifiers and transition sub-conditions between the multiple second state sub-identifiers, respectively. The second state sub-identifier and the transition sub-conditions between the plurality of second state sub-identifiers can be implemented in the form of a sub-state machine. For example, for the market dimension of each country, the business model of this country market is further subdivided. Is it a self-employed model or a platform business model.
参照图7,示出了一种二维前置条件下的配置文件数据结构图,其中,第一状态标识a、b可以包括国籍,如,俄罗斯,西班牙等,每个第一状态标识都可以包括两个第一状态子标识a’、b’,a’可以表示自营模式,b’可以表示平台经营模式,每个第一状 态标识都可以对应一个状态机集合,在状态机集合中设置有两个分别对应第一状态子标识a’、b’的子状态机,二维前置条件下的状态配置文件中的第一状态标识、第一状态子标识、子状态机的数据结构可以通过键值对的形式实现。Referring to FIG. 7, there is shown a configuration file data structure diagram under a two-dimensional precondition, wherein the first state identifiers a, b may include nationalities, such as Russia, Spain, etc., each of the first state identifiers may be Including two first state sub-identifiers a ', b', a 'can represent the self-employed mode, b' can represent the platform business model, each first state identifier can correspond to a state machine set, set in the state machine set There are two sub-state machines corresponding to the first state sub-identities a 'and b', respectively. The first state identifier, the first state sub-identity, and the data structure of the sub-state machine in the state configuration file under the two-dimensional precondition can be Implemented as key-value pairs.
在具体示例中,二维前置条件下的状态配置文件中的键值对集合可以如下表2:In a specific example, the set of key-value pairs in the state configuration file under the two-dimensional precondition can be as shown in Table 2:
表2Table 2
在表2中,示出了KEY为俄罗斯和西班牙市场下的对应状态机的集合Value,其中状态机的集合Value是以JSON格式实现的,value中大写字母如A代表状态,小写字母如a代表条件,其触发逻辑包括俄罗斯:状态A+条件a=状态B。西班牙:状态A+条件b=状态B等。In Table 2, it is shown that KEY is a set of corresponding state machines Value in the Russian and Spanish markets, where the set of state machines Value is implemented in JSON format, where capital letters such as A represent states and lowercase letters such as a represent Conditions, whose trigger logic includes Russia: state A + condition a = state B. Spain: State A + condition b = state B, etc.
具体的,表2示出的仅为二维第一状态标识对应的状态机的键值对,1ST代表自营业务模式,即一个第一状态子标识,3RD代表平台业务模式,即另一个第一状态子标识,不同的业务模式对应不同的子状态机。Specifically, Table 2 shows only the key-value pairs of the state machine corresponding to the two-dimensional first state identifier. 1ST represents the self-operating business model, that is, a first state sub-identifier, and 3RD represents the platform business model, that is, another first A state sub-identifier, and different business models correspond to different sub-state machines.
步骤602,将所述状态配置文件存储在本地数据储存中;或和,将所述状态配置文件存储在缓存数据储存中。Step 602: Store the state configuration file in a local data storage; or, and store the state configuration file in a cached data storage.
该步骤可以参照上述步骤502,此处不再赘述。This step may refer to the above step 502, which is not repeated here.
可选的,步骤602可以包括子步骤6021。Optionally, step 602 may include sub-step 6021.
子步骤6021、当获取到针对所述状态配置文件的状态配置更新文件时,将所述状态配置更新文件存储在本地数据储存中,替代所述状态配置文件;或和,将所述状态配置更新文件存储在缓存数据储存中,替代所述状态配置文件。Sub-step 6021, when a status configuration update file for the status configuration file is obtained, store the status configuration update file in a local data store instead of the status configuration file; or, and update the status configuration The file is stored in a cache data store, replacing the state configuration file.
该步骤可以参照上述步骤5021,此处不再赘述。This step may refer to the above step 5021, which is not repeated here.
步骤603,接收用户请求。Step 603: Receive a user request.
该步骤可以参照上述步骤302,此处不再赘述。This step may refer to the above step 302, which is not repeated here.
步骤604,根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识 和用户属性信息。Step 604: Acquire the current first state identifier, the current second state identifier, and user attribute information of the user according to the user request.
该步骤可以参照上述步骤303,此处不再赘述。This step may refer to the above step 303, which is not repeated here.
可选的,当前第一状态标识由所述用户对象对应第一优先级别的用户行为生成,所述用户属性信息由所述用户对象对应第二优先级别的用户行为生成;所述第一优先级别的优先度大于所述第二优先级别的优先度。Optionally, the current first state identifier is generated by a user behavior corresponding to a first priority level of the user object, and the user attribute information is generated by a user behavior corresponding to a second priority level of the user object; the first priority level The priority of is greater than the priority of the second priority level.
步骤605,获取所述当前第一状态标识对应的业务模式数据,所述业务模式数据包括与所述第一状态子标识匹配的业务模式标识。Step 605: Obtain business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier.
在本申请实施例中,业务服务器的数据库中可以存储有业务模式数据,业务模式数据是根据业务逻辑建立的,业务模式数据包括与所述第一状态子标识匹配的业务模式标识,表示第一状态标识-第一状态子标识-业务模式标识-多个第二状态子标识以及多个第二状态子标识之间的转换子条件之间的对应关系,如俄罗斯市场当前为自营经营模式,美国市场当前为平台经营模式等。In the embodiment of the present application, business database data may be stored in the database of the business server. The business model data is established according to business logic. The business model data includes a business model identifier that matches the first state sub-identifier, indicating the first State ID-first state sub-identity-business model ID-correspondence between multiple second state sub-identities and transition sub-conditions between multiple second state sub-identities, such as the Russian market is currently self-operating mode, The US market is currently a platform business model.
步骤606,将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个目标第一状态子标识。Step 606: Match the current first state identifier with the plurality of first state identifiers to determine a plurality of target first state sub-identities.
该步骤中,通过将当前第一状态标识与所述多个第一状态标识进行匹配,则可以进一步确定匹配到的第一状态标识对应的多个目标第一状态子标识。In this step, by matching the current first state identifier with the plurality of first state identifiers, multiple target first state sub-identifiers corresponding to the matched first state identifiers can be further determined.
步骤607,将所述业务模式标识与所述目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件。Step 607: Match the business mode identifier with the target first state sub-identifier, and determine corresponding target second state sub-identifiers and target transition sub-conditions between the multiple target second state sub-identifiers. .
在上述表2中,通过当前第一状态标识与第一状态标识进行匹配,可以确定对应的状态机,状态机包括了多个子状态机,此时再通过业务模式标识与第一状态子标识进行匹配,可以确定状态机集合中的子状态机,以供通过子状态机进行状态更新,子状态机即是多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件的具体实现。In Table 2 above, the current first state identifier is matched with the first state identifier to determine the corresponding state machine. The state machine includes multiple sub-state machines. At this time, the business mode identifier and the first state sub-identifier are used. By matching, the sub-state machine in the state machine set can be determined for status update through the sub-state machine. The sub-state machine is between multiple target second-state sub-identifiers and the multiple target second-state sub-identifiers. The specific realization of the target transition condition.
例如,用户是俄罗斯人,进行了业务访问,通过查询得知俄罗斯市场当前为自营经营模式,则在表2中找到KEY为俄罗斯的Value中的子状态机:1ST:{"A":{"a":"B","b":"C","c":"A"}},并根据其中的逻辑进行状态变更。For example, if the user is a Russian and has made a business visit, it is known through the query that the Russian market is currently a self-employed business model. Then, in Table 2, find the sub-state machine in the Value whose KEY is Russia: 1ST: {"A": { "a": "B", "b": "C", "c": "A"}}, and make state changes based on the logic in them.
步骤608,在所述多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件中,将所述当前第二状态标识与所述目标第二状态子标识进行匹配,以及将所述用户属性信息与所述目标转换子条件进行匹配,确定所述目标第二状态标识。Step 608: In the plurality of target second-state sub-identifiers and the target transition sub-condition between the plurality of target second-state sub-identifiers, combine the current second state identifier and the target second-state sub-condition. Matching the identifier, and matching the user attribute information with the target conversion sub-condition to determine the target second state identifier.
在该步骤中,二维前置条件下的子状态机运行逻辑与一维前置条件下的状态机运行 逻辑相同,此处不再赘述。In this step, the operation logic of the sub-state machine under the two-dimensional precondition is the same as that of the state machine under the one-dimensional precondition, which will not be repeated here.
综上所述,本申请实施例提供的一种用户状态标识确定方法,包括:提供的第一状态标识与根据用户请求获取的用户的当前第一状态标识进行匹配,确定对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的转换条件,再通过根据用户请求获取的用户当前第二状态标识和用户属性信息,与第二状态标识以及多个第二状态标识之间的转换条件进行匹配,得到用户的目标第二状态标识。本申请将第一状态标识作为键,将第一状态子标识对应的子状态机集合作为值,通过键值对的形式生成对应的状态配置文件,进一步的,利用状态配置文件中存储的第一状态标识与当前第一状态标识进行匹配,多个目标第一状态子标识,将业务模式标识与目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及多个目标第二状态子标识之间的目标转换子条件,将当前第二状态标识与目标第二状态子标识进行匹配,以及将用户属性信息与目标转换子条件进行匹配,确定目标第二状态标识,将目标第二状态标识来更新用户对象的当前第二状态标识,实现了多个维度下进行状态标识验证的目的,二维市场维度下的方案可以使得市场属性的确定更加精确,为用户提供更精准的服务,并且状态配置文件中键值对的数据结构简单,代码量少,使得状态标识验证的响应速度较快。In summary, a method for determining a user status identifier provided by an embodiment of the present application includes: matching a provided first status identifier with a current first status identifier of a user obtained according to a user request, and determining a plurality of corresponding matches. The second state identifier and the transition conditions between the plurality of matching second state identifiers, and the second state identifier and the plurality of second states are obtained through the user ’s current second state identifier and user attribute information obtained according to the user request The transition conditions between the identifiers are matched to obtain the target second state identifier of the user. This application uses a first state identifier as a key, a substate machine set corresponding to the first state sub-identifier as a value, and generates a corresponding state configuration file in the form of a key-value pair. Further, the first state stored in the state configuration file is used. The state identifier matches the current first state identifier, multiple target first state sub-identifiers, the business model identifier is matched with the target first state sub-identifier, and the corresponding multiple target second state sub-identifiers and multiple target first The target transition sub-condition between the two state sub-identifiers, matching the current second state identifier with the target second state sub-identifier, and matching the user attribute information with the target transition sub-condition, determining the target second state identifier, and the target The second state identifier is used to update the current second state identifier of the user object, which achieves the purpose of verifying the state identifier in multiple dimensions. The solution in the two-dimensional market dimension can make the determination of market attributes more accurate and provide users with more accurate Service, and the data structure of the key-value pairs in the state configuration file is simple, the amount of code is small, so that State identification verification response speed.
参照图8,示出了本申请一个具体示例中系统级的一种用户状态标识确定装置的结构图,包括:Referring to FIG. 8, a structure diagram of a system for determining a user status identifier in a specific example of the present application is shown, including:
提供模块701,用于提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;A providing module 701 is configured to provide multiple first status identifiers, where the multiple first status identifiers respectively correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers;
接收模块702,用于接收用户请求;A receiving module 702, configured to receive a user request;
获取模块703,用于根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;An obtaining module 703, configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request;
确定模块704,用于根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。A determining module 704, configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and the multiple first state identifiers and the multiple first state identifiers corresponding to A transition condition between a plurality of second state identifiers determines a target second state identifier of the user.
综上所述,本申请实施例提供的一种用户状态标识确定装置,包括:提供多个第一状态标识,多个第一状态标识分别对应有多个第二状态标识以及多个第二状态标识之间的转换条件;接收用户请求;根据用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;根据当前第一状态标识、当前第二状态标识、用户属性信息,以及多个第一状态标识、多个第一状态标识所对应的多个第二状态标识之间的转换条件, 确定用户的目标第二状态标识。实现了多个维度下进行状态标识验证的目的,并且第一状态标识对应的多个第二状态标识以及多个第二状态标识之间的转换条件的数据结构简单,代码量少,使得用户状态标识确定的响应速度较快。In summary, an apparatus for determining a user status identifier provided in an embodiment of the present application includes: providing multiple first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and multiple second statuses, respectively. Conversion conditions between identities; receiving user requests; obtaining the user's current first state identifier, current second state identifier, and user attribute information according to the user request; according to the current first state identifier, current second state identifier, and user attribute information And transition conditions between multiple first state identifiers and multiple second state identifiers corresponding to the multiple first state identifiers to determine a target second state identifier for the user. The purpose of verifying the status identifier in multiple dimensions is achieved, and the data structure of the transition conditions between the multiple second status identifiers corresponding to the first status identifier and the multiple second status identifiers is simple, and the amount of code is small, making the user status The response of the identification is fast.
参照图9,示出了本申请一个具体示例中系统级的一种用户状态标识确定装置的具体结构图,包括:Referring to FIG. 9, a specific structural diagram of a system-level user state identification determining device in a specific example of the present application is shown, including:
提供模块801,用于提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;A providing module 801 is configured to provide multiple first status identifiers, where the multiple first status identifiers correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
可选的,提供模块801,包括:Optionally, a module 801 is provided, including:
提供子模块8011,用于提供一状态配置文件;所述状态配置文件中,所述第一状态标识作为键,所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件作为键值。Provide a sub-module 8011 for providing a status configuration file; in the status configuration file, the first status identifier serves as a key, a plurality of second status identifiers corresponding to the first status identifier, and the plurality of second status identifiers The transition conditions between the state identifiers are used as key values.
可选的,提供子模块,包括:Optionally, provide submodules, including:
提供单元,用于将所述第一状态标识作为键,将所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件以对象简谱的格式作为键值,以键值对的方式,生成所述状态配置文件。A providing unit, configured to use the first state identifier as a key, and use a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a notation format The key value is used to generate the state configuration file in the form of a key value pair.
存储子模块8012,用于将所述状态配置文件存储在本地数据储存中,或和,将所述状态配置文件存储在缓存数据储存中。The storage sub-module 8012 is configured to store the status configuration file in a local data storage, or and, store the status configuration file in a cache data storage.
配置更新子模块8013,用于当获取到针对所述状态配置文件的状态配置更新文件时,将所述状态配置更新文件存储在本地数据储存中,替代所述状态配置文件;A configuration update submodule 8013, configured to store the status configuration update file in a local data store when the status configuration update file for the status configuration file is obtained, instead of the status configuration file;
或和,将所述状态配置更新文件存储在缓存数据储存中,替代所述状态配置文件。Or, and the state configuration update file is stored in a cache data storage, replacing the state configuration file.
接收模块802,用于接收用户请求。The receiving module 802 is configured to receive a user request.
获取模块803,用于根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息。The obtaining module 803 is configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request.
确定模块804,用于根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。A determining module 804, configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and the multiple first state identifiers and the multiple first state identifiers corresponding to A transition condition between a plurality of second state identifiers determines a target second state identifier of the user.
可选的,确定模块804包括:Optionally, the determining module 804 includes:
第一匹配子模块8041,用于将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件;A first matching sub-module 8041, configured to match the current first state identifier with the plurality of first state identifiers, determine a plurality of matching second state identifiers, and the plurality of matching second state identifiers; Between target conversion conditions;
第一匹配子模块,包括:The first matching sub-module includes:
第一确定单元,用于在所述状态配置文件中,将所述当前第一状态标识作为查询键,确定对应的第一状态标识的键,以及所述第一状态标识的键对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值。A first determining unit, configured to use the current first state identifier as a query key in the state configuration file, determine a key corresponding to the first state identifier, and a plurality of keys corresponding to the first state identifier key A key value of a target transition condition between the matched second state identifiers and the plurality of matched second state identifiers.
获取单元,用于获取所述当前第一状态标识对应的业务模式数据,所述业务模式数据包括与所述第一状态子标识匹配的业务模式标识;An obtaining unit, configured to obtain business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier;
第一匹配单元,用于将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个目标第一状态子标识;A first matching unit, configured to match the current first state identifier with the plurality of first state identifiers, and determine multiple target first state sub-identifiers;
第二匹配单元,用于将所述业务模式标识与所述目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件。A second matching unit, configured to match the business mode identifier with the target first-state sub-identifier, and determine the correspondence between the corresponding multiple target second-state sub-identifiers and the multiple target second-state sub-identifiers Target transition subcondition.
第二匹配子模块8042,用于将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。A second matching submodule 8042, configured to match the current second state identifier with the determined plurality of second state identifiers, and match the user attribute information with the target transition condition to determine the Target second status identification.
第二匹配子模块,包括:The second matching sub-module includes:
第二确定单元,用于在所述多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值中,将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。A second determining unit, configured to: among the key values of the target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers, compare the current second state identifier with all Matching the determined plurality of second state identifiers, and matching the user attribute information with the target conversion condition to determine the target second state identifier.
第三确定单元,用于在所述多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件中,将所述当前第二状态标识与所述目标第二状态子标识进行匹配,以及将所述用户属性信息与所述目标转换子条件进行匹配,确定所述目标第二状态标识。A third determining unit, configured to: in the target transition sub-condition between the multiple target second-state sub-identifiers and the target second-state sub-identifiers, associate the current second status identifier with the target Match the second status sub-identifier, and match the user attribute information with the target transition sub-condition to determine the target second status id.
综上所述,本申请实施例提供的一种用户状态标识确定装置,包括:提供的第一状态标识与根据用户请求获取的用户的当前第一状态标识进行匹配,确定对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的转换条件,再通过根据用户请求获取的用户当前第二状态标识和用户属性信息,与第二状态标识以及多个第二状态标识之间的转换条件进行匹配,得到用户的目标第二状态标识,本申请将第一状态标识作为键,将第一状态子标识对应的子状态机集合作为值,通过键值对的形式生成对应的状态配置文件,进一步的,利用状态配置文件中存储的第一状态标识与当前第一状态标识 进行匹配,多个目标第一状态子标识,将业务模式标识与目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及多个目标第二状态子标识之间的目标转换子条件,将当前第二状态标识与目标第二状态子标识进行匹配,以及将用户属性信息与目标转换子条件进行匹配,确定目标第二状态标识,将目标第二状态标识来更新用户对象的当前第二状态标识,实现了多个维度下进行状态标识验证的目的,二维市场维度下的方案可以使得市场属性的确定更加精确,为用户提供更精准的服务,并且状态配置文件中键值对的数据结构简单,代码量少,使得状态标识验证的响应速度较快。In summary, an apparatus for determining a user status identifier provided in an embodiment of the present application includes: matching a first status identifier provided with a current first status identifier of a user obtained according to a user request to determine a plurality of corresponding matches; The second state identifier and the transition conditions between the plurality of matching second state identifiers, and the second state identifier and the plurality of second states are obtained through the user ’s current second state identifier and user attribute information obtained according to the user request The conversion conditions between the identifiers are matched to obtain the target second state identifier of the user. This application uses the first state identifier as the key, and the substate machine set corresponding to the first state sub-identifier as the value, and is generated in the form of key-value pairs. The corresponding state configuration file further uses the first state identifier stored in the state configuration file to match the current first state identifier, and multiple target first state sub-identities to match the business mode identifier with the target first state sub-identity. Match to determine the corresponding multiple target second state sub-identifiers and multiple target second state sub-identifiers Between target transition sub-conditions, matching the current second state identifier with the target second state sub-identifier, and matching user attribute information with target transition sub-conditions, determining the target second state identifier, and Update the current second status identifier of the user object to achieve the purpose of verifying the status identifier in multiple dimensions. The solution in the two-dimensional market dimension can make the determination of market attributes more accurate, provide users with more accurate services, and configure the status. The data structure of the key-value pairs in the file is simple, and the amount of code is small, which makes the response of the status identification verification faster.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the related parts, refer to the description of the method embodiment.
图10是本申请实施例提供的一种装置的结构示意图。参见图10,服务器900可以用于实施上述实施例中提供的用户状态标识确定方法。该服务器900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)922(例如,一个或一个以上处理器)和存储器932,一个或一个以上存储应用程序942或数据944的存储介质930(例如一个或一个以上海量存储设备)。其中,存储器932和存储介质930可以是短暂存储的或持久存储的。存储在存储介质930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器922可以设置为与存储介质930通信,在服务器900上执行存储介质930中的一系列指令操作。FIG. 10 is a schematic structural diagram of a device according to an embodiment of the present application. Referring to FIG. 10, the server 900 may be configured to implement the user state identifier determination method provided in the foregoing embodiment. The server 900 may have relatively large differences due to different configurations or performance, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and memory 932, one or one The above storage medium 930 (for example, one or one storage device) storing application programs 942 or data 944. The memory 932 and the storage medium 930 may be temporarily stored or persistently stored. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 922 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the server 900.
服务器900还可以包括一个或一个以上电源926,一个或一个以上有线或无线网络接口950,一个或一个以上输入输出接口958,一个或一个以上键盘956,和/或和,一个或一个以上操作系统941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。其中,中央处理器922可以在服务器900上执行以下操作的指令:The server 900 may also include one or more power sources 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, one or more keyboards 956, and / or and, one or more operating systems. 941, such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM and so on. The central processing unit 922 may execute the following operations on the server 900:
提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;Providing multiple first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;
接收用户请求;Receiving user requests;
根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;Acquiring, according to the user request, a current first state identifier, a current second state identifier, and user attribute information of the user;
根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers A transition condition between determining a target second state identifier of the user.
本申请还提供一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行一种用户状态标识确定方法。This application also provides one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the device to execute a method for determining a user status identifier.
本申请提供一种装置,其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行一种业务进度展示方法。The present application provides a device having one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, causes the device to execute a method for displaying business progress.
本申请还提供一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行一种业务进度展示方法。This application also provides one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the device to execute a method for displaying business progress.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may refer to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the embodiments of the present application may be provided as a method, an apparatus, or a computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to flowcharts and / or block diagrams of the method, the terminal device (system), and the computer program product according to the embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal device Means are generated for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction means, the The instruction device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operating steps can be performed on the computer or other programmable terminal device to produce a computer-implemented process, so that the computer or other programmable terminal device can The instructions executed on the steps provide steps for implementing the functions specified in one or more of the flowcharts and / or one or more of the block diagrams.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释 为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between OR operations. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or end device that includes a series of elements includes not only those elements but also those that are not explicitly listed Other elements, or elements inherent to such a process, method, article, or terminal. Without more restrictions, the elements defined by the sentence "including one ..." do not exclude that there are other identical elements in the process, method, article, or terminal device including the elements.
以上对本申请所提供的一种用户状态标识确定方法及装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method and device for determining a user status identifier provided in the present application have been described in detail above. Specific examples are used in this document to explain the principle and implementation of the present application. The description of the above embodiments is only used to help understand the present invention. The method of application and its core ideas; for those of ordinary skill in the art, according to the ideas of this application, there will be changes in the specific implementation and the scope of application. In summary, the contents of this specification should not be interpreted as Application restrictions.
Claims (24)
- 一种用户状态标识确定方法,其特征在于,包括:A method for determining a user status identifier, comprising:提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;Providing multiple first status identifiers, the multiple first status identifiers corresponding to multiple second status identifiers and transition conditions between the multiple second status identifiers, respectively;接收用户请求;Receiving user requests;根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;Acquiring, according to the user request, a current first state identifier, a current second state identifier, and user attribute information of the user;根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。According to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers and the plurality of second state identifiers corresponding to the plurality of first state identifiers A transition condition between determining a target second state identifier of the user.
- 根据权利要求1所述的方法,其特征在于,所述根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识的步骤,包括:The method according to claim 1, wherein, according to the current first state identifier, the current second state identifier, the user attribute information, and the plurality of first state identifiers, the The step of determining a transition condition between the plurality of second state identifiers corresponding to the plurality of first state identifiers and the target second state identifier of the user includes:将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件;Matching the current first state identifier with the plurality of first state identifiers, and determining a target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers;将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。Matching the current second state identifier with the determined plurality of second state identifiers, and matching the user attribute information with the target transition condition to determine the target second state identifier.
- 根据权利要求2所述的方法,其特征在于,所述提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件的步骤,包括:The method according to claim 2, wherein said providing a plurality of first state identifiers, said plurality of first state identifiers respectively corresponding to a plurality of second state identifiers and said plurality of second state identifiers Steps between transition conditions, including:提供一状态配置文件;所述状态配置文件中,所述第一状态标识作为键,所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件作为键值。Provide a state configuration file; in the state configuration file, the first state identifier serves as a key, a plurality of second state identifiers corresponding to the first state identifier, and transition conditions between the plurality of second state identifiers As the key value.
- 根据权利要求3所述的方法,其特征在于,所述提供一状态配置文件的步骤,包括:The method according to claim 3, wherein the step of providing a status configuration file comprises:将所述第一状态标识作为键,将所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件以对象简谱的格式作为键值,以键值对的方式,生成所述状态配置文件。Using the first state identifier as a key, and using a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a key value in a notation format of the object, and Value-wise manner, generating the state configuration file.
- 根据权利要求3所述的方法,其特征在于,所述将所述当前第一状态标识与所述 多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的步骤,包括:The method according to claim 3, wherein the matching the current first state identifier with the plurality of first state identifiers, determining a plurality of matching second state identifiers, and the plurality of matching The step of identifying a target transition condition between the second state includes:在所述状态配置文件中,将所述当前第一状态标识作为查询键,确定对应的第一状态标识的键,以及所述第一状态标识的键对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值。In the state configuration file, using the current first state identifier as a query key, determining a key corresponding to the first state identifier, and a plurality of matching second state identifiers corresponding to the key of the first state identifier, and A key value of a target transition condition between the plurality of matched second state identifiers.
- 根据权利要求5所述的方法,其特征在于,所述将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识的步骤,包括:The method according to claim 5, wherein the matching the current second state identifier with the determined plurality of second state identifiers, and the user attribute information and the target transition condition The step of performing matching to determine the target second state identifier includes:在所述多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值中,将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。And among the key values of the target transition conditions between the plurality of matching second state identifiers and the plurality of matching second state identifiers, the current second state identifier and the determined plurality of second Match the status identifier, and match the user attribute information with the target transition condition to determine the target second status identifier.
- 根据权利要求2所述的方法,其特征在于,所述第一状态标识包括多个第一状态子标识,每个第一状态子标识分别对应多个第二状态子标识以及所述多个第二状态子标识之间的转换子条件。The method according to claim 2, wherein the first state identifier comprises a plurality of first state sub-identifiers, and each first state sub-identifier corresponds to a plurality of second state sub-identifiers and the plurality of first state sub-identifiers, respectively. Transition sub-conditions between two state sub-identifiers.
- 根据权利要求7所述的方法,其特征在于,所述将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的步骤,包括:The method according to claim 7, wherein the matching the current first state identifier with the plurality of first state identifiers, determining a plurality of matching second state identifiers, and the plurality of matching The step of identifying a target transition condition between the second state includes:获取所述当前第一状态标识对应的业务模式数据,所述业务模式数据包括与所述第一状态子标识匹配的业务模式标识;Acquiring business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier;将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个目标第一状态子标识;Matching the current first state identifier with the plurality of first state identifiers to determine a plurality of target first state sub-identifiers;将所述业务模式标识与所述目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件。Matching the business mode identifier with the target first state sub-identifier, and determining a corresponding plurality of target second state sub-identifiers and target transition sub-conditions between the plurality of target second state sub-identifiers.
- 根据权利要求8所述的方法,其特征在于,所述将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识的步骤,包括:The method according to claim 8, wherein the matching the current second state identifier with the determined plurality of second state identifiers, and the user attribute information and the target transition condition The step of performing matching to determine the target second state identifier includes:在所述多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件中,将所述当前第二状态标识与所述目标第二状态子标识进行匹配,以及将所述用户属性信息与所述目标转换子条件进行匹配,确定所述目标第二状态标识。Match the current second state identifier with the target second state sub-identifier in the plurality of target second state sub-identities and the target transition sub-condition between the plurality of target second state sub-identifiers And matching the user attribute information with the target conversion sub-condition to determine the target second state identifier.
- 根据权利要求3所述的方法,其特征在于,在提供一状态配置文件的步骤之后, 还包括:The method according to claim 3, after the step of providing a status configuration file, further comprising:将所述状态配置文件存储在本地数据储存中;Storing the status configuration file in a local data store;或和,将所述状态配置文件存储在缓存数据储存中。Or, and the state configuration file is stored in a cache data storage.
- 根据权利要求10所述的方法,其特征在于,还包括:The method according to claim 10, further comprising:当获取到针对所述状态配置文件的状态配置更新文件时,将所述状态配置更新文件存储在本地数据储存中,替代所述状态配置文件;When a status configuration update file for the status configuration file is obtained, storing the status configuration update file in a local data store instead of the status configuration file;或和,将所述状态配置更新文件存储在缓存数据储存中,替代所述状态配置文件。Or, and the state configuration update file is stored in a cache data storage, replacing the state configuration file.
- 根据权利要求1所述的方法,其特征在于,所述当前第一状态标识由用户对应第一优先级别的用户行为生成,所述用户属性信息由所述用户对应第二优先级别的用户行为生成;The method according to claim 1, wherein the current first state identifier is generated by a user behavior corresponding to a first priority level of the user, and the user attribute information is generated by a user behavior corresponding to a second priority level of the user ;所述第一优先级别的优先度大于所述第二优先级别的优先度。The priority of the first priority level is greater than the priority of the second priority level.
- 一种用户状态标识确定装置,其特征在于,包括:A device for determining a user status identifier, comprising:提供模块,用于提供多个第一状态标识,所述多个第一状态标识分别对应有多个第二状态标识以及所述多个第二状态标识之间的转换条件;A providing module, configured to provide multiple first status identifiers, where the multiple first status identifiers correspond to multiple second status identifiers and transition conditions between the multiple second status identifiers;接收模块,用于接收用户请求;A receiving module for receiving a user request;获取模块,用于根据所述用户请求,获取用户的当前第一状态标识、当前第二状态标识和用户属性信息;An obtaining module, configured to obtain a current first state identifier, a current second state identifier, and user attribute information of the user according to the user request;确定模块,用于根据所述当前第一状态标识、所述当前第二状态标识、所述用户属性信息,以及所述多个第一状态标识、所述多个第一状态标识所对应的多个第二状态标识之间的转换条件,确定所述用户的目标第二状态标识。A determining module, configured to: according to the current first state identifier, the current second state identifier, the user attribute information, and multiple corresponding ones of the multiple first state identifiers and the multiple first state identifiers A transition condition between the second state identifiers determines a target second state identifier of the user.
- 根据权利要求13所述的装置,其特征在于,所述确定模块,包括:The apparatus according to claim 13, wherein the determining module comprises:第一匹配子模块,用于将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件;A first matching submodule, configured to match the current first state identifier with the plurality of first state identifiers, and determine between a plurality of matched second state identifiers and the plurality of matched second state identifiers Target conversion conditions第二匹配子模块,用于将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。A second matching submodule, configured to match the current second state identifier with the determined plurality of second state identifiers, and match the user attribute information with the target transition condition to determine the target The second status identifier.
- 根据权利要求14所述的装置,其特征在于,所述提供模块,包括:The apparatus according to claim 14, wherein the providing module comprises:提供子模块,用于提供一状态配置文件;所述状态配置文件中,所述第一状态标识作为键,所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的 转换条件作为键值。Provide a sub-module for providing a state configuration file; in the state configuration file, the first state identifier serves as a key, a plurality of second state identifiers corresponding to the first state identifier, and the plurality of second states The transition conditions between the IDs are used as key values.
- 根据权利要求15所述的装置,其特征在于,所述提供子模块,包括:The apparatus according to claim 15, wherein the providing submodule comprises:提供单元,用于将所述第一状态标识作为键,将所述第一状态标识对应的多个第二状态标识以及所述多个第二状态标识之间的转换条件以对象简谱的格式作为键值,以键值对的方式,生成所述状态配置文件。A providing unit, configured to use the first state identifier as a key, and use a plurality of second state identifiers corresponding to the first state identifier and transition conditions between the plurality of second state identifiers as a format of an object notation The key value is used to generate the state configuration file in the form of a key value pair.
- 根据权利要求15所述的装置,其特征在于,所述第一匹配子模块,包括:The apparatus according to claim 15, wherein the first matching sub-module comprises:第一确定单元,用于在所述状态配置文件中,将所述当前第一状态标识作为查询键,确定对应的第一状态标识的键,以及所述第一状态标识的键对应的多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值。A first determining unit, configured to use the current first state identifier as a query key in the state configuration file, determine a key corresponding to the first state identifier, and a plurality of keys corresponding to the first state identifier key A key value of a target transition condition between the matched second state identifiers and the plurality of matched second state identifiers.
- 根据权利要求17所述的装置,其特征在于,所述第二匹配子模块,包括:The apparatus according to claim 17, wherein the second matching sub-module comprises:第二确定单元,用于在所述多个匹配的第二状态标识以及所述多个匹配的第二状态标识之间的目标转换条件的键值中,将所述当前第二状态标识与所述确定的多个第二状态标识进行匹配,以及将所述用户属性信息与所述目标转换条件进行匹配,确定所述目标第二状态标识。A second determining unit, configured to: among the key values of the target transition condition between the plurality of matched second state identifiers and the plurality of matched second state identifiers, compare the current second state identifier with all Matching the determined plurality of second state identifiers, and matching the user attribute information with the target conversion condition to determine the target second state identifier.
- 根据权利要求14所述的装置,其特征在于,所述第一匹配子模块,包括:The apparatus according to claim 14, wherein the first matching sub-module comprises:获取单元,用于获取所述当前第一状态标识对应的业务模式数据,所述业务模式数据包括与所述第一状态子标识匹配的业务模式标识;An obtaining unit, configured to obtain business mode data corresponding to the current first state identifier, where the business mode data includes a business mode identifier that matches the first state sub-identifier;第一匹配单元,用于将所述当前第一状态标识与所述多个第一状态标识进行匹配,确定多个目标第一状态子标识;A first matching unit, configured to match the current first state identifier with the plurality of first state identifiers, and determine multiple target first state sub-identifiers;第二匹配单元,用于将所述业务模式标识与所述目标第一状态子标识进行匹配,确定对应的多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件。A second matching unit, configured to match the business mode identifier with the target first-state sub-identifier, and determine the correspondence between the corresponding multiple target second-state sub-identifiers and the multiple target second-state sub-identifiers Target transition subcondition.
- 根据权利要求19所述的装置,其特征在于,所述第二匹配子模块,包括:The apparatus according to claim 19, wherein the second matching sub-module comprises:第三确定单元,用于在所述多个目标第二状态子标识以及所述多个目标第二状态子标识之间的目标转换子条件中,将所述当前第二状态标识与所述目标第二状态子标识进行匹配,以及将所述用户属性信息与所述目标转换子条件进行匹配,确定所述目标第二状态标识。A third determining unit, configured to: in the target transition sub-condition between the multiple target second-state sub-identifiers and the target second-state sub-identifiers, associate the current second status identifier with the target Match the second status sub-identifier, and match the user attribute information with the target transition sub-condition to determine the target second status id.
- 根据权利要求15所述的装置,其特征在于,还包括:The apparatus according to claim 15, further comprising:存储子模块,用于将所述状态配置文件存储在本地数据储存中,或和,将所述状态配置文件存储在缓存数据储存中。A storage submodule, configured to store the status configuration file in a local data storage, or and, store the status configuration file in a cached data storage.
- 根据权利要求21所述的装置,其特征在于,还包括:The apparatus according to claim 21, further comprising:配置更新子模块,用于当获取到针对所述状态配置文件的状态配置更新文件时,将所述状态配置更新文件存储在本地数据储存中,替代所述状态配置文件;A configuration update submodule, configured to store the status configuration update file in a local data store when the status configuration update file for the status configuration file is obtained, replacing the status configuration file;或和,将所述状态配置更新文件存储在缓存数据储存中,替代所述状态配置文件。Or, and the state configuration update file is stored in a cache data storage, replacing the state configuration file.
- 一种用户状态标识确定装置,其特征在于,包括:A device for determining a user status identifier, comprising:一个或多个处理器;和One or more processors; and其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行所述指令时,使得所述装置执行如权利要求1至12中任一项所述的方法。One or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, causes the apparatus to perform the method of any one of claims 1 to 12 .
- 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行所述指令时,执行如权利要求1至12中任一项所述的方法。One or more machine-readable media having stored thereon instructions which, when executed by one or more processors, perform the method of any one of claims 1 to 12.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810856553.5A CN110781375B (en) | 2018-07-31 | 2018-07-31 | User state identification determining method and device |
CN201810856553.5 | 2018-07-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020024824A1 true WO2020024824A1 (en) | 2020-02-06 |
Family
ID=69230510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/097002 WO2020024824A1 (en) | 2018-07-31 | 2019-07-22 | Method and device for determining user status identifier |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110781375B (en) |
WO (1) | WO2020024824A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414364B (en) * | 2020-03-20 | 2023-08-25 | 杭州数梦工场科技有限公司 | User information generation method and device and electronic equipment |
CN111752429B (en) * | 2020-05-29 | 2022-03-29 | 维沃移动通信有限公司 | Information display method, information display device, electronic equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043783A (en) * | 2009-10-16 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Data updating method, device and system |
CN102214187A (en) * | 2010-04-12 | 2011-10-12 | 阿里巴巴集团控股有限公司 | Complex event processing method and device |
US20130262165A1 (en) * | 2012-03-27 | 2013-10-03 | Alibaba Group Holding Limited | Sending recommendation information associated with a business object |
CN104077694A (en) * | 2013-03-27 | 2014-10-01 | 阿里巴巴集团控股有限公司 | User right and interest information processing method and system |
CN106790060A (en) * | 2016-12-20 | 2017-05-31 | 微梦创科网络科技(中国)有限公司 | The right management method and device of a kind of role-base access control |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184082B (en) * | 2006-11-17 | 2011-04-20 | 华为技术有限公司 | Cluster user login method, state updating method, processing equipment, IMS network entity and communication system |
US9639626B2 (en) * | 2009-04-09 | 2017-05-02 | International Business Machines Corporation | Web-browser based state repository |
US9412094B2 (en) * | 2010-11-11 | 2016-08-09 | International Business Machines Corporation | User identifier management |
US20150242906A1 (en) * | 2012-05-02 | 2015-08-27 | Google Inc. | Generating a set of recommended network user identifiers from a first set of network user identifiers and advertiser bid data |
US10673977B2 (en) * | 2013-03-15 | 2020-06-02 | D2L Corporation | System and method for providing status updates |
CN104133825B (en) * | 2013-09-10 | 2016-05-18 | 腾讯科技(深圳)有限公司 | A kind of method and device that mates client user |
CN104484187B (en) * | 2014-12-31 | 2017-12-08 | 山东中创软件商用中间件股份有限公司 | A kind of information integration method and system |
CN106470150B (en) * | 2015-08-21 | 2020-04-24 | 腾讯科技(深圳)有限公司 | Relation chain storage method and device |
CN106997293A (en) * | 2016-01-26 | 2017-08-01 | 上海大唐移动通信设备有限公司 | The implementation method and device of finite state machine |
CN107424033B (en) * | 2016-03-29 | 2021-06-18 | 阿里巴巴集团控股有限公司 | Component rendering method, page display method, client, server and storage medium |
CN106209601B (en) * | 2016-07-29 | 2020-11-10 | 腾讯科技(深圳)有限公司 | State update message pushing method and device |
CN108023911A (en) * | 2016-11-01 | 2018-05-11 | 中国移动通信有限公司研究院 | A kind of state acquiring method, the apparatus and system of POC business contacts |
CN108306956B (en) * | 2018-01-26 | 2020-04-21 | Oppo广东移动通信有限公司 | Information pushing method and device, server and computer readable medium |
-
2018
- 2018-07-31 CN CN201810856553.5A patent/CN110781375B/en active Active
-
2019
- 2019-07-22 WO PCT/CN2019/097002 patent/WO2020024824A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043783A (en) * | 2009-10-16 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Data updating method, device and system |
CN102214187A (en) * | 2010-04-12 | 2011-10-12 | 阿里巴巴集团控股有限公司 | Complex event processing method and device |
US20130262165A1 (en) * | 2012-03-27 | 2013-10-03 | Alibaba Group Holding Limited | Sending recommendation information associated with a business object |
CN104077694A (en) * | 2013-03-27 | 2014-10-01 | 阿里巴巴集团控股有限公司 | User right and interest information processing method and system |
CN106790060A (en) * | 2016-12-20 | 2017-05-31 | 微梦创科网络科技(中国)有限公司 | The right management method and device of a kind of role-base access control |
Also Published As
Publication number | Publication date |
---|---|
CN110781375A (en) | 2020-02-11 |
CN110781375B (en) | 2023-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110291517B (en) | Query language interoperability in graph databases | |
US11017764B1 (en) | Predicting follow-on requests to a natural language request received by a natural language processing system | |
US9275024B2 (en) | Identifiers for web font templates | |
US20190034484A1 (en) | Determining a user-specific approach for disambiguation based on an interaction recommendation machine learning model | |
US10102246B2 (en) | Natural language consumer segmentation | |
US9424291B2 (en) | Efficient multi-tenant spatial and relational indexing | |
US9754015B2 (en) | Feature rich view of an entity subgraph | |
US20170212930A1 (en) | Hybrid architecture for processing graph-based queries | |
JP7254925B2 (en) | Transliteration of data records for improved data matching | |
US20190034499A1 (en) | Navigating hierarchical components based on an expansion recommendation machine learning model | |
US9514184B2 (en) | Systems and methods for a high speed query infrastructure | |
US11544317B1 (en) | Identifying content items in response to a text-based request | |
US20230222561A1 (en) | Systems and methods for executing search queries based on dynamic tagging | |
US11681696B2 (en) | Finding services in a service registry system of a service-oriented architecture | |
WO2020024824A1 (en) | Method and device for determining user status identifier | |
US11361048B2 (en) | Conditional interpretation of a single style definition identifier on a resource | |
US10503823B2 (en) | Method and apparatus providing contextual suggestion in planning spreadsheet | |
US20150081576A1 (en) | Generating a supplemental description of an entity | |
US20210326401A1 (en) | Scaling workloads using staging and computation pushdown | |
US9965558B2 (en) | Cross-channel social search | |
WO2019237949A1 (en) | Search method and device | |
CN110674383A (en) | Public opinion query method, device and equipment | |
TWI547888B (en) | A method of recording user information and a search method and a server | |
US20170330236A1 (en) | Enhancing contact card based on knowledge graph | |
US20200401595A1 (en) | Estimating the number of distinct entities from a set of records of a database system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19844213 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19844213 Country of ref document: EP Kind code of ref document: A1 |