CN103220327B - user information storage method and device - Google Patents

user information storage method and device Download PDF

Info

Publication number
CN103220327B
CN103220327B CN201310067509.3A CN201310067509A CN103220327B CN 103220327 B CN103220327 B CN 103220327B CN 201310067509 A CN201310067509 A CN 201310067509A CN 103220327 B CN103220327 B CN 103220327B
Authority
CN
China
Prior art keywords
user profile
link sequence
chained address
user
information
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
CN201310067509.3A
Other languages
Chinese (zh)
Other versions
CN103220327A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310067509.3A priority Critical patent/CN103220327B/en
Publication of CN103220327A publication Critical patent/CN103220327A/en
Application granted granted Critical
Publication of CN103220327B publication Critical patent/CN103220327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides user information storage method and device.Described method includes: generate user profile link sequence, and described user profile link sequence is by identifying the chained address storing position of user profile and forming for separating the default separator of different linking address;Described user profile link sequence being sent and store to server, described user profile link sequence is stored in server the aiming field set.The present invention can simplify the operation of server end, promotes memory space utilization rate and versatility.

Description

User information storage method and device
Technical field
The present invention relates to field of computer technology, particularly relate to user information storage method, and a kind of user profile Storage device.
Background technology
In instant messaging product (IM, the Instant Messaging) field of mobile Internet, all can relate to for The representing, add, revise or delete of the operation of user profile, especially user's head portrait.
As it is shown in figure 1, give the system architecture diagram of user profile storage.When user needs to add head portrait, apply journey Picture is uploaded to custom system server by sequence client, and this picture is stored Individual information service by custom system server Device, and generate one to should picture storage position download link, then this download link is stored in customer data base.
The storage organization of customer data base is the corresponding memory space of each registered users, and this memory space includes again Multiple fields, under the application scenarios of single user single head picture, a field is for storing the head portrait of user, and other fields are used for depositing The information such as the signature of storage user and ID.Under the application scenarios of the many head portraits of single user, head portrait can be stored by the following two kinds of programs:
Scheme 1, in the memory space of user, increase new field, each field stores a head portrait of user Download link, each field name is equivalent to store the mark of download link in the field.Such as field name icon1 mark the The download link of one head portrait, the download link of icon2 second head portrait of mark.When user asks a newly-increased head portrait, if There is not untapped field name in the memory space of user, then custom system server needs to be upgrading change, user simultaneously Data base is also required to do the change operation increasing field.
Scheme 2, use the form of universal architectureization storage, this reference format of such as json, multiple by same user Multiple download link of head portrait and the mark of correspondence thereof store in the existing field of in this user storage space.
Present in background above technology, problem is:
In scheme 1, the judgement operation that during newly-increased head portrait, custom system server is done, it is achieved the most loaded down with trivial details fallibility of logic, Secondly, if there is currently no untapped field name, then the change of custom system server and customer data base can cause one The user fixed time services the most unavailable, and in practice, for millions user, the time of terminal service can reach N minute Level.
Scheme 2 can be avoided the change of frequently upgrading that custom system server and customer data base cause because increasing field More, however it is necessary that the download link into each head portrait increases the identification information of auxiliary, memory space utilization rate is the highest, and stores Form is specific reference format, and versatility is poor.
Summary of the invention
Embodiments provide user information storage method, it is possible to simplify the operation of server end, promote storage sky Between utilization rate and versatility.
The embodiment of the present invention additionally provides user information storage, in order to ensure said method application in practice and Realize.
In order to solve the problems referred to above, the embodiment of the invention discloses a kind of user information storage method, described method includes:
Generating user profile link sequence, described user profile link sequence is by the chain of the storage position identifying user profile Ground connection location and for separate different linking address default separator composition;
Described user profile link sequence being sent and store to server, described user profile link sequence is stored in The aiming field set in server.
The embodiment of the invention also discloses a kind of user information storage method, described method includes:
Receiving the user profile link sequence that client sends, described user profile link sequence is by identifying user profile Store the chained address of position and for separating the default separator composition of different linking address;
Described user profile link sequence is stored the aiming field set.
The embodiment of the invention also discloses a kind of user information storage, described device includes:
Sequence generating module, is used for generating user profile link sequence, and described user profile link sequence is by identifying user Information storage position chained address and for separate different linking address default separator composition;
Sequence sending module, for the link sequence transmission of described user profile is stored to server, described user Info Link sequence is stored in server the aiming field set.
The embodiment of the invention also discloses a kind of user information storage, described device includes:
Sequential reception module, for receiving the user profile link sequence that client sends, described user profile link sequence Arrange the chained address by the storage position of mark user profile and form for separating the default separator of different linking address;
Memory module, for storing, by described user profile link sequence, the aiming field set.
Compared with background technology, the embodiment of the present invention has the advantage that
The embodiment of the present invention uses the most unified separator to distinguish the link of storage different head portraits in the same field Address, can reduce, without generating other accessory ID information, the auxiliary information generated compared to the scheme 2 of background technology Amount, improves memory space utilization rate and versatility.
Accompanying drawing explanation
Fig. 1 is the system architecture diagram of user profile storage in background technology;
Fig. 2 is the flow chart of a kind of user information storage method of the embodiment of the present invention;
Fig. 3 is the flow chart of the another kind of user information storage method of the embodiment of the present invention;
Fig. 4 is the structured flowchart of a kind of user information storage of the embodiment of the present invention;
Fig. 5 is Fig. 4 shown device structured flowchart under the information scene that Adds User;
Fig. 6 is Fig. 4 shown device structured flowchart under deleting user profile scene;
Fig. 7 is the structured flowchart of the another kind of user information storage of the embodiment of the present invention.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the embodiment of the present invention, feature and advantage to become apparent from, below in conjunction with the accompanying drawings and The embodiment of the present invention is described in further detail by detailed description of the invention.
With reference to Fig. 2, it is shown that the flow chart of a kind of user information storage method of the embodiment of the present invention, specifically can include Following steps:
Step 101, generation user profile link sequence, described user profile link sequence is by the storage identifying user profile The chained address of position and for separating the default separator composition of different linking address.
In the embodiment of the present invention, a user can be to there being multiple user profile, and user profile can be the head of user Picture, i.e. one user can be to there being multiple head portrait;User profile can also be other relevant informations of user, the back of the body of such as chatting Scape picture, for application programs such as chat tools, user can corresponding multiple chat background pictures, user can arbitrarily cut Change current chat background picture.
In the embodiment of the present invention, the chained address of the storage position of mark user profile is saved in user profile link sequence In, link sequence can preserve multiple chained address, in addition to chained address, link sequence also includes preset separation Symbol, presets separator in order to separate different chained addresses.
The embodiment of the present invention can include two kinds of application scenarios, and one is Adding User information when, according to newly-increased User profile generate new user profile link sequence;One is deleting user profile when, deletes according to user's request The user profile removed, generates new link sequence.
In embodiments of the present invention, under the application scenarios of the information of Adding User, described generation user profile link sequence For:
Sub-step S11, send to server and Add User information;
The newly-increased chain ground connection of the storage position of the information that Adds User described in the mark that sub-step S12, reception server return Location;
Sub-step S13, by described newly-increased chained address splicing the upper user profile once generated link sequence in.
Server i.e. custom system server, when user needs newly added user profile, by application client to Custom system server sends user profile and adds instruction, carries instruction type and the information that Adds User, instruction class in this instruction Type i.e. adds new user profile.
The storage of user profile includes the preservation to user profile, and the guarantor of the chained address corresponding to user profile Depositing, user profile is preserved by custom system server.
User profile, after receiving user profile, is preserved by custom system server.User profile can preserve In a preset information database, or another is in the subscriber information server storing user profile.Such as Fig. 1 institute Show, can corresponding to the information storage means of the embodiment of the present invention user profile storage system architecture, application program visitor User profile is sent to custom system server by family end, and user profile is saved in Individual information service by custom system server Device, is saved in corresponding chained address in the customer data base of custom system server.
After user profile is preserved, the position that custom system server is stored according to the information of Adding User, enter One step generates the newly-increased chained address of corresponding described storage position, that is to say download link.According to chained address, just may determine that The particular location of user profile storage, can extract user profile further.
In an advantageous embodiment, described sub-step S13 may include that
Sub-step S11 ' if there is at least one chain ground connection in the described last user profile link sequence generated Location, then by the splicing of newly-increased chained address after any one separator or by newly-increased chained address insertion initial position, And after described newly-increased chained address, insert separator;
Sub-step S12 ' if there is not chained address, then by institute in the described last user profile link sequence generated State newly-increased chained address and insert the initial position set, and after described newly-increased chained address, insert separator.
If user is to add user profile for the first time, then the last user profile link sequence generated does not comprises link Address, user profile link sequence is empty sequence, and newly-increased chained address now can be inserted the initial position of link sequence, and And after the chained address inserted, insert and preset separator.Such as, the chained address that certain user's head portrait is corresponding is Http:// www.baidu.com/img/baidu_sylogo1.gif, obtains new user profile after splicing empty sequence Link sequence is " http://www.baidu.com/img/baidu_sylogo1.gif;”.
If user is not to add user profile for the first time, then the last user profile link sequence generated comprises at least One chained address.
When user profile link sequence comprises a chained address, user profile link sequence comprises a separation Symbol, such as " http://www.baidu.com/img/baidu_sylogo1.gif;”.When splicing newly-increased link sequence, can So that chained address splicing is linked after initial position or last separator of sequence in user profile.Such as new chain Ground connection location is http://www.163.com/img/163_sylogo1.gif, newly-increased chained address is spliced to initial position and obtains It is " http://www.163.com/img/163_sylogo1.gif to new link sequence;Http:// www.baidu.com/ img/baidu_sylogo1.gif;”.It is spliced to newly-increased chained address, after last separator, new use to be obtained Family Info Link sequence is " http://www.baidu.com/img/baidu_sylogo1.gif;Http: // www.163.com/img/163_sylogo1.gif;”.
When user profile link sequence comprises multiple chained address, link sequence comprises multiple separator, such as " http://www.baidu.com/img/baidu_sylogo1.gif;Http:// www.163.com/img/163_ sylogo1.gif;Two separators are comprised in ".When splicing newly-increased link sequence, newly-increased chained address can be spliced in institute State after initial position or any one default separator of link sequence.Such as increase chained address newly and be http: // Www.sina.com/img/sina_sylogo1.gif, is spliced to newly-increased chained address initial position and obtains new link sequence It is classified as " http://www.sina.com/img/sina_sylogo1.gif;Http:// www.baidu.com/img/baidu_ sylogo1.gif;Http:// www.163.com/img/163_sylogo1.gif;”.Newly-increased chained address is spliced to first After individual default separator, new link sequence can be obtained for " http://www.baidu.com/img/baidu_ sylogo1.gif;Http:// www.sina.com/img/sina_sylogo1.gif;Http:// www.163.com/img/ 163_sylogo1.gif;”.It is spliced to newly-increased chained address, after second default separator, new link sequence to be obtained It is classified as " http://www.sina.com/img/sina_sylogo1.gif;Http:// www.163.com/img/163_ sylogo1.gif;Http:// www.baidu.com/img/baidu_sylogo1.gif;”.
In practical implementations, when link sequence comprises multiple chained address, certain being preferably inserted into can be preset After individual default separator, this is not limited by the embodiment of the present invention.When user profile link sequence with the addition of multiple link During address, link sequence is the link sequence carrying out the multiple chained addresses composition being spaced with default separator.Therefore, the present invention Embodiment can use the most unified separator to distinguish the chained address of storage different head portraits in the same field, compared to The scheme 1 of background technology, the embodiment of the present invention is when newly-increased head portrait, and server only needs to perform simple concatenation, it is not necessary to enter The judgement of row complexity and the operation of increase field, simplify the operation of server end.
In the embodiment of the present invention, default separator can be branch (;), it is also possible to it is quotation marks (" ") etc., in concrete reality In Xian, can according to concrete environment and user need set.
Such as, the chained address of 4 head portraits that certain user is corresponding is respectively http://a.com/1.jpg, http: // A.com/2.jpg, http://a.com/3.jpg and http://a.com/4.jpg.According to the scheme 2 of background technology, with json As a example by this reference format, need to generate the mark that each chained address is corresponding respectively, respectively icon1, icon2, icon3 and Icon4, the form that multiple head portraits are stored for " icon1 ": " http://a.com/1.jpg ", " icon2 ": " Http:// a.com/2.jpg ", " icon3 ": " http://a.com/3.jpg ", " icon4 ": " http://a.com/ 4.jpg″}.According to the embodiment of the present invention, link sequence can be expressed as: http://a.com/1.jpg;Http:// a.com/ 2.jpg;Http:// a.com/3.jpg;Http:// a.com/4.jpg.Therefore, can nothing compared to the scheme 2 of background technology Other accessory ID information need to be generated, reduce the auxiliary quantity of information generated, improve memory space utilization rate and versatility.
In embodiments of the present invention, the basis of concatenation is the last user profile generated link sequence, has one Plant special circumstances, the most just during login application program client, the now acquisition of the last user profile link sequence generated Method is:
Sub-step S21, to server send login authentication information;
The initialization information that sub-step S22, reception server send, carries described last raw in described initialization information The user profile link sequence become.
When user uses certain terminal (such as mobile phone, PC etc.) login application program client, pass through client Login authentication information (such as including ID and password etc.) is sent, user when server logs according to user to server Mark, returns initialization information and links sequence to client, the user profile carrying described last generation in initialization information.
Outside divided by upper this special circumstances, during logining successfully and keeping logging status, terminal often generates once User profile link sequence can send while server storage, is also carried out storage in this locality, needs when next time When generating user profile link sequence, directly obtain in this locality, or terminal often generate a user profile link sequence, , can not also obtain to server request when needing to generate user profile link sequence next time locally stored.
In embodiment of the present invention another kind application scenarios, when user profile is deleted, described generation user profile Link sequence is:
Sub-step S31, the reception removal request to user profile, according in the user profile link sequence that the last time generates The order of each chained address, extracts corresponding user profile and is shown;
Sub-step S32, the selection request of the reception user profile to showing, and believe according to the described user selected in request Breath, deletes chained address and the separator of correspondence in the upper user profile once generated link sequence.
Application client receives the head portrait of user and deletes instruction request, and according to the local chained address preserved and use The corresponding relation of family information is shown.It is to say, user adds after user profile in client, can by user profile with The corresponding relation of chained address preserves, if the user while the client adding user profile is submitted to deletes asking of user profile Ask, then can directly be shown in the local user profile corresponding according to chained address extraction;If user adds user profile Client and request delete user profile client be not same, then can according to chained address, ask custom system Server returns user profile.
In the embodiment of the present invention, described extract corresponding user profile be shown into:
If there is the corresponding relation of chained address and user profile in sub-step S41 client, the use generated according to the last time The chained address comprised in the Info Link sequence of family, extracts corresponding user profile and is shown;
If sub-step S42 client does not exist the corresponding relation of chained address and user profile, then generate according to the last time User profile link sequence in the chained address that comprises, return corresponding user profile to server request, and to returning User profile is shown.
In practical implementations, can first judge whether active client exists pass corresponding with user profile, chained address System, if existing, then directly can extract corresponding user profile in client according to the chained address comprised in link sequence, And be shown;If client does not exist the corresponding relation of chained address and user profile, then can wrap according in link sequence The chained address contained, returns corresponding user profile to custom system server request, and custom system server is according to chain ground connection Location, in corresponding user profile storage server or data base, extracts corresponding user profile, and returns to client and carry out Show.
User can select user profile to be deleted in the user profile shown, client receives user profile Selection request after, link sequence is deleted the chained address of correspondence, and is updated to new user profile link sequence, deleting While the chained address that user profile is corresponding, also need to delete the default separator that this chained address is corresponding.
When user profile is deleted, also relate to the acquisition of the user profile link sequence of last generation, and It is similar to during the information that hereinbefore Adds User, there is also the acquisition mode in the case of special circumstances and no special, repeat no more here.
Step 102, described user profile link sequence is sent to server store, described user profile link sequence Row are stored in server in the aiming field set.
After link sequence is updated by client, it is sent to server and preserves.
In the embodiment of the present invention, custom system server can distribute one for each user in its customer data base Individual memory space, can be with a preset aiming field in memory space, and this aiming field is used for storing user profile link sequence.
For different users, the memory space of user can be marked with ID.The storage of each user is empty Between can also preset multiple fields in addition to aiming field, such as, for storing the subsegment etc. of user's signature and ID. Wherein, each field can be identified with field name, can find mesh by the field name of known aiming field Marking-up section.
As a example by user profile is for user's head portrait, when memory space includes multiple field, field name " ID " mark storage The field of user name, the field of field name " icon " mark storage user's head portrait, ID is amy.According to ID amy Can first find out the memory space that active user is corresponding, the target of storage user's head portrait can be found according to field name " icon " Field.
Under the scene of the information of Adding User, the user profile of generation is linked sequence and is sent to server by client, Can carry the ID of active user when sending user profile link sequence, server finds currently according to ID After aiming field corresponding to user, can be according to the user profile link in new user profile link sequence pair aiming field Sequence is updated, and user profile link sequence that will be new replaces original user profile link sequence.So far, just complete Process to user profile storage.
Under the scene deleting user profile, the new user profile link sequence that client generates after deleting user profile Row are sent to server, and server searches the target word of active user according to the ID that user profile link sequence is carried Section, stores new user profile link sequence in the aiming field of this user, covers the link sequence of last time generation.? Actual realizing, custom system server can also delete, further according to the chained address being deleted, preserved corresponding User profile, thus complete the deletion process of user profile.
In order to make those skilled in the art be better understood by the embodiment of the present invention, use another embodiment, from server A kind of user information storage method of the embodiment of the present invention is illustrated by the operation of end.
With reference to Fig. 3, it is shown that the flow chart of the another kind of user information storage method of the embodiment of the present invention, specifically can wrap Include following steps:
The user profile link sequence that step 201, reception client send, described user profile link sequence is by identifying use Family information storage position chained address and for separate different linking address default separator composition.
Step 202, by described user profile link sequence store one set aiming field in.
Before receiving the user profile link sequence that client sends, described method can also include:
Receive the information that Adds User that client sends;
For the information distribution storage position that Adds User;
The newly-increased chained address of the storage position of the information that Adds User described in mark is sent to client.
Before receiving the user profile link sequence that client sends, described method can also include:
The login authentication information that detection client sends;
Return initialization information to client, described initialization information carries last generation in described aiming field User profile link sequence.
Under the application scenarios deleting user profile, before receiving the user profile link sequence that client sends, described Method also includes:
Receive the user profile acquisition request carrying chained address that client sends;
Return user profile to client and obtain the user profile that the chained address carried in request is identified.
Information storage means described in the present embodiment perform at server end, and relevant content is referred to embodiment 1 Describing, here is omitted.
Visible, the embodiment of the present invention can use the most unified separator to distinguish storage different use in the same field The chained address of family information, compared to the scheme 1 of background technology, the embodiment of the present invention is when newly-increased head portrait, and server only needs to hold The simple concatenation of row, it is not necessary to carry out the judgement of complexity and increase the operation of field, simplifying the operation of server end;Compare Scheme 2 in background technology can reduce the auxiliary quantity of information generated without generating other accessory ID information, improve and deposit Storage space availability ratio and versatility.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but this area Technical staff should know, the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know, description Described in embodiment belong to preferred embodiment, involved action and the module not necessarily embodiment of the present invention is musted Must.
With reference to Fig. 4, it is shown that the structured flowchart of a kind of user information storage of the embodiment of the present invention, specifically can wrap Include with lower module:
Sequence generating module 301, is used for generating user profile link sequence, and described user profile link sequence is by identifying use Family information storage position chained address and for separate different linking address default separator composition;
Sequence sending module 302, for the link sequence transmission of described user profile is stored to server, described use Family Info Link sequence is stored in server in the aiming field set.
As it is shown in figure 5, under the scene of the information of Adding User, described sequence generating module 301 includes:
Newly-added information sends submodule 3011, for sending, to server, the information that Adds User;
Address receives submodule 3012, for receiving the storage position of the information that Adds User described in the mark that server returns Newly-increased chained address;
Splicing submodule 3013, for linking sequence by the splicing of described newly-increased chained address in the upper user profile once generated In row.
In the embodiment of the present invention, splicing submodule 3013 may include that
First splicing subelement, for when having there is at least one in the described last user profile link sequence generated During chained address, the splicing of described newly-increased chained address or is inserted setting initial position after any one separator, And after described newly-increased chained address, insert separator;
Second splicing subelement, for when there is not chained address in the described last user profile link sequence generated Time, described newly-increased chained address is inserted and sets initial position, and after described newly-increased chained address, insert separator.
As shown in Figure 6, under the scene deleting user profile, described sequence generating module 301 includes:
Show submodule 3014, for receiving the removal request to user profile, the user profile generated according to the last time The order of each chained address in link sequence, extracts corresponding user profile and is shown;
Delete submodule 3015, for receiving the selection request to the user profile shown, and select request according to described In user profile, the upper user profile once generated link sequence in delete correspondence chained address and separator.
In the embodiment of the present invention, show that submodule 3014 may include that
First shows subelement, during for there is the corresponding relation of chained address and user profile when client, according to upper The chained address comprised in the user profile link sequence once generated, extracts corresponding user profile and is shown;
Second shows subelement, during for there is not the corresponding relation of chained address and user profile when client, according to The chained address comprised in the last user profile link sequence generated, returns corresponding user profile to server request, And the user profile returned is shown.
In embodiments of the present invention, the basis generating user profile link sequence is the last user profile generated link , there is a kind of special situation in sequence, the most just during login application program client, and the now last user profile chain generated Connect sequence to need to obtain, therefore in the device shown in Fig. 5 and Fig. 6, it is also possible to including from server end:
Checking information sending module, for sending login authentication information to server;
Initialization information receiver module, for receiving the initialization information that server sends, takes in described initialization information With the described last user profile link sequence generated.
Outside divided by upper this special circumstances, during logining successfully and keeping logging status, often generate a user Info Link sequence can send while server storage, is also carried out storage in this locality, when needing to generate next time During user profile link sequence, directly obtain in this locality, or often generate a user profile link sequence, it is also possible to no Locally stored, when needing to generate user profile link sequence next time, obtain to server request.
With reference to Fig. 7, it is shown that the structured flowchart of the another kind of user information storage of the embodiment of the present invention, the most permissible Including with lower module:
Sequential reception module 401, for receiving the user profile link sequence that client sends, described user profile links Sequence is by identifying the chained address storing position of user profile and for separating the default separator group of different linking address Become;
Memory module 402, for storing, by described user profile link sequence, the aiming field set.
In the embodiment of the present invention, under the scene of the information of Adding User, described device can also include:
Newly-added information receiver module, for receiving the information that Adds User that client sends;
Position distribution module, for storing position for the information distribution that Adds User;
Address sending module, for sending the newly-increased link of the storage position of the information that Adds User described in mark to client Address.
In the embodiment of the present invention, described device can also include:
Checking information detecting module, for detecting the login authentication information that client sends;
Initialization information sending module, for returning initialization information to client, carries institute in described initialization information State the last user profile link sequence generated in aiming field.
Under the application scenarios deleting user profile, described device can also include:
Request receiver module, the user profile carrying chained address sent for receiving client obtains request;
User profile returns module, obtains the chained address institute carried in request to mark for returning user profile to client The user profile known.
Owing to described device embodiment essentially corresponds to the embodiment of the method shown in earlier figures 2 and Fig. 3, therefore the present embodiment The most detailed part in description, may refer to the related description in previous embodiment, does not repeats at this.
The application can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, service Device computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, top set Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, include any of the above system or equipment Distributed computing environment etc..
The application can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environment, by The remote processing devices connected by communication network performs task.In a distributed computing environment, program module is permissible It is positioned in the local and remote computer-readable storage medium of storage device.
In this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, from And make to include that the process of a series of key element, method, article or equipment not only include those key elements, but also include the brightest Other key elements really listed, or also include the key element intrinsic for this process, method, article or equipment.Do not having In the case of more restrictions, statement " including ... " key element limited, it is not excluded that in the mistake including described key element Journey, method, article or equipment there is also other identical element.
Above a kind of user information storage method provided herein and a kind of user information storage are carried out Being discussed in detail, principle and the embodiment of the application are set forth by specific case used herein, above example Illustrate that being only intended to help understands the present processes and core concept thereof;Simultaneously for one of ordinary skill in the art, depend on According to the thought of the application, the most all will change, in sum, this specification content Should not be construed as the restriction to the application.

Claims (16)

1. a user information storage method, it is characterised in that described method includes:
Generating user profile link sequence, described user profile link sequence is by the chain ground connection of the storage position identifying user profile Location and for separate different linking address default separator composition;
Described user profile link sequence being sent and store to server, described user profile link sequence is stored in service The aiming field set in device;
Wherein, described generation user profile link sequence, including:
The information that Adds User is sent to server;
Receive the newly-increased chained address of the storage position of the information that Adds User described in the mark that server returns;
By the splicing of described newly-increased chained address in the upper user profile once generated link sequence, the described last use generated Family Info Link sequence is extracted from local storage medium.
Method the most according to claim 1, it is characterised in that described splicing described newly-increased chained address once gives birth to upper In the user profile link sequence become, including:
If there is at least one chained address, then by described new chain in the described last user profile link sequence generated The splicing of ground connection location is after any one separator or inserts setting initial position, and behind described newly-increased chained address Separator is inserted in face;
If the described last user profile link sequence generated does not exists chained address, then described newly-increased chained address is inserted Enter and set initial position, and after described newly-increased chained address, insert separator.
Method the most according to claim 1, it is characterised in that described generation user profile link sequence, including:
Receive removal request to user profile, according to each chained address suitable in the user profile link sequence that the last time generates Sequence, extracts corresponding user profile and is shown;
Receive the selection request to the user profile shown, and according to the described user profile selected in request, once give birth to upper The user profile link sequence become is deleted chained address and the separator of correspondence.
Method the most according to claim 3, it is characterised in that user profile corresponding to described extraction is shown, including:
If there is the corresponding relation of chained address and user profile in client, by the user profile link sequence that the last time generates The chained address comprised, extracts corresponding user profile and is shown;
If there is not the corresponding relation of chained address and user profile, then the user profile link generated according to the last time in client The chained address comprised in sequence, returns corresponding user profile to server request, and opens up the user profile returned Show.
5. the method as described in claim 1 or 3, it is characterised in that the described last user profile link sequence generated Acquisition methods includes:
Login authentication information is sent to server;
Receive the initialization information that server sends, described initialization information carries the described last user profile chain generated Connect sequence.
6. a user information storage method, it is characterised in that described method includes:
Receiving the user profile link sequence that client sends, described user profile link sequence is by the storage identifying user profile The chained address of position and for separating the default separator composition of different linking address;
Described user profile link sequence is stored the aiming field set;
Wherein, before the user profile link sequence that described reception client sends, described method also includes:
Receive the information that Adds User that client sends;
For the information distribution storage position that Adds User;
The newly-increased chained address of the storage position of the information that Adds User described in mark is sent to client.
7. method as claimed in claim 6, it is characterised in that the user profile link sequence that described reception client sends it Before, described method also includes:
The login authentication information that detection client sends;
Return initialization information to client, described initialization information carries the user profile link sequence of last generation.
Method the most according to claim 6, it is characterised in that the user profile link sequence that described reception client sends Before, described method also includes:
Receive the user profile acquisition request carrying chained address that client sends;
Return user profile to client and obtain the user profile that the chained address carried in request is identified.
9. a user information storage, it is characterised in that described device includes:
Sequence generating module, is used for generating user profile link sequence, and described user profile link sequence is by identifying user profile Storage position chained address and for separate different linking address default separator composition;
Sequence sending module, for the link sequence transmission of described user profile is stored to server, described user profile Link sequence is stored in server the aiming field set;
Wherein, described sequence generating module includes:
Newly-added information sends submodule, for sending, to server, the information that Adds User;
Address receives submodule, for receiving the new chain of the storage position of the information that Adds User described in the mark that server returns Ground connection location;
Splicing submodule, for described newly-increased chained address being spliced in the upper user profile once generated link sequence, institute The user profile link sequence stating last generation is extracted from local storage medium.
Device the most according to claim 9, it is characterised in that described splicing submodule includes:
First splicing subelement, for when having there is at least one link in the described last user profile link sequence generated During address, described newly-increased chained address is spliced after any one separator or insertion setting initial position, and Separator is inserted after described newly-increased chained address;
Second splicing subelement, the user profile for generating when the described last time links when there is not chained address in sequence, Described newly-increased chained address is inserted and sets initial position, and after described newly-increased chained address, insert separator.
11. devices according to claim 9, it is characterised in that described sequence generating module includes:
Show submodule, for receiving the removal request to user profile, the user profile link sequence generated according to the last time In the order of each chained address, extract corresponding user profile and be shown;
Delete submodule, for receiving the selection request to the user profile shown, and according to the described user selected in request Information, deletes chained address and the separator of correspondence in the upper user profile once generated link sequence.
12. devices according to claim 11, it is characterised in that described displaying submodule includes:
First shows subelement, during for there is the corresponding relation of chained address and user profile when client, raw by the last time The chained address comprised in the user profile link sequence become, extracts corresponding user profile and is shown;
Second shows subelement, during for there is not the corresponding relation of chained address and user profile when client, according to upper one The chained address comprised in the user profile link sequence of secondary generation, returns corresponding user profile to server request, and right The user profile returned is shown.
13. devices as described in claim 9 or 11, it is characterised in that described device also includes:
Checking information sending module, for sending login authentication information to server;
Initialization information receiver module, for receiving the initialization information that server sends, carries institute in described initialization information State the user profile link sequence of last generation.
14. 1 kinds of user information storage, it is characterised in that described device includes:
Sequential reception module, for receive client send user profile link sequence, described user profile link sequence by Identify the chained address of the storage position of user profile and for separating the default separator composition of different linking address;
Memory module, for storing, by described user profile link sequence, the aiming field set;
Wherein, described device also includes:
Newly-added information receiver module, for receiving the information that Adds User that client sends;
Position distribution module, for storing position for the information distribution that Adds User;
Address sending module, for sending the newly-increased chain ground connection of the storage position of the information that Adds User described in mark to client Location.
15. devices as claimed in claim 14, it is characterised in that described device also includes:
Checking information detecting module, for detecting the login authentication information that client sends;
Initialization information sending module, for returning initialization information to client, carries the last time in described initialization information The user profile link sequence generated.
16. devices according to claim 14, it is characterised in that described device also includes:
Request receiver module, the user profile carrying chained address sent for receiving client obtains request;
User profile returns module, obtains, for returning user profile to client, the use that the chained address carried in request is identified Family information.
CN201310067509.3A 2013-03-04 2013-03-04 user information storage method and device Active CN103220327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310067509.3A CN103220327B (en) 2013-03-04 2013-03-04 user information storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310067509.3A CN103220327B (en) 2013-03-04 2013-03-04 user information storage method and device

Publications (2)

Publication Number Publication Date
CN103220327A CN103220327A (en) 2013-07-24
CN103220327B true CN103220327B (en) 2016-08-17

Family

ID=48817778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310067509.3A Active CN103220327B (en) 2013-03-04 2013-03-04 user information storage method and device

Country Status (1)

Country Link
CN (1) CN103220327B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791098B (en) * 2016-04-29 2019-04-12 广州灵光信息科技有限公司 A kind of chat background rendering method based on instant message applications
CN105847126B (en) * 2016-04-29 2019-07-09 广州灵光信息科技有限公司 A kind of chat background presentation device based on instant message applications
CN109597948A (en) * 2018-10-17 2019-04-09 深圳壹账通智能科技有限公司 Access method, system and the storage medium of URL link

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304583A (en) * 2008-06-17 2008-11-12 中国电信股份有限公司 Method and system for implementing individual information backup based on smart card
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN101673278A (en) * 2009-02-27 2010-03-17 北京搜狗科技发展有限公司 Method and device for displaying web page
CN101790141A (en) * 2009-12-17 2010-07-28 华为终端有限公司 Method and mobile phone for processing short message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100563196C (en) * 2005-11-25 2009-11-25 华为技术有限公司 Communication system and in communication system the method for Query Information
CN101887446A (en) * 2010-04-22 2010-11-17 宇龙计算机通信科技(深圳)有限公司 Method, system and mobile terminal for inputting E-mail address

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304583A (en) * 2008-06-17 2008-11-12 中国电信股份有限公司 Method and system for implementing individual information backup based on smart card
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN101673278A (en) * 2009-02-27 2010-03-17 北京搜狗科技发展有限公司 Method and device for displaying web page
CN101790141A (en) * 2009-12-17 2010-07-28 华为终端有限公司 Method and mobile phone for processing short message

