CN110764847B - User information processing method, device, electronic equipment and storage medium - Google Patents

User information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110764847B
CN110764847B CN201910955226.XA CN201910955226A CN110764847B CN 110764847 B CN110764847 B CN 110764847B CN 201910955226 A CN201910955226 A CN 201910955226A CN 110764847 B CN110764847 B CN 110764847B
Authority
CN
China
Prior art keywords
user information
information
storage area
client
modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910955226.XA
Other languages
Chinese (zh)
Other versions
CN110764847A (en
Inventor
刘正阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910955226.XA priority Critical patent/CN110764847B/en
Publication of CN110764847A publication Critical patent/CN110764847A/en
Application granted granted Critical
Publication of CN110764847B publication Critical patent/CN110764847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a user information processing method, a device, an electronic device and a storage medium. The method is applied to the server and comprises the following steps: receiving an information viewing request sent by a client; determining a target type of the information viewing request; determining a target storage address corresponding to the information viewing request based on a corresponding relation between a preset type and the storage address; wherein the memory address includes: a storage address before information modification and a storage address after information modification; user information is acquired based on the target storage address, and the user information is returned to the client. According to the technical scheme provided by the embodiment of the disclosure, the user information to be audited and the user information which passes the audit are respectively stored, so that the user information before modification or after modification is returned from different storage areas according to different types of information viewing requests, and the user can be ensured to view the information after modification in time and the other users can be ensured to view the information which passes the audit.

Description

User information processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information processing applications, and in particular, to a user information processing method, apparatus, electronic device, and storage medium.
Background
Currently, when using an application, a user may edit and modify his own user information, such as modifying a user name or a personalized signature. In practical applications, the provider of the application needs to review the modified user information to make it conform to the specifications.
In the related art, the user information before modification is usually displayed before the verification is passed, and the user information after modification is displayed after the verification is passed. From the user's perspective, if the user information is unchanged after the modification operation is completed, the user may misuse the modification failure and perform the repeated operation, resulting in poor user experience.
Disclosure of Invention
The disclosure provides a user information processing method, a device, an electronic device and a storage medium, which at least solve the problem of repeated operation of a user caused by displaying user modification before modification during audit time. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a user information processing method, applied to a server, the method including:
receiving an information viewing request sent by a client;
determining a target type of the information viewing request;
determining a target storage address corresponding to the information viewing request based on a corresponding relation between a preset type and the storage address; wherein the memory address includes: a storage address before information modification and a storage address after information modification;
user information is acquired based on the target storage address, and the user information is returned to the client.
In one possible implementation, the method further includes:
receiving modified user information sent by a client;
and storing the modified user information into a preset first storage area, wherein the storage address of the information after modification is the address in the first storage area.
In one possible implementation manner, after the modified user information is stored in the preset first storage area, the method further includes:
judging whether the modified user information accords with a preset modification condition or not;
when the modification condition is met, replacing corresponding user information in a preset second storage area with the modified user information, and deleting the modified user information from the first storage area; the storage address before the information modification is the address in the second storage area;
and deleting the modified user information from the first storage area when the modification condition is not met.
In one possible implementation manner, after determining whether the modified user information meets a preset modification condition, the method includes:
based on the obtained judgment result, and a notification characterizing the judgment result is sent to the client.
In one possible implementation manner, after determining whether the modified user information meets the preset modification condition, and before obtaining the determination result, the method further includes:
and sending a notification to the client, wherein the notification characterizes that the user information is being modified.
In one possible implementation, the types include: the principal information request type and the other person information request type;
the determining the target storage address corresponding to the information viewing request based on the corresponding relation between the preset type and the storage address comprises the following steps:
when the target type is the principal information request type, determining whether user information corresponding to the information viewing request is stored in the first storage area; if yes, returning the corresponding user information to the client; if not, returning the user information corresponding to the information viewing request in the second storage area to the client;
and when the type of the information viewing request is the type of the information request of other people, returning the user information corresponding to the information viewing request in the second storage area to the client.
In one possible implementation manner, the returning, to the client, the user information corresponding to the information viewing request in the second storage area includes:
and returning the latest version of user information to the client under the condition that a plurality of versions of user information exist in the second storage area.
According to a second aspect of the embodiments of the present disclosure, there is provided a user information processing apparatus, applied to a server, the apparatus including:
the data receiving module is configured to execute information viewing requests sent by the receiving client;
a type determination module configured to perform determining a target type of the information viewing request;
the address determining module is configured to determine a target storage address corresponding to the information viewing request based on a corresponding relation between a preset type and the storage address; wherein the memory address includes: a storage address before information modification and a storage address after information modification;
and the data sending module is configured to acquire user information based on the target storage address and return the user information to the client.
In one possible implementation, the data receiving module is further configured to perform: receiving modified user information sent by a client;
the apparatus further includes an information storage module configured to perform: and storing the modified user information into a preset first storage area, wherein the storage address of the information after modification is the address in the first storage area.
In one possible implementation, the apparatus further includes a modification determination module configured to perform:
judging whether the modified user information accords with a preset modification condition or not;
when the modification condition is met, replacing corresponding user information in a preset second storage area with the modified user information, and deleting the modified user information from the first storage area; the storage address before the information modification is the address in the second storage area;
and deleting the modified user information from the first storage area when the modification condition is not met.
In one possible implementation, the data sending module is further configured to perform:
based on the judgment result obtained by the modification judgment module, a notification characterizing the judgment result is sent to the client.
In one possible implementation, the data sending module is further configured to perform:
and after the modification judging module judges whether the modified user information accords with a preset modification condition or not, before a judging result is obtained, sending a notification representing that the user information is being modified to the client.
In one possible implementation, the types include: the principal information request type and the other person information request type;
the address determination module comprises:
a storage determination unit configured to determine whether user information corresponding to the information viewing request is stored in the first storage area when the target type is a principal information request type;
a first return unit configured to perform, when storing user information corresponding to the information viewing request in the first storage area, return the corresponding user information to the client;
a second returning unit configured to return, to the client, user information corresponding to the information viewing request in the second storage area when the user information corresponding to the information viewing request is not stored in the first storage area; and when the type of the information viewing request is the type of the information request of other people, returning the user information corresponding to the information viewing request in the second storage area to the client.
In one possible implementation, the second return unit is specifically configured to perform:
and returning the latest version of user information to the client under the condition that a plurality of versions of user information exist in the second storage area.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the user information processing method as in the first aspect and any one of the possible implementations of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the user information processing method as in any one of the first aspect and possible implementations of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the operations performed by the user information processing method of any one of the first aspect and the possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the modified user information is stored independently, before the modified user information accords with the auditing of the modification condition, the information before modification (namely, the last auditing pass) is displayed to other users, and the modified information is displayed to the user, so that the user can see the modification effect after modification operation, the repeated modification of the user in the auditing process is avoided, the user information which is seen by other users is the information which passes the auditing, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an architecture for user information processing, shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a user information processing method according to an exemplary embodiment;
FIG. 3 is another flow diagram of a user information processing apparatus according to an exemplary embodiment;
fig. 4 is a schematic diagram showing a structure of a user information processing apparatus according to an exemplary embodiment;
fig. 5 is another structural diagram of a user information processing apparatus according to an exemplary embodiment;
fig. 6 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the embodiment of the present disclosure, a system related to a user information processing flow includes a client and a server, and a corresponding system architecture schematic diagram is shown in fig. 1, and includes a server device 10 and a client device 20.
The client device may be an electronic device such as a smart phone, a tablet computer, or a desktop computer, and the client refers to an application program installed on the electronic device; the specific form of the server equipment can be a specific server or a server cluster and the like. The server device and the client device may be communicatively connected via various types of networks, which is not limited in this specification.
Fig. 2 is a flowchart illustrating a user information processing method according to an exemplary embodiment, which is applied to the server device 10 shown in fig. 1.
Referring to fig. 1, a user information processing method may include steps S21 to S24:
in step S21, an information viewing request transmitted from the client is received.
The user can check the user information of the user or other people and can also modify the user information of the user.
When the user modifies his own user information, the client device 10 shown in fig. 1 may be used to perform a corresponding triggering operation on the client. And the client responds to the triggering operation of the characterization modification user information and sends the modified user information to the server. And the server receives and stores the modified user information.
In an embodiment, a first storage area and a second storage area are preset in the server, the first storage area stores the user information which is not yet obtained with the auditing result after modification, and the second storage area stores the user information which passes the auditing. After receiving the modified user information sent by the client, the server does not directly store the modified user information to the second memory, but stores the modified user information to the first memory.
In another embodiment, the server may audit the modified user information stored in the first memory, and determine whether the modified user information meets a preset modification condition.
If the modification condition is met, namely the auditing is passed, the corresponding user information in the second memory is replaced by modified user information, and the modified user information is deleted from the first memory; and if the modification condition is not met, namely the audit is not passed, deleting the modified user information from the first memory.
For example, the user a modifies the user name from "A1" to "A2" through an operation at the client, after receiving "A2" sent by the client, the server first saves "A2" to the first memory, then checks whether "A2" meets the user information specification, if so, i.e. the check passes, replaces "A1" in the second memory with "A2", and deletes "A2" in the first memory; if not, namely the audit is not passed, the A2 in the first memory is directly deleted.
In addition, in this embodiment, the server may also send a corresponding notification to the client during the auditing process.
In one example, the server may send a notification to the client that the token is being modified before the result of the audit is obtained. In this way, the client responds to the notification that the characterization sent by the server is being modified, and can display the prompt that the modified user information is being audited to the user, so that the user can know the audit progress of the modified user information.
In another example, after the server side examines the modified user information, if a determination result for determining whether the modified user information meets a preset modification condition is obtained, a notification for characterizing the determination result may be sent to the client side, to notify the client side that the examination is passed or not. In this way, the client responds to the notification of the characterization judgment result sent by the server, and can display the auditing result of the modified user information to the user.
In step S22, a target type of the information viewing request is determined.
In step S23, determining a target storage address corresponding to the information viewing request based on a preset correspondence between a type and the storage address; wherein the memory address includes: the memory address before information modification and the memory address after information modification.
The user can view the user information of the user or other people through the client. And the client responds to the triggering operation of the characterization and viewing of the user information and sends an information viewing request to the server.
In an embodiment, as described in step S21, the first memory and the second memory may be preset in the server, and the user information that has passed the audit and has not yet obtained the audit result after modification is stored in the server, so the server may obtain the user information from the second memory and the first memory according to the specific type of the request and send the user information to the client in response to the information review request sent by the client.
In an embodiment, the request types may include a principal information request type and a different person information request type, and the server returns the user information acquired from different storage addresses to the client according to different request types. Thus, before the modified user information passes the audit, the user can check the modified user information, and the user information still checked by other people is the user information before modification; after the modified user information passes the auditing, the user information and the other person can check the modified user information. Not only can the user information meeting the specification be viewed by other people, but also the modified information can be viewed by the other people.
When the target type is the personal information request type, the server determines whether user information corresponding to the request is stored in the first memory. If yes, returning the user information corresponding to the request in the first memory to the client; if not, returning the user information corresponding to the request in the preset second memory to the client.
For example, when the user a views his own user name through the client, the client will send an information viewing request to the server, where the request may specify the user ID of the viewer and the user ID of the viewed party, and after the server receives the request, the server may determine that the type of the request is to view the personal information according to the user IDs of the viewed party and the viewed party being the same. Therefore, the server side further determines whether the user name modified by the user A is stored in the first memory according to the user ID of the user A, if so, the server side returns the user name to the client side, if not, the user name of the user A2 is checked, and if the user name of the user A2 is deleted, the server side returns the user name of the user A stored in the second memory to the client side, wherein the user name of the user A is checked, and if so, the user name of the user A is checked, the server side returns the user name of the user A1 (checking is failed) or the user name of the user A2 (checking is passed).
When the type of the information viewing request is the type of the information request of other people, the user information corresponding to the request in the second memory can be directly returned to the client.
For example, when the user B views the user name of the user a through the client, the client sends an information viewing request to the server, where the request may specify the user ID of the viewer and the user ID of the viewed party, and after the server receives the request, the server may determine that the type of the request is to view information of other people according to the difference between the user IDs of the viewed party and the viewed party. Thus, the user name "A1" of the user a ("A2" passes before the audit) or "A2" ("A2" passes after the audit) is acquired from the second memory according to the user ID of the viewed party (user a).
In step S24, user information is acquired based on the target storage address, and the user information is returned to the client.
In one embodiment, the second memory may store multiple versions of user information.
For example, the initial user name of the user a is "A1", then the user modifies the user name to "A2" and passes the audit, then the user modifies the user name to "A3" again and is in the audit, so that 2 versions of the user information that has passed the audit, namely "A1" and "A2", are stored in the second memory, and the user information that has not yet obtained the audit result, namely "A3", is stored in the first memory.
Different version numbers can be allocated to the user information of each version, so that when the server returns the user information corresponding to the request in the preset second memory to the client, if the user information of a plurality of versions exists in the second memory, the user information of each version can be distinguished according to the version numbers, and the user information of the latest version is returned to the client.
The user information processing method provided in the present specification will be described with reference to a more specific example.
Fig. 3 is an interactive flowchart of a user information processing method in this example.
The user may edit or modify the user information:
and the user A performs operation on the client equipment to modify the user name, such as deleting the existing user name and inputting the modified user name, and the client receives triggering operation representing the modified user name and then sends the modified user name to the server.
The server side stores the modified user name in the storage area to be checked so that the modified user name can be returned to the client side of the user A before the checking result is obtained.
In addition, asynchronous auditing is carried out on the user names, if the auditing result is passed, the user names before modification in the audited storage area are replaced by the user names after modification, and the user names after modification stored in the storage area to be audited are deleted; if the auditing result is that the user name does not pass, the user name stored in the storage area to be audited is directly deleted.
Besides editing and modifying the user information, the user can also view the user information:
and the user A uses the client to check the user name of the user A or other users, and the used client responds to the triggering operation for characterizing and checking the user information and sends an information checking request to the server, wherein the request carries the user ID of the checked party and the user ID of the checked party.
After receiving the information viewing request, the server determines the request type according to the user IDs of the viewing party and the viewed party carried in the request.
If the user ID of the checking party is the same as that of the checked party, namely, the user A checks the user name of the user A, in order to enable the user A to check the user name after the last modification operation, the user name of the user A is firstly read from the to-be-checked storage area, and if the user name of the user A is not stored in the to-be-checked storage area, the user A can be considered to be not currently used for checking, so that the user name of the user A can be read from the checked storage area and returned to the client of the user A.
If the user ID of the viewing party is different from that of the viewed party, that is, the user a views the user name of the other user (assumed to be the user B), in order for the other user to view the user information which has passed the audit and meets the specification, the user name of the user B is directly read from the audited storage area regardless of whether the user B has the user name in the audit or not, and the user name is returned to the client of the user a.
Fig. 4 is a block diagram of a user information processing apparatus according to an exemplary embodiment, which may include a data receiving module 110, a type determining module 120, an address determining module 130, and a data transmitting module 140.
The data receiving module 110 is configured to execute an information viewing request sent by a receiving client;
the type determination module 120 is configured to perform determination of a target type of the information viewing request;
the address determining module 130 is configured to determine a target storage address corresponding to the information viewing request based on a preset correspondence between a type and the storage address; wherein the memory address includes: a storage address before information modification and a storage address after information modification;
the data sending module 140 is configured to perform obtaining user information based on the target storage address and return the user information to the client.
In one possible implementation, the data receiving module 140 is further configured to perform: receiving modified user information sent by a client;
referring to fig. 5, the apparatus further includes an information storage module 150 configured to perform: and storing the modified user information into a preset first storage area, wherein the storage address of the information after modification is the address in the first storage area.
In one possible implementation, referring to fig. 5, the apparatus further includes a modification judgment module 160 configured to perform:
judging whether the modified user information accords with a preset modification condition or not;
when the modification condition is met, replacing corresponding user information in a preset second storage area with the modified user information, and deleting the modified user information from the first storage area; the storage address before the information modification is the address in the second storage area;
and deleting the modified user information from the first storage area when the modification condition is not met.
In one possible implementation, the data sending module 140 is further configured to perform:
based on the judgment result obtained by the modification judgment module, a notification characterizing the judgment result is sent to the client.
In one possible implementation, the data sending module 140 is further configured to perform:
and after the modification judging module judges whether the modified user information accords with a preset modification condition or not, before a judging result is obtained, sending a notification representing that the user information is being modified to the client.
In one possible implementation, the types include: the principal information request type and the other person information request type;
the address determining module 130 includes:
a storage determination unit configured to determine whether user information corresponding to the information viewing request is stored in the first storage area when the target type is a principal information request type;
a first return unit configured to perform, when storing user information corresponding to the information viewing request in the first storage area, return the corresponding user information to the client;
a second returning unit configured to return, to the client, user information corresponding to the information viewing request in the second storage area when the user information corresponding to the information viewing request is not stored in the first storage area; and when the type of the information viewing request is the type of the information request of other people, returning the user information corresponding to the information viewing request in the second storage area to the client.
In one possible implementation, the second return unit is specifically configured to perform:
and returning the latest version of user information to the client under the condition that a plurality of versions of user information exist in the second storage area.
It is to be understood that, as two modules with independent functions, the information storage module 150 and the modification judgment module 160 may be configured in the apparatus at the same time as shown in fig. 5, or may be configured in the apparatus separately, so the configuration shown in fig. 5 should not be construed as limiting the embodiment of the disclosure.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 60 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
Referring to fig. 6, the electronic device 60 may include one or more of the following components: a processing component 610, a memory 620, a power component 630, a multimedia component 640, an audio component 650, an input/output (I/O) interface 660, a sensor component 670, and a communication component 680.
The processing component 610 generally controls overall operation of the electronic device 60, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 610 may include one or more processors 611 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 610 can include one or more modules that facilitate interactions between the processing component 610 and other components. For example, the processing component 610 may include a multimedia module to facilitate interaction between the multimedia component 640 and the processing component 610.
The memory 620 is configured to store various types of data to support operations at the electronic device 60. Examples of such data include instructions for any application or method operating on electronic device 60, contact data, phonebook data, messages, pictures, video, and the like. The memory 620 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 630 provides power to the various components of the electronic device 60. The power components 630 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 60.
The multimedia component 640 includes a screen between the electronic device 60 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 640 includes a front-facing camera and/or a rear-facing camera. When the electronic device 60 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 650 is configured to output and/or input audio signals. For example, the audio component 650 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 60 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 620 or transmitted via the communication component 680. In some embodiments, audio component 650 further comprises a speaker for outputting audio signals.
The I/O interface 660 provides an interface between the processing component 610 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 670 includes one or more sensors for providing status assessment of various aspects of the electronic device 60. For example, the sensor assembly 670 may detect an on/off state of the electronic device 60, a relative positioning of components such as a display and keypad of the electronic device 60, a change in position of the electronic device 60 or a component of the electronic device 60, the presence or absence of a user's contact with the electronic device 60, an orientation or acceleration/deceleration of the electronic device 60, and a change in temperature of the electronic device 60. The sensor assembly 670 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 670 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 670 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 680 is configured to facilitate wired or wireless communication between the electronic device 60 and other devices. The electronic device 60 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 680 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 680 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 60 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described methods.
In an embodiment of the present disclosure, there is also provided a non-transitory computer readable storage medium, such as memory 620, comprising instructions executable by processor 611 of electronic device 60 to perform the method of user information processing described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. In an embodiment of the present disclosure, there is also provided an application program, which when executed by a processor of an electronic device, enables the electronic device to perform the above-described user information processing method, so as to obtain the same technical effects.
In an embodiment of the present disclosure, there is also provided a computer program product that, when executed by a processor of an electronic device, enables the electronic device to perform the above-described user information processing method to obtain the same technical effects.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for processing user information, which is applied to a server, the method comprising:
receiving an information viewing request sent by a client;
determining a target type of the information viewing request;
determining a target storage address corresponding to the information viewing request based on a corresponding relation between a preset type and the storage address; wherein the target storage address includes: a storage address before information modification and a storage address after information modification;
when the target type is the principal information request type, determining whether user information corresponding to the information viewing request is stored in a first storage area; if yes, returning the corresponding user information to the client; if not, returning the user information corresponding to the information viewing request in the second storage area to the client;
and when the type of the information viewing request is the type of the information request of other people, returning the user information corresponding to the information viewing request in the second storage area to the client, wherein the storage address after the information modification is the address in the first storage area, and the storage address before the information modification is the address in the second storage area.
2. The method according to claim 1, wherein the method further comprises:
receiving modified user information sent by a client;
and storing the modified user information to a preset first storage area.
3. The method of claim 2, wherein after storing the modified user information in a preset first storage area, the method further comprises:
judging whether the modified user information accords with a preset modification condition or not;
when the modification condition is met, replacing corresponding user information in a preset second storage area with the modified user information, and deleting the modified user information from the first storage area;
and deleting the modified user information from the first storage area when the modification condition is not met.
4. A method according to claim 3, wherein after determining whether the modified user information meets a preset modification condition, the method comprises:
based on the obtained judgment result, and a notification characterizing the judgment result is sent to the client.
5. A method according to claim 3, wherein after determining whether the modified user information meets a preset modification condition, and before obtaining a determination result, the method further comprises:
and sending a notification to the client, wherein the notification characterizes that the user information is being modified.
6. The method of claim 1, wherein the returning, to the client, the user information corresponding to the information viewing request in the second storage area includes:
and returning the latest version of user information to the client under the condition that a plurality of versions of user information exist in the second storage area.
7. A user information processing apparatus, applied to a server, comprising:
the data receiving module is configured to execute information viewing requests sent by the receiving client;
a type determination module configured to perform determining a target type of the information viewing request;
the address determining module is configured to determine a target storage address corresponding to the information viewing request based on a corresponding relation between a preset type and the storage address; wherein the target storage address includes: a storage address before information modification and a storage address after information modification;
the address determination module comprises:
a storage determination unit configured to determine whether user information corresponding to the information viewing request is stored in the first storage area when the target type is the principal information request type;
a first return unit configured to perform, when storing user information corresponding to the information viewing request in the first storage area, return the corresponding user information to the client;
a second returning unit configured to return, to the client, user information corresponding to the information viewing request in a second storage area when the user information corresponding to the information viewing request is not stored in the first storage area; and when the type of the information viewing request is the type of the information request of other people, returning the user information corresponding to the information viewing request in the second storage area to the client.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the data receiving module is further configured to perform: receiving modified user information sent by a client;
the apparatus further includes an information storage module configured to perform: and storing the modified user information into a preset first storage area, wherein the storage address of the information after modification is the address in the first storage area.
9. The apparatus of claim 8, further comprising a modification judgment module configured to perform:
judging whether the modified user information accords with a preset modification condition or not;
when the modification condition is met, replacing corresponding user information in a preset second storage area with the modified user information, and deleting the modified user information from the first storage area; the storage address before the information modification is the address in the second storage area;
and deleting the modified user information from the first storage area when the modification condition is not met.
10. The apparatus of claim 9, further comprising a first data transmission module configured to perform:
based on the judgment result obtained by the modification judgment module, a notification characterizing the judgment result is sent to the client.
11. The apparatus of claim 9, further comprising a second data transmission module configured to perform:
and after the modification judging module judges whether the modified user information accords with a preset modification condition or not, before a judging result is obtained, sending a notification representing that the user information is being modified to the client.
12. The apparatus according to claim 7, wherein the second return unit is specifically configured to perform:
and returning the latest version of user information to the client under the condition that a plurality of versions of user information exist in the second storage area.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the user information processing method of any one of claims 1 to 6.
14. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the user information processing method of any one of claims 1 to 6.
CN201910955226.XA 2019-10-09 2019-10-09 User information processing method, device, electronic equipment and storage medium Active CN110764847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910955226.XA CN110764847B (en) 2019-10-09 2019-10-09 User information processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910955226.XA CN110764847B (en) 2019-10-09 2019-10-09 User information processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110764847A CN110764847A (en) 2020-02-07
CN110764847B true CN110764847B (en) 2023-06-27

Family

ID=69330998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910955226.XA Active CN110764847B (en) 2019-10-09 2019-10-09 User information processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110764847B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182027B (en) * 2020-09-11 2024-03-01 北京达佳互联信息技术有限公司 Information query method, device, electronic equipment and storage medium
CN113285912A (en) * 2020-12-28 2021-08-20 常熟昊虞电子信息科技有限公司 Security management method and device for monitoring content and cloud server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970284A (en) * 2012-11-05 2013-03-13 北京奇虎科技有限公司 User information processing method and server
CN103701844A (en) * 2012-11-05 2014-04-02 北京奇虎科技有限公司 User information management method and system
CN107888761A (en) * 2017-10-20 2018-04-06 广东欧珀移动通信有限公司 User name amending method, device, mobile terminal and readable storage medium storing program for executing
CN108319864A (en) * 2018-01-17 2018-07-24 链家网(北京)科技有限公司 A kind of information inspection control method and device
CN109753621A (en) * 2019-01-04 2019-05-14 北京字节跳动网络技术有限公司 User information processing method, device, electronic equipment and readable storage medium storing program for executing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100325556A1 (en) * 2009-06-19 2010-12-23 Telefonaktiebolaget Lm Ericsson (Publ) Method and device for modifying a personal data repository in a network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970284A (en) * 2012-11-05 2013-03-13 北京奇虎科技有限公司 User information processing method and server
CN103701844A (en) * 2012-11-05 2014-04-02 北京奇虎科技有限公司 User information management method and system
CN107888761A (en) * 2017-10-20 2018-04-06 广东欧珀移动通信有限公司 User name amending method, device, mobile terminal and readable storage medium storing program for executing
CN108319864A (en) * 2018-01-17 2018-07-24 链家网(北京)科技有限公司 A kind of information inspection control method and device
CN109753621A (en) * 2019-01-04 2019-05-14 北京字节跳动网络技术有限公司 User information processing method, device, electronic equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110764847A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US20170171321A1 (en) Methods and devices for managing accounts
CN107959757B (en) User information processing method and device, APP server and terminal equipment
CN107147815B (en) Call processing method and device based on taxi taking
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN110764847B (en) User information processing method, device, electronic equipment and storage medium
CN107885016B (en) Holographic projection method and device
CN114915923B (en) 5G message service triggering method and device, electronic equipment and storage medium
CN107395624B (en) Information processing method and device
CN110852163A (en) Binding method and device
CN109246094B (en) User terminal verification method, device and storage medium
CN106506808B (en) Method and device for prompting communication message
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN110769311A (en) Method, device and system for processing live data stream
CN114124462B (en) Verification code transmission method and device, electronic equipment and storage medium
CN106354532B (en) Application account information processing method and device
CN105607958B (en) Information input method and device
CN109992937B (en) Identity authentication method and identity authentication device
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN109873823B (en) Verification method and device, electronic equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN110740360B (en) Multimedia resource playing method and device
CN109151605B (en) Video comment content sending method and device and storage medium
CN107295144B (en) Method and device for deleting contact number

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant