Disclosure of Invention
The embodiment of the invention provides a service processing method and a service server, which can enable a user to experience complete service provided by a system at the first time, thereby improving user experience.
The service processing method provided by the embodiment of the invention comprises the following steps: a service server receives an access request initiated by a user; the service server distributes a default user identity for the user, and the authority of the default user identity corresponds to the authority of the registered user identity; and the service server provides service for the user according to the authority of the default user identity.
Optionally, before the service server allocates the default user identity to the user, the method includes:
the service server prompts an access mode to the user;
the service server receives the selection of the user;
and when the user selects to access in a default mode, the service server triggers a step of allocating default user identity to the user.
Optionally, the allocating, by the service server, a default user identity to the user includes:
the service server distributes a default user name to the user according to a preset rule;
the service server sets the password corresponding to the default user name to be null;
and the service server sets the authority corresponding to the default user name to be the same as the authority of the registered user identity.
Optionally, the allocating, by the service server, a default user name to the user according to a preset rule includes:
and the service server distributes a uniform default user name for the user.
Optionally, the allocating, by the service server, a default user name to the user according to a preset rule includes:
and the service server allocates a corresponding default user name for the user according to the network address or the access time of the user.
Optionally, after the service server provides the service to the user according to the authority of the default user identity, the method includes:
the service server judges whether the behavior of the user meets the information modification condition, if so, the service server prompts the user to modify the user identity information;
the service server receives the modified user identity information provided by the user;
and the service server stores the user identity information and distributes a registered user identity for the user.
Optionally, the determining, by the service server, whether the behavior of the user meets an information modification condition includes:
the service server judges whether the user enters a user identity information page or not, and if so, the behavior of the user is determined to meet an information modification condition;
or,
the service server judges whether the time length for providing service for the user reaches preset time length, if so, the behavior of the user is determined to meet information modification conditions;
or,
and the service server judges whether the times of providing the service for the user reaches a preset time, and if so, the behavior of the user is determined to meet the information modification condition.
Optionally, the service server allocates a default user identity to the user as a fixed user or a temporary user;
when the default user identity allocated to the user is a fixed user, the method further comprises:
the service server stores the service data of the user locally;
when the user requests to execute the service again, if the service server detects that the request sent by the user carries the default user identity which is allocated to the user before, the service server reads the service data of the user and continues to execute the service.
The service server provided by the embodiment of the invention comprises:
the receiving unit is used for receiving an access request initiated by a user;
the distribution unit is used for distributing a default user identity for the user, and the authority of the default user identity corresponds to the authority of the registered user identity;
and the execution unit is used for providing service for the user according to the authority of the default user identity.
Optionally, the service server further includes:
and the access control unit is used for prompting the access mode to the user, receiving the selection of the user, and triggering the distribution unit to execute corresponding operation when the user selects to access in a default mode.
Optionally, the service server further includes:
the judging unit is used for judging whether the behavior of the user meets an information modification condition;
the prompting unit is used for prompting the user to modify the user identity information when the behavior of the user meets the information modification condition;
the information receiving unit is used for receiving the modified user identity information provided by the user;
and the storage unit is used for storing the user identity information and distributing the registered user identity for the user.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, after receiving an access request initiated by a user, the service server can allocate the default user identity to the user, and can provide service for the user according to the authority of the default user identity.
Detailed Description
The embodiment of the invention provides a service processing method and a service server, which can enable a user to experience complete service provided by a system at the first time, thereby improving user experience.
Referring to fig. 1, an embodiment of the service processing method of the present invention includes:
101. a service server receives an access request initiated by a user;
in this embodiment, when a user wishes to initiate data access to a certain system, an access request may be initiated to a service server corresponding to the system, and then the service server may receive the access request initiated by the user.
The access request may be a web page access request, an online game starting request, an online video playing request, or other types of data access requests in practical applications, which is not limited herein.
102. The service server distributes default user identity for the user;
after receiving an access request initiated by a user, the service server may assign a default user identity to the user, where the authority of the default user identity corresponds to the authority of the registered user identity.
In this embodiment, the default user identity is automatically generated by the service server without any identity information input by the user, and after the default user identity is generated, the default user identity is allocated to the user for use.
103. And the service server provides service for the user according to the authority of the default user identity.
After the service server allocates the default user identity to the user, the user already has the default user identity, and the service server can provide service to the user according to the authority of the default user identity.
In this embodiment, after receiving an access request initiated by a user, a service server may assign a default user identity to the user, and the service server may provide a service to the user according to the authority of the default user identity, and since the authority of the default user identity corresponds to the authority of a registered user identity, the user may enjoy the same service as the registered user identity using the default user identity, and thus the user may experience a complete function provided by the system at the first time without registering or logging in after initiating the access request, thereby improving user experience.
For convenience of understanding, the following describes the service processing method in the embodiment of the present invention in detail by using a specific example, and referring to fig. 2, another embodiment of the service processing method of the present invention includes:
201. a service server receives an access request initiated by a user;
in this embodiment, when a user wishes to initiate data access to a certain system, an access request may be initiated to a service server corresponding to the system, and then the service server may receive the access request initiated by the user.
The access request may be a web page access request, an online game starting request, an online video playing request, or other types of data access requests in practical applications, which is not limited herein.
202. The service server prompts an access mode to a user;
after receiving an access request initiated by a user, the service server may prompt the user with an access mode, which may specifically be a "default mode" and a "login mode".
The "default mode" is that the user does not need to register and the user does not need to input any user identity information (such as a user name, a mobile phone number, an identification number, and the like).
The "login manner" is a conventional manner of entering a page, for example, a user is required to input a user name and a password, an unregistered user may prompt to register, and the like.
203. Judging whether the user selects a default mode to log in, if so, executing a step 205, and if not, executing a step 204;
the service server prompts an access mode to the user, can receive the selection of the user and judges whether the user selects a default mode to log in.
204. Logging in according to a common mode and finishing the process;
if the user does not select the default mode to log in, the service server may require the user to input a user name and a password, the unregistered user may prompt to register, and the user performs subsequent processes.
It should be noted that steps 203 and 204 in this embodiment are optional steps, and may be skipped in practical applications.
205. The service server distributes default user identity for the user;
if the user selects the default mode to log in, the service server can allocate the default user identity for the user, and the authority of the default user identity corresponds to the authority of the registered user identity.
In this embodiment, the default user identity is automatically generated by the service server without any identity information input by the user, and after the default user identity is generated, the default user identity is allocated to the user for use.
Specifically, the process of allocating the default user identity by the service server may be:
(1) the service server distributes a default user name for the user according to a preset rule;
the service server may assign a uniform default username to the user, that is, all users use the same username, for example, gusest, user, and the like, it should be noted that the same username is the username presented to the user, and a unique identifier still needs to be assigned to each user in the background of the service server.
It is understood that the service server may also assign a corresponding default user name, for example 192.168.15.1USR, to the user according to the network address or the access time of the user, where the specific assignment manner is not limited herein.
(2) Setting the password corresponding to the default user name to be null by the service server;
in order to enable the user to access data without inputting any user identity information, the service server may further set the password corresponding to the default username to null after assigning the default username.
(3) And the service server sets the corresponding authority of the default user name to be the same as the authority of the registered user identity.
206. The service server provides service for the user according to the authority of the default user identity;
after the service server allocates the default user identity to the user, the user already has the default user identity, and the service server can provide service to the user according to the authority of the default user identity.
207. The service server judges whether the information modification condition is met, if so, the step 208 is executed, and if not, the step 207 is repeatedly executed;
in this embodiment, in the process of performing data access by the user assigned with the default user identity, the service server may determine whether the behavior of the user meets the information modification condition in real time.
Specifically, the service server may determine whether a registration request sent by a user is received, and if so, determine that the behavior of the user satisfies an information modification condition;
or,
the service server can judge whether the user enters a user identity information page, and if so, the behavior of the user is determined to meet the information modification condition;
or,
the service server can judge whether the time length for providing the service for the user reaches a preset time length, and if so, the behavior of the user is determined to meet the information modification condition;
or,
the service server can judge whether the number of times of providing service for the user reaches a preset number, and if so, the behavior of the user is determined to meet the information modification condition.
It should be noted that, the above description has been given only by way of examples to describe the process of determining whether the information modification condition is satisfied by the service server, and it can be understood that, in practical applications, the service server may also use more ways to determine whether the information modification condition is satisfied, and the details are not limited herein.
208. The service server stores the modified user identity information and assigns a registered user identity.
When the service server determines that the behavior of the user meets the information modification condition, the service server may receive the modified user identity information provided by the user, store the user identity information, and allocate a registered user identity to the user.
That is, the service server may provide an interface for the user to complete the user identity information, so that the user can register at any time during the data access process with the default user identity to obtain the registered user identity.
In this embodiment, after receiving an access request initiated by a user, a service server may assign a default user identity to the user, and the service server may provide a service to the user according to the authority of the default user identity, and since the authority of the default user identity corresponds to the authority of a registered user identity, the user may enjoy the same service as the registered user identity using the default user identity, and thus the user may experience a complete function provided by the system at the first time without registering or logging in after initiating the access request, thereby improving user experience;
in addition, after receiving the access request of the user, the service server can prompt the user to select a specific access mode, so that the flexibility of the scheme is improved;
and thirdly, the service server can judge whether the behavior of the user meets the information modification condition in real time in the process that the user accesses data by the default user identity, and when the behavior of the user meets the information modification condition, an interface can be provided for the user so as to facilitate the user to register, so that the user can select whether to register at any time, and the user experience is further improved.
In order to further understand the solution of the embodiment of the present invention, the following describes the solution of the embodiment of the present invention as an example in practical application:
assuming that the user ALICE sees a piece of webgame while browsing the web page, he wishes to try, and when he clicks on a link to play the web page of the webgame, his client initiates an access request to the service server of the webgame.
After receiving the access request, the service server of the webgame can send prompt information to the ALICE through the client of the ALICE: if the ALICE chooses to log in the game, the service server can prompt the ALICE to log in through a user name and a password, if the ALICE does not register, the service server can also prompt the ALICE to register, and if the ALICE chooses to directly enter the game, the service server can distribute default user identity for the ALICE.
It should be noted that, in practical applications, the service server may also directly assign a default user identity to the alias without sending a prompt to the alias.
In this embodiment, the process of allocating, by the service server, the default user identity to the alias may include:
the service server assigns a default username to ice, which may be obtained from the network address 192.168.15.1 of ice, e.g., the default username may be "192.168.15.1 USR";
the service server may then set the password of the default username to null;
finally, the service server can set the corresponding authority of the default user name to be the same as the authority of the registered user identity, that is, the alias can obtain the same authority as the registered user through the default user name.
It should be noted that, in practical applications, the default user identity allocated to the ice by the service server may be a fixed user or a temporary user.
When the default user identity allocated for alias is a fixed user, the method may further include:
the service server stores the service data of the ALICE in the local, when the user requests to execute the service again, if the service server detects that the request contains the information of the default user identity which is distributed for the ALICE before, the service server reads the service data of the ALICE and continues to execute the service.
Specifically, the information of the default user identity of the ALICE is stored in the client of the ALICE, when the ALICE reuses the client to enter the game next time, the service server detects the default user identity in the client, and the service server can directly extract the progress and data of the last game played by the ALICE for the ALICE to continue the game.
If the user is a temporary user, the information of the default user identity may not be stored in the client of ALICE, and when ALICE requests to enter the game again next time, the service server will reassign a completely new default user identity to ALICE, so that ALICE experiences the game from the beginning.
After the service server allocates the default user identity to the ALICE, the service server can further establish game roles according to the request of the ALICE and enter the game world to play the game.
If the ALICE decides to register a personalized account in the process of experiencing the game, the ALICE can actively initiate a registration request at any time, or when the service server detects that the time of the ALICE participating in the game reaches a preset duration or the number of times of the ALICE participating in the game reaches a preset number, the ALICE can be actively prompted to register.
After the service server determines that alias is to register for an account, it may provide an interface to alias so that it fills in relevant user identity information, which the service server may then save and assign a registered user identity to alias.
The foregoing is merely an example of practical applications of the embodiments of the present invention, and those skilled in the art can realize the embodiments of the present invention in other ways according to the foregoing descriptions, and the details are not limited herein.
Referring to fig. 3, a service server in an embodiment of the present invention is described below, where an embodiment of the service server in the present invention includes:
a receiving unit 301, configured to receive an access request initiated by a user;
an assigning unit 302, configured to assign a default user identity to the user, where a right of the default user identity corresponds to a right of a registered user identity;
an executing unit 303, configured to provide a service to the user according to the authority of the default user identity.
In this embodiment, after the receiving unit 301 receives an access request initiated by a user, the allocating unit 302 may allocate a default user identity to the user, and the executing unit 303 may provide a service to the user according to the authority of the default user identity, since the authority of the default user identity corresponds to the authority of a registered user identity, the user may enjoy the same service as the registered user identity using the default user identity, and thus the user may experience a complete function provided by the system at the first time without registering or logging in after initiating the access request, thereby improving user experience.
For understanding, the service server in the embodiment of the present invention is described below with a specific example, and referring to fig. 4, another embodiment of the service server in the present invention includes:
a receiving unit 401, configured to receive an access request initiated by a user;
an assigning unit 402, configured to assign a default user identity to the user, where a right of the default user identity corresponds to a right of a registered user identity;
an executing unit 403, configured to provide a service to the user according to the authority of the default user identity.
The service server in this embodiment may further include:
an access control unit 404, configured to prompt the user with an access mode, receive a selection of the user, and trigger the allocating unit 402 to execute a corresponding operation when the user selects to access in a default mode.
The service server in this embodiment may further include:
a judging unit 405 configured to judge whether the behavior of the user satisfies an information modification condition;
a prompting unit 406, configured to prompt the user to modify user identity information when the behavior of the user satisfies the information modification condition;
an information receiving unit 407, configured to receive the modified user identity information provided by the user;
the storage unit 408 is configured to store the user identity information and assign a registered user identity to the user.
For convenience of understanding, the following describes an interaction relationship between units in the service server in this embodiment by taking a specific application scenario as an example:
in this embodiment, when a user wishes to initiate data access to a certain system, an access request may be initiated to the receiving unit 401 of the service server corresponding to the system, and then the receiving unit 401 may receive the access request initiated by the user.
The access request may be a web page access request, an online game starting request, an online video playing request, or other types of data access requests in practical applications, which is not limited herein.
After the receiving unit 401 receives an access request initiated by a user, the access control unit 404 may prompt the user with an access mode, where the access mode may specifically be a "default mode" and a "login mode".
The "default mode" is that the user does not need to register and the user does not need to input any user identity information (such as a user name, a mobile phone number, an identification number, and the like).
The "login manner" is a conventional manner of entering a page, for example, a user is required to input a user name and a password, an unregistered user may prompt to register, and the like.
After the access control unit 404 prompts the user about the access mode, the user may receive a selection from the user and determine whether the user selects a default mode to log in.
If the user does not select the default mode to log in, the access control unit 404 may request the user to input a user name and a password, the unregistered user may prompt to register, and the user performs subsequent processes.
If the user selects a default mode to log in, the access control unit 404 may trigger the allocating unit 402 to allocate a default user identity to the user, where the authority of the default user identity corresponds to the authority of the registered user identity.
In this embodiment, the default user identity is automatically generated by the allocating unit 402 without inputting any identity information by the user, and after the default user identity is generated, the default user identity is allocated to the user for use.
After the allocating unit 402 allocates the default user identity to the user, and the user already has the default user identity, the executing unit 403 may provide the service to the user according to the authority of the default user identity, and since the default user identity is equal to the registered user identity, the executing unit enjoys the same authority as the registered user identity, that is, the service server may provide the service to the user according to the authority of the registered user identity.
In this embodiment, in the process of performing data access by the user assigned with the default user identity, the determining unit 405 may determine whether the behavior of the user meets the information modification condition in real time.
Specifically, the determining unit 405 may determine whether a registration request sent by a user is received, and if yes, determine that the behavior of the user meets the information modification condition;
or,
the determining unit 405 may determine whether the user enters a user identity information page, and if so, determine that the behavior of the user meets an information modification condition;
or,
the determining unit 405 may determine whether the duration of providing the service to the user reaches a preset duration, and if so, determine that the behavior of the user meets the information modification condition;
or,
the determining unit 405 may determine whether the number of times of providing the service to the user reaches a preset number of times, and if so, determine that the behavior of the user satisfies the information modification condition.
It should be noted that, the above description has been made only by way of examples to describe the process of determining whether the information modification condition is satisfied by the determining unit 405, and it is understood that, in practical applications, the determining unit 405 may also determine whether the information modification condition is satisfied in more ways, and the details are not limited herein.
When the determining unit 405 determines that the behavior of the user satisfies the information modification condition, the prompting unit 406 may prompt the user to modify the user identity information, the information receiving unit 407 may receive the modified user identity information provided by the user, and the storage unit 408 may store the user identity information and assign a registered user identity to the user.
That is, the service server may provide an interface for the user to complete the user identity information, so that the user can register at any time during the data access process with the default user identity to obtain the registered user identity.
In this embodiment, after the receiving unit 401 receives an access request initiated by a user, the allocating unit 402 may allocate a default user identity to the user, and the executing unit 403 may provide a service to the user according to the authority of the default user identity, since the authority of the default user identity corresponds to the authority of a registered user identity, the user may enjoy the same service as the registered user identity using the default user identity, and thus the user may experience a complete function provided by the system at the first time without registering or logging in after initiating the access request, thereby improving user experience;
in addition, after the receiving unit 401 receives an access request from a user, the access control unit 404 may prompt the user to select a specific access mode, thereby improving the flexibility of the scheme;
third, the determining unit 405 may determine whether the behavior of the user meets the information modification condition in real time during the data access process of the user with the default user identity, and when it is determined that the behavior of the user meets the information modification condition, an interface may be provided for the user to facilitate the user to register, so that the user can select whether to register at any time, thereby further improving user experience.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.