Identity switching method and device, computer equipment, storage medium and program product
By acquiring the associated information of the target object and utilizing the operation information of the dual-state switching button, combined with stress thresholds, geofencing, and behavior prediction models, the icon can be directly switched, solving the problem of time-consuming traditional identity switching, improving efficiency and accuracy, providing personalized interaction, and lowering the threshold for use.
Patent Information
- Application Number
- CN202510954462.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-10
- Publication Date
- 2025-11-18
AI Technical Summary
Traditional identity switching solutions are time-consuming, requiring users to frequently perform logout, login, and verification processes, resulting in low efficiency.
By acquiring the associated information of the target object, utilizing the operation and location information of the dual-state switching button, and combining pressure thresholds, geofencing, and behavior prediction models, the icon can be switched directly, avoiding the traditional account cancellation and re-login process.
It improves the efficiency and accuracy of identity switching, provides personalized interaction methods, lowers the threshold for use, saves users time and effort, and enhances the user experience.
Smart Images

Figure CN120974467A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of human-computer interaction and data security, and particularly relates to an identity switching method and device, a computer device, a storage medium and a program product. BACKGROUND
[0002] In a multi-role application scenario (such as a passenger / calling person), a user needs to frequently switch identities to perform operations with different permissions. A traditional identity switching scheme relies on an account logout-relogin process to achieve role switching by re-authenticating the user identity and loading corresponding permission data.
[0003] However, the whole process of logout, login, verification and data loading takes more than 12 seconds on average, which is time-consuming.
[0004] Therefore, how to improve the efficiency of identity switching has become a technical problem to be solved. SUMMARY
[0005] Therefore, the present application provides an identity switching method and device, a computer device, a storage medium and a program product.
[0006] In a first aspect, the present application provides an identity switching method, which comprises: obtaining associated information of a target object; wherein the associated information comprises operation information for a dual-state switching button; determining whether to switch an icon corresponding to the dual-state switching button according to the associated information of the target object; and if the icon corresponding to the dual-state switching button needs to be switched, switching the icon from a current state to a target state.
[0007] The identity switching method provided in this embodiment can indicate the dual-state switching button operation as an identity switching operation, obtain operation information related to identity switching (target object associated information), determine whether to switch an icon (representing different role states) corresponding to the identity according to the information, and directly switch from a current state to a target state if switching is required, thereby avoiding the time consumption of the traditional account logout-relogin process and the whole process, and improving the identity switching efficiency.
[0008] In one possible implementation, determining whether to switch the icon corresponding to the dual-state switching button according to the associated information of the target object comprises: determining a pressure on the dual-state switching button according to the operation information for the dual-state switching button; and determining to switch the icon corresponding to the dual-state switching button when the pressure is less than a pressure threshold.
[0009] The identity switching method provided in the embodiment can more accurately identify the user's intention, avoids triggering icon switching due to misoperation or other unexpected operation, and improves operation accuracy. The pressure threshold is set as a judgment standard, thereby providing a new and personalized interaction mode for the user. Different users can have different operation habits and strength, and the pressure-based judgment mode can adapt to different users and improve the interaction experience.
[0010] In a possible implementation, the association information of the target object further includes position information of the target object; and determining whether to switch the icon corresponding to the dual-state switching button according to the association information of the target object includes: when the position information of the target object is in a preset geofence, determining to switch the icon corresponding to the dual-state switching button.
[0011] The identity switching method provided in the embodiment can accurately control according to different geographical location scenarios by combining the position information of the target object. When the target object enters the preset geofence, the icon is automatically determined to be switched, without the need for manual operation of the user, thereby realizing automatic processing, providing a convenient interaction mode for the user, and saving time and effort of the user.
[0012] In a possible implementation, the method further includes: when the pressure is not less than the pressure threshold, displaying a shortcut menu; wherein the shortcut menu includes: a history identity record, and a permission description.
[0013] The identity switching method provided in the embodiment displays the shortcut menu when the pressure is not less than the pressure threshold, thereby providing clear operation feedback for the user, letting the user clearly know that the current operation does not achieve the expected result of icon switching, and guiding the user to perform the next operation through the shortcut menu, thereby avoiding the user from feeling confused due to no response to the operation.
[0014] In a possible implementation, switching the icon corresponding to the dual-state switching button from a current state to a target state includes: when the icon corresponding to the dual-state switching button indicates a passenger type icon, switching the icon corresponding to the dual-state switching button from the passenger type icon to an icon indicating a call-for-ride type; and when the icon corresponding to the dual-state switching button indicates a call-for-ride type icon, switching the icon corresponding to the dual-state switching button from the call-for-ride type icon to an icon indicating a passenger type.
[0015] The identity switching method provided in the embodiment directly displays the current identity state (passenger or call person) through an icon, so that a user can quickly identify his / her own role without additional operation or memory, thereby reducing the use threshold. The identity switching method supports the interconversion between the passenger state and the call person state, thereby covering the complete requirements in the multi-role scenario and avoiding the problem that a user cannot complete an operation due to the missing state.
[0016] In a possible implementation, the determining whether to switch the icon corresponding to the dual-state switching button according to the association information of the target object comprises: obtaining historical behavior data of the target object; training a neural network model according to the historical behavior data to obtain a behavior prediction model; and determining whether to switch the icon corresponding to the dual-state switching button according to the current behavior of the target object by using the behavior prediction model.
[0017] The identity switching method provided in the embodiment can deeply understand the operation habits, preferences and patterns of a user by obtaining the historical behavior data of the target object, thereby providing a basis for personalized decision making. The behavior prediction model is trained, and real-time prediction is performed according to the current behavior of the target object, so as to determine whether to switch the icon corresponding to the dual-state switching button. This intelligent decision making manner can respond to the user demand in advance, thereby improving the user experience.
[0018] In a second aspect, the present application provides an identity switching device, the device comprising: an obtaining module configured to obtain association information of a target object; wherein the association information comprises operation information for a dual-state switching button; a determining module configured to determine whether to switch an icon corresponding to the dual-state switching button according to the association information of the target object; and a switching module configured to switch the icon corresponding to the dual-state switching button from a current state to a target state if it is determined to switch the icon corresponding to the dual-state switching button.
[0019] In a third aspect, the present application provides a computer device, comprising: a memory and a processor, which are in communication connection with each other, and the memory stores computer instructions; the processor executes the computer instructions to perform the identity switching method of the first aspect or any of the corresponding embodiments thereof.
[0020] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to make a computer execute the identity switching method of the first aspect or any of the corresponding embodiments thereof.
[0021] In a fifth aspect, the present application provides a computer program product, which comprises computer instructions, and the computer instructions are used to make a computer execute the identity switching method of the first aspect or any of the corresponding embodiments thereof. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the specific embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0023] Figure 1 is a flowchart of an identity switching method according to an embodiment of the present application;
[0024] Figure 2 is a structural block diagram of an identity switching device according to an embodiment of the present application;
[0025] Figure 3 is a hardware structure schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will combine the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0027] According to an embodiment of the present application, an identity switching method embodiment is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0028] In the present embodiment, an identity switching method is provided, which can be used in computer devices such as computers, servers, etc. Figure 1 is a flowchart of an identity switching method according to an embodiment of the present application, as shown in Figure 1 , the flow includes the following steps:
[0029] Step S101, obtaining the associated information of the target object; wherein the associated information includes the operation information for the dual-state switching button.
[0030] The target object can be a user operating a terminal device. The user can operate the dual-state switching button in the top navigation bar of the interface of the terminal device.
[0031] The association information can indicate various information related to the target object, including operation information of the two-state switching button in the present application, and can also include other information related to the state and settings of the target object.
[0032] The two-state switching button can be a button with two states. It can be switched by the association information of the user. The two states can include the state of the passenger type and the state of the proxy type. The two-state switching button can be a trigger button for switching between the state of the passenger type and the state of the proxy type.
[0033] In specific implementation, information related to the target object is collected from relevant data sources (such as databases, user input, system records, etc.), and operation information for the two-state switching button is mainly obtained. These operation information can include user operation records such as clicks, touches, voice instructions, etc., which are used for subsequent judgment of whether the icon of the two-state switching button needs to be switched.
[0034] For example, corresponding input controls are set on the user interface or user operation events are listened to, and when the user operates the target object (such as clicking, sliding, etc.), the operation information is captured in real time and stored or processed as association information. For example, in the passenger end of a car-hailing application, when the user clicks the two-state switching button related to the proxy, the system captures the click event as the association information.
[0035] In step S102, whether the icon corresponding to the two-state switching button needs to be switched is determined according to the association information of the target object.
[0036] The icon can be a visual element for intuitively displaying the current state of the two-state switching button on the interface, and different icons correspond to different styles.
[0037] The obtained association information is analyzed and judged to determine whether the current state of the two-state switching button needs to be changed, i.e., whether the icon corresponding to the two-state switching button needs to be switched. For example, if the association information includes the pressure information that the user clicks the two-state switching button, whether the icon needs to be switched can be determined according to the pressure information.
[0038] In step S103, if the icon corresponding to the two-state switching button needs to be switched, the icon corresponding to the two-state switching button is switched from the current state to the target state.
[0039] The current state can indicate the state of the two-state switching button before the switching operation is performed. The target state can indicate the state to which the two-state switching button needs to be switched according to the association information.
[0040] When it is determined that the icon switching needs to be performed, an actual switching operation is performed to change the icon of the dual-state switching button from a currently displayed style to a style corresponding to a target state, so as to intuitively reflect the change of the button state.
[0041] In one scenario, the user opens a car-hailing application and enters a personal car-hailing page. The system obtains the associated information of the user (target object), including the pressure information of the user on the "call-for-people" dual-state switching button before. The system analyzes the associated information and finds that the pressure information of the user is less than the pressure threshold, and determines that the icon corresponding to the "call-for-people" dual-state switching button needs to be switched. The system switches the icon of the "call-for-people" dual-state switching button from the icon in the current closed state (such as a gray person-shaped icon) to the icon in the open state (such as a colored person-shaped icon), and updates the display on the interface, and sets the "call-for-people" function to the open state, so that the user can start calling a car for others.
[0042] Step S103: The system switches the icon of the "emergency contact notification" dual-state switching button from the icon in the current closed state (such as a bell icon with a prohibition symbol) to the icon in the open state (such as a normal bell icon), and updates the display on the interface, and opens the emergency contact notification function. When an abnormality occurs in the trip, the system will send a notification to the emergency contact person set by the call-for-people.
[0043] In one possible implementation, each identity is assigned independent storage, and data is stored in an encrypted manner. When communicating between identities, cross-sandbox communication is performed through verification of data sharing tags. When switching identities, dynamic permission loading can be performed, and only the permissions required by the current identity are loaded during switching.
[0044] The identity switching method provided in this embodiment can indicate the identity switching operation by the dual-state switching button operation, obtain operation information related to the identity switching (target object associated information), determine whether to switch the icon (representing different role states) corresponding to the identity according to the information, and directly switch from the current state to the target state if switching is required, thereby avoiding the time-consuming traditional account logout and re-login process and the whole process, and improving the identity switching efficiency.
[0045] In one possible implementation, the above step S102 includes:
[0046] Step S1021, determining the pressure on the dual-state switching button according to the operation information of the dual-state switching button.
[0047] Data related to the pressure is extracted from the obtained operation information of the dual-state switching button, and the size of the pressure applied by the user on the dual-state switching button is calculated by using a specific algorithm or data processing method. The pressure sensor can also be used for detection.
[0048] As an example, if the device is equipped with a pressure sensor, the raw pressure data when the user operates the two-state switching button is directly obtained from the sensor. Then the raw data is preprocessed such as filtering, calibration, etc. to eliminate noise and error, and finally the accurate pressure value is obtained. For example, on a smart phone, when the user touches the two-state switching button on the screen, the pressure sensor of the screen records the pressure data, and the system processes the data through a corresponding algorithm to obtain the actual pressure value.
[0049] In step S1022, when the pressure is less than the pressure threshold, it is determined to switch the icon corresponding to the two-state switching button.
[0050] The calculated user operation pressure is compared with the pre-set pressure threshold. If the operation pressure is less than the pressure threshold, it is determined that the icon switching condition is met, and it is determined that the icon corresponding to the two-state switching button needs to be switched.
[0051] In one scenario, the user clicks the switching button in the phone setting interface, and the pressure sensor of the phone screen records the raw pressure data when the user clicks. The system processes the data to obtain the pressure value applied by the user as 200 units (assuming the unit is a certain pressure measurement unit). Assuming that the pre-set pressure threshold is 300 units, the system compares the calculated pressure value 200 units with the pressure threshold 300 units, and finds that 200<300, which meets the condition that the pressure is less than the pressure threshold, so it is determined that the icon corresponding to the mute mode switching button needs to be switched. The system switches the icon.
[0052] The identity switching method provided in this embodiment can more accurately identify user intentions by determining the pressure according to the operation information of the two-state switching button and then judging whether to switch the icon, thereby avoiding triggering icon switching due to misoperation or other unintended operations and improving operation accuracy. Setting the pressure threshold as the judgment standard provides a new and personalized interaction method for users. Different users may have different operation habits and force, and this pressure-based judgment method can adapt to different users and improve the interaction experience.
[0053] In one possible implementation, the association information of the target object further includes position information of the target object; and the step S102 includes:
[0054] In step S1023, when the position information of the target object is within a pre-set geographic fence, it is determined to switch the icon corresponding to the two-state switching button.
[0055] The pre-set geographic fence can indicate a virtual area predefined on a map, which can be a circular, rectangular or polygonal area, and is used to determine whether the target object is within the area.
[0056] The position information of the target object is acquired and compared with a preset geofence range. If the position information of the target object falls within the preset geofence, it is determined that the icon switching condition is met, and it is determined that the icon corresponding to the dual-state switching button needs to be switched.
[0057] As an example, a smart bracelet worn by a user has a positioning function, and the preset geofence is an area in the user's home. When the user returns home, the smart bracelet acquires the position information of the user through GPS and compares it with the preset home geofence. Assuming that the home geofence is a circular area with a radius of 50 meters centered on the user's home. If the user's position coordinates fall within this circular area, the smart bracelet determines to switch the icon corresponding to the do-not-disturb mode switching button, switches the icon from a "non-disturb" icon (such as an icon with a sound) to a "do-not-disturb" icon (such as a bell icon with a prohibition symbol), and simultaneously turns on the do-not-disturb mode to avoid disturbing the user's rest.
[0058] The identity switching method provided in this embodiment combines the position information of the target object to determine whether to switch the icon, and can achieve precise control according to different geographical location scenarios. When the target object enters the preset geofence, the icon is automatically determined to be switched, without the need for manual operation by the user, thereby realizing automatic processing, providing a convenient interaction mode for the user, and saving the time and effort of the user.
[0059] In one possible implementation, the above method further includes:
[0060] In step S201, a shortcut menu is displayed when the pressure is not less than a pressure threshold value; wherein the shortcut menu includes: a history identity record, a permission description.
[0061] The shortcut menu can be a menu that quickly pops up on the interface, usually containing some commonly used function options or related information, facilitating quick access and operation by the user. The history identity record can be used to record different identity information that the user has used in the past, for example, in a car-hailing application, it can be the identity information of different contacts that the user has called for. The permission description can be an explanation and description of the permissions involved in the user's current operation or related functions, helping the user understand the operations he can perform and the restrictions he is subject to.
[0062] The system compares the pressure applied by the user to the dual-state switching button with a pre-set pressure threshold value, and if the pressure is not less than the pressure threshold value, a shortcut menu is popped up on the interface. The shortcut menu contains two items: a history identity record and a permission description, and the user can obtain relevant information or perform corresponding operations by viewing the shortcut menu.
[0063] The identity switching method provided in the embodiment displays the shortcut menu when the pressure is not less than the pressure threshold, provides clear operation feedback for the user, lets the user know clearly that the current operation does not achieve the expected result of icon switching, and guides the user to perform the next operation through the shortcut menu, avoiding the user from feeling confused due to no response to the operation.
[0064] In a possible implementation, the step S103 includes:
[0065] In step S1031, when the icon corresponding to the dual-state switching button indicates a passenger type icon, the icon corresponding to the dual-state switching button is switched from the passenger type icon to an icon indicating a driver type.
[0066] In step S1032, when the icon corresponding to the dual-state switching button indicates a driver type icon, the icon corresponding to the dual-state switching button is switched from the driver type icon to an icon indicating a passenger type.
[0067] The passenger type icon is used to represent an icon indicating that the current dual-state switching button is in a passenger state, and is usually associated with a normal user identity. The driver type icon is used to represent an icon indicating that the current dual-state switching button is in a driver state, and is usually associated with a user identity for operating on behalf of others.
[0068] When the dual-state switching button currently displays a passenger type icon, an icon switching operation is performed to change it to a driver type icon. This is usually used to represent the switching of a user identity or an operation mode.
[0069] When the dual-state switching button currently displays a driver type icon, an icon switching operation is performed to change it to a passenger type icon. This is usually used to represent the reverse switching of a user identity or an operation mode.
[0070] In one scenario, the user opens a car-hailing application, and the current dual-state switching button displays a passenger type icon (a normal human icon). The user clicks the button, and the application detects that the current icon is of a passenger type, and then performs step S1031 to switch the icon to a driver type icon (a human icon with a special mark), indicating that the user can now call a car on behalf of others.
[0071] The identity switching method provided in the embodiment directly displays the current identity state (passenger or driver) through an icon, so that the user can quickly identify the role without additional operations or memory, reducing the use threshold. Moreover, the method supports the interconversion between the passenger and driver states, covering the complete requirements in a multi-role scenario, and avoiding the problem that the user cannot complete the operation due to the lack of state.
[0072] In a possible implementation, the step S102 includes:
[0073] Step S1024, obtain the historical behavior data of the target object.
[0074] The historical behavior data can indicate various behavior records generated by the target object in the past use of the application or system, such as click operations, page browsing, dwell time, function use frequency, etc.
[0075] From the database, log file, etc. of the application or system, the behavior records of the target object in the past period of time are collected, which cover various operations and interaction information of the target object in the application.
[0076] Step S1025, training a neural network model according to the historical behavior data to obtain a behavior prediction model.
[0077] The obtained historical behavior data is preprocessed, such as data cleaning, feature extraction, etc., and then the processed data is input into the neural network model for training. By continuously adjusting the parameters of the neural network, the model can learn the patterns and rules in the historical behavior data, and finally obtain a behavior prediction model that can predict the behavior of the target object.
[0078] Step S1026, using the behavior prediction model, determining whether to switch the icon corresponding to the dual-state switch button according to the current behavior of the target object.
[0079] The current behavior data of the target object is obtained in real time and input into the trained behavior prediction model. The model analyzes and predicts the current behavior of the target object according to the learned patterns and rules, and outputs a prediction result. According to the prediction result, it is determined whether the icon corresponding to the dual-state switch button needs to be switched.
[0080] In one scenario, a ride-hailing application collects the behavior data of a call person in the past period of time, such as the call person frequently calling a car for multiple users between 9am and 11am, and frequently switching different passenger information, which includes click operations, passenger information switching frequency, etc. Using these historical behavior data to train a neural network model, the model learns that the call person has a higher call frequency in the morning and frequently switches the passenger information. When the call person opens the ride-hailing application around 9am and starts to frequently switch the passenger information, the application obtains the current behavior data of the call person and inputs it into the behavior prediction model. The model predicts that the call person may continue to call, and determines to switch the icon corresponding to the dual-state switch button from the call person type icon to an icon that emphasizes the efficiency of calling (for example, an icon with a fast switch passenger button), reminding the call person to call more efficiently.
[0081] The identity switching method provided in the embodiment can deeply understand the operation habit, preference and mode of a user by obtaining the historical behavior data of a target object, and provide a basis for personalized decision-making. The trained behavior prediction model is used to perform real-time prediction according to the current behavior of the target object, so as to determine whether to switch the icon corresponding to the dual-state switching button. The intelligent decision-making manner can respond to the user demand in advance, and improve the user experience.
[0082] In the embodiment, an identity switching device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, implementation of hardware, or a combination of software and hardware, is also possible and contemplated.
[0083] The identity switching device provided in the embodiment comprises: Figure 2 As shown in the figure, the identity switching device comprises: an acquisition module 201, configured to acquire associated information of a target object; wherein the associated information comprises operation information of a dual-state switching button; a determination module 202, configured to determine whether to switch an icon corresponding to the dual-state switching button according to the associated information of the target object; and a switching module 203, configured to switch the icon corresponding to the dual-state switching button from a current state to a target state if the icon corresponding to the dual-state switching button needs to be switched.
[0084] Further function descriptions of the above-mentioned various modules and units are the same as those of the corresponding embodiments, and will not be described again.
[0085] The identity switching device in the embodiment is presented in the form of a functional unit, and the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0086] The embodiment of the present application also provides a computer device with the identity switching device shown in the above-mentioned Figure 2 figure.
[0087] Please refer to Figure 3 , Figure 3 is a structural schematic diagram of a computer device provided in an optional embodiment of the present application, as Figure 3As shown, the computer device includes one or more processors 10, memory 20, and interfaces 30 for external devices such as a keyboard and a mouse and peripheral devices such as disk devices or other storage devices. One or more busses 10 can be used to implement the interface between the various circuits and components of the computer device. It will be appreciated that the bus 10 can be implemented using any one or more of a variety of bus or interconnect protocols, such as a Peripheral Component Interconnect (PCI), a Universal Serial Bus (USB), etc. In some embodiments, multiple buses can be used, such as an I / O bus, data bus, address bus, and the like. Although the various components of the computer device are shown separately from each other, it will be appreciated that the embodiments are not limited to monitoring systems in which the components are physically separate, and one or more of the components can be integrated in one or more of the other components, e.g., one or more of the components can be implemented as circuitry integrated in or with a processor, memory, or other component. Figure 3 The processor 10 is used in the embodiments to implement various functional units and / or methods described above.
[0088] The processor 10 can be a central processing unit, a network processing unit or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic device, a generic array logic or any combination thereof.
[0089] The memory 20 stores instructions executable by the at least one processor 10 for causing the at least one processor 10 to perform the methods described above.
[0090] The memory 20 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs, etc. The data storage area can store application data, etc. The memory 20 can include a high speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some alternative embodiments, the memory 20 can optionally include a memory that is remote from the processor 10, and can be connected to the computer device through a network. Examples of the network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and a combination thereof.
[0091] The memory 20 can include a volatile memory, such as a random access memory, and / or can include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. The memory 20 can also include an embedded dynamic random access memory (eDRAM), which is a type of random access memory that is embedded in a processor chip.
[0092] The computer device also includes a communication interface 30 for communicating with other devices and / or networks, such as a wide area network (WAN), a local area network (LAN), a personal area network (PAN), or the Internet or a combination of networks.
[0093] The embodiments of the present application further provide a computer readable storage medium, and the method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium and downloaded to a local storage medium through network, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, etc. Further, the storage medium can also include a combination of the above-mentioned memories. It can be understood that the computer, the processor, the microprocessor controller, or the programmable hardware includes a storage component that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.
[0094] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, the operation of the computer can invoke or provide the method and / or technical solutions according to the present application. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source file, executable file, installation package file, etc. Correspondingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.
[0095] Although the embodiments of the present application are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes fall within the scope defined by the appended claims.
Claims
1. A method for switching identities, characterized in that, The method includes: Obtain the association information of the target object; wherein, the association information includes operation information for the dual-state switching button; Based on the association information of the target object, determine whether to switch the icon corresponding to the dual-state switching button; If it is necessary to switch the icon corresponding to the dual-state switching button, switch the icon corresponding to the dual-state switching button from the current state to the target state.
2. The identity switching method according to claim 1, characterized in that, The step of determining whether to switch the icon corresponding to the dual-state switching button based on the association information of the target object includes: Determine the pressure applied to the dual-state toggle button based on the operation information received from the dual-state toggle button. When the pressure is less than the pressure threshold, the icon corresponding to the dual-state switching button is switched.
3. The identity switching method according to claim 1, characterized in that, The associated information of the target object also includes the location information of the target object; And based on the association information of the target object, determine whether to switch the icon corresponding to the dual-state switching button, including: When the location information of the target object is within the preset geofence, the icon corresponding to the dual-state switching button is switched.
4. The identity switching method according to claim 2, characterized in that, The method further includes: When the pressure is not less than the pressure threshold, a shortcut menu is displayed; wherein, the shortcut menu includes: historical identity records and permission descriptions.
5. The identity switching method according to claim 1, characterized in that, Switching the icon corresponding to the dual-state switching button from its current state to the target state includes: When the icon corresponding to the dual-state switching button is a passenger type icon, the icon corresponding to the dual-state switching button will be switched from a passenger type icon to an icon indicating a caller type. When the icon corresponding to the dual-state switching button indicates a caller-on-behalf icon, the icon corresponding to the dual-state switching button will be switched from a caller-on-behalf icon to a passenger-on-behalf icon.
6. The identity switching method according to claim 5, characterized in that, The step of determining whether to switch the icon corresponding to the dual-state switching button based on the association information of the target object includes: Obtain historical behavior data of the target object; Based on the historical behavior data, a neural network model is trained to obtain a behavior prediction model; Using the behavior prediction model, it is determined whether to switch the icon corresponding to the dual-state switching button based on the current behavior of the target object.
7. An identity switching device, characterized in that, The device includes: The acquisition module is used to acquire the association information of the target object; wherein, the association information includes operation information for the dual-state switching button; The determination module is used to determine whether to switch the icon corresponding to the dual-state switching button based on the association information of the target object; The switching module is used to switch the icon corresponding to the dual-state switching button from the current state to the target state if it is necessary to switch the icon.
8. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the identity switching method of any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the identity switching method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the identity switching method according to any one of claims 1 to 6.