CN109598501B - Positioning method, positioning device and computer readable storage medium - Google Patents

Positioning method, positioning device and computer readable storage medium Download PDF

Info

Publication number
CN109598501B
CN109598501B CN201811458213.3A CN201811458213A CN109598501B CN 109598501 B CN109598501 B CN 109598501B CN 201811458213 A CN201811458213 A CN 201811458213A CN 109598501 B CN109598501 B CN 109598501B
Authority
CN
China
Prior art keywords
terminal
sending
stopping
position information
transaction
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
CN201811458213.3A
Other languages
Chinese (zh)
Other versions
CN109598501A (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.)
Nanjing Heyi Information Technology Co ltd
Original Assignee
Nanjing Heyi Information Technology 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 Nanjing Heyi Information Technology Co ltd filed Critical Nanjing Heyi Information Technology Co ltd
Priority to CN201811458213.3A priority Critical patent/CN109598501B/en
Publication of CN109598501A publication Critical patent/CN109598501A/en
Application granted granted Critical
Publication of CN109598501B publication Critical patent/CN109598501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/322Aspects of commerce using mobile devices [M-devices]
    • G06Q20/3224Transactions dependent on location of M-devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The embodiment of the invention discloses a positioning method, a positioning device and a computer readable storage medium, wherein the method comprises the following steps: determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier; according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal; and receiving the position information sent by the second terminal. The embodiment of the invention also provides a device for realizing the method and a computer readable storage medium.

Description

Positioning method, positioning device and computer readable storage medium
Technical Field
The present invention relates to the field of positioning technologies, and in particular, to a positioning method, an apparatus, and a computer-readable storage medium.
Background
In modern society, more and more instant receipts and payments are all accomplished the transaction through paying treasures, little letter etc. and the object of transaction is stranger often in the transaction process, and along with the once transaction with stranger is more frequent, the property of oneself also faces huge threat, for example: after a transaction with a stranger, the property needs to be recovered, but the person is not found.
Therefore, it is desirable to provide a positioning method capable of positioning the position information of the transaction counterpart.
Disclosure of Invention
In view of this, embodiments of the present invention provide a positioning method, an apparatus, and a computer-readable storage medium, which can position location information of a transaction partner, and improve user experience.
The technical scheme of the embodiment of the invention is realized as follows:
in one aspect, an embodiment of the present invention provides a positioning method, where the method includes: determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relation between the first user identifier and the second user identifier according to the second user identifier; according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal; and receiving the position information sent by the second terminal.
On the other hand, an embodiment of the present invention further provides a positioning method, where the method includes: receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification; determining the position information of the second terminal according to the position acquisition request; and sending the position information of the second terminal to the first terminal.
On the other hand, an embodiment of the present invention provides an apparatus for implementing the above positioning method, where the apparatus includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement: determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relation between the first user identifier and the second user identifier according to the second user identifier; according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal; and receiving the position information sent by the second terminal.
On the other hand, an embodiment of the present invention further provides a device for implementing the above positioning method, where the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement: receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification; determining the position information of the second terminal according to the position acquisition request; and sending the position information of the second terminal to the first terminal.
In another aspect, a computer-readable storage medium for implementing the above positioning method is provided.
The embodiment of the invention provides a positioning method, a positioning device and a computer readable storage medium, wherein the method comprises the following steps: determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier; according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal; receiving the position information sent by the second terminal; therefore, the position information of the transaction opposite side can be positioned, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
FIG. 3-1 is a schematic flow chart illustrating a positioning method according to an embodiment of the present invention;
fig. 3-2 is a schematic diagram illustrating an effect of a display interface in a map mode using location information of a second terminal as a label according to a first embodiment of the present invention;
fig. 3-3 are schematic diagrams illustrating an interface effect displayed in a short message manner including location information of a second terminal according to a first embodiment of the present invention;
FIG. 4-1 is a schematic flow chart illustrating a positioning method according to a second embodiment of the present invention;
fig. 4-2 is a schematic diagram illustrating an effect of a display interface selected by a user on a prompt window corresponding to a first terminal in a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a positioning method according to a third embodiment of the present invention;
fig. 6 is a schematic flowchart of a positioning method according to a fourth embodiment of the present invention;
fig. 7 is a schematic flowchart of a positioning method according to a fifth embodiment of the present invention;
fig. 8 is a schematic flowchart of a positioning method according to a sixth embodiment of the present invention;
fig. 9 is a schematic flowchart of a positioning method according to a seventh embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a positioning apparatus according to an eighth embodiment of the present invention;
fig. 11 is a schematic structural diagram of a positioning device in the ninth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, wiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division multiplexing-Long Term Evolution), and TDD-LTE (Time Division multiplexing-Long Term Evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, a color temperature sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; the color temperature sensor is used for detecting the color temperature of the ambient light; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an epc (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 with access to the EPC 203.
The EPC203 may include MME (Mobility Management Entity) 2031, hss (Home Subscriber Server) 2032, other MME2033, SGW (Serving gateway) 2034, pgw (PDN gateway) 2035, PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and the like.
Based on the hardware structure of the mobile terminal and the communication network system, the embodiments of the method of the invention are provided.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
In order to solve the technical problem in the foregoing background, an embodiment of the present invention provides a positioning method, which is applied to a first terminal, and a function implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Here, the terminal may be various types of devices with information processing capability in the process of the specific embodiment, for example, the terminal may include not only a mobile electronic device but also a stationary electronic device, and in the process of implementation, the terminal includes a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, and the like.
Fig. 3-1 is a schematic flow chart of a positioning method according to an embodiment of the present invention, as shown in fig. 3-1, the method includes:
step S301, determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier;
the first user identification represents the transaction account information of the first user, and can be account information such as a Paibao account number, a WeChat account number and the like; the second user identifier represents the transaction account information of the second user, and can be account information such as a Paibao account number, a WeChat account number and the like; the first user identifier and the second user identifier are account numbers with transactions, and the transaction relationship can be a temporary transaction relationship, a long-term transaction relationship and other transaction relationships.
When the first user identification transfers money to the second user identification, the fact that a transaction exists between the first user identification and the second user identification is shown, and the transaction relation between the first user identification and the second user identification can be determined according to the identification of the second user.
Determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier, including: searching the second user identification in a contact list stored in the first terminal; and if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship.
And searching a second user identification in a contact list stored in the first terminal, wherein the contact list stores contacts frequently transacting with the first user identification, and if the second user identification is not stored in the contact list of the first terminal, the transaction between the second user identification and the first user identification is a one-time transaction, so that the transaction relationship between the first user identification and the second user identification is determined to be a temporary transaction relationship.
Step S302, according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal;
here, the first subscriber identity corresponds to the first terminal and the second subscriber identity corresponds to the second terminal.
And when the transaction relationship between the first user identification and the second user identification is determined to be a temporary transaction relationship, the first terminal sends a position acquisition request to the second terminal, and the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal.
It should be noted that the location obtaining request may be sent from the first terminal to the second terminal when it is determined that a transaction occurs between the first user identifier and the second user identifier; or after determining that the transaction occurs between the first user identifier and the second user identifier, the first terminal sends the transaction to the second terminal; and the first terminal can also send the information to the second terminal according to the operation of the user corresponding to the first terminal.
Step S303, receiving the location information sent by the second terminal.
After the second terminal determines the position information of the second terminal, the position information of the second terminal is sent to the first terminal, and the first terminal receives the position information sent by the second terminal.
Here, the first terminal receives the position information sent by the second terminal, and the position information can be displayed on the first terminal in a map manner so as to be presented to a user corresponding to the first terminal; and the text can be displayed on the first terminal so as to be presented to a corresponding user of the first terminal.
The interface display effect of the first terminal receiving the location information transmitted by the second terminal may be as shown in fig. 3-2 and 3-3. Fig. 3-2 is a display interface in a map mode using the location information of the second terminal as a label, and fig. 3-3 is a display interface in a short message mode including the location information of the second terminal.
In the embodiment of the invention, a first user identifier and a second user identifier are determined to have a transaction, and a transaction relation between the first user identifier and the second user identifier is determined according to the second user identifier; according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal; receiving the position information sent by the second terminal; therefore, the position information of the transaction opposite side can be positioned, and the user experience is improved.
Example two
Based on the foregoing embodiments, the embodiments of the present invention provide a positioning method, where the method is applied to a first terminal, and a function implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 4-1 is a schematic flow chart of a positioning method according to a second embodiment of the present invention, as shown in fig. 4-1, the method includes:
step S401, determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier;
step S402, according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal;
step S403, receiving the location information sent by the second terminal;
step S404, receiving a sending stop instruction sent by the second terminal;
after the first terminal receives the position information sent by the second terminal, the second terminal detects user operation corresponding to the second terminal, when the fact that a user corresponding to the second terminal initiates a sending stopping instruction for stopping sending the position information is detected, the sending stopping instruction is sent to the first terminal, and the first terminal receives the sending stopping instruction sent by the second terminal.
Step S405, displaying a prompt window according to the stop sending instruction;
and according to the sending stopping instruction, the first terminal displays a prompt window for reminding a user corresponding to the first terminal, and the user corresponding to the second terminal requests to stop sending the position information of the second terminal to the first terminal.
Step S406, receiving user operation aiming at the prompt window, and generating a control instruction according to the user operation;
after the first terminal displays the prompt window, the first terminal detects user operation of a user corresponding to the first terminal on the prompt window, and generates a control instruction according to the user operation on the prompt window. As shown in fig. 4-2, the user corresponding to the first terminal makes a selection on the prompt window.
Step S407, sending the control instruction to the second terminal to respond to the transmission stopping instruction; and the control instruction is used for enabling the second terminal to continuously send or stop sending the position information to the first terminal.
And sending a control instruction generated according to the user operation aiming at the prompt window to the second terminal so as to respond to the sending stopping instruction, wherein the control instruction is used for enabling the second terminal to continuously send or stop sending the position information of the second terminal to the first terminal. As shown in fig. 4-2, if the user corresponding to the first terminal selects "yes" on the prompt window, a control instruction is generated according to the user selection, and the control instruction is used for enabling the second terminal to stop sending the location information of the second terminal to the first terminal; and if the user corresponding to the first terminal selects 'no' on the prompt window, generating a control instruction according to the user selection, wherein the control instruction is used for enabling the second terminal to continuously send the position information of the second terminal to the first terminal.
In the positioning method provided by the embodiment of the invention, a sending stopping instruction sent by the second terminal is received; displaying a prompt window according to the sending stopping instruction; receiving user operation aiming at the prompt window, and generating a control instruction according to the user operation; sending the control instruction to the second terminal to respond to the transmission stopping instruction; the control instruction is used for enabling the second terminal to continue sending or stop sending the position information to the first terminal; therefore, in the transaction process, when the transaction opposite side initiates a request for stopping sending the position information, the transfer party can select to continue sending or stop sending the position information according to actual conditions, and user experience is further improved.
EXAMPLE III
Based on the foregoing embodiments, an embodiment of the present invention provides a positioning method, where the method is applied to a first terminal, and a function implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and as a matter of course, the terminal at least includes the processor and the storage medium.
Fig. 5 is a schematic flowchart of a positioning method according to a third embodiment of the present invention, and as shown in fig. 5, the method includes:
step S501, determining that a first user identification and a second user identification have a transaction, and determining a transaction relation between the first user identification and the second user identification according to the second user identification;
step S502, according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal;
step S503, receiving the location information sent by the second terminal;
step S504, sending the set first time threshold to the second terminal; or determining the receiving time length according to the transaction time of the transaction; if the receiving duration is greater than a preset second time threshold, generating a positioning stopping instruction, and sending the positioning stopping instruction corresponding to the positioning stopping to the second terminal; or receiving a positioning stopping operation, and sending a positioning stopping instruction corresponding to the positioning stopping operation to the second terminal; the stop positioning instruction is used for stopping sending the position information.
Here, when the first terminal needs to stop receiving the location information transmitted by the second terminal after receiving the location information transmitted by the second terminal, the stop of receiving the location information transmitted by the second terminal includes three cases:
(1) And if the sending time length is greater than the first time threshold, stopping sending the position information of the second terminal to the first terminal, so that the first terminal stops receiving the position information sent by the second terminal.
(2) Determining the receiving time length of the first terminal for receiving the position information of the second terminal according to the transaction time between the first user identification and the second user identification, comparing the receiving time length with a preset second time threshold, if the receiving time length is greater than the second time threshold, generating a positioning stopping instruction by the first terminal, and sending a positioning stopping instruction corresponding to the positioning stopping to the second terminal, thereby stopping receiving the position information of the second terminal.
(3) Detecting the operation of a user corresponding to the first terminal, and when the first terminal receives the positioning stopping operation of the user corresponding to the first terminal; and generating a stop positioning instruction corresponding to the stop positioning operation according to the stop positioning operation, and sending the stop positioning instruction to the second terminal. And the stop positioning instruction is used for stopping sending the position information of the second terminal to the first terminal.
The first time threshold is used for comparing with the sending time length, and the sending of the position information to the first terminal is stopped according to the comparison result; the second time threshold is used for comparing with the receiving time length and generating a positioning stopping instruction according to a comparison result; the first time threshold and the second time threshold may be set according to the actual requirements of the user.
In the positioning method provided by the embodiment of the invention, the set first time threshold value is sent to the second terminal; or determining the receiving time length according to the transaction time of the transaction; if the receiving duration is greater than a preset second time threshold, generating a positioning stopping instruction, and sending the positioning stopping instruction corresponding to the positioning stopping to the second terminal; or receiving a positioning stopping operation, and sending a positioning stopping instruction corresponding to the positioning stopping operation to the second terminal; the stop positioning instruction is used for stopping sending the position information; therefore, the receiving of the position information of the transaction opposite side can be stopped according to different conditions, and the user experience is further improved.
Example four
Based on the foregoing embodiments, the embodiments of the present invention provide a positioning method, where the method is applied to a second terminal, and functions implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 6 is a schematic flow chart of a positioning method according to a fourth embodiment of the present invention, as shown in fig. 6, the method includes:
step S601, receiving a position acquisition request sent by a first terminal corresponding to a first user identification; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification;
the first user identification represents the transaction account information of the first user, and can be account information such as a Paibao account number, a WeChat account number and the like; the second user identifier represents the transaction account information of the second user, and can be account information such as a Paibao account number, a WeChat account number and the like; the first user identifier and the second user identifier are account numbers with transactions, and the transaction relationship can be a temporary transaction relationship, a long-term transaction relationship and other transaction relationships.
Here, the first subscriber identity corresponds to the first terminal and the second subscriber identity corresponds to the second terminal.
When the first user identification transfers money to the second user identification, the fact that a transaction exists between the first user identification and the second user identification is shown, according to the identification of the second user, the transaction relation between the first user identification and the second user identification can be determined, when the transaction relation between the first user identification and the second user identification is a temporary transaction relation, the first terminal sends a position obtaining request to the second terminal, the second terminal receives the position obtaining request sent by the first terminal corresponding to the first user identification, and the position obtaining request is generated by the first terminal according to the transaction relation between the first user identification and the second user identification.
Step S602, determining the position information of the second terminal according to the position acquisition request;
and the second terminal determines the position information of the second terminal according to the received position acquisition request. Here, the location information of the second terminal may be determined by a GPS positioning or a base station positioning, and the present application does not limit a positioning manner in which the second terminal obtains the location information.
Step S603, sending the location information of the second terminal to the first terminal.
And after the second terminal determines the position information of the second terminal, the position information of the second terminal is sent to the first terminal corresponding to the first user identification.
It should be noted that, sending the location information of the second terminal to the first terminal may be based on an application of the transaction, or may be based on a short message, or other applications to send the location information.
The positioning method provided by the embodiment of the invention receives a position acquisition request sent by a first terminal corresponding to a first user identification; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification; determining the position information of the second terminal according to the position acquisition request; sending the position information of the second terminal to the first terminal; therefore, the position information of the transaction opposite side can be positioned, and the user experience is improved.
EXAMPLE five
Based on the foregoing embodiments, the embodiments of the present invention provide a positioning method, where the method is applied to a second terminal, and functions implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 7 is a schematic flowchart of a positioning method in a fifth embodiment of the present invention, and as shown in fig. 7, the method includes:
step S701, receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to a transaction relation between the first user identification and the second user identification;
step S702, determining the position information of the second terminal according to the position acquisition request;
step S703 of sending the location information of the second terminal to the first terminal;
step S704, receiving a stop sending instruction; the sending stopping instruction is used for stopping sending the position information;
after the first terminal receives the position information sent by the second terminal, the second terminal detects user operation corresponding to the second terminal, detects whether a user corresponding to the second terminal initiates sending stopping operation for stopping sending the position information, and receives a sending stopping instruction corresponding to the sending stopping operation when the sending stopping operation is detected, wherein the sending stopping instruction is used for stopping sending the position information.
Step S705, sending the sending stopping instruction to the first terminal;
and when the second terminal receives the transmission stopping instruction, transmitting the transmission stopping instruction to the first terminal.
Step S706, receiving a control instruction which is sent by the first terminal and responds to the sending stopping instruction;
and according to the sending stopping instruction, the first terminal pops up a prompt window for reminding a user corresponding to the first terminal, and the user corresponding to the second terminal requests to stop sending the position information of the second terminal to the first terminal. After the first terminal pops up the prompt window, the first terminal detects the operation of a user corresponding to the first terminal on the prompt window, generates a control instruction according to the user operation, and sends the control instruction to the second terminal, and the second terminal receives the control instruction which is sent by the first terminal and responds to the stop sending instruction.
And step S707, according to the control instruction, continuing or stopping sending the position information to the first terminal.
And the second terminal receives the control instruction and continues to send or stops sending the position information of the second terminal to the first terminal according to the control instruction.
In the positioning method provided by the embodiment of the invention, a command for stopping sending is received; the sending stopping instruction is used for stopping sending the position information; sending the sending stopping instruction to the first terminal; receiving a control instruction which is sent by the first terminal and responds to the transmission stopping instruction; continuing or stopping sending the position information to the first terminal according to the control instruction; therefore, in the transaction process, when the transaction opposite side initiates a request for stopping sending the position information, the transfer party can select to continue sending or stop sending the position information according to actual conditions, and user experience is further improved.
EXAMPLE six
Based on the foregoing embodiments, the embodiments of the present invention provide a positioning method, where the method is applied to a second terminal, and functions implemented by the method may be implemented by a processor in the terminal calling a program code, where of course, the program code may be stored in a computer storage medium, and thus, the terminal at least includes the processor and the storage medium.
Fig. 8 is a schematic flowchart of a positioning method according to a sixth embodiment of the present invention, and as shown in fig. 8, the method includes:
step S801, receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to a transaction relation between the first user identification and the second user identification;
step S802, determining the position information of the second terminal according to the position acquisition request;
step S803, sending the location information of the second terminal to the first terminal;
step S804, receiving a set first time threshold value sent by the first terminal; determining a sending time length according to the transaction time of the transaction; if the sending duration is greater than the first time threshold, stopping sending the position information to the first terminal; or receiving a positioning stopping instruction sent by the first terminal; and stopping sending the position information to the first terminal according to the positioning stopping instruction.
Here, when the second terminal transmits its own position information to the first terminal, the transmission of the position information may be stopped based on the following two cases:
(1) The method comprises the steps that a first terminal sends a set first time threshold to a second terminal, the second terminal receives the first time threshold sent by the first terminal, the sending time length for sending position information of the second terminal is determined according to the transaction time between a first user identification and a second user identification, the sending time length is compared with the first time threshold, and if the sending time length is larger than the first time threshold, the sending of the position information of the second terminal to the first terminal is stopped.
(2) Detecting the operation of a user corresponding to the first terminal, and when the first terminal receives the stop positioning operation of the user corresponding to the first terminal; and determining a positioning stopping instruction corresponding to the positioning stopping operation according to the positioning stopping operation, and sending the positioning stopping instruction to the second terminal. And according to the positioning stopping instruction, the second terminal stops sending the position information of the second terminal to the first terminal.
In the positioning method provided by the embodiment of the invention, a set first time threshold value sent by the first terminal is received; determining a sending time length according to the transaction time of the transaction; if the sending duration is greater than the first time threshold, stopping sending the position information to the first terminal; or receiving a positioning stopping instruction sent by the first terminal; stopping sending the position information to the first terminal according to the positioning stopping instruction; therefore, the position information of the transaction opposite side can be stopped being sent according to different conditions, and the user experience is further improved.
EXAMPLE seven
Based on the foregoing embodiments, the embodiments of the present invention provide a positioning method, which is applied to a system including a first terminal and a second terminal, where the functions implemented by the method may be implemented by a processor in the terminal calling a program code, and of course, the program code may be stored in a computer storage medium, and thus, the terminal includes at least a processor and a storage medium.
Fig. 9 is a schematic flowchart of a positioning method according to a seventh embodiment of the present invention, and as shown in fig. 9, the method includes:
step S901, a first terminal determines that a first user identifier and a second user identifier have a transaction, and determines a transaction relation between the first user identifier and the second user identifier according to the second user identifier;
step S902, the first terminal sends a position acquisition request to a second terminal corresponding to the second user identification according to the transaction relation;
step S903, the second terminal receives a position acquisition request sent by the first terminal;
step S904, the second terminal determines the position information of the second terminal according to the position acquisition request;
step S905, the second terminal sends the position information of the second terminal to the first terminal;
step S906, the first terminal receives the location information sent by the second terminal.
After the first terminal sends a position acquisition request to the second terminal, the second terminal sends the position information of the second terminal to the first terminal in real time according to the received position acquisition request; or according to the position acquisition request sent by the first terminal, sending the current position information of the second terminal to the first terminal, such as: the first terminal sends a position acquisition request to the second terminal once, the second terminal sends the position information of the second terminal at the moment of receiving the position acquisition request to the first terminal, and when the preset time threshold is exceeded, the second terminal stops sending the position information to the first terminal.
Example eight
Based on the foregoing embodiments, an embodiment of the present invention provides a positioning apparatus applied to a first terminal, as shown in fig. 10, the apparatus includes: a first memory 1001, a first processor 1002, and a computer program stored on the first memory 1001 and executable on the first processor 1002, the first processor 1002 executing the computer program to implement:
determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relationship between the first user identifier and the second user identifier according to the second user identifier;
according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal;
and receiving the position information sent by the second terminal.
In an embodiment, the determining the transaction relationship between the first user id and the second user id according to the second user id by the first processor 1002 when executing the computer program includes: searching the second user identification in a contact list stored in the first terminal; and if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship.
In an embodiment, the first processor 1002, when executing the computer program, further implements: receiving a sending stopping instruction sent by the second terminal; displaying a prompt window according to the sending stopping instruction; receiving user operation aiming at the prompt window, and generating a control instruction according to the user operation; sending the control instruction to the second terminal to respond to the transmission stopping instruction; and the control instruction is used for enabling the second terminal to continuously send or stop sending the position information to the first terminal.
In an embodiment, the first processor 1002, when executing the computer program, further implements: sending the set first time threshold to the second terminal; or determining the receiving time length according to the transaction time of the transaction; if the receiving duration is greater than a preset second time threshold, generating a positioning stopping instruction, and sending the positioning stopping instruction corresponding to the positioning stopping to the second terminal; or receiving a positioning stopping operation, and sending a positioning stopping instruction corresponding to the positioning stopping operation to the second terminal; and the stop positioning instruction is used for stopping sending the position information.
It should be noted that the first memory 1001 in the embodiment of the present invention may correspond to the first memory 160 in fig. 1, and the first processor 1002 may correspond to the controller 180 in fig. 1.
It is to be noted here that: the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
Example nine
Based on the foregoing embodiment, an embodiment of the present invention further provides a positioning apparatus, which is applied to a second terminal, and as shown in fig. 11, the apparatus includes: a second memory 1101, a second processor 1102 and a computer program stored on the second memory 1101 and executable on the second processor 1102, the second processor 1102 executing the computer program to implement:
receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification;
determining the position information of the second terminal according to the position acquisition request;
and sending the position information of the second terminal to the first terminal.
In an embodiment, the second processor 1102, when executing the computer program, further implements: receiving a command of stopping sending; the sending stopping instruction is used for stopping sending the position information; sending the sending stopping instruction to the first terminal; receiving a control instruction which is sent by the first terminal and responds to the transmission stopping instruction; and according to the control instruction, continuously sending or stopping sending the position information to the first terminal.
In an embodiment, the second processor 1102, when executing the computer program, further implements: receiving a set first time threshold value sent by the first terminal; determining a sending time length according to the transaction time of the transaction; if the sending duration is longer than the first time threshold, stopping sending the position information to the first terminal; or receiving a positioning stopping instruction sent by the first terminal; and stopping sending the position information to the first terminal according to the positioning stopping instruction.
It should be noted that the second memory 1101 in the embodiment of the present invention may correspond to the second memory 160 in fig. 1, and the second processor 1102 may correspond to the controller 180 in fig. 1.
Here, it should be noted that: the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects to the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
Example ten
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement:
determining that a first user identifier and a second user identifier have a transaction, and determining a transaction relation between the first user identifier and the second user identifier according to the second user identifier;
according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal;
and receiving the position information sent by the second terminal.
In one embodiment, the computer program, when executed by a processor, implements the determining a transaction relationship between the first user identity and the second user identity based on the second user identity, comprising: searching the second user identification in a contact list stored in the first terminal; and if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship.
In an embodiment, the computer program, when executed by the processor, further implements: receiving a sending stopping instruction sent by the second terminal; displaying a prompt window according to the sending stopping instruction; receiving user operation aiming at the prompt window, and generating a control instruction according to the user operation; sending the control instruction to the second terminal to respond to the transmission stopping instruction; and the control instruction is used for enabling the second terminal to continuously send or stop sending the position information to the first terminal.
In an embodiment, the computer program, when executed by the processor, further implements: sending the set first time threshold value to the second terminal; or determining the receiving time length according to the transaction time of the transaction; if the receiving duration is greater than a preset second time threshold, generating a positioning stopping instruction, and sending the positioning stopping instruction corresponding to the positioning stopping to the second terminal; or receiving a positioning stopping operation, and sending a positioning stopping instruction corresponding to the positioning stopping operation to the second terminal; and the stop positioning instruction is used for stopping sending the position information.
Here, it should be noted that: the description of the terminal embodiment is similar to the description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention to understand that, for brevity, detailed description is omitted here.
EXAMPLE eleven
Based on the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements:
receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification;
determining the position information of the second terminal according to the position acquisition request;
and sending the position information of the second terminal to the first terminal.
In an embodiment, the computer program, when executed by the processor, further implements: receiving a command for stopping sending; the sending stopping instruction is used for stopping sending the position information; sending the sending stopping instruction to the first terminal; receiving a control instruction which is sent by the first terminal and responds to the transmission stopping instruction; and according to the control instruction, continuously sending or stopping sending the position information to the first terminal.
In an embodiment, the computer program, when executed by the processor, further implements: receiving a set first time threshold value sent by the first terminal; determining a sending time length according to the transaction time of the transaction; if the sending duration is greater than the first time threshold, stopping sending the position information to the first terminal; or receiving a positioning stopping instruction sent by the first terminal; and stopping sending the position information to the first terminal according to the positioning stopping instruction.
Here, it should be noted that: the description of the terminal embodiment is similar to the description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention to understand that, for brevity, detailed description is omitted here.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A positioning method applied to a first terminal is characterized by comprising the following steps:
determining that a transaction exists between a first user identifier and a second user identifier, and searching the second user identifier in a contact list stored in the first terminal; if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship;
according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position obtaining request is used for enabling the second terminal to determine the position information of the second terminal;
receiving the position information sent by the second terminal;
continuing to receive or stopping receiving the position information aiming at the user operation of the prompt window; and the prompt window is displayed according to the sending stopping instruction sent by the second terminal.
2. The method of claim 1, wherein determining the transaction relationship between the first subscriber identity and the second subscriber identity based on the second subscriber identity comprises:
searching the second user identification in a contact list stored in the first terminal;
and if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship.
3. The method of claim 1, further comprising:
receiving a sending stopping instruction sent by the second terminal;
displaying a prompt window according to the sending stopping instruction;
receiving user operation aiming at the prompt window, and generating a control instruction according to the user operation;
sending the control instruction to the second terminal to respond to the transmission stopping instruction; and the control instruction is used for enabling the second terminal to continuously send or stop sending the position information to the first terminal.
4. The method of claim 1, further comprising:
sending the set first time threshold to the second terminal; or
Determining a receiving time length according to the transaction time of the transaction; if the receiving duration is greater than a preset second time threshold, generating a positioning stopping instruction, and sending the positioning stopping instruction corresponding to the positioning stopping to the second terminal; or
Receiving a positioning stopping operation, and sending a positioning stopping instruction corresponding to the positioning stopping operation to the second terminal; the stop positioning instruction is used for stopping sending the position information.
5. A positioning method applied to a second terminal is characterized by comprising the following steps:
receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification;
determining the position information of the second terminal according to the position acquisition request;
and sending the position information of the second terminal to the first terminal.
6. The method of claim 5, further comprising:
receiving a command for stopping sending; the sending stopping instruction is used for stopping sending the position information;
sending the sending stopping instruction to the first terminal;
receiving a control instruction which is sent by the first terminal and responds to the transmission stopping instruction;
and according to the control instruction, continuously sending or stopping sending the position information to the first terminal.
7. The method of claim 5, further comprising:
receiving a set first time threshold value sent by the first terminal; determining a sending time length according to the transaction time of the transaction; if the sending duration is greater than the first time threshold, stopping sending the position information to the first terminal; or
Receiving a positioning stopping instruction sent by the first terminal; and stopping sending the position information to the first terminal according to the positioning stopping instruction.
8. A positioning device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement:
determining that a transaction exists between a first user identifier and a second user identifier, and searching the second user identifier in a contact list stored in a first terminal; if the second user identification is not stored in the contact list, determining that the transaction relationship between the first user identification and the second user identification is a temporary transaction relationship;
according to the transaction relation, sending a position acquisition request to a second terminal corresponding to the second user identification; the position acquisition request is used for enabling the second terminal to determine the position information of the second terminal;
receiving the position information sent by the second terminal;
continuing to receive or stopping receiving the position information aiming at the user operation of the prompt window; and the prompt window is displayed according to the sending stopping instruction sent by the second terminal.
9. A positioning device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement:
receiving a position acquisition request sent by a first terminal corresponding to a first user identifier; the position acquisition request is generated by the first terminal according to the transaction relationship between the first user identification and the second user identification;
determining the position information of the second terminal according to the position acquisition request;
and sending the position information of the second terminal to the first terminal.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the positioning method according to any one of claims 1 to 4 or claims 5 to 7.
CN201811458213.3A 2018-11-30 2018-11-30 Positioning method, positioning device and computer readable storage medium Active CN109598501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811458213.3A CN109598501B (en) 2018-11-30 2018-11-30 Positioning method, positioning device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811458213.3A CN109598501B (en) 2018-11-30 2018-11-30 Positioning method, positioning device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109598501A CN109598501A (en) 2019-04-09
CN109598501B true CN109598501B (en) 2022-11-18

Family

ID=65960602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811458213.3A Active CN109598501B (en) 2018-11-30 2018-11-30 Positioning method, positioning device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109598501B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620629A (en) * 2013-05-31 2014-03-05 华为技术有限公司 Transfer information processing method and apparatus
US8768838B1 (en) * 2005-02-02 2014-07-01 Nexus Payments, LLC Financial transactions using a rule-module nexus and a user account registry
CN107396432A (en) * 2017-07-20 2017-11-24 深圳市沃特沃德股份有限公司 Position control method and device
CN108596580A (en) * 2018-03-27 2018-09-28 腾讯科技(深圳)有限公司 a kind of virtual resource transfer method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8768838B1 (en) * 2005-02-02 2014-07-01 Nexus Payments, LLC Financial transactions using a rule-module nexus and a user account registry
CN103620629A (en) * 2013-05-31 2014-03-05 华为技术有限公司 Transfer information processing method and apparatus
CN107396432A (en) * 2017-07-20 2017-11-24 深圳市沃特沃德股份有限公司 Position control method and device
CN108596580A (en) * 2018-03-27 2018-09-28 腾讯科技(深圳)有限公司 a kind of virtual resource transfer method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN109598501A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN108572764B (en) Character input control method and device and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN108376239B (en) Face recognition method, mobile terminal and storage medium
CN112637410A (en) Method, terminal and storage medium for displaying message notification
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN110020386B (en) Application page sharing method, mobile terminal and computer readable storage medium
CN108287627B (en) Interface operation method based on flexible screen, terminal and computer readable storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN109711850B (en) Secure payment method, device and computer readable storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN108876387B (en) Payment verification method, payment verification equipment and computer-readable storage medium
CN107678622B (en) Application icon display method, terminal and storage medium
CN107566607B (en) Notification display method, mobile terminal and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN115914719A (en) Screen projection display method, intelligent terminal and storage medium
CN110399083B (en) Game space starting method, terminal and computer readable storage medium
CN109995925B (en) Crank call identification method, terminal and computer readable storage medium
CN108574324B (en) Power management method, wearable device and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20221028

Address after: 210000 No. 06, Gujing Road, Dongba street, Gaochun District, Nanjing, Jiangsu

Applicant after: Nanjing Heyi Information Technology Co.,Ltd.

Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant