Detection processing method and system for idle account in social network
Technical Field
The invention relates to the field of account management in a social network, in particular to a method and a system for detecting and processing idle accounts in the social network.
Background
With the development of the times and the continuous progress of science and technology, people have more and more communication in the social networking world. Some people can register a plurality of accounts in the social network, but the accounts are not convenient to manage after being increased, and people often abandon part of the accounts for idle after using the accounts for a period of time, but because the accounts contain user names besides passwords, the user names in the accounts have marks of being used, and other people can display a prompt box of 'registered' on a display interface when using the user names, so that the user names in the accounts cannot be used after the accounts are idle, and the waste of account resources is caused.
Disclosure of Invention
The invention aims to provide a method and a system for detecting and processing idle accounts in a social network, and solves the problems in the prior art.
The invention provides a method for detecting and processing an idle account in a social network, which comprises the following steps:
step 1, establishing an account management library in a background server;
step 2, account registration, namely filling a user name, a password, a contact phone and a mailbox in a user terminal to form account information owned by the user of the user terminal, transmitting the account information of the user to an account management library of a background server, adding friends by the user at the user terminal, and transmitting the friend information to the account management library of the background server;
step 3, judging whether the limitation is abandoned, searching login times of the account information of the user by the background server in a grading manner, judging whether the limitation is abandoned and left unused, and deleting the account information of the user and friend information corresponding to the account information of the user in the background server if the limitation is abandoned and left unused; and if not, reserving the account information of the user in a background server.
Wherein, the step 3 of searching the login information of the account information of the user by grades comprises three levels, namely a first level search, a second level search and a third level search,
during the first-level retrieval, the account management library of the background server retrieves the login times of the account information of the user every six months, judges whether login exists, if so, circularly performs the first-level retrieval, and if not, enters the second-level retrieval;
the second-level retrieval is the retrieval of the login times of the account information of the user in three months after the last completion of the account management library of the platform server, and if the login times are greater than or equal to 3, the first-level retrieval is converted; if the login exists but the login frequency is less than or equal to 2 times, performing secondary retrieval, and converting the login into primary retrieval in the secondary retrieval process; if the login does not exist, the background server sends prompt information to the mobile phone number during registration, and then three-level retrieval is carried out;
the third-level retrieval is the retrieval of the login times of the account information of the user in one month after the last completion of the account management library of the platform server, and if the login exists, the second-level retrieval is converted; and if the login does not exist, the user is confirmed to be idle, the background server deletes the account information of the user and the friend information corresponding to the account information of the user, and sends a number cancellation prompt message to the mobile phone number during registration.
Further, the prompt message is "XXX account number, you have not logged in for 9 months, and if you have not logged in again within one month, the account will be sold".
Further, the sales number prompt message is that the XXX account number is logged off.
Further, the account information of the user and the friend information corresponding to the account information of the user are deleted by the background server, and the foreground server and the background server can send the friend information corresponding to the account information of the user to a mailbox filled in when the user registers, so that the loss of friend contact information is avoided.
A detection processing system for idle accounts in a social network comprises a data processing module, a table generating module, an information matching sending module, an email matching sending module, a retrieval module, a login frequency calculating module, a registration module of a user terminal, a login module and a friend adding module in a background server, wherein the data processing module is used for managing an account management library and is used for managing addition, deletion and storage of account information of a user and friend information corresponding to the account information of the user; the table generating module is used for forming friend information corresponding to the account information of the user into an independent table; the information matching and sending module is used for matching the mobile phone number corresponding to the user name and sending prompt information or sales prompt information to the mobile phone where the mobile phone number is located; the mail matching and sending module is used for matching a mailbox corresponding to the user name and sending friend information corresponding to the account information of the user to the mailbox to form a table; the registration module is used for registering the user, forming account information of the user according to information filled in during registration and transmitting the account information to the background server; the login module is used for logging in a user terminal through account information by a user and transmitting login information to the background server after logging in each time; the login frequency calculation module is used for calculating the login frequency of the user; the retrieval module is used for retrieving login information of the account information of the user in a grading manner according to the retrieval mode in the step 3 and is used for retrieving login times of the user in a retrieval time period; and the friend adding module is used for adding friends and transmitting friend information to the background server.
The initial value of the login time number calculation module is '0', the login time number calculation module can form '1' when the login time number calculation module operates every login time when primary retrieval, secondary retrieval or tertiary retrieval is not performed, and the login time number calculation module can superpose '1' formed in a retrieval time period when the login time number calculation module operates when the primary retrieval, the secondary retrieval or the tertiary retrieval is performed.
The method and the system for detecting and processing the idle account number in the social network have the advantages that: the abandoned and idle account numbers can be effectively and safely eliminated, the user can be reminded of carrying out account number management in time, meanwhile, the abandoned and idle account numbers can be eliminated, information can be reminded for the user, friend information corresponding to the account number information can be formed into a form and sent to a mailbox filled in when the user registers, and loss of the friend information of the user is avoided.
Drawings
Fig. 1 is a flowchart of a method for detecting an idle account in a social network according to the present invention.
Detailed Description
The embodiment provides a method for detecting and processing idle accounts in a social network, which comprises the following steps:
step 1, establishing an account management library in a background server;
step 2, account registration, namely filling in a user name, a password, a contact phone and a mailbox at a user terminal of a user A, wherein the filled information forms account information owned by the user A of the user terminal, the account information of the user A is transmitted to an account management library of a background server, and the user A can add friends at the user terminal and transmit the friend information to the account management library of the background server;
step 3, judging whether the limitation is abandoned, searching login times of the account information of the user by the background server in a grading manner, judging whether the limitation is abandoned or not, if the limitation is abandoned, deleting the account information of the user and friend information corresponding to the account information of the user in the background server, avoiding leakage of the friend information in the account information, and ensuring the safety of the user in use; and if not, reserving the account information of the user in a background server.
Preferably, the step 3 of searching the login information of the account information of the user in a hierarchical manner includes three levels, namely a first level search, a second level search and a third level search,
during the first-level retrieval, the account management library of the background server retrieves the login times of the account information of the user every six months, judges whether login exists, if so, circularly performs the first-level retrieval, and if not, enters the second-level retrieval;
the second-level retrieval is the retrieval of the login times of the account information of the user in three months after the last completion of the account management library of the platform server, and if the login times are greater than or equal to 3, the first-level retrieval is converted; if the login exists but the login frequency is less than or equal to 2 times, performing secondary retrieval, and converting the login into primary retrieval in the secondary retrieval process; if the login does not exist, the background server sends prompt information to the mobile phone number during the registration, and then three-level retrieval is carried out, wherein the prompt information is 'XXX account number, you do not log in for 9 months, and if the user does not log in again within one month, the user can sell the number';
the third-level retrieval is the retrieval of the login times of the account information of the user in one month after the last completion of the account management library of the platform server, and if the login exists, the second-level retrieval is converted; and if the login does not exist, the user is confirmed to be idle, the background server deletes the account information of the user and the friend information corresponding to the account information of the user and sends a pin number prompt message to the mobile phone number during registration, wherein the pin number prompt message is that the XXX account number is cancelled.
Preferably, the account information of the user and the friend information corresponding to the account information of the user are deleted by the background server, and the foreground server and the background server send the friend information corresponding to the account information of the user to a mailbox filled in when the user registers, so that loss of friend contact information is avoided.
A detection processing system for idle accounts in a social network comprises a data processing module, a table generating module, an information matching sending module, an email matching sending module, a retrieval module, a login frequency calculating module, a registration module of a user terminal, a login module and a friend adding module in a background server, wherein the data processing module is used for managing an account management library and is used for managing addition, deletion and storage of account information of a user and friend information corresponding to the account information of the user; the table generating module is used for forming friend information corresponding to the account information of the user into an independent table; the information matching and sending module is used for matching the mobile phone number corresponding to the user name and sending prompt information or sales prompt information to the mobile phone where the mobile phone number is located; the mail matching and sending module is used for matching a mailbox corresponding to the user name and sending friend information corresponding to the account information of the user to the mailbox to form a table; the registration module is used for registering the user, forming account information of the user according to information filled in during registration and transmitting the account information to the background server; the login module is used for logging in a user terminal through account information by a user and transmitting login information to the background server after logging in each time; the login frequency calculation module is used for calculating the login frequency of the user; the retrieval module is used for retrieving the login times of the user in a time period; and the friend adding module is used for adding friends and transmitting friend information to the background server.
Preferably, the initial value of the login number calculation module is "0", the login number calculation module forms a "1" when the login number calculation module operates every login time when the first-level search, the second-level search or the third-level search is not performed, the login number calculation module overlaps the "1" formed in the search time period when the first-level search, the second-level search or the third-level search is performed, and if the overlapping result is equal to "0", it indicates that the user has not logged in the search time period.
The method and the system for detecting and processing the idle account in the social network can effectively eliminate abandoned idle account, can remind the user of account management in time, can remind the user of information when the abandoned idle account is eliminated, can form friend information corresponding to the account information into a form and send the formed form to a mailbox filled in when the user registers, and avoid the loss of the friend information of the user, so that the circle of friends of the user corresponding to the account cannot be reduced even if the account is sold.
The foregoing is only a preferred form of the invention and it should be noted that several similar variations and modifications could be made by one skilled in the art without departing from the inventive concept and these should also be considered within the scope of the invention.