Disclosure of Invention
The embodiment of the disclosure provides a method, a device, a terminal and a storage medium for acquiring identity information, which can solve the problems of high operation cost and low efficiency of manually inputting a certificate number. The technical scheme is as follows:
in one aspect, a method for acquiring identity information is provided, where the method includes:
displaying an identity information input interface associated with an account currently logged in by a target application program APP on a terminal, wherein the identity information input interface comprises a certificate number input box;
determining an identity address code corresponding to the address information according to the acquired address information of the terminal; and writing the identity address code into the certificate number input box.
In a possible implementation manner, the determining, according to the obtained address information of the terminal, an identity address code corresponding to the address information includes:
determining a target area corresponding to the address information according to the acquired address information of the terminal;
and acquiring an identity address code corresponding to the target area according to the target area.
In another possible implementation manner, the obtaining, according to the target area, an identity address code corresponding to the target area includes:
and acquiring the identity address code corresponding to the target area from the corresponding relation between the area identification and the identity address code according to the area identification of the target area.
In another possible implementation manner, the obtaining, according to the area identifier of the target area, the identity address code corresponding to the target area from the correspondence between the area identifier and the identity address code includes:
the target area comprises a first-level administrative district; acquiring a first address code corresponding to the primary administrative district from the corresponding relation between the area identification and the identity address code according to the area identification of the primary administrative district, and taking the first address code as the identity address code;
the target area comprises a first-level administrative area and a second-level administrative area; according to the area identification of the primary administrative district and the area identification of the secondary administrative district, a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district are obtained from the corresponding relation between the area identification and the identity address codes, and the identity address codes are formed by the first address codes and the second address codes.
In another possible implementation manner, the determining, according to the obtained address information of the terminal, a target area corresponding to the address information includes:
determining an address information range in which the address information is located according to the acquired address information of the terminal;
and according to the address information range, determining a target area corresponding to the address information range from the corresponding relation between the address information range and the area.
In another possible implementation manner, before determining, according to the obtained address information of the terminal, an identity address code corresponding to the address information, the method further includes:
positioning the address information of the current terminal through a positioning function; or,
acquiring address information currently selected by the terminal; or,
and acquiring a target position record of the terminal, and selecting the address information from the target position record.
In another possible implementation manner, before the obtaining, according to the area identifier of the target area, the identity address code corresponding to the target area from the corresponding relationship between the area identifier and the identity address code, the method further includes:
when the area identifier of the target area is not in the first area identifier library, executing the step of acquiring the identity address code corresponding to the target area from the corresponding relation between the area identifier and the identity address code according to the area identifier of the target area;
the first area identification library is used for storing area identifications of areas which the terminal does not belong to.
In another possible implementation manner, the first area identifier library includes a first sub identifier library and a second sub identifier library, the first sub identifier library is used for storing area identifiers of the terminal that do not belong to a first-level administrative district, and the second sub identifier library is used for storing area identifiers of the terminal that do not belong to a second-level administrative district;
when the area identifier of the target area is not in the first area identifier library, the step of obtaining the identity address code corresponding to the target area from the corresponding relationship between the area identifier and the identity address code according to the area identifier of the target area is executed, and the step includes:
when the area identifier of the primary administrative district is not in the first sub-identifier library and the area identifier of the secondary administrative district is not in the second sub-identifier library, executing the step of acquiring a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district from the corresponding relationship between the area identifier and the identity address code according to the area identifier of the primary administrative district and the area identifier of the secondary administrative district;
and when the area identification of the primary administrative district is not in the first sub-identification library, executing the step of acquiring the first address code corresponding to the primary administrative district from the corresponding relation between the area identification and the identity address code according to the area identification of the primary administrative district.
In another possible implementation manner, the method further includes:
and when the area identifier of the target area is in the first identifier area library, re-acquiring the address information of the terminal until the area identifier of the target area corresponding to the re-acquired address information is not in the first identifier area library.
In another possible implementation manner, the target location record includes at least one location record, and each location record includes first historical address information of the terminal and a time range in which the terminal is located in the first historical address information;
the selecting the address information from the target location record includes:
selecting a first target position record corresponding to a specified time range from the at least one position record;
and taking first historical address information included in the first target position record as the address information.
In another possible implementation manner, before the taking the first historical address information included in the first target location record as the address information, the method further includes:
when the area identifier corresponding to the first historical address information is not in a second area identifier library, executing the step of taking the first historical address information included in the first target position record as the address information;
the second area identification library is used for storing at least one area identification with the travel popularity exceeding a threshold value.
In another possible implementation manner, the target location record includes at least one tag and address information corresponding to each tag;
the selecting the address information from the target location record includes:
and selecting the position label as the address information of the designated label from the target position record.
In another possible implementation manner, the identity address code includes a first address code, and the first address code is an address code corresponding to a first-level administrative district included in the target area;
after writing the identity address code into the certificate number input box, the method further comprises:
and when a deleting instruction is received, deleting the first address code in the identity address code.
In another possible implementation manner, the method further includes:
and when a deleting instruction is received, adding the area identification of the first-level administrative district into a first sub-identification library, wherein the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district.
In another possible implementation manner, the identity address code includes a first address code and a second address code, the first address code is an address code corresponding to a first-level administrative district included in the target area, and the second address code is an address code corresponding to a second-level administrative district included in the target area;
after writing the identity address code into the certificate number input box, the method further comprises:
when a deleting instruction is received, deleting a second address code in the identity address codes;
and when the deleting instruction is received again, deleting the first address code.
In another possible implementation manner, the method further includes:
when a deleting instruction is received, adding the area identification of the secondary administrative district into a second sub-identification library, wherein the second area identification library is used for storing the area identification of the terminal which does not belong to the secondary administrative district;
and when the deleting instruction is received again, adding the area identifier of the first-level administrative district into a first sub-identifier library, wherein the first sub-identifier library is used for storing the area identifier of the terminal which does not belong to the first-level administrative district.
In another aspect, an apparatus for acquiring identity information is provided, the apparatus comprising:
the terminal comprises a display module and a display module, wherein the display module is configured to display an identity information input interface associated with an account currently logged in by a target application program APP on the terminal, and the identity information input interface comprises a certificate number input box;
the determining module is configured to determine an identity address code corresponding to the address information according to the acquired address information of the terminal;
a write-in module configured to write the identity address code into the certificate number entry box.
In a possible implementation manner, the determining module is further configured to determine, according to the obtained address information of the terminal, a target area corresponding to the address information;
and acquiring an identity address code corresponding to the target area according to the target area.
In another possible implementation manner, the determining module is further configured to obtain, according to the area identifier of the target area, the identity address code corresponding to the target area from the correspondence between the area identifier and the identity address code.
In another possible implementation manner, the determining module is further configured to, when the target area includes a primary administrative area, obtain, according to an area identifier of the primary administrative area, a first address code corresponding to the primary administrative area from a correspondence between an area identifier and an identity address code, and use the first address code as the identity address code;
when the target area comprises a first-level administrative district and a second-level administrative district, according to the area identification of the first-level administrative district and the area identification of the second-level administrative district, a first address code corresponding to the first-level administrative district and a second address code corresponding to the second-level administrative district are obtained from the corresponding relation between the area identification and the second address codes, and the first address code and the second address code form the identity address codes.
In another possible implementation manner, the determining module is further configured to determine an address information range in which the address information is located according to the acquired address information of the terminal;
and according to the address information range, determining a target area corresponding to the address information range from the corresponding relation between the address information range and the area.
In another possible implementation manner, the determining module is further configured to locate, through a locating function, address information where the terminal is currently located; or, acquiring the address information currently selected by the terminal; or acquiring a target position record of the terminal, and selecting the address information from the target position record.
In another possible implementation manner, the determining module is further configured to, when the area identifier of the target area is not in the first area identifier library, obtain, according to the area identifier of the target area, an identity address code corresponding to the target area from a correspondence between the area identifier and the identity address code;
the first area identification library is used for storing area identifications of areas which the terminal does not belong to.
In another possible implementation manner, the first area identifier library includes a first sub identifier library and a second sub identifier library, the first sub identifier library is used for storing area identifiers of the terminal that do not belong to a first-level administrative district, and the second sub identifier library is used for storing area identifiers of the terminal that do not belong to a second-level administrative district;
the determining module is further configured to, when the area identifier of the primary administrative district is not in the first sub-identifier library and the area identifier of the secondary administrative district is not in the second sub-identifier library, obtain, according to the area identifier of the primary administrative district and the area identifier of the secondary administrative district, a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district from a correspondence between the area identifier and an identity address code;
and when the area identification of the primary administrative area is not in the first sub-identification library, acquiring a first address code corresponding to the primary administrative area from the corresponding relation between the area identification and the identity address code according to the area identification of the primary administrative area.
In another possible implementation manner, the apparatus further includes:
an obtaining module configured to, when the area identifier of the target area is in the first identifier area library, re-obtain the address information of the terminal until the area identifier of the target area corresponding to the re-obtained address information is not in the first identifier area library.
In another possible implementation manner, the target location record includes at least one location record, and each location record includes first historical address information of the terminal and a time range in which the terminal is located in the first historical address information;
the determining module is further configured to select a first target location record corresponding to a specified time range from the at least one location record;
and taking first historical address information included in the first target position record as the address information.
In another possible implementation manner, the determining module is further configured to, when the area identifier corresponding to the first historical address information is not in a second area identifier library, use the first historical address information included in the first target location record as the address information;
the second area identification library is used for storing at least one area identification with the travel popularity exceeding a threshold value.
In another possible implementation manner, the target location record includes at least one tag and address information corresponding to each tag;
the determining module is further configured to select a location tag as address information of a specified tag from the target location record.
In another possible implementation manner, the identity address code includes a first address code, and the first address code is an address code corresponding to a first-level administrative district included in the target area; the device further comprises:
the first deleting module is configured to delete the first address code in the identity address code when a deleting instruction is received.
In another possible implementation manner, the apparatus further includes:
and the first adding module is configured to add the area identifier of the first-level administrative district into a first sub-identifier library when a deleting instruction is received, wherein the first sub-identifier library is used for storing the area identifier of the terminal which does not belong to the first-level administrative district.
In another possible implementation manner, the identity address code includes a first address code and a second address code, the first address code is an address code corresponding to a first-level administrative district included in the target area, and the second address code is an address code corresponding to a second-level administrative district included in the target area;
after the writing of the identity address code into the certificate number input box, the apparatus further includes:
the second deleting module is configured to delete a second address code in the identity address codes when a deleting instruction is received;
and the third deleting module is configured to delete the first address code when a deleting instruction is received again.
In another possible implementation manner, the apparatus further includes:
the second adding module is configured to add the area identifier of the second-level administrative district into a second sub-identifier library when a deleting instruction is received, wherein the second sub-identifier library is used for storing the area identifier of the terminal which does not belong to the second-level administrative district;
and the third adding module is configured to add the area identifier of the first-level administrative district to a first sub-identifier library when the deleting instruction is received again, wherein the first sub-identifier library is used for storing the area identifier of the terminal which does not belong to the first-level administrative district.
In another aspect, a terminal is provided, and the computer device includes one or more processors and one or more memories, where at least one instruction is stored in the one or more memories, and the at least one instruction is loaded by the one or more processors and executed to implement the operations performed by the method for acquiring identity information in any one of the above possible implementations.
In another aspect, a non-transitory computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded by a processor and executes operations performed to implement the method for acquiring identity information in any one of the above possible implementation manners.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects: in the embodiment of the disclosure, an identity information input interface associated with an account currently logged in by a target application program APP is displayed on a terminal, wherein the identity information input interface comprises a certificate number input box; determining an identity address code corresponding to the address information according to the acquired address information of the terminal; and writing the identity address code into the certificate number input box. The identity address code is acquired according to the address information, and the address code is automatically written into the certificate number input box, so that the number of digits of the certificate number manually input by a user is reduced, and the operation cost of the user is low. The time for the user to manually input the identity address code is saved, and the efficiency for the user to input the certificate number is improved.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of an implementation environment provided by embodiments of the present disclosure. Referring to fig. 1, the implementation environment includes a terminal 101 and aserver 102. The terminal 101 and theserver 102 are connected via a wireless or wired network. In addition, a target APP for providing a service by theserver 102 may be installed on the terminal 101, and a user corresponding to the terminal 101 may implement functions such as data transmission and message interaction through the target APP.
Before the terminal 101 acquires the service provided by theserver 102, the user needs to perform real-name authentication in theserver 102; when a user performs real-name authentication, the terminal 101 acquires a certificate number of the user and sends the certificate number to theserver 102; the user is authenticated by theserver 102 based on the certificate number.
The terminal 101 may be a computer, a mobile phone, a tablet computer or other terminals. The target APP can be any target APP installed on the terminal 101; in addition, the target APP may be a target APP in the terminal 101 operating system, and may also be a target APP provided by a third party. For example, the target APP may be a shopping application, a financial application, a social application, or a short video application, among others. Theserver 102 may be a background server corresponding to the target APP. Accordingly,server 102 may be a shopping server, a financial server, a social application server, or a short video application server, among others.
Fig. 2 is a flowchart of a method for acquiring identity information according to an embodiment of the present disclosure. Referring to fig. 2, the method includes:
step 201: and displaying an identity information input interface associated with the currently logged account of the target application program APP on the terminal, wherein the identity information input interface comprises a certificate number input box.
Step 202: and determining an identity address code corresponding to the address information according to the acquired address information of the terminal.
Step 203: and writing the identity address code into the certificate number input box.
In a possible implementation manner, determining an identity address code corresponding to address information according to the obtained address information of the terminal includes: determining a target area corresponding to the address information according to the acquired address information of the terminal; and acquiring the identity address code corresponding to the target area according to the target area.
In another possible implementation manner, acquiring an identity address code corresponding to a target area according to the target area includes: and acquiring the identity address code corresponding to the target area from the corresponding relation between the area identifier and the identity address code according to the area identifier of the target area.
In another possible implementation manner, obtaining the identity address code corresponding to the target area from the corresponding relationship between the area identifier and the identity address code according to the area identifier of the target area includes:
the target area comprises a first-level administrative district; acquiring a first address code corresponding to the primary administrative district from the corresponding relation between the area identification and the identity address code according to the area identification of the primary administrative district, and taking the first address code as the identity address code;
the target area comprises a first-level administrative area and a second-level administrative area; according to the region identification of the first-level administrative district and the region identification of the second-level administrative district, a first address code corresponding to the first-level administrative district and a second address code corresponding to the second-level administrative district are obtained from the corresponding relation between the region identification and the identity address codes, and the first address code and the second address code are combined into the identity address code.
In another possible implementation manner, determining a target area corresponding to address information according to the obtained address information of the terminal includes: determining an address information range in which the address information is located according to the acquired address information of the terminal;
and according to the address information range, determining a target area corresponding to the address information range from the corresponding relation between the address information range and the area.
In another possible implementation manner, before determining an identity address code corresponding to address information according to the acquired address information of the terminal, the method further includes: positioning the address information of the terminal through a positioning function; or, acquiring address information currently selected by the terminal; alternatively, a target position record of the terminal is acquired, and address information is selected from the target position record.
In another possible implementation manner, before obtaining the identity address code corresponding to the target area from the corresponding relationship between the area identifier and the identity address code according to the area identifier of the target area, the method further includes:
when the area identification of the target area is not in the first area identification library, executing a step of acquiring the identity address code corresponding to the target area from the corresponding relation between the area identification and the identity address code according to the area identification of the target area;
the first area identification library is used for storing area identifications of areas which the terminal does not belong to.
In another possible implementation manner, the first area identifier library includes a first sub identifier library and a second sub identifier library, the first sub identifier library is used for storing the area identifiers of the terminals not belonging to the first-level administrative district, and the second sub identifier library is used for storing the area identifiers of the terminals not belonging to the second-level administrative district;
when the area identifier of the target area is not in the first area identifier library, executing a step of acquiring the identity address code corresponding to the target area from the corresponding relation between the area identifier and the identity address code according to the area identifier of the target area, wherein the step comprises the following steps:
when the area identification of the primary administrative district is not in the first sub-identification library and the area identification of the secondary administrative district is not in the second sub-identification library, acquiring a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district from the corresponding relation of the area identification and the identity address code according to the area identification of the primary administrative district and the area identification of the secondary administrative district;
and when the area identification of the primary administrative area is not in the first sub-identification library, executing a step of acquiring the first address code corresponding to the primary administrative area from the corresponding relation between the area identification and the identity address code according to the area identification of the primary administrative area.
In another possible implementation manner, the method further includes:
and when the area identifier of the target area is in the first identification area library, the address information of the terminal is acquired again until the area identifier of the target area corresponding to the acquired address information is not in the first area identifier library.
In another possible implementation, the target location record includes at least one location record, each location record including first historical address information of the terminal and a time range in which the terminal is located in the first historical address information;
selecting address information from the target location record, comprising: selecting a first target position record corresponding to a specified time range from at least one position record; the first history address information included in the first target position record is taken as the address information.
In another possible implementation manner, before taking the first historical address information included in the first target location record as the address information, the method further includes: when the area identification corresponding to the first historical address information is not in the second area identification library, executing a step of taking the first historical address information included in the first target position record as address information;
the second area identification library is used for storing at least one area identification with the travel popularity exceeding a threshold value.
In another possible implementation manner, the target location record includes at least one tag and address information corresponding to each tag;
selecting address information from the target location record, comprising:
and selecting the position label as the address information of the specified label from the target position record.
In another possible implementation manner, the identity address code includes a first address code, and the first address code is an address code corresponding to a first-level administrative district included in the target area;
after writing the identity address code into the certificate number input box, the method further comprises:
and when a deleting instruction is received, deleting the first address code in the identity address code.
In another possible implementation manner, the method further includes:
and when a deleting instruction is received, adding the area identification of the first-level administrative district into a first sub-identification library, wherein the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district.
In another possible implementation manner, the identity address code includes a first address code and a second address code, the first address code is an address code corresponding to a first-level administrative district included in the target area, and the second address code is an address code corresponding to a second-level administrative district included in the target area;
after writing the identity address code into the certificate number input box, the method further comprises:
when a deleting instruction is received, deleting a second address code in the identity address codes;
and when the deleting instruction is received again, deleting the first address code.
In another possible implementation manner, the method further includes:
when a deleting instruction is received, adding the area identification of the secondary administrative district into a second sub-identification library, wherein the second area identification library is used for storing the area identification of the terminal which does not belong to the secondary administrative district;
and when the deleting instruction is received again, adding the area identification of the first-level administrative district into a first sub-identification library, wherein the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district.
In the embodiment of the disclosure, an identity information input interface associated with an account currently logged in by a target application program APP is displayed on a terminal, wherein the identity information input interface comprises a certificate number input box; determining an identity address code corresponding to the address information according to the acquired address information of the terminal; and writing the identity address code into the certificate number input box. The identity address code is acquired according to the address information, and the address code is automatically written into the certificate number input box, so that the number of digits of the certificate number manually input by a user is reduced, and the operation cost of the user is low. The time for the user to manually input the identity address code is saved, and the efficiency for the user to input the certificate number is improved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
An embodiment of the present disclosure provides a flowchart of a method for acquiring identity information, and referring to fig. 3, the method includes:
step 301: and the terminal displays an identity information input interface associated with the currently logged account of the target application program APP.
The identity information input interface at least comprises a certificate number input box, and the certificate number input box is used for a user to input a certificate number; the identification number may be an identification number. The identity information input interface can also comprise an information input box, and the information input box is used for inputting user information by a user. The user information includes at least a name, and may further include at least one of age, gender, and school calendar.
Before a user acquires a service provided by a server by using a terminal, real-name authentication needs to be performed in the server. The terminal runs a target APP corresponding to the server and displays an application interface; the application interface comprises an authentication button, and a user can trigger the terminal to display the identity information input interface by clicking the authentication button. When the 'authentication button' is triggered, the terminal displays an identity information input interface.
Step 302: the terminal acquires address information of the terminal.
The terminal may obtain the address information of the terminal at two times:
firstly, when an identity information input interface is displayed on a terminal and comprises a certificate number input box, the terminal responds that the identity information input interface comprises the certificate number input box, and address information of the terminal is acquired.
Secondly, when a user triggers a certificate number input box of an identity information input interface on the terminal, the terminal responds that the identity information input interface comprises the certificate number input box, and address information of the terminal is obtained.
The terminal can acquire the address information of the terminal by any one of the following three ways:
firstly, the terminal locates the address information of the terminal through the locating function.
It should be noted that before the terminal locates the current address information of the terminal through the positioning function, the terminal determines whether to start the positioning function, and when the positioning function is started, the terminal locates the current address information of the terminal through the positioning function. And when the positioning function is not started, reminding a user to start the positioning function or acquiring the address information of the terminal through the following second or third mode.
For example, the current terminal starts a positioning function, and when the current terminal is positioned in the address information of "a city, province a city", the "a city, province a city" is the address information; and if the address information of the current terminal is located to be 'B province, B city and B city', the 'B province, B city and B city' is the address information. For example, referring to fig. 4, the address information located by the terminal is "beijing".
In the embodiment of the disclosure, the terminal directly locates the current address information of the terminal through the locating function. Generally, a user is at the home of the user, so that the terminal directly locates the current address information and subsequently obtains an identity address code based on the address information, and therefore, the identity address code may be the identity address code of the user, and the recommendation accuracy of the identity address code can be improved.
Secondly, the terminal acquires the address information currently selected by the terminal. For example, the current terminal does not turn on the positioning function, but the current terminal selects the address information. The address information selected by the current terminal is 'B city, province B city', namely the address information; and if the address information currently selected by the terminal is 'a city, province A city', namely the address information.
In the embodiment of the disclosure, the terminal acquires address information currently selected by the terminal. Therefore, even if the terminal does not start the positioning function, the terminal can acquire the address information, and the application scene of the embodiment of the disclosure is expanded.
Third, the terminal acquires a target location record of the terminal and selects address information from the target location record.
In one possible implementation, the target location record may be a historical location record; accordingly, the target location record includes at least one location record, each location record including first historical address information of the terminal and a time range in which the terminal is located at the first historical address information. Accordingly, the step of the terminal selecting the address information from the target location record may be:
the terminal selects a first target position record corresponding to the specified time range from at least one position record, and takes first historical address information included in the first target position record as address information.
The specified time range may include a time range corresponding to at least one holiday or a time range corresponding to at least one non-workday. For example, the specified time range is a time range corresponding to the spring festival (for example, 2 months 10 days to 2 months 17 days), and a time range corresponding to the year's day (1month 1 day to 1 month 3 days).
In the embodiment of the present disclosure, the specified time range is a time range corresponding to a spring festival (for example, 2 month 10 day-2 month 17 day), and therefore, when the terminal does not start the positioning function and needs to select the first target location record from at least one location record, the terminal selects the first target location record corresponding to the time range corresponding to the spring festival and uses the first historical address information included in the first target location record as the address information.
The target location record includes at least one location record, each location record including first historical address information of the terminal and a time range in which the terminal is located at the first historical address information. For example, in the embodiment of the present disclosure, one of the location records of the terminal is "C city, C province, 12/11", the first history address information included in the location record is "C city, C province", and the time when the terminal is located in "C city, C province" is "12/11". Another location record of the terminal is "D city, D province, 12/9", the first history address information included in the location record is "D city, D province", and the time when the terminal is located in "D city, D province" is "12/9". In the embodiment of the present disclosure, when the specified time range is a time range corresponding to a spring festival (for example, 2 month 10 day-2 month 17 day), the location record "12 month 11 th C city, C province" is the first target location record, where the first historical address information "C city, C province" included in "12 month 11 th C city, C province" is the address information.
In the embodiment of the disclosure, the terminal selects the first target location record corresponding to the specified time range from the at least one location record, and uses the first historical address information included in the first target location record as the address information, so that even if the terminal does not start the positioning function and does not select the address information where the terminal is located, the terminal can acquire the address information, and the application scenario of the embodiment of the disclosure is expanded. The terminal selects the first target location record corresponding to the specified time range from the at least one location record, because the user generally belongs to the user within the specific time range such as spring festival, New year's day, and the like, the time range corresponding to the spring festival, New year's day, and the like is taken as the specified time range, the terminal selects the first target location record corresponding to the specified time range from the at least one location record, the first historical address information included in the first target location record is taken as the address information, and the identity address code is acquired based on the address information, so the identity address code may be the identity address code of the user, and the recommendation accuracy of the identity address code can be improved.
It should be noted that the terminal may select the first target location record corresponding to the specified time range from the at least one location record, and may directly use the first historical address information included in the first target location record as the address information. The terminal may also determine whether the area identifier corresponding to the first historical address information is in the second area identifier library; and when the area identifier corresponding to the first historical address information is not in the second area identifier library, the terminal takes the first historical address information as the address information. The second area identification library is used for storing at least one area identification with the travel popularity exceeding a threshold value.
For example, in the embodiment of the present disclosure, the address information acquired by the terminal is "B city, province B city", the second identifier library stores at least one area identifier whose travel popularity exceeds the threshold, one of the area identifiers is "D city, province D city", and the second identifier library does not store "B city, province B city", and the terminal executes to acquire the identity address code corresponding to the address information "B city, province B city", according to the address information "B city, province B city".
For another example, in this embodiment of the present disclosure, the address information acquired by the terminal is "D city, D province, D city", the second identifier library stores at least one area identifier whose travel popularity exceeds the threshold, where one area identifier is "D city, D province, D city", that is, the address information "D city, D province, D city" acquired by the terminal is in the second area identifier library, then the method returns to step 302, and the terminal acquires the address information of the terminal again until the area identifier of the first history address information acquired again is not in the second area identifier library.
In the embodiment of the disclosure, when the area identifier of the first historical address information is not in the second area identifier library, the terminal executes to acquire the identity address code corresponding to the address information according to the address information. Because the second area identification library is used for storing at least one area identification with the travel popularity exceeding the threshold, and the area with the travel popularity exceeding the threshold is not generally the area to which the user belongs, when the area identification of the first historical address information is not in the second area identification library, the terminal executes the step of obtaining the identity address code corresponding to the address information according to the address information, wherein the identity address code may be the identity address code of the user, thereby reducing the error recommendation of the identity address code and improving the recommendation accuracy of the identity address code.
In another possible implementation manner, the target location record includes at least one tag and address information corresponding to each tag. Accordingly, the step of the terminal selecting the address information from the target location record may be: the terminal selects the address information of which the position label is the designated label from the target position record, and takes the selected address information as the address information.
The tag may be any noun indicating the location of the user, for example, the tag is "home", "company", "school". In the embodiment of the present disclosure, the designated tag is "home", and therefore, when the terminal does not turn on the positioning function and needs to select the address information of which the location tag is the designated tag from at least one location record, the terminal selects the address information corresponding to the designated tag "home", and uses the address information as the address information.
For example, in the embodiment of the present disclosure, one of the location records of the terminal is "E city, E province city", the address information included in the location record is "E city, E province city", and the corresponding label of "E city, E city", E city, E city, E. Another location record of the terminal is "company, F city, F province", the location record includes address information of "company, F city, F province", and the label corresponding to "company", F city, F province ". In the embodiment of the present disclosure, when the designated tag is "home", the address information "E province E city" included in the location record "E province city-home" is the address information.
In the embodiment of the disclosure, the terminal selects the location tag as the address information of the designated tag from at least one location record, and takes the selected address information as the address information. Therefore, even if the terminal does not start the positioning function and does not select the address information of the terminal, the terminal can acquire the address information, and the application scene of the embodiment of the disclosure is expanded. The terminal selects the location tag as the address information of the designated tag from the at least one location record, because the address information corresponding to the designated tag is generally the home of the user, for example, the address information corresponding to the designated tag "home" is generally the home of the user, so "home" is taken as the designated tag, the terminal selects the address information corresponding to the designated tag from the at least one location record, the address information is taken as the address information, and then the identity address code is obtained based on the address information, so the identity address code may be the identity address code of the user, and the recommendation accuracy of the identity address code can be improved.
It should be noted that the terminal may obtain the address information of the terminal through any one of the above three manners; the terminal can also obtain the address information of the terminal through the first mode when the positioning function is started. When the terminal does not start the positioning function, the address information of the terminal can be acquired through the second mode or the third mode. In addition, when the terminal does not start the positioning function, the terminal can also determine whether the currently selected address information exists, and when the currently selected address information exists, the target position information is obtained through the second mode. When the currently selected address information does not exist, the terminal determines whether a target position record exists, and when the target position record exists, the address information is obtained through a third mode; when no target position record is stored, this is ended, see for example fig. 5.
And when the terminal does not start the positioning function and does not have the currently selected address information, the terminal acquires the address information in a third mode. When the terminal acquires the address information in the third manner, the terminal may select a first target location record corresponding to the specified time range from the at least one location record, and use first historical address information included in the first target location record as the address information. And when the first target position record corresponding to the designated time range does not exist, the terminal selects the position label as the address information of the designated label from the target position record, and takes the selected address information as the address information. The terminal can also select address information with a position tag as a designated tag from the target position records, use the selected address information as the address information, select a first target position record corresponding to the designated time range from at least one position record when no position tag is the address information of the designated tag in the target position records, and use first historical address information included in the first target position record as the address information.
Step 303: and the terminal determines a target area corresponding to the address information according to the acquired address information of the terminal.
The implementation mode of the step is as follows: the terminal determines the address information range where the address information is located according to the acquired address information of the terminal, and the terminal determines the target area corresponding to the address information range from the corresponding relation between the address information range and the area according to the address information range. The target area includes at least a primary administrative area and may also include a secondary administrative area. The first-level administrative district can be provinces or direct prefectures; the secondary administrative district may be a region in a county, flag, or direct municipality.
The address information may be a longitude and latitude position, such as "113.01 degrees east longitude and 35.13 degrees north latitude", or may be an address, such as "the grinding head town of boai county, south of Henan province". The terminal determines the address range of the terminal according to the longitude and latitude or the address, for example, the address range of the east longitude 113.01 degrees and the north latitude 35.13 degrees is 'grinding head town of boai county in Henan province', and the terminal determines the corresponding target area as 'boai county in Henan province' from the corresponding relation of the address information range and the area according to the address information range.
According to the address information range, the terminal determines the address information range where the address information is located, and according to the address information range, the terminal determines the target area corresponding to the address information range from the corresponding relation between the address information range and the area. The terminal converts various address information into corresponding target areas, and then obtains the identity address codes corresponding to the target areas based on the target areas. The types of the address information are enriched, and the application scenarios of the embodiment of the disclosure are expanded.
It should be noted that, when the terminal determines the target area, the terminal instep 304 may be directly executed to obtain the identity address code corresponding to the target area according to the target area; the terminal can also store a first area identification library, and the first area identification library is used for storing area identifications of areas which the terminal does not belong to. Correspondingly, when the terminal determines the target area, whether the area identifier of the target area is in the first area identifier library or not can be determined; and when the area identification of the target area is not in the first area identification library, acquiring the identity address code corresponding to the target area. I.e. step 303 is performed,step 304 is performed.
Step 304: and when the area identifier of the target area is not in the first area identifier library, the terminal acquires the identity address code corresponding to the target area according to the target area.
The terminal stores the corresponding relation between the area identification and the identity address code; correspondingly, the step of the terminal acquiring the identity address code of the target area may be: and the terminal acquires the identity address code corresponding to the target area from the corresponding relation between the area identification and the identity address code according to the area identification of the target area.
The target area comprises a first-level administrative area, a first address code corresponding to the first-level administrative area is obtained from the corresponding relation between the area identification and the identity address code according to the area identification of the first-level administrative area, and the first address code is used as the identity address code.
For example, the correspondence between the area identifiers and the identification address codes stored in the terminal is shown in table 1 below. In the embodiment of the present disclosure, the target area obtained by the terminal is "E province", and the identity address code obtained from the correspondence between the area identifier and the identity address code shown in table 1 by the terminal is "123" according to the target area "E province".
TABLE 1
| Target area | Identity address code |
| E province | 123 |
| …… | …… |
When the target area comprises a first-level administrative district and a second-level administrative district, according to the area identification of the first-level administrative district and the area identification of the second-level administrative district, a first address code corresponding to the first-level administrative district and a second address code corresponding to the second-level administrative district are obtained from the corresponding relation between the area identification and the identity address codes, and the first address code and the second address code are combined into the identity address code.
For example, the correspondence between the area identifiers and the identification address codes stored in the terminal is shown in table 2 below. In the embodiment of the present disclosure, the target area obtained by the terminal is "E city, E province, E city", and the identity address code obtained from the correspondence between the area identifier and the identity address code shown in table 1 is "123456" by the terminal according to the target area "E city, E province, E city".
TABLE 2
| Target area | Identity address code |
| E province, E city | 123456 |
| …… | …… |
In the embodiment of the disclosure, the terminal acquires the identity address code corresponding to the target area according to the acquired corresponding relationship between the target area and the area identity address code. The identity address code may be the identity address code of the user, and the recommendation accuracy rate of the identity address code can be improved.
The point to be noted is that the terminal can update the corresponding relationship between the locally stored area identifier and the identity address code according to the corresponding relationship between the area identifier and the identity address code issued by the country, thereby ensuring the correctness of the identity address code recommended based on the area.
The first area identification library is used for storing area identifications of areas which the terminal does not belong to. The first area identification library comprises a first sub-identification library and a second sub-identification library, the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district, and the second sub-identification library is used for storing the area identification of the terminal which does not belong to the second-level administrative district; the target area includes a primary administrative area and a secondary administrative area.
When the area identifier of the target area is not in the first area identifier library, the step that the terminal acquires the identity address code corresponding to the target area from the corresponding relation between the area identifier and the identity address code according to the area identifier of the target area is as follows:
when the area identification of the primary administrative district is not in the first sub-identification library and the area identification of the secondary administrative district is not in the second sub-identification library, according to the area identification of the primary administrative district and the area identification of the secondary administrative district, a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district are obtained from the corresponding relation between the area identification and the identity address codes, and the first address code and the second address code are combined into the identity address code.
The identity address code comprises a first address code and a second address code, the first address code comprises multi-bit numbers, and the second address code comprises multi-bit numbers; for example, the first address code includes 3 digits and the second address code includes 3 digits. For example, in the embodiment of the present disclosure, the target area obtained by the terminal is "a city in a province a", the first-level administrative district included in the target area is "a city", and the second-level administrative district included in the target area is "a city". The first-level administrative district "a province" is not in the first sub-identifier library, that is, no recording terminal in the first sub-identifier library does not belong to the first-level administrative district "a province", and the second-level administrative district "a city" is not in the second sub-identifier library, that is, no recording terminal in the second sub-identifier library does not belong to the second-level administrative district "a city", then the terminal acquires a first address code corresponding to the first-level administrative district "a province" and a second address code corresponding to the second-level administrative district "a city", and codes the first address code and the second address into an identity address code.
When the area identification of the first-level administrative district is not in the first sub-identification library, but the area identification of the second-level administrative district is in the second sub-identification library, the terminal acquires the first address code corresponding to the first-level administrative district from the corresponding relation between the area identification and the identity address code according to the area identification of the first-level administrative district, and the first address code is used as the identity address code.
For example, in the embodiment of the present disclosure, the target area obtained by the terminal is "B city, B province" and "B city" as the primary administrative district included in the target area. The first-level administrative district 'B province' is not in the first sub-identifier library, that is, no terminal is recorded in the first sub-identifier library and does not belong to the first-level administrative district 'B province', but the second-level administrative district 'B city' is recorded in the second sub-identifier library and does not belong to the second-level administrative district 'B city', and then the terminal only obtains a first address code corresponding to the first-level administrative district 'B province', and uses the first address code as an identity address code. When a user enters a real-name authentication interface next time, for example, if the user position identification precision is only Shanxi province, the area identification of the Shanxi province does not exist in the first sub-identification library, although the area identification of the Taiyuan city exists in the second sub-identification library, the terminal still displays the first address code, and the user may belong to other cities, and if the area identification of the Shanxi city exists in the first sub-identification library, the first address code cannot be displayed in either the Shanxi province or the Shanxi city.
In the embodiment of the disclosure, when the area identifier of the target area is not in the first area identifier library, the terminal acquires the identity address code corresponding to the target area according to the target area. Because the first area identification library is used for storing the area identification of the terminal which does not belong to the area, when the area identification of the target area is not in the first area identification library, the terminal acquires the identity address code corresponding to the target area according to the target area. Therefore, the identity address code can be the identity address code of the user, and the recommendation accuracy rate of the identity address code can be improved.
When the area identifier of the target area is in the first identifier area library, the terminal acquires the address information of the terminal again until the area identifier of the target area corresponding to the acquired address information is not in the first identifier area library. When the terminal acquires the address information of the terminal again, the address information of the terminal can be acquired again in any one of the three modes, and the terminal can also select one address information as the address information from the target position record again in the third mode.
For example, in the embodiment of the present disclosure, a target area corresponding to address information acquired by a terminal is "C city and C province" C ", a primary administrative district included in the target area is" C city "C province, and a secondary administrative district included in the target area is" C city ". If the first sub-identifier library records that the terminal does not belong to the first sub-identifier library, that is, the first sub-identifier library records that the terminal does not belong to the first sub-identifier library, the process returns to step 302, and the terminal acquires the address information of the terminal again until the area identifier of the target area corresponding to the acquired address information is not in the first area identifier library.
In the embodiment of the present disclosure, when the area identifier of the target area is in the first identifier area library, the terminal acquires the address information of the terminal again until the area identifier of the target area corresponding to the address information acquired again is not in the first area identifier library. Since the first area identifier library is used to store the area identifiers to which the terminal does not belong, when the area identifier of the target area is in the first area identifier library, it can be determined that the terminal does not belong to the target area, that is, it can be determined that the user corresponding to the terminal does not belong to the target area. And the terminal acquires the address information of the terminal again until the area identifier of the target area corresponding to the acquired address information is not in the first area identifier library. And the terminal acquires a target area corresponding to the address information according to the re-acquired address information, and acquires an identity address code corresponding to the target area according to the target area. Therefore, the identity address code may be the identity address code of the user, so that the mistaken recommendation of the identity address code is reduced, and the recommendation accuracy rate of the identity address code can be improved.
Step 305: and the terminal writes the identity address code into the certificate number input box.
Throughstep 304, the terminal acquires the identity address code corresponding to the target area, and writes the identity address code into the certificate number input box. The certificate number input box is located on the identity information input interface, when the terminal acquires the identity address code corresponding to the target area, the terminal automatically writes the identity address code into the certificate number input box, and the identity address code is displayed in the certificate number input box in a left alignment mode, referring to fig. 6.
In the embodiment of the disclosure, when the terminal acquires the identity address code corresponding to the target area, the identity address code is automatically input in the certificate number input box, so that the number of digits of the certificate number manually input by the user is reduced, the operation cost of the user is reduced, and the efficiency of inputting the certificate number by the user is improved, so that the time consumed by the user for completing real-name authentication is short, and the real-name authentication process and the subsequent services can be conveniently carried out. For example, when the certificate number is an identification number, the identification number is generally 18 bits, and in the related art, the user needs to manually input 18 bits, and by the method provided by the embodiment of the disclosure, the terminal can automatically write a 3-bit or 6-bit identification address code into the certificate number input box, so that the user only needs to input 15 bits or 12 bits, and no additional operation is required by the user. In addition, the method provided by the embodiment of the disclosure can reduce the misoperation rate of the user. In the related art, when a user manually inputs a certificate number, a single number has three conditions of input error, input correctness and no input, and the input correctness of the user can be improved from 18 times (1/3) to 12 times (1/3).
Step 306: and when the terminal receives the deleting instruction, the identity address code is deleted, and the area identifier of the target area corresponding to the identity address code is added into the first area identifier library.
The first area identification library is used for storing area identifications of areas which the terminal does not belong to. The first area identification library comprises a first sub-identification library and a second sub-identification library, the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district, and the second sub-identification library is used for storing the area identification of the terminal which does not belong to the second-level administrative district. The target area includes a primary administrative area and a secondary administrative area.
The identity address code comprises a first address code, and the first address code is an address code corresponding to a first-level administrative district included in the target area. The mode of deleting the identity address code is as follows:
and after the terminal writes the identity address code into the certificate number input box, detecting the deletion operation of the user, and deleting the first address code in the identity address code in the certificate number input box when the terminal receives a deletion instruction.
When the terminal receives the deleting instruction, the terminal can also add the area identification of the first-level administrative district to the first sub-identification library.
In the embodiment of the disclosure, the terminal deletes the first address code by using a deletion instruction, where the first address code includes a plurality of digits, so that a user triggers a deletion operation, and the terminal deletes the plurality of digits, thereby improving deletion efficiency. For example, when the first 3 digits of the identity card number are displayed in the certificate number input box, namely, when the identity card number is accurate to a first-level administrative district (province or prefecture city), the user clicks a delete key, the deletion is directly completed by one-key deletion, and meanwhile, the fact that the user has no affiliation with the first-level administrative district is recorded.
In another possible implementation manner, the identity address code includes a first address code and a second address code, the first address code is an address code corresponding to a first-level administrative district included in the target area, and the second address code is an address code corresponding to a second-level administrative district included in the target area. The method for deleting the identity address code by the terminal comprises the following steps:
and when the terminal receives the deleting instruction again, deleting the first address code in the identity address code in the certificate number input frame.
And when the terminal receives the deletion instruction, adding the area identification of the secondary administrative district into a second sub-identification library, wherein the second sub-identification library is used for storing the area identification of the terminal which does not belong to the secondary administrative district. And when the deleting instruction is received again, adding the area identification of the first-level administrative district into a first sub-identification library, wherein the first sub-identification library is used for storing the area identification of the terminal which does not belong to the first-level administrative district.
For example, in the embodiment of the present disclosure, the target area obtained by the terminal is "E city, the identity address code corresponding to the target area" E city of province "is" 123456 ", where" 123 "is the address code corresponding to the first-level administrative area" E city, "and" 456 "is the address code corresponding to the second-level administrative area" E city. After the terminal automatically writes the identity address code '123456' into the certificate number input box, the terminal deletes '456' when receiving a deletion instruction, and adds'd city' into the second sub-identifier library. When the deletion instruction is received again, "123" is deleted, and "D province" is added to the first sub-id library.
In the embodiment of the disclosure, the terminal deletes the second address code by one deletion instruction, the second address code includes a plurality of digits, and deletes the first address code by another deletion instruction, the first address code includes a plurality of digits, so that the terminal deletes the identity address code by the user triggering two deletion operations, thereby improving the deletion efficiency. For example, when the first 6 digits of the identity card number are displayed in the certificate number input box, that is, when the address codes of the first-level administrative district (province or straight administrative city) and the second-level administrative district (county, flag of province or area of straight administrative city) are both displayed, the user clicks the delete key, the user deletes 3 digits from right to left by clicking the key, simultaneously records that the user and the second-level administrative district (county, flag or area of straight administrative city) have no affiliation, and when the user clicks the delete key again, the user deletes the one digit by clicking the key directly, and records that the user and the first-level administrative district have no affiliation.
It should be noted that there is no sequence between the operation of deleting the identity address code by the terminal and the operation of adding the area identifier of the area corresponding to the identity address code to the first area identifier library by the terminal. After the terminal can delete the identity address code, the area identifier of the area corresponding to the address code is added to the first area identifier library. The terminal can also add the area identifier of the area corresponding to the address code to the first area identifier library when deleting the identity address code. The terminal can also add the area identification of the area corresponding to the identity address code in the certificate number input box to the first area identification library when detecting the deletion instruction, and then delete the identity address code in the certificate number input box.
In the embodiment of the disclosure, when the terminal receives a deletion instruction, the identity address code is deleted, and the area identifier of the target area corresponding to the identity address code is added to the first area identifier library. Because the user deletes the identity address code, it can be indicated that the identity address code is not the identity address code of the user, that is, the target area corresponding to the identity address code is not the area to which the user belongs. The area identification of the target area corresponding to the identity address code is added into the first area identification library, the user enters an identity information input interface next time, and when the identity information input interface comprises a certificate number input box, the terminal cannot automatically write the identity address code corresponding to the target area into the certificate number input box, so that the mistaken recommendation of the identity address code is reduced, and the recommendation accuracy of the identity address code can be improved.
In the embodiment of the disclosure, an identity information input interface associated with an account currently logged in by a target application program APP is displayed on a terminal, wherein the identity information input interface comprises a certificate number input box; determining an identity address code corresponding to the address information according to the acquired address information of the terminal; and writing the identity address code into the certificate number input box. The identity address code is acquired according to the address information, and the address code is automatically written into the certificate number input box, so that the number of digits of the certificate number manually input by a user is reduced, and the operation cost of the user is low. The time for the user to manually input the identity address code is saved, and the efficiency for the user to input the certificate number is improved.
Fig. 7 is a block diagram of an apparatus for acquiring identity information according to an exemplary embodiment, where the apparatus for acquiring identity information, as shown in fig. 7, includes:
thedisplay module 701 is configured to display an identity information input interface associated with an account currently logged in by a target application program APP on a terminal, wherein the identity information input interface comprises a certificate number input box;
a determiningmodule 702, configured to determine, according to the obtained address information of the terminal, an identity address code corresponding to the address information;
awriting module 703 configured to write the identity address code into the certificate number entry box.
In a possible implementation manner, the determiningmodule 702 is further configured to determine, according to the obtained address information of the terminal, a target area corresponding to the address information;
and acquiring the identity address code corresponding to the target area according to the target area.
In another possible implementation manner, the determiningmodule 702 is further configured to obtain, according to the area identifier of the target area, the identity address code corresponding to the target area from the corresponding relationship between the area identifier and the identity address code.
In another possible implementation manner, the determiningmodule 702 is further configured to, when the target area includes a first-level administrative district, obtain, according to an area identifier of the first-level administrative district, a first address code corresponding to the first-level administrative district from a correspondence between the area identifier and the identity address code, and use the first address code as the identity address code;
when the target area comprises a first-level administrative district and a second-level administrative district, according to the area identification of the first-level administrative district and the area identification of the second-level administrative district, a first address code corresponding to the first-level administrative district and a second address code corresponding to the second-level administrative district are obtained from the corresponding relation between the area identification and the identity address codes, and the first address code and the second address code are combined into the identity address code.
In another possible implementation manner, the determiningmodule 702 is further configured to determine, according to the obtained address information of the terminal, an address information range in which the address information is located; and according to the address information range, determining a target area corresponding to the address information range from the corresponding relation between the address information range and the area.
In another possible implementation manner, the determiningmodule 702 is further configured to locate, through the locating function, address information where the terminal is currently located; or, acquiring address information currently selected by the terminal; alternatively, a target position record of the terminal is acquired, and address information is selected from the target position record.
In another possible implementation manner, the determiningmodule 702 is further configured to, when the area identifier of the target area is not in the first area identifier library, obtain, according to the area identifier of the target area, an identity address code corresponding to the target area from a correspondence between the area identifier and the identity address code; the first area identification library is used for storing area identifications of areas which the terminal does not belong to.
In another possible implementation manner, the first area identifier library includes a first sub identifier library and a second sub identifier library, the first sub identifier library is used for storing the area identifiers of the terminals not belonging to the first-level administrative district, and the second sub identifier library is used for storing the area identifiers of the terminals not belonging to the second-level administrative district;
the determiningmodule 702 is further configured to, when the area identifier of the primary administrative district is not in the first sub-identifier library and the area identifier of the secondary administrative district is not in the second sub-identifier library, obtain, according to the area identifier of the primary administrative district and the area identifier of the secondary administrative district, a first address code corresponding to the primary administrative district and a second address code corresponding to the secondary administrative district from a correspondence between the area identifier and the identity address code;
when the area identification of the first-level administrative district is not in the first sub-identification library, the first address code corresponding to the first-level administrative district is obtained from the corresponding relation between the area identification and the identity address code according to the area identification of the first-level administrative district.
In another possible implementation manner, the apparatus further includes: and the acquisition module is configured to reacquire the address information of the terminal when the area identifier of the target area is in the first identification area library until the area identifier of the target area corresponding to the reacquired address information is not in the first area identifier library.
In another possible implementation, the target location record includes at least one location record, each location record including first historical address information of the terminal and a time range in which the terminal is located in the first historical address information;
a determiningmodule 702, further configured to select a first target location record corresponding to the specified time range from the at least one location record; the first history address information included in the first target position record is taken as the address information.
In another possible implementation manner, the determiningmodule 702 is further configured to, when the area identifier corresponding to the first historical address information is not in the second area identifier library, take the first historical address information included in the first target location record as the address information; the second area identification library is used for storing at least one area identification with the travel popularity exceeding a threshold value.
In another possible implementation manner, the target location record includes at least one tag and address information corresponding to each tag; the determiningmodule 702 is further configured to select the location tag as the address information of the specified tag from the target location record.
In another possible implementation manner, the identity address code includes a first address code, and the first address code is an address code corresponding to a first-level administrative district included in the target area; the device still includes:
and the first deleting module is configured to delete the first address code in the identity address code when a deleting instruction is received.
In another possible implementation manner, the apparatus further includes: and the first adding module is configured to add the area identifier of the first-level administrative district into a first sub-identifier library when a deleting instruction is received, wherein the first sub-identifier library is used for storing the area identifier of the terminal which does not belong to the first-level administrative district.
In another possible implementation manner, the identity address code includes a first address code and a second address code, the first address code is an address code corresponding to a first-level administrative district included in the target area, and the second address code is an address code corresponding to a second-level administrative district included in the target area;
after writing the identity address code into certificate number input box, the device still includes:
the second deleting module is configured to delete the second address code in the identity address codes when a deleting instruction is received;
and the third deleting module is configured to delete the first address code when the deleting instruction is received again.
In another possible implementation manner, the apparatus further includes:
the second adding module is configured to add the area identifier of the second-level administrative district into a second sub-identifier library when a deleting instruction is received, wherein the second sub-identifier library is used for storing the area identifier of the terminal which does not belong to the second-level administrative district;
and the third adding module is configured to add the area identifier of the first-level administrative district into a first sub-identifier library when the deleting instruction is received again, wherein the first sub-identifier library is used for storing the area identifier of the terminal which does not belong to the first-level administrative district.
In the embodiment of the disclosure, an identity information input interface associated with an account currently logged in by a target application program APP is displayed on a terminal, wherein the identity information input interface comprises a certificate number input box; determining an identity address code corresponding to the address information according to the acquired address information of the terminal; and writing the identity address code into the certificate number input box. The identity address code is acquired according to the address information, and the address code is automatically written into the certificate number input box, so that the number of digits of the certificate number manually input by a user is reduced, and the operation cost of the user is low. The time for the user to manually input the identity address code is saved, and the efficiency for the user to input the certificate number is improved.
It should be noted that: in the apparatus for acquiring identity information according to the above embodiment, when acquiring identity information, only the division of each functional module is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for acquiring identity information and the method for acquiring identity information provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 8 shows a block diagram of a terminal 800 according to an exemplary embodiment of the disclosure. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 800 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 800 includes: aprocessor 801 and amemory 802.
Theprocessor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. Theprocessor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Theprocessor 801 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, theprocessor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, theprocessor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory.Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium inmemory 802 is used to store at least one instruction for execution byprocessor 801 to implement the method of obtaining identity information provided by the method embodiments herein.
In some embodiments, the terminal 800 may further include: aperipheral interface 803 and at least one peripheral. Theprocessor 801,memory 802 andperipheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected toperipheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of aradio frequency circuit 804, atouch screen display 805, acamera assembly 806, anaudio circuit 807, apositioning assembly 808, and apower supply 809.
Theperipheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to theprocessor 801 and thememory 802. In some embodiments, theprocessor 801,memory 802, andperipheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of theprocessor 801, thememory 802, and theperipheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
TheRadio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. Theradio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. Therf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, theradio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. Theradio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, theradio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
Thedisplay screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When thedisplay 805 is a touch display, thedisplay 805 also has the ability to capture touch signals on or above the surface of thedisplay 805. The touch signal may be input to theprocessor 801 as a control signal for processing. At this point, thedisplay 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, thedisplay 805 may be one, providing the front panel of the terminal 800; in other embodiments, thedisplay 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in still other embodiments, thedisplay 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even further, thedisplay 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. TheDisplay 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
Thecamera assembly 806 is used to capture images or video. Optionally,camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments,camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Theaudio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to theprocessor 801 for processing or inputting the electric signals to theradio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from theprocessor 801 or theradio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, theaudio circuitry 807 may also include a headphone jack.
Thepositioning component 808 is used to locate the current geographic position of the terminal 800 for navigation or LBS (Location Based Service). ThePositioning component 808 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 809 is used to provide power to various components interminal 800. Thepower supply 809 can be ac, dc, disposable or rechargeable. When thepower source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. Theprocessor 801 may control thetouch screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, theprocessor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel ofterminal 800 and/or underneathtouch display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and theprocessor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of thetouch display screen 805, theprocessor 801 controls the operability control on the UI interface according to the pressure operation of the user on thetouch display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and theprocessor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, theprocessor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side ofterminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, theprocessor 801 may control the display brightness of thetouch screen 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of thetouch display screen 805 is increased; when the ambient light intensity is low, the display brightness of thetouch display 805 is turned down. In another embodiment, theprocessor 801 may also dynamically adjust the shooting parameters of thecamera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, theprocessor 801 controls thetouch display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, theprocessor 801 controls thetouch display 805 to switch from the screen-on state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting ofterminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method of acquiring identity information in the following embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.