A kind of detection processing method and system for account number of leaving unused in social networks
Technical field
The inspection for account number of leaving unused the present invention relates to the account management field in social networks, in particular in a kind of social networks
Survey processing method and system.
Background technique
With the development of the times, the continuous progress of science and technology, communication of the people in the network social intercourse world are more and more.Some
People be even more can register multiple accounts in social networks, but account it is more after be not easy to manage, people are often using
Partial account number given up after a period of time it is idle, but due to also including user name other than comprising password in account, these
User name in account has the trace being previously used, other people will show " on display interface when using the user name
Be registered " prompting frame, the phenomenon that user name after causing account idle in account can not also be used, form account resource
Waste.
Summary of the invention
It is an object of the invention to provide a kind of detection processing method and system for account number of leaving unused in social networks, solve above-mentioned existing
There is technical problem.
The present invention proposes to leave unused in a kind of social networks the detection processing method of account number, includes the following steps:
Step 1, account management library is established in background server;
Step 2, account is registered, and is carried out filling in for user name, password, telephone number and mailbox in user terminal, is formed
The account information that the user of user terminal is possessed, while the account information of user can be sent to the account pipe of background server
Li Ku, user carries out good friend's addition in user terminal, and friend information is transmitted in the account management library of background server;
Step 3, judge whether to be rejected limitation, background server can be classified to the login times of the account information of user into
Row retrieval, judges whether to be rejected idle, will be deleted the account information and use of user in background server if idle
Friend information corresponding to the account information at family;Retain the account information of user in background server if not idle.
Wherein, it includes three-level that the classification in the step 3, which carries out retrieval to the log-on message of the account information of user, respectively
For level-one retrieval, 2-level search, three-stagesearch,
Level-one retrieve when background server account management library every six months account informations to user login times into
Row retrieval, judges whether there is login, then enters if it is present circulation carries out level-one retrieval if there is no log-on message
2-level search;
2-level search is that three month account to user of the account management library of platform server after upper primary completion is believed
The retrieval that the login times of breath carry out, if there is and login times be more than or equal to 3 times and then switch to level-one retrieval;If there is stepping on
The number of record but login is less than or equal to 2 times, then carries out secondary 2-level search, and secondary 2-level search, which exists to log in the process, then to be switched to
Level-one retrieval;Prompt information can be sent to cell-phone number when registration if there is no then background server is logged in, subsequently into three
Grade retrieval;
Three-stagesearch is that a month account to user of the account management library of platform server after upper primary completion is believed
The retrieval that the login times of breath carry out can then switch to 2-level search if there is logging in;If there is no login, then confirm not busy
It sets, background server will be deleted friend information corresponding to the account information of user and the account information of user, and can be to note
Cell-phone number when volume sends pin prompt information.
Further, the prompt information is that " XXX account, 9 months are not logged in for you, do not log in again in one month such as, then will
It can the number of pin ".
Further, the pin prompt information is " XXX account has been canceled ".
Further, friend information corresponding to the account information of the user and the account information of user is being taken from the background
Business device delete front and back server can friend information corresponding to the account information by user form table and be sent to user's registration
When the mailbox filled in, avoid the loss of good friend's contact details.
A kind of detection processing system for account number of leaving unused in social networks includes data processing module, table in background server
Lattice generation module, information matches sending module, mail matching sending module, retrieval module, login times computing module and use
Registration module, login module and the good friend's adding module of family terminal, data processing module are used for for managing account management library
Manage addition, deletion and the preservation of friend information corresponding to the account information of user and the account information of user;The table
Generation module forms independent table for friend information corresponding to the account information by user;Information matches sending module is used for
Cell-phone number corresponding to user name is matched, and prompt information or pin prompt information are sent to the mobile phone where cell-phone number;Mail
Matching sending module for matching mailbox corresponding to user name, and send to the mailbox it is good corresponding to the account information of user
Friendly information forms table;Registration module is used for the registration of user, and the information filled in when according to registration forms the account information of user,
And the account information is transferred to background server;Login module is used for user by account information login user terminal, and
Logon information is transferred to background server after logging in every time;Login times computing module, for calculating the login times of user;
Retrieval module, the login times for user in retrieval time section;Good friend's adding module is believed for adding good friend, and by good friend
Breath is transferred to background server.
Wherein, the initial value of the login times computing module is " 0 ", and the login times computing module is without one
Running login times computing module of every login when grade retrieval, 2-level search or three-stagesearch will form one " 1 ", carry out
Level-one retrieval, 2-level search or when three-stagesearch, run, login times computing module can will be formed in retrieval time section " 1 " into
Row superposition.
The advantages of detection processing method and system for account number of leaving unused in a kind of social networks of the present invention are as follows: can either
Idle account is given up in the elimination of effective and safe, and user can be reminded timely to carry out account management, while giving up in elimination
Idle account can carry out information reminding to user, and the friend information corresponding to account information can be formed table and sent
The mailbox filled in when to user's registration avoids the loss of user's friend information.
Detailed description of the invention
Fig. 1 is the flow chart of the detection processing method of idle account number in social networks in the present invention.
Specific embodiment
Propose to leave unused in a kind of social networks in the present embodiment the detection processing method of account number, includes the following steps:
Step 1, account management library is established in background server;
Step 2, account is registered, and carries out filling out for user name, password, telephone number and mailbox in the user terminal of party A-subscriber
It writes, the information filled in will form the account information that the user A of user terminal is possessed, while the account information of user A can be passed
It is sent to the account management library of background server, user A can carry out good friend's addition in user terminal, and friend information is transmitted to
In the account management library of background server;
Step 3, judge whether to be rejected limitation, background server can be classified to the login times of the account information of user into
Row retrieval, judges whether to be rejected idle, will be deleted the account information and use of user in background server if idle
Friend information corresponding to the account information at family avoids the friend information in account information from being leaked, and guarantees when user uses
Safety;Retain the account information of user in background server if not idle.
As the preferred of the present embodiment, the log-on message of the account information of user is examined in the classification in the step 3
Rope includes three-level, respectively level-one retrieval, 2-level search, three-stagesearch,
Level-one retrieve when background server account management library every six months account informations to user login times into
Row retrieval, judges whether there is login, then enters if it is present circulation carries out level-one retrieval if there is no log-on message
2-level search;
2-level search is that three month account to user of the account management library of platform server after upper primary completion is believed
The retrieval that the login times of breath carry out, if there is and login times be more than or equal to 3 times and then switch to level-one retrieval;If there is stepping on
The number of record but login is less than or equal to 2 times, then carries out secondary 2-level search, and secondary 2-level search, which exists to log in the process, then to be switched to
Level-one retrieval;Prompt information can be sent to cell-phone number when registration if there is no then background server is logged in, subsequently into three
Grade retrieval, wherein the prompt information is that " XXX account, 9 months are not logged in for you, do not log in such as, then will be sold again in one month
Number ";
Three-stagesearch is that a month account to user of the account management library of platform server after upper primary completion is believed
The retrieval that the login times of breath carry out can then switch to 2-level search if there is logging in;If there is no login, then confirm not busy
It sets, background server will be deleted friend information corresponding to the account information of user and the account information of user, and can be to note
Cell-phone number when volume sends pin prompt information, wherein the pin prompt information is " XXX account has been canceled ".
As the preferred of the present embodiment, the letter of good friend corresponding to the account information of the user and the account information of user
Breath by background server delete front and back server can friend information corresponding to the account information by user form table hair
In the mailbox filled in when being sent to user's registration, the loss of good friend's contact details is avoided.
A kind of detection processing system for account number of leaving unused in social networks includes data processing module, table in background server
Lattice generation module, information matches sending module, mail matching sending module, retrieval module, login times computing module and use
Registration module, login module and the good friend's adding module of family terminal, data processing module are used for for managing account management library
Manage addition, deletion and the preservation of friend information corresponding to the account information of user and the account information of user;The table
Generation module forms independent table for friend information corresponding to the account information by user;Information matches sending module is used for
Cell-phone number corresponding to user name is matched, and prompt information or pin prompt information are sent to the mobile phone where cell-phone number;Mail
Matching sending module for matching mailbox corresponding to user name, and send to the mailbox it is good corresponding to the account information of user
Friendly information forms table;Registration module is used for the registration of user, and the information filled in when according to registration forms the account information of user,
And the account information is transferred to background server;Login module is used for user by account information login user terminal, and
Logon information is transferred to background server after logging in every time;Login times computing module, for calculating the login times of user;
Retrieval module, the login times for user in retrieval time section;Good friend's adding module is believed for adding good friend, and by good friend
Breath is transferred to background server.
As the preferred of the present embodiment, the initial value of the login times computing module is " 0 ", and the login times calculate
Module retrieved without level-one, 2-level search or when three-stagesearch run login times computing module of every login and will form
It one " 1 ", is run when carrying out level-one retrieval, 2-level search or three-stagesearch, login times computing module can be by retrieval time
" 1 " formed in section is overlapped, and indicates that the user is not logged in the search session if the result of superposition is equal to " 0 ".
The detection processing method and system for account number of leaving unused in a kind of social networks described in the present embodiment can either be effective
Idle account is given up in elimination, and user can be reminded timely to carry out account management, while giving up idle account eliminating
Information reminding can be carried out to user, and the friend information corresponding to account information can be formed table and be sent to user's registration
When the mailbox filled in, avoid the loss of user's friend information so that even if account by pin number, the friend of user corresponding to account
Circle will not reduce.
The above is only preferred embodiment of the invention, it is noted that those skilled in the art, not
Under the premise of being detached from the invention design, some similar deformation and improvement can be made, these also should be regarded as the present invention
Protection scope within.