Also Published As

Publication number Publication date
CN103220327A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
CN108846753B (en) Method and apparatus for processing data
CN107967143A (en) Obtain the methods, devices and systems of the update instruction information of client application source code
CN105022832B (en) Method, mobile terminal and the download server that APP application securities are downloaded
CN106933871A (en) Short linking processing method, device and short linked server
CN108256006B (en) Method and system for loading badge pictures in live broadcast room
CN103188328A (en) Mobile terminal application program sharing method, server and system
CN104978258A (en) Software automation test method and system
CN105550252A (en) File positioning method and device and electronic equipment
CN103699597A (en) Method for downloading file through browser and browser
CN107809383A (en) A kind of map paths method and device based on MVC
CN103136342A (en) Searching method, system and searching server of application programs (APP)
CN103440243A (en) Teaching resource recommendation method and device thereof
US20170277526A1 (en) Software categorization method and electronic device
CN102629194B (en) Novel application store adaptor facing mobile terminals
CN113392158A (en) Service data processing method and device and data center
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
CN103581040A (en) Server distributing device and server distributing method
CN113791765A (en) Resource arranging method, device and equipment of cloud service and storage medium
CN110347882A (en) Consanguinity analysis method and device, storage medium and the electronic device of data
CN103220327B (en) user information storage method and device
CN109254921A (en) Application version verification method, device, computer equipment and storage medium
CN110460668B (en) File uploading method and device, computer equipment and storage medium
CN104035943A (en) Data storage method and corresponding server
CN103078782A (en) Friend note recommendation note implementation method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant