CN107645505B - Information acquisition method, device and storage medium - Google Patents

Information acquisition method, device and storage medium Download PDF

Info

Publication number
CN107645505B
CN107645505B CN201710888175.4A CN201710888175A CN107645505B CN 107645505 B CN107645505 B CN 107645505B CN 201710888175 A CN201710888175 A CN 201710888175A CN 107645505 B CN107645505 B CN 107645505B
Authority
CN
China
Prior art keywords
network
terminal
acquisition request
information
user account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710888175.4A
Other languages
Chinese (zh)
Other versions
CN107645505A (en
Inventor
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710888175.4A priority Critical patent/CN107645505B/en
Publication of CN107645505A publication Critical patent/CN107645505A/en
Application granted granted Critical
Publication of CN107645505B publication Critical patent/CN107645505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure relates to an information acquisition method and device, and belongs to the technical field of computers. The method comprises the following steps: receiving a first acquisition request sent by a server, wherein the first acquisition request is generated after the server receives a second acquisition request triggered by a user under a first network and determines a terminal bound with a user account in the second acquisition request, and the first acquisition request is used for acquiring preset information in the terminal; detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network; and when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying. The method and the device solve the problem that the user cannot acquire the preset information in the terminal when the terminal is not beside the user, and achieve the effect of ensuring the success rate of information acquisition.

Description

Information acquisition method, device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information obtaining method and apparatus.
Background
The verification code plays an important role in the daily life of people. For example, when a user takes an express delivery and logs in a webpage, the identity of the user needs to be verified according to the verification code.
In the related art, the verification code is usually sent to the terminal in a form of a short message, the terminal displays the short message after receiving the short message containing the verification code, and the user obtains the verification code by checking the short message.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides an information acquisition method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided an information acquisition method, the method including:
receiving a first acquisition request sent by a server, wherein the first acquisition request is generated after the server receives a second acquisition request triggered by a user under a first network and determines a terminal bound with a user account in the second acquisition request, and the first acquisition request is used for acquiring preset information in the terminal;
detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network;
and when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying.
Optionally, the detecting, according to the first obtaining request, whether the second network currently accessed by the terminal is a trusted network includes:
acquiring a Service Set Identifier (SSID) of a second network currently accessed by the terminal according to the first acquisition request;
detecting whether preset SSIDs of all the trust networks include the SSID of the second network;
and when the preset SSID of each credit granting network comprises the SSID of the second network, determining that the second network currently accessed by the terminal is the credit granting network.
Optionally, the method further includes:
receiving an SSID input by the user, and determining the SSID as an SSID of a credit granting network; alternatively, the first and second electrodes may be,
and receiving a credit granting network setting operation triggered by the user, acquiring the SSID of the network currently accessed by the terminal according to the credit granting network setting operation, and determining the SSID as the SSID of the credit granting network.
Optionally, the predetermined information is an unread short message containing a verification code.
Optionally, if the first obtaining request further includes a screening condition of the predetermined information, the method further includes:
when the screening condition is the recently received n pieces of preset information, reading the recently received n pieces of preset information from the inbox;
when the screening condition is that a predetermined format is satisfied, predetermined information satisfying the predetermined format is read from an inbox.
According to a second aspect of the embodiments of the present disclosure, there is provided an information acquisition method, the method including:
receiving a second acquisition request triggered by a user in a first network, wherein the second acquisition request comprises a user account;
determining a terminal bound with the user account;
sending a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring preset information in the terminal;
and receiving and displaying the preset information sent by the terminal, wherein the preset information is sent by the terminal after the terminal determines that a second network which is accessed currently is a trust network according to the first acquisition request, and the second network is different from the first network.
Optionally, the second obtaining request further includes a password, and the method further includes:
reading the user account and the password in the second acquisition request;
after the user account and the password are verified, displaying an information acquisition control;
and generating the first acquisition request after receiving an operation signal acting on the information acquisition control.
Optionally, the predetermined information is an unread short message containing a verification code.
According to a third aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, the apparatus including:
the system comprises a receiving module, a first obtaining module and a second obtaining module, wherein the receiving module is configured to receive a first obtaining request sent by a server, the first obtaining request is generated after the server receives a second obtaining request triggered by a user under a first network and determines a terminal bound with a user account in the second obtaining request, and the first obtaining request is used for obtaining preset information in the terminal;
a detection module configured to detect whether a second network currently accessed by the terminal is a trusted network according to the first acquisition request received by the receiving module, where the second network is different from the first network;
and the sending module is configured to send the predetermined information to the server for display when the detection result of the detection module indicates that the second network currently accessed by the terminal is a credit granting network.
Optionally, the detection module includes:
the obtaining sub-module is configured to obtain a Service Set Identifier (SSID) of a second network currently accessed by the terminal according to the first obtaining request;
the detection submodule is configured to detect whether the SSID of the second network obtained by the acquisition submodule is included in the SSIDs of the preset each trust network;
and the determining submodule is configured to determine that the second network currently accessed by the terminal is a credit granting network when the detection result of the detecting submodule is that the preset SSID of each credit granting network comprises the SSID of the second network.
Optionally, the apparatus further comprises:
the first determination module is configured to receive an SSID input by the user and determine the SSID as an SSID of a credit granting network; alternatively, the first and second electrodes may be,
and the second determination module is configured to receive a credit granting network setting operation triggered by the user, acquire an SSID of a network currently accessed by the terminal according to the credit granting network setting operation, and determine the SSID as the SSID of the credit granting network.
Optionally, the predetermined information is an unread short message containing a verification code.
Optionally, if the first obtaining request further includes a screening condition of the predetermined information, the apparatus further includes:
a first reading module configured to read the n pieces of predetermined information received most recently from the inbox when the filtering condition is the n pieces of predetermined information received most recently;
a second reading module configured to read predetermined information satisfying a predetermined format from an inbox when the filtering condition is that the predetermined format is satisfied.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, the apparatus including:
the receiving module is configured to receive a second acquisition request triggered by a user under the first network, wherein the second acquisition request comprises a user account;
a determining module configured to determine a terminal bound to the user account;
a sending module configured to send a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring predetermined information in the terminal;
and the display module is configured to receive and display the predetermined information sent by the terminal, wherein the predetermined information is sent by the terminal after the terminal determines that a second network which is accessed currently is a credit network according to the first acquisition request, and the second network is different from the first network.
Optionally, the second obtaining request further includes a password, and the apparatus further includes:
a reading module configured to read the user account and the password in the second acquisition request;
the display module is configured to display the information acquisition control after the user account and the password obtained by the reading module are verified;
the generating module is configured to generate the first obtaining request after receiving an operation signal acting on the information obtaining control displayed by the displaying module.
Optionally, the predetermined information is an unread short message containing a verification code.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first acquisition request sent by a server, wherein the first acquisition request is generated after the server receives a second acquisition request triggered by a user under a first network and determines a terminal bound with a user account in the second acquisition request, and the first acquisition request is used for acquiring preset information in the terminal;
detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network;
and when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a second acquisition request triggered by a user in a first network, wherein the second acquisition request comprises a user account;
determining a terminal bound with the user account;
sending a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring preset information in the terminal;
and receiving and displaying the preset information sent by the terminal, wherein the preset information is sent by the terminal after the terminal determines that a second network which is accessed currently is a trust network according to the first acquisition request, and the second network is different from the first network.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the information acquisition method according to the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the information acquisition method according to the second aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the second network accessed by the terminal at present is different from the first network where the user is present, which indicates that the terminal is not at the side of the user, at this time, the terminal can determine whether the terminal is in a credit granting environment by detecting whether the second network is a credit granting network, the predetermined information is sent to the server when the second network is determined to be the credit granting network, and the server displays the predetermined information to the user.
Because the preset information is an unread short message containing the verification code, the user can acquire the verification code in the short message in time, and the acquisition efficiency of the verification code is improved.
The first acquisition request further comprises screening conditions of the preset information, so that the user can set the screening conditions according to the requirement of the user, and the flexibility of information acquisition can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating an information acquisition method according to an example embodiment.
Fig. 2 is a flowchart illustrating an information acquisition method according to another exemplary embodiment.
Fig. 3 is a block diagram illustrating an information acquisition apparatus according to an example embodiment.
Fig. 4 is a block diagram illustrating an information acquisition apparatus according to an example embodiment.
FIG. 5 is a block diagram illustrating an apparatus for information acquisition in accordance with an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus for information acquisition in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an information acquisition method applied to a system including a terminal and a server according to an exemplary embodiment, and the information acquisition method includes the following steps, as shown in fig. 1.
In step 101, the server receives a second acquisition request triggered by the user under the first network, where the second acquisition request includes a user account.
In step 102, the server determines the terminal bound to the user account.
In step 103, the server sends a first acquisition request to the terminal, where the first acquisition request is used to acquire predetermined information in the terminal.
In step 104, the terminal receives a first acquisition request sent by the server.
In step 105, the terminal detects whether a second network currently accessed by the terminal is a trusted network according to the first acquisition request, wherein the second network is different from the first network.
In step 106, when the second network currently accessed by the terminal is a trusted network, the terminal sends the predetermined information to the server for display.
In step 107, the server receives and displays the predetermined information sent by the terminal.
Wherein, the steps 101-103 and 107 can be implemented separately as the embodiment of the server side, and the step 104-106 can be implemented separately as the embodiment of the terminal side.
In summary, according to the information obtaining method provided by the present disclosure, the second network currently accessed by the terminal is different from the first network where the user is currently located, which indicates that the terminal is not near the user, at this time, the terminal may determine whether the terminal is in a trust environment by detecting whether the second network is a trust network, and when it is determined that the second network is the trust network, the predetermined information is sent to the server, and the server displays the predetermined information to the user, thereby solving the problem that the user cannot obtain the predetermined information in the terminal when the terminal is not near the user, and achieving the effect of ensuring the success rate of information obtaining.
Fig. 2 is a flowchart illustrating an information acquisition method applied to a system including a terminal and a server according to another exemplary embodiment, and the information acquisition method includes the following steps, as shown in fig. 2.
In step 201, the server receives a second acquisition request triggered by the user under the first network, where the second acquisition request includes a user account.
The first network is the network in the current environment of the user, and the user remotely logs in the server under the first network and inputs the user account. The user account may be a user account of an application, such as a user account of a chat; or may be a user account of a system service of the terminal, for example, a user account of millet, which is not limited in this embodiment.
In actual implementation, a user remotely accesses a specified website in a first network, inputs a user account in the website, and at this time, a server corresponding to the website receives a second acquisition request including the user account.
In step 202, the second obtaining request further includes a password, and the server reads the user account and the password in the second obtaining request.
The password in the second acquisition request is a password set at the time of registering the user account.
In step 203, after the user account and password are verified, the server displays the information acquisition control.
The server can verify the user account and the password, and after the user account and the password pass the verification, the server displays the information acquisition control through the website; after the verification fails, the server continues to instruct the user to input the user account and the password for verification.
The information acquisition control is used for acquiring preset information in the terminal. When the predetermined information is an unread short message containing a verification code, the information acquisition control can be a short message acquisition control.
In step 204, the server generates a first acquisition request after receiving an operation signal acting on the information acquisition control.
When a user clicks the information acquisition control, the server receives an operation signal acting on the information acquisition control, and at the moment, the server generates a first acquisition request which is used for requesting the preset information in the terminal.
In step 205, the server determines the terminal bound to the user account.
When the user registers the user account in the server, the user account and the terminal are bound, and at the moment, the server can determine the terminal bound with the user account according to the user account remotely input by the user.
In step 206, the server sends a first acquisition request to the terminal, where the first acquisition request is used to acquire predetermined information in the terminal.
In step 207, the terminal receives the first acquisition request sent by the server.
In step 208, the terminal acquires the SSID of the second network currently accessed by the terminal according to the first acquisition request.
The terminal is currently accessed to the second network, and the second network is different from the first network, so that the terminal can be determined not to be beside the user. If the environment of the terminal is a credit granting environment, the information sent by the terminal to the server cannot be intercepted maliciously, and a user can obtain preset information from the terminal through the server; if the environment where the terminal is located is not the trust environment, the information sent by the terminal to the server may be maliciously intercepted, which causes information leakage, so that the terminal cannot send the predetermined information to the server.
Whether the environment in which the terminal is located is a credit granting environment or not can be determined through the second network, and if the second network is the credit granting network, the environment in which the terminal is located is determined to be the credit granting environment; and if the second network is not the credit granting network, determining that the environment where the terminal is located is not the credit granting environment.
The terminal may determine whether the second network is the trusted network through the SSID of the second network, and at this time, the terminal needs to read the SSID of the second network.
In an application scenario, a user forgets a terminal at a company when at home, and a second network accessed by the terminal is a company network and is a credit granting network; in another application scenario, a user forgets the terminal at home in a company, and the second network accessed by the terminal is a home network and is also a credit granting network.
In step 209, the terminal detects whether the SSID of the second network is included in preset SSIDs of the respective trusted networks.
The terminal stores SSIDs of each credit granting network in advance, detects whether the SSIDs include the SSID of the second network, and if the SSIDs include the SSID of the second network, determines that the second network is the credit granting network, namely, executes step 210; if the SSID does not include the SSID of the second network, determining that the second network is not a trusted network, and at this time, the terminal may send a notification message that the second network is not a trusted network to the server, or the terminal does not respond to the first acquisition request, and ending the process.
Wherein, the method also comprises: receiving an SSID input by a user, and determining the SSID as the SSID of the credit granting network; or receiving a credit granting network setting operation triggered by a user, acquiring the SSID of the network currently accessed by the terminal according to the credit granting network setting operation, and determining the SSID as the SSID of the credit granting network.
This embodiment provides two implementation manners of storing the SSID of the trusted network, which are described below.
In a first implementation, the user knows the SSID of each trusted network and manually inputs the SSID of the trusted network directly into the terminal. For example, the user knows the SSID of the home network and stores the SSID in the terminal.
In a second implementation manner, the SSID of the trusted network is unknown to the user, but the network currently accessed by the terminal is the trusted network, at this time, the user may trigger the trusted network setting operation, and the terminal reads the SSID of the currently accessed network and stores the SSID in the terminal. For example, if the user does not know the SSID of the company's network and the user accesses the company's network during the company's work, the user may trigger the trusted network setup operation, and at this time, the terminal reads the SSID of the company's network and stores the SSID in the terminal.
In step 210, when the preset SSIDs of the respective trust networks include an SSID of a second network, the terminal determines that the second network currently accessed by the terminal is a trust network.
In step 211, when the second network currently accessed by the terminal is the trusted network, the terminal sends the predetermined information to the server for display.
Before sending the predetermined information to the server, the terminal also needs to filter out the predetermined information according to the first acquisition request. The first obtaining request in this embodiment further includes a screening condition of the predetermined information, and the following takes the screening condition as an example to describe a flow of screening the predetermined information by the terminal.
In a first implementation, when the filtering condition is the latest received n pieces of predetermined information, the latest received n pieces of predetermined information are read from the inbox.
And if the first acquisition request further comprises n, the terminal reads n pieces of preset information from the inbox according to the sequence of the receiving time from late to early.
It should be noted that n is a default value, and the user may also modify n. For example, if n is 3, the terminal defaults to read the latest received 3 pieces of predetermined information from the inbox; and if the user modifies n to 5, the terminal reads the 5 pieces of preset information which are received recently from the inbox.
In a second implementation, when the filtering condition is that the predetermined format is satisfied, predetermined information satisfying the predetermined format is read from the inbox.
The predetermined format may indicate a layout format of the content of the predetermined information, and may also indicate a keyword included in the predetermined information, which is not limited in this embodiment.
For example, if the predetermined information is a short message containing the verification code, the predetermined format may be set to a general format of the short message containing the verification code, and the terminal reads the short message containing the verification code from the inbox according to the general format. Alternatively, the predetermined format may be set to include three keywords "verification code", and the terminal reads all the short messages including the keyword "verification code" from the inbox.
Optionally, the terminal may further screen the unread short messages from the read short messages, and use the unread short messages as the finally read predetermined information.
In step 212, the server receives and displays the predetermined information transmitted by the terminal.
After receiving the predetermined information, the server displays the predetermined information through the website, and the user can read the predetermined information. When the predetermined information is an unread short message containing the verification code, the user can read the verification code therein, register an account, take an express delivery, log in a webpage, and the like by using the verification code, and the embodiment does not limit the function of the verification code.
Wherein, the steps 201, 206 and 212 can be implemented separately as the embodiment of the server side, and the step 207, 211 can be implemented separately as the embodiment of the terminal side.
In summary, according to the information obtaining method provided by the present disclosure, the second network currently accessed by the terminal is different from the first network where the user is currently located, which indicates that the terminal is not near the user, at this time, the terminal may determine whether the terminal is in a trust environment by detecting whether the second network is a trust network, and when it is determined that the second network is the trust network, the predetermined information is sent to the server, and the server displays the predetermined information to the user, thereby solving the problem that the user cannot obtain the predetermined information in the terminal when the terminal is not near the user, and achieving the effect of ensuring the success rate of information obtaining.
Because the preset information is an unread short message containing the verification code, the user can acquire the verification code in the short message in time, and the acquisition efficiency of the verification code is improved.
The first acquisition request further comprises screening conditions of the preset information, so that the user can set the screening conditions according to the requirement of the user, and the flexibility of information acquisition can be improved.
Fig. 3 is a block diagram illustrating an information acquisition apparatus applied to a terminal according to an exemplary embodiment, the information acquisition apparatus including, as shown in fig. 3: a receiving module 310, a detecting module 320, and a transmitting module 330.
The receiving module 310 is configured to receive a first obtaining request sent by a server, where the first obtaining request is generated after the server receives a second obtaining request triggered by a user in a first network and determines a terminal bound to a user account in the second obtaining request, and the first obtaining request is used for obtaining predetermined information in the terminal;
the detecting module 320 is configured to detect whether a second network currently accessed by the terminal is a trusted network according to the first obtaining request received by the receiving module 310, where the second network is different from the first network;
the sending module 330 is configured to send the predetermined information to the server for presentation when the detection result of the detecting module 320 is that the second network currently accessed by the terminal is the trusted network.
Optionally, the detecting module 320 includes: the method comprises the following steps of obtaining a submodule, a detection submodule and a determination submodule;
the obtaining sub-module is configured to obtain a Service Set Identifier (SSID) of a second network currently accessed by the terminal according to the first obtaining request;
the detection submodule is configured to detect whether the SSID of each preset authorization network comprises the SSID of the second network obtained by the acquisition submodule;
the determining submodule is configured to determine that the second network currently accessed by the terminal is the credit granting network when the detection result of the detecting submodule is that the preset SSID of each credit granting network includes the SSID of the second network.
Optionally, the apparatus further comprises: a first determination module or a second determination module;
the first determination module is configured to receive an SSID input by a user and determine the SSID as the SSID of the credit granting network; alternatively, the first and second electrodes may be,
the second determining module is configured to receive a credit granting network setting operation triggered by a user, acquire an SSID of a network currently accessed by the terminal according to the credit granting network setting operation, and determine the SSID as an SSID of a credit granting network.
Optionally, the predetermined information is an unread short message containing a verification code.
Optionally, if the first obtaining request further includes a screening condition of the predetermined information, the apparatus further includes: the device comprises a first reading module and a second reading module;
the first reading module is configured to read the recently received n pieces of predetermined information from the inbox when the screening condition is the recently received n pieces of predetermined information;
the second reading module is configured to read the predetermined information meeting the predetermined format from the inbox when the filtering condition is that the predetermined format is met.
In summary, according to the information obtaining apparatus provided by the present disclosure, the second network currently accessed by the terminal is different from the first network where the user is currently located, which indicates that the terminal is not at the user's side, at this time, the terminal may determine whether the terminal is in a trust environment by detecting whether the second network is a trust network, and when it is determined that the second network is the trust network, the predetermined information is sent to the server, and the server displays the predetermined information to the user, thereby solving the problem that the user cannot obtain the predetermined information in the terminal when the terminal is not at the user's side, and achieving an effect of ensuring the success rate of information obtaining.
Because the preset information is an unread short message containing the verification code, the user can acquire the verification code in the short message in time, and the acquisition efficiency of the verification code is improved.
The first acquisition request further comprises screening conditions of the preset information, so that the user can set the screening conditions according to the requirement of the user, and the flexibility of information acquisition can be improved.
Fig. 4 is a block diagram illustrating an information acquisition apparatus applied to a server according to an exemplary embodiment, the information acquisition apparatus including, as shown in fig. 4: a receiving module 410, a determining module 420, a sending module 430, and a presentation module 440.
The receiving module 410 is configured to receive a second obtaining request triggered by the user under the first network, where the second obtaining request includes a user account;
the determining module 420 configured to determine a terminal bound to the user account;
the sending module 430 is configured to send a first obtaining request to the terminal, where the first obtaining request is used to obtain predetermined information in the terminal;
the presentation module 440 is configured to receive and present predetermined information sent by the terminal, where the predetermined information is sent by the terminal after determining, according to the first acquisition request, that a second network currently accessed is a trusted network, and the second network is different from the first network.
Optionally, the second obtaining request further includes a password, and the apparatus further includes: the device comprises a reading module, a display module and a generating module;
the reading module is configured to read the user account and the password in the second acquisition request;
the display module is configured to display the information acquisition control after the user account and the password obtained by the reading module are verified;
the generation module is configured to generate a first acquisition request after receiving an operation signal acting on the information acquisition control displayed by the display module.
Optionally, the predetermined information is an unread short message containing a verification code.
In summary, according to the information obtaining apparatus provided by the present disclosure, the second network currently accessed by the terminal is different from the first network where the user is currently located, which indicates that the terminal is not at the user's side, at this time, the terminal may determine whether the terminal is in a trust environment by detecting whether the second network is a trust network, and when it is determined that the second network is the trust network, the predetermined information is sent to the server, and the server displays the predetermined information to the user, thereby solving the problem that the user cannot obtain the predetermined information in the terminal when the terminal is not at the user's side, and achieving an effect of ensuring the success rate of information obtaining.
Because the preset information is an unread short message containing the verification code, the user can acquire the verification code in the short message in time, and the acquisition efficiency of the verification code is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure provides an information acquisition apparatus, which can implement the information acquisition method provided by the present disclosure, and the information acquisition apparatus may be applied to a terminal, and includes: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first acquisition request sent by a server, wherein the first acquisition request is generated after the server receives a second acquisition request triggered by a user under a first network and determines a terminal bound with a user account in the second acquisition request, and the first acquisition request is used for acquiring preset information in the terminal;
detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network;
and when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying.
An exemplary embodiment of the present disclosure provides an information acquisition apparatus capable of implementing an information acquisition method provided by the present disclosure, where the information acquisition apparatus may be applied to a server, and the information acquisition apparatus includes: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a second acquisition request triggered by a user in the first network, wherein the second acquisition request comprises a user account;
determining a terminal bound with a user account;
sending a first acquisition request to a terminal, wherein the first acquisition request is used for acquiring preset information in the terminal;
and receiving and displaying the preset information sent by the terminal, wherein the preset information is sent after the terminal determines that the second network which is accessed currently is a credit network according to the first acquisition request, and the second network is different from the first network.
Fig. 5 is a block diagram illustrating an apparatus 500 for information acquisition, according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 518 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 518 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory 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.
An exemplary embodiment of the present disclosure provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by the processor to implement the information acquisition method as described above.
Fig. 6 is a block diagram illustrating an apparatus 600 for information acquisition, according to an example embodiment. For example, the apparatus 600 may be provided as a server. Referring to fig. 6, the apparatus 600 includes a processing component 622 that further includes one or more processors and memory resources, represented by memory 632, for storing instructions, such as applications, that are executable by the processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the information acquisition methods described above.
The apparatus 600 may also include a power component 626 configured to perform power management of the apparatus 600, a wired or wireless network interface 650 configured to connect the apparatus 600 to a network, and an input/output (I/O) interface 658. The apparatus 600 may operate based on an operating system stored in the memory 632, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An information acquisition method, characterized in that the method comprises:
receiving a first acquisition request sent by a server, wherein the server receives a second acquisition request triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, determines a terminal bound with the user account in the second acquisition request, and reads the user account and a password in the second acquisition request; after the user account and the password are verified, displaying an information acquisition control through the specified website; generating the first acquisition request after receiving an operation signal acting on the information acquisition control, wherein the first acquisition request is used for acquiring preset information in the terminal; the predetermined information is an unread short message containing a verification code;
detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network;
when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying so that a user can read the verification code in the preset information;
and when the second network currently accessed by the terminal is not the trusted network, sending a notification message that the second network is not the trusted network to the server.
2. The method according to claim 1, wherein the detecting whether the second network currently accessed by the terminal is a trusted network according to the first acquisition request includes:
acquiring a Service Set Identifier (SSID) of a second network currently accessed by the terminal according to the first acquisition request;
detecting whether preset SSIDs of all the trust networks include the SSID of the second network;
and when the preset SSID of each credit granting network comprises the SSID of the second network, determining that the second network currently accessed by the terminal is the credit granting network.
3. The method of claim 2, further comprising:
receiving an SSID input by the user, and determining the SSID as an SSID of a credit granting network; alternatively, the first and second electrodes may be,
and receiving a credit granting network setting operation triggered by the user, acquiring the SSID of the network currently accessed by the terminal according to the credit granting network setting operation, and determining the SSID as the SSID of the credit granting network.
4. The method according to claim 1, wherein the first acquisition request further includes a filtering condition of the predetermined information, and the method further includes:
when the screening condition is the recently received n pieces of preset information, reading the recently received n pieces of preset information from the inbox;
when the screening condition is that a predetermined format is satisfied, predetermined information satisfying the predetermined format is read from an inbox.
5. An information acquisition method, characterized in that the method comprises:
receiving a second acquisition request triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, wherein the second acquisition request comprises the user account and a password;
determining a terminal bound with the user account;
reading the user account and the password in the second acquisition request;
after the user account and the password are verified, displaying an information acquisition control through the specified website;
generating the first acquisition request after receiving an operation signal acting on the information acquisition control;
sending a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring preset information in the terminal;
receiving and displaying the predetermined information sent by the terminal, wherein the predetermined information is sent by the terminal after determining that a second network which is currently accessed is a trust network according to the first acquisition request, and the second network is different from the first network; the predetermined information is an unread short message containing a verification code;
and when the second network currently accessed by the terminal is not the trusted network, receiving a notification message which is sent by the terminal and is not the trusted network.
6. An information acquisition apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a password obtaining module and a processing module, wherein the receiving module is configured to receive a first obtaining request sent by a server, the server receives a second obtaining request triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, determines a terminal bound with the user account in the second obtaining request, and reads the user account and the password in the second obtaining request; after the user account and the password are verified, displaying an information acquisition control through the specified website; the first acquisition request is generated after an operation signal acting on the information acquisition control is received, and the first acquisition request is used for acquiring preset information in the terminal; the predetermined information is an unread short message containing a verification code; a detection module configured to detect whether a second network currently accessed by the terminal is a trusted network according to the first acquisition request received by the receiving module, where the second network is different from the first network;
the sending module is configured to send the predetermined information to the server for displaying so that a user can read the verification code in the predetermined information when the detection result of the detecting module indicates that the second network currently accessed by the terminal is a credit granting network;
the sending module is further configured to send a notification message that the second network is not the trusted network to the server when the second network currently accessed by the terminal is not the trusted network.
7. The apparatus of claim 6, wherein the detection module comprises:
the obtaining sub-module is configured to obtain a Service Set Identifier (SSID) of a second network currently accessed by the terminal according to the first obtaining request;
the detection submodule is configured to detect whether the SSID of the second network obtained by the acquisition submodule is included in the SSIDs of the preset each trust network;
and the determining submodule is configured to determine that the second network currently accessed by the terminal is a credit granting network when the detection result of the detecting submodule is that the preset SSID of each credit granting network comprises the SSID of the second network.
8. The apparatus of claim 7, further comprising:
the first determination module is configured to receive an SSID input by the user and determine the SSID as an SSID of a credit granting network; alternatively, the first and second electrodes may be,
and the second determination module is configured to receive a credit granting network setting operation triggered by the user, acquire an SSID of a network currently accessed by the terminal according to the credit granting network setting operation, and determine the SSID as the SSID of the credit granting network.
9. The apparatus according to claim 6, wherein the first obtaining request further includes a filtering condition of the predetermined information, and the apparatus further includes:
a first reading module configured to read the n pieces of predetermined information received most recently from the inbox when the filtering condition is the n pieces of predetermined information received most recently;
a second reading module configured to read predetermined information satisfying a predetermined format from an inbox when the filtering condition is that the predetermined format is satisfied.
10. An information acquisition apparatus, characterized in that the apparatus comprises:
the receiving module is configured to receive a second acquisition request which is triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, wherein the second acquisition request comprises the user account and a password;
a determining module configured to determine a terminal bound to the user account;
a reading module configured to read the user account and the password in the second acquisition request;
the control display module is configured to display the information acquisition control through the specified website after the user account and the password are verified;
the request generation module is configured to generate the first acquisition request after receiving an operation signal acting on the information acquisition control;
a sending module configured to send a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring predetermined information in the terminal; the predetermined information is an unread short message containing a verification code;
the display module is configured to receive and display the predetermined information sent by the terminal, wherein the predetermined information is sent by the terminal after the terminal determines that the second network which is currently accessed is a credit network according to the first acquisition request;
the receiving module is further configured to receive a notification message, where the notification message is sent after the terminal determines that the currently accessed second network is not the trusted network according to the first acquisition request;
the second network is different from the first network.
11. An information acquisition apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a first acquisition request sent by a server, wherein the server receives a second acquisition request triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, determines a terminal bound with the user account in the second acquisition request, and reads the user account and a password in the second acquisition request; after the user account and the password are verified, displaying an information acquisition control through the specified website; generating the first acquisition request after receiving an operation signal acting on the information acquisition control, wherein the first acquisition request is used for acquiring preset information in the terminal; the predetermined information is an unread short message containing a verification code;
detecting whether a second network currently accessed by the terminal is a credit granting network or not according to the first acquisition request, wherein the second network is different from the first network;
when the second network currently accessed by the terminal is a credit granting network, sending the preset information to the server for displaying; so that the user can read the verification code in the predetermined information; and when the second network currently accessed by the terminal is not the trusted network, sending a notification message that the second network is not the trusted network to the server.
12. An information acquisition apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a second acquisition request triggered when a user accesses a specified website under a first network and inputs a user account in the specified website, wherein the second acquisition request comprises the user account and a password;
determining a terminal bound with the user account;
reading the user account and the password in the second acquisition request;
after the user account and the password are verified, displaying an information acquisition control through the specified website;
generating the first acquisition request after receiving an operation signal acting on the information acquisition control;
sending a first acquisition request to the terminal, wherein the first acquisition request is used for acquiring preset information in the terminal; the predetermined information is an unread short message containing a verification code;
receiving and displaying the preset information sent by the terminal, wherein the preset information is sent by the terminal after the terminal determines that the second network accessed currently is a credit network according to the first acquisition request; and receiving a notification message, wherein the notification message is sent after determining that a currently accessed second network is not a trusted network according to the first acquisition request, and the second network is different from the first network.
13. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the information acquisition method according to any one of claims 1 to 4.
14. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the information acquisition method of claim 5.
CN201710888175.4A 2017-09-27 2017-09-27 Information acquisition method, device and storage medium Active CN107645505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888175.4A CN107645505B (en) 2017-09-27 2017-09-27 Information acquisition method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888175.4A CN107645505B (en) 2017-09-27 2017-09-27 Information acquisition method, device and storage medium

Publications (2)

Publication Number Publication Date
CN107645505A CN107645505A (en) 2018-01-30
CN107645505B true CN107645505B (en) 2021-05-04

Family

ID=61114221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888175.4A Active CN107645505B (en) 2017-09-27 2017-09-27 Information acquisition method, device and storage medium

Country Status (1)

Country Link
CN (1) CN107645505B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196414A (en) * 2010-03-05 2011-09-21 阿尔卡特朗讯 Method and device for acquiring data in user terminal equipment
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification
CN105577648A (en) * 2015-12-11 2016-05-11 北京奇虎科技有限公司 Method for obtaining and sending short message identifying code, calculating device and mobile terminal
CN106411913A (en) * 2016-10-18 2017-02-15 乐视控股(北京)有限公司 Online payment dynamic code processing method and device, and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592009A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method and device for retrieving or modifying login password

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196414A (en) * 2010-03-05 2011-09-21 阿尔卡特朗讯 Method and device for acquiring data in user terminal equipment
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification
CN105577648A (en) * 2015-12-11 2016-05-11 北京奇虎科技有限公司 Method for obtaining and sending short message identifying code, calculating device and mobile terminal
CN106411913A (en) * 2016-10-18 2017-02-15 乐视控股(北京)有限公司 Online payment dynamic code processing method and device, and electronic equipment

Also Published As

Publication number Publication date
CN107645505A (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN106603667B (en) Screen information sharing method and device
CN106453052B (en) Message interaction method and device
CN106790043B (en) Method and device for sending message in live broadcast application
CN109219036B (en) Method and device for unbinding equipment and electronic equipment
CN109314913B (en) Access control limiting method and device
CN107094094B (en) Application networking method and device and terminal
US10313870B2 (en) Identity verification method and apparatus, and storage medium
CN106375096B (en) short message verification method and device
CN107959757B (en) User information processing method and device, APP server and terminal equipment
CN110049062B (en) Verification code verification method, device, system, server, electronic equipment and storage medium
CN108702763B (en) Method and device for sending lead code and scheduling request
EP3163834A1 (en) Method and device for equipment control
CN106302528B (en) Short message processing method and device
US20180341953A1 (en) Method and apparatus for reporting loss of card or device associated with account number or stolen of account number
CN107395624B (en) Information processing method and device
CN107562500B (en) Debugging device, method and equipment
CN109246094B (en) User terminal verification method, device and storage medium
WO2017045314A1 (en) Text message reading method and device
CN106506808B (en) Method and device for prompting communication message
CN109885360B (en) Data processing method, device and storage medium
CN110008668B (en) Data processing method, device and storage medium
CN107070816B (en) Application identification method and device and mobile terminal
CN107395724B (en) Network request method and device
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN106712960B (en) Processing method and device of verification code information

Legal Events

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