Detailed Description
The specification aims to provide an interaction mode for quickly switching modes aiming at a login account of a user on a client.
When the method is realized, the client acquires the light value in the environment where the user is located by calling the light sensing hardware carried by the terminal equipment where the client is located, and judges whether the acquired light value is lower than a preset threshold value or not; if the collected light value is lower than a preset threshold value, the login account of the client side can be switched from a normal mode to a preset mode; and if the collected light value is not lower than the preset threshold value, switching the login account of the client from the preset mode to the normal mode when the login account of the client is switched to the preset mode by the user, so that the account mode of the login account of the client can be quickly switched based on the collected light value, and the user can be prevented from carrying out complicated manual configuration when the login account needs to be switched.
The following is a detailed description through specific embodiments and with reference to specific application scenarios.
Referring to fig. 1, fig. 1 is a flowchart illustrating an account management method applied to a client according to an embodiment of the present disclosure, where the method performs the following steps:
step 102, calling the light sensing hardware to collect light values;
step 104, judging whether the collected light value is lower than a preset threshold value;
step 106, if the collected light value is lower than a preset threshold value, switching the login account of the client to a preset mode; and if the collected light value is not lower than the preset threshold value, switching the login account of the client from the preset mode to a normal mode when the login account is switched to the preset mode by the user.
The login account refers to a user account used when the user logs in the client; for example, in one illustrated embodiment, the login account may be a payment account used by the user to login to the payment client.
The client may refer to client software installed on a terminal device of a user and capable of providing various online services for the user; the terminal device may be a mobile terminal (such as a smart phone) or a PC terminal; equivalently, the client can be an APP application based on the mobile terminal, and can also be a web application based on the PC terminal.
The preset mode is a switched mode with respect to a normal mode of the registered account. For example, in one embodiment shown, the login account may be a payment account of the user, and the preset mode may be an account protection mode for the payment account of the user; in the account protection mode, the funds transfer-out function of the payment account may be temporarily limited.
It should be noted that, in practical application, the mode type corresponding to the preset mode is not particularly limited in this specification, and may be defined based on the actual requirement of the user; that is, in this specification, the client may switch the login user between any two account modes by executing the execution logic shown in step 102 and step 106.
The following describes the technical solution of the present specification in detail by taking the terminal device as a mobile terminal and the client as an APP installed on the mobile terminal as an example.
In this embodiment, the APP application may be installed in advance on a mobile terminal of a user, and light sensing hardware may be mounted on the APP application. The light sensing hardware may be a light sensor; meanwhile, in order to facilitate the APP to call the light sensing hardware, a call interface corresponding to the light sensing hardware can be provided in advance in an operating system of the mobile terminal; for example, a developer may develop an independent API call interface in advance in source code of an operating system, facing light sensing hardware mounted on a mobile terminal.
And above-mentioned APP uses, can be through above-mentioned call interface, in the real-time or periodic initiation of background to the call of light sensing hardware, come to gather the light value under the user's environment to compare the light value of gathering with the predetermined threshold value, judge whether the light value of gathering is less than the predetermined threshold value.
The preset threshold is not particularly limited in this specification, and in practical application, the preset threshold may be configured in a unified manner according to actual requirements, or may be configured in a user-defined manner autonomously by a user by providing corresponding user options in the APP application; for example, when implemented, the preset threshold may be set to 0, or a smaller threshold close to 0.
On one hand, if the detected light value is judged to be smaller than the preset threshold value, the APP can immediately switch the login account of the user to a preset mode;
on the other hand, if the detected light value is judged to be not less than the preset threshold, at this time, the APP application may further check whether the login account of the user has been currently switched to the preset mode; if the login account of the user is currently switched to the preset mode, the APP can immediately recover the mode of the login account, and the mode of the login account is switched from the preset mode to the normal mode. Of course, if the login account of the user is not currently switched to the preset mode, the APP application may not perform any processing at this time.
For example, the login account is a payment account, and the APP is a payment APP, in which case the preset mode may specifically be an account protection mode for the payment account of the user.
On the one hand, if the payment APP judges that the light value acquired by calling the light sensing hardware carried by the mobile terminal is smaller than the preset threshold value, the payment account which is successfully logged in by the user at present can be immediately switched to the account protection mode from the current mode, and the fund transfer-out function of the payment account is temporarily limited.
On the other hand, if the payment APP determines that the light value acquired by calling the light sensing hardware carried by the mobile terminal is not less than the preset threshold, the APP can further check whether the login account of the user is currently switched to the account protection mode; if the login account of the user is switched to the account protection mode currently, the APP can immediately recover the account mode of the login account at the moment, the account protection mode of the login account is switched to the normal mode, and the limit of the fund transfer-out function for the payment account is removed.
It should be noted that, when the APP application switches the account mode of the login account, the APP application may specifically complete the switching by interacting with the corresponding server; when the APP application needs to perform mode switching on the login account, a notification message of mode switching may be sent to the corresponding server, and the notification message carries information about a target mode to be switched, and the server completes mode switching of the login account in the background based on the notification message of mode switching.
For example, taking the example of switching the payment account of the user to the account protection mode, the APP may send a notification message for switching the payment account to the account protection mode to the corresponding server; after receiving the notification message, the server may switch the payment account to an account protection mode in the background based on the information carried in the notification message.
Therefore, through the mode, the variation of the collected light value can be used as the triggering condition for account mode switching of the login account of the user by the APP application, and based on the collected light value, the user can quickly switch the account mode of the login account used when logging in the APP application, so that the user can be prevented from carrying out complex manual configuration when the mode switching of the login account is required.
For example, taking switching the payment account of the user to the account protection mode as an example, after the user logs in the payment account by using a payment client installed on the terminal device, if the payment account needs to be actively switched to the account protection mode, and the fund transfer of the payment account is temporarily limited, at this time, the user can turn over the terminal device by executing a "back-off" action, so that the light sensing hardware carried by the terminal device is turned over to a side where the light cannot be detected; the payment client can call the light sensing hardware loaded on the terminal equipment, detect the light value in real time and judge whether the detected light value is smaller than a preset threshold value or not; after the user turns over the terminal equipment through a reverse buckling action, the light sensing hardware carried by the terminal equipment cannot detect light, so that the payment client can immediately switch the payment account to an account protection mode when determining that the detected light value is smaller than a preset threshold value, and limit the transfer of funds of the payment account when coming.
Therefore, by the method, a controllable and convenient account protection mode can be provided for the user, the requirement of the user on account safety can be met, the operation difficulty of the user cannot be increased, and therefore the user experience can be remarkably improved.
In this embodiment, the change of the light value collected by the APP application may be caused by a user intentionally performing a corresponding action on the mobile terminal during the process of using the mobile terminal, or may be caused by a natural change of the light of the environment where the user is located; therefore, in practical applications, if the APP only uses the change of the collected light value as a trigger condition for switching the account mode to complete the quick switching of the account mode for the login account of the user, a malfunction may occur.
For example, if the mobile terminal is carried into a target place with weak light, the light of the environment where the user is located usually changes; in this case, if the light value in the environment where the target location is located is lower than the preset threshold, and the triggering condition for switching the account mode is satisfied, the APP application may erroneously switch the login account to the preset mode when the user does not have a need for mode switching of the login account.
In order to solve the above problem, on the basis of determining whether the collected light value is lower than the preset threshold value, an action recognition mechanism for the user may be further introduced into the APP application, so that when the APP application performs mode switching on the login account of the user, not only a determination result of whether the collected light value is smaller than the preset threshold value needs to be referred to, but also a change in the light value needs to be further determined, whether the change is caused by a user intentionally performing a certain action on the mobile terminal, and thus, the possibility of misoperation can be reduced to the greatest extent.
When the mobile terminal is realized, the mobile terminal can be loaded with corresponding motion sensing hardware besides the light sensing hardware. The motion sensing hardware may specifically include a gyroscope, an angular velocity sensor, and the like.
Through the motion sensing hardware that carries on, motion data such as angle of rotation and speed that can be accurate sense mobile terminal, and then the operation action that can accurate discernment user when using mobile terminal, carried out to this mobile terminal.
Similarly, in the operating system of the mobile terminal described above, a calling interface for the corresponding motion sensing hardware may also be provided in advance. In the process that the APP application calls the light sensing hardware to collect the light value, the motion sensing hardware may also be called synchronously through the call interface, so that the motion data (such as a rotation angle and a rotation speed, etc.) of the mobile terminal during the process that the user uses the mobile terminal is collected in real time or periodically, and then the operation action executed by the user during the process that the user uses the mobile terminal is identified based on the collected motion data.
The specific process of the operation action executed by the user in the process of using the mobile terminal is identified based on the collected motion data of the mobile terminal, and details are not described in the specification, and a person skilled in the art can refer to records in the related art when implementing the technical scheme in the specification;
for example, in one implementation, the APP application may collect, in the background in advance, motion data of the mobile terminal when the user performs various predefined standard actions on the mobile terminal, and record the collected motion data as a motion data sample. When it is necessary to identify an operation action performed by a user on the mobile terminal in the process of using the mobile terminal, the collected motion data may be matched with pre-recorded motion data samples corresponding to various standard actions, so as to determine the operation action performed by the user on the mobile terminal.
In this embodiment, when the APP determines that the collected light value is lower than the preset threshold, or determines that the collected light value is not lower than the preset threshold, the APP may further determine whether the identified operation action performed by the user for the mobile terminal is a preset action;
the preset action may specifically include an operation action that is executed by the user with respect to the mobile terminal and can cause a change in the collected light value during the use of the mobile terminal. In practical applications, the preset actions may further include a first preset action that may cause the collected light value to decrease, and a second preset action that may cause the collected light value to increase.
In an embodiment shown, the first preset action may be a downward flipping action with respect to a mounting surface of the light sensing hardware on the mobile terminal; the second preset action may be an upward flipping action with respect to the installation surface of the light sensing hardware on the terminal device.
For example, taking the mobile terminal as a smart phone as an example, if the light sensor is installed at a camera above a screen of the smart phone, the first preset action may be a downward turning action of the screen of the smart phone when the user uses the smart phone (i.e., an action of turning the screen of the smart phone "upside down" and turning the light sensor to a side where the light cannot be detected). The second preset action may be an upward flipping action of the surface where the screen of the smartphone is located when the user uses the smartphone (i.e., an action of flipping the screen of the smartphone from a "left-handed" state to a screen facing upward).
On one hand, if the APP application determines that the collected light value is lower than the preset threshold, the APP application may further determine whether the identified operation action is the first preset action;
if the identified operation action is the first preset action, which indicates that the collected light value is decreased, the decrease may be caused by the user performing the first preset action on the mobile terminal, and in this case, the APP application may immediately switch the login account of the user from the current mode to the preset mode.
Of course, if the identified operation action is not the first preset action, the decrease of the collected light value is probably caused by the natural change of the light value of the environment where the user is located, in this case, the user probably does not have the requirement of mode switching for the login account, and therefore, the APP application may not switch the account mode of the login account.
On the other hand, if the APP application determines that the collected light value is not lower than the preset threshold value and the login account of the user is currently switched to the preset mode, the APP application may further determine whether the identified operation action is the second preset action.
If the identified operation action is the second preset action, which indicates that the rise of the collected light value may be caused by the user performing the second preset action on the mobile terminal, in this case, the APP application may immediately switch the login account of the user from the preset mode to the normal mode.
Of course, if the identified operation action is not the second preset action, the rise of the collected light value is also likely to be caused by a natural change of the light value of the environment where the user is located, in this case, the user is likely not to have a requirement for mode switching of the login account, and therefore the APP application may not switch the account mode of the login account.
For example, the login account is a payment account, the APP application is a payment APP application, and the mobile terminal is a smart phone as an example; in this case, the preset mode may be an account protection mode for the payment account of the user.
Assuming that the light sensor is installed at the camera above the screen of the smart phone, the first preset action may be a "left-hand-off" action of the screen of the smart phone, and the second preset action may be an action of turning the screen of the smart phone from a "left-hand-off" state to a screen facing upward.
In one scenario, if a user needs to quickly switch a payment account to an account protection mode, a reverse buckling action can be executed on a screen of the smart phone at the moment; on one hand, the payment APP can call light sensing hardware to collect a light value in the background, and judge whether the collected light value is lower than a preset threshold value; on the other hand, the payment APP application can synchronously call motion sensing hardware, collect motion data of the mobile terminal, identify an operation action of the user when the user uses the mobile terminal based on the collected motion data, and judge whether the identified operation action is the first preset action; if the payment APP determines that the collected light value is lower than the preset threshold value and the identified operation action is the first preset action, the payment account of the user can be immediately switched to an account protection mode at the moment, and the fund transfer-out function of the payment account is limited.
In another scenario, if the user needs to quickly return the payment account from the account protection mode to the normal mode, an action of turning from a 'rebate' state to a screen-up state can be executed for the screen of the smart phone at the moment; on one hand, the payment APP application can still call the light sensing hardware to collect the light value in the background, and judge whether the collected light value is greater than or equal to a preset threshold value; on the other hand, the payment APP application can synchronously call the motion sensing hardware, collect motion data of the mobile terminal, identify an operation action of the user when the user uses the mobile terminal based on the collected motion data, and judge whether the identified operation action is the second preset action; if the payment APP determines that the collected light value is greater than or equal to the preset threshold value and the identified operation action is the second preset action, the payment account of the user can be immediately switched from the account protection mode to the normal mode, and the limit on the fund transfer-out function of the payment account is removed.
Therefore, on the basis of judging whether the acquired light value is lower than the preset threshold value or not, an action recognition mechanism for the user is further introduced into the APP, so that account mode switching of the login account can be ensured, and the account mode switching is initiated by the user actively, so that misoperation caused by natural change of light in the environment where the user is located can be avoided.
In addition, in practical applications, the user can log in the account at the same time on a plurality of terminals; for example, APP applications on the mobile terminal and web clients on the PC terminal are simultaneously logged in;
therefore, in this case, when the APP application switches to the login account of the user, it may further query the corresponding server whether the current login account is logged in on multiple terminals at the same time; if so, the APP application may switch only the account mode corresponding to the login account to the preset mode on the mobile terminal, and does not switch the account mode corresponding to the login account to the account modes on other login terminals.
For example, taking the example of switching the payment account of the user to the account protection mode on the mobile terminal, the APP application may send a notification message for switching the payment account to the account protection mode on the mobile terminal to the corresponding server; after receiving the notification message, the server may switch the payment account to an account protection mode on the mobile terminal in the background based on the information carried in the notification message, so as to limit the fund transfer function of the payment account. After the switching is completed, anyone can not obtain the authority of transferring the funds in the payment account after logging in the payment account through the mobile terminal.
Of course, if the current login account only logs in on the mobile terminal, the APP may directly switch the account mode corresponding to the login account to the account protection mode, which is not described in detail.
It should be added that, the above-mentioned terminal device is taken as a mobile terminal, and the above-mentioned client is taken as an APP application installed on the mobile terminal, which is taken as an example, and the technical solution of the present specification is described in detail. It should be emphasized that, in practical applications, the terminal device may also be a PC terminal, and the client may also be a web client installed on the PC terminal, and a specific implementation process of the client is not described in detail in this specification, and when a person skilled in the art puts the technical solution in this specification into practice, reference may be made to the implementation process described in the above embodiment.
Corresponding to the method embodiment, the present specification also provides an embodiment of an account management device.
The embodiment of the account management device in the specification can be applied to electronic equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading, by a processor of the electronic device where the device is located, a corresponding computer program instruction in the nonvolatile memory into the memory for operation. From a hardware aspect, as shown in fig. 2, the electronic device in which the account management apparatus of this specification is located is a hardware structure diagram of the electronic device, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the electronic device in which the apparatus is located in the embodiment may also include other hardware according to an actual function of the electronic device, which is not described again.
Fig. 3 is a block diagram of an account management apparatus according to an exemplary embodiment of the present specification.
Referring to fig. 3, the account management apparatus 30 can be applied to the electronic device shown in fig. 2, and includes: the device comprises an acquisition module 301, a judgment module 302, a switching module 303 and a marking module.
The acquisition module 301 calls the light sensing hardware to acquire a light value;
the judging module 302 is used for judging whether the acquired light value is lower than a preset threshold value;
the switching module 303, if the collected light value is lower than a preset threshold, switching the login account of the client to a preset mode; and if the collected light value is not lower than the preset threshold value, switching the login account of the client from the preset mode to a normal mode when the login account is switched to the preset mode by the user.
In this embodiment, the acquisition module 301 is further configured to:
calling preset motion sensing hardware to acquire motion data of the terminal equipment;
the device 30 further comprises:
an identification module 304 (not shown in fig. 3) for identifying an operation action of the user when using the terminal device based on the motion data.
In this embodiment, the switching module 303:
judging whether the operation action identified by the identification module 304 is a first preset action;
if yes, switching the login account of the client from a normal mode to a preset mode.
The switching module 303 further:
judging whether the operation action identified by the identification module 304 is a second preset action;
if yes, the login account is switched from the preset mode to a normal mode.
In this embodiment, the terminal device is a mobile terminal; the first preset action comprises a downward turning action relative to the installation surface of the light sensing hardware on the terminal equipment; the second preset action comprises an upward flipping action relative to a mounting surface of the light sensing hardware on the terminal device.
In this embodiment, the account is a payment account; the preset mode is an account protection mode for the payment account.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
Corresponding to the method embodiment, the application also provides an embodiment of the account management device. The account management device includes: a processor and a memory for storing machine executable instructions; wherein the processor and the memory are typically interconnected by an internal bus. In other possible implementations, the device may also include an external interface to enable communication with other devices or components.
In this embodiment, the processor is caused to, by reading and executing machine executable instructions stored by the memory corresponding to control logic for recovery of database corruption:
calling the light sensing hardware to collect light values;
judging whether the collected light value is lower than a preset threshold value or not;
if the collected light value is lower than a preset threshold value, switching the login account of the client to a preset mode; and the number of the first and second groups,
and if the collected light value is not lower than the preset threshold value, switching the login account of the client from the preset mode to a normal mode when the login account is switched to the preset mode by the user.
In this embodiment, the processor is further caused to, by reading and executing machine-executable instructions stored by the memory corresponding to control logic for recovery of database corruption:
calling preset motion sensing hardware to acquire motion data of the terminal equipment;
and identifying the operation action of the user when the terminal equipment is used based on the motion data.
In this embodiment, the processor is further caused to, by reading and executing machine-executable instructions stored by the memory corresponding to control logic for recovery of database corruption:
judging whether the identified operation action is a first preset action or not;
if yes, switching the login account of the client from a normal mode to a preset mode.
In this embodiment, the processor is further caused to, by reading and executing machine-executable instructions stored by the memory corresponding to control logic for recovery of database corruption:
judging whether the identified operation action is a second preset action or not;
if yes, the login account is switched from the preset mode to a normal mode.
In this embodiment, the terminal device is a mobile terminal; the first preset action is a downward turning action relative to the installation surface of the light sensing hardware on the terminal equipment; the second preset action is an upward flipping action relative to the mounting surface of the light sensing hardware on the terminal device.
In this embodiment, the account is a payment account; the preset mode is an account protection mode for the payment account.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and 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 modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.