TW202135590A - Method, electric equipment and storage medium for social network connection establishment - Google Patents

Method, electric equipment and storage medium for social network connection establishment Download PDF

Info

Publication number
TW202135590A
TW202135590A TW109124157A TW109124157A TW202135590A TW 202135590 A TW202135590 A TW 202135590A TW 109124157 A TW109124157 A TW 109124157A TW 109124157 A TW109124157 A TW 109124157A TW 202135590 A TW202135590 A TW 202135590A
Authority
TW
Taiwan
Prior art keywords
user
terminal
location information
place
personal data
Prior art date
Application number
TW109124157A
Other languages
Chinese (zh)
Inventor
華銘 朱
Original Assignee
香港商巧愛戀愛顧問有限公司
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 香港商巧愛戀愛顧問有限公司 filed Critical 香港商巧愛戀愛顧問有限公司
Publication of TW202135590A publication Critical patent/TW202135590A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method for social network connection establishment including the following steps. Receiving a verification request from a first terminal: the verification request includes a current position data of the first terminal and an identification data of a first place. Response to the verification request: the system gets a second position data of the first place according to the identification data, and the system gets a personal data of a first user of the first terminal and the the first user is signed into a virtual first place corresponding to the personal data of the first user when distance, between the first terminal and a second place, is decided smaller than a first pre-set distance according to the current position data and second position data of the first place, wherein at least one personal data of a second user is transmitted to the first terminal, and a select request from the first terminal is responded for confirming a target terminal such that a network connection established between the first terminal and the target terminal, wherein the select request includes a select result is direct to the at least one personal data of the second user.

Description

一種社交網路連接建立的方法、電子設備及其儲存介質 Method for establishing social network connection, electronic equipment and storage medium thereof

本發明屬於電腦通信技術領域,尤指一種社交網路連接建立的方法、電子設備及存儲介質。 The invention belongs to the field of computer communication technology, and particularly refers to a method for establishing a social network connection, an electronic device and a storage medium.

在一些場所中,例如購物商場、咖啡店、健身房、酒吧、餐館、體育場館或共用工作空間等場所,常會有和在同一場所的陌生人社交的需求,因此需要對使用者的手持終端進行定位。但是目前手持終端透過衛星導航定位的準確度不夠精確,尤其是在室內,定位誤差變得更大,因此需要一種精準定位在同一場所不同使用者的方法。 In some places, such as shopping malls, coffee shops, gyms, bars, restaurants, stadiums or shared work spaces, there is often a need to socialize with strangers in the same place, so it is necessary to locate the user’s handheld terminal . However, the accuracy of the current handheld terminal positioning through satellite navigation is not accurate enough, especially indoors, the positioning error becomes greater, so a method for accurately positioning different users in the same place is needed.

本發明實施例提供了一種社交網路連接建立的方法、電子設備及存儲介質,可以解決上述問題的至少一部分。 The embodiments of the present invention provide a method, electronic device, and storage medium for establishing a social network connection, which can solve at least part of the above-mentioned problems.

本發明實施例提供了一種社交網路連接建立的方法,包括: The embodiment of the present invention provides a method for establishing a social network connection, including:

接收第一終端發送的驗證請求,該驗證請求包括該第一終端的當前位置資訊和第一場所的識別資訊;該驗證請求由該第一終端根據第一標識發出的,該第一標識包括該第一場所的該識別資訊; Receiving a verification request sent by the first terminal, the verification request including the current location information of the first terminal and the identification information of the first location; the verification request is issued by the first terminal according to the first identifier, the first identifier including the The identification information of the first place;

回應於該驗證請求,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與 該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; In response to the verification request, the second location information of the first place is obtained according to the identification information, and if the current location information and the second location information are used, it is determined whether the first terminal is The distance of the location in the second location information is less than the first preset distance, acquiring the personal data of the first user to which the first terminal belongs, and logging the first user into the virtual first place corresponding to the identification information;

向該第一終端發送一個或多個第二使用者的個人資料;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者; Sending personal data of one or more second users to the first terminal; the second user is a user who has logged in to the virtual first place and other than the first user;

回應於該第一終端發送的選擇請求確定目標終端;該選擇請求包括針對該一個或多個第二使用者的個人資料選擇的結果; Determining a target terminal in response to a selection request sent by the first terminal; the selection request includes a result of personal data selection for the one or more second users;

建立該第一終端與該目標終端間的通信連接。 Establish a communication connection between the first terminal and the target terminal.

可以理解的是,本發明實施例提供的社交網路連接建立的方法,一方面,透過產生與第一場所的識別資訊對應的標識,並將該標識展示出來,用於第一終端確認自身具體位置,可以精確的將第一終端定位在具體的建築或者場所,避免了因衛星導航定位的誤差,造成錯誤的定位結果,方便使用者和在同一場所的其他使用者進行社交活動;另一方面,透過第一終端當前位置資訊,與第一場所的第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,可以防止他人惡意將上述標識拍照,在異地進行登錄以參加第一場所的社交活動,進而進行欺詐活動,提高了社交網路連接的安全性。 It is understandable that the method for establishing a social network connection provided by the embodiment of the present invention, on the one hand, generates an identifier corresponding to the identification information of the first place, and displays the identifier for the first terminal to confirm its specific information. The location can accurately locate the first terminal in a specific building or place, avoiding the error of satellite navigation and positioning, which will cause wrong positioning results, and it is convenient for users and other users in the same place to conduct social activities; on the other hand, According to the current location information of the first terminal and the second location information of the first location, it is determined that the distance between the first terminal and the location in the second location information is less than the first preset distance, which can prevent others from maliciously taking photos of the above-mentioned logo , Log in at a different place to participate in social activities in the first place, and then engage in fraudulent activities, which improves the security of social network connections.

本發明實施例提供了一種社交網路連接建立的方法,應用於第一終端,該方法包括: The embodiment of the present invention provides a method for establishing a social network connection, which is applied to a first terminal, and the method includes:

識別包括第一場所的識別資訊的第一標識; Identify the first identifier that includes the identification information of the first place;

根據對該第一標識的識別結果,向伺服器發送驗證請求;該驗證請求包括第一終端的當前位置資訊和該識別資訊;該驗證請求用於指 示該伺服器根據該識別資訊獲取該第一場所的第二位置資訊;若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; According to the recognition result of the first identifier, a verification request is sent to the server; the verification request includes the current location information of the first terminal and the identification information; the verification request is used to indicate It shows that the server obtains the second location information of the first place according to the identification information; if based on the current location information and the second location information, it is determined that the distance between the first terminal and the location in the second location information is less than the first location information. A preset distance, acquiring the personal data of the first user to which the first terminal belongs, and logging the first user into the virtual first place corresponding to the identification information;

響應於伺服器發送一個或多個第二使用者的個人資料;向該伺服器發送選擇請求;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者;該選擇請求,包括針對該一個或多個第二使用者的個人資料選擇的結果,用於指示該伺服器回應於該選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。 In response to the server sending the personal data of one or more second users; sending a selection request to the server; the second user is already logged in to the virtual first place and uses other than the first user The selection request, including the result of the personal data selection for the one or more second users, is used to instruct the server to determine the target terminal in response to the selection request, and establish a connection between the first terminal and the target terminal Communication connection.

本發明實施例進一步提供了一種社交網路連接建立的裝置,包括: The embodiment of the present invention further provides a device for establishing a social network connection, including:

接收模組,用於接收第一終端發送的驗證請求,該驗證請求包括該第一終端的當前位置資訊和第一場所的識別資訊;該驗證請求由該第一終端根據第一標識發出的,該第一標識包括該第一場所的該識別資訊; The receiving module is configured to receive a verification request sent by the first terminal. The verification request includes the current location information of the first terminal and the identification information of the first location; the verification request is sent by the first terminal according to the first identifier, The first identifier includes the identification information of the first place;

驗證模組,用於回應於該驗證請求,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; The verification module is used to respond to the verification request and obtain the second location information of the first place according to the identification information. If the current location information and the second location information are used to determine the first terminal and the second location If the distance of the location in the information is less than the first preset distance, acquiring the personal data of the first user to which the first terminal belongs, and logging the first user into the virtual first place corresponding to the identification information;

資料發送模組,用於向該第一終端發送一個或多個第二使用者的個人資料;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者; The data sending module is used to send the personal data of one or more second users to the first terminal; the second user is already logged into the virtual first place and uses other than the first user By;

終端確認模組,用於回應於該第一終端發送的選擇請求確定目標終端;該選擇請求包括針對該一個或多個第二使用者的個人資料選擇的結果; The terminal confirmation module is configured to determine the target terminal in response to the selection request sent by the first terminal; the selection request includes the result of personal data selection for the one or more second users;

連接建立模組,建立該第一終端與該目標終端間的通信連接。 The connection establishment module establishes a communication connection between the first terminal and the target terminal.

本發明實施例提供了一種社交網路連接建立的裝置,包括: The embodiment of the present invention provides a device for establishing a social network connection, including:

識別模組,用於識別包括第一場所的識別資訊的第一標識; The identification module is used to identify the first identifier including the identification information of the first place;

驗證請求發送模組,用於根據對該第一標識的識別結果,向伺服器發送驗證請求;該驗證請求包括第一終端的當前位置資訊和該識別資訊;該驗證請求用於指示該伺服器根據該識別資訊獲取該第一場所的第二位置資訊;若根據當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; The verification request sending module is used to send a verification request to the server based on the identification result of the first identifier; the verification request includes the current location information of the first terminal and the identification information; the verification request is used to instruct the server Acquiring the second location information of the first place according to the identification information; if it is determined based on the current location information and the second location information that the distance between the first terminal and the location in the second location information is less than the first preset distance, Acquiring the personal data of the first user to which the first terminal belongs, and logging the first user into the virtual first place corresponding to the identification information;

選擇模組,用於響應於伺服器發送一個或多個第二使用者的個人資料;向該伺服器發送選擇請求;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者;該選擇請求,包括針對該一個或多個第二使用者的個人資料選擇的結果,用於指示該伺服器回應於該選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。 The selection module is used to respond to the server to send the personal data of one or more second users; send a selection request to the server; the second user has logged in the virtual first place, and removes the first A user other than the user; the selection request includes the result of personal data selection for the one or more second users, and is used to instruct the server to determine the target terminal in response to the selection request, and establish the first terminal The communication connection with the target terminal.

本發明實施例提供了一種電子設備,包括: The embodiment of the present invention provides an electronic device, including:

儲存器、處理器以及存儲在該儲存器中並可在該處理器上運行的計算機程序,該計算機程序被該處理器執行時實現上述第一方面述的 方法步驟。 A storage, a processor, and a computer program that is stored in the storage and can run on the processor, and when the computer program is executed by the processor, the above-mentioned first aspect is implemented Method steps.

本發明實施例提供了一種電腦可讀存儲介質,包括:該電腦可讀存儲介質存儲有計算機程序,該計算機程序被處理器執行時實現上述第一方面該的方法步驟。 The embodiment of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps in the first aspect described above are implemented.

本發明實施例提供了一種計算機程序產品,當計算機程序產品在電子設備上運行時,使得電子設備執行上述第一方面該的方法步驟。 The embodiment of the present invention provides a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute the method steps in the first aspect described above.

101:第一場所的建築 101: Architecture of the first place

102:第二場所的建築 102: The building of the second place

200:社交網路系統 200: social network system

210:伺服器 210: server

220:第一終端 220: the first terminal

230:顯示裝置 230: display device

D10:電子設備 D10: Electronic equipment

D100:處理器 D100: processor

D101:儲存器 D101: Storage

D102:計算機程序 D102: Computer program

M110:接收模組 M110: receiving module

M120:驗證模組 M120: Verification module

M130:資料發送模組 M130: Data sending module

M140:終端確認模組 M140: terminal confirmation module

M150:連接建立模組 M150: Connection establishment module

M210:識別模組 M210: Identification module

M220:驗證請求發送模組 M220: Verification request sending module

M230:選擇模組 M230: select module

S110、S120、S130、S140、S150、S1601、S1602、S1603、S210、S220、S230:步驟 S110, S120, S130, S140, S150, S1601, S1602, S1603, S210, S220, S230: steps

第一圖是本發明一實施例提供的應用場景示意圖; The first figure is a schematic diagram of an application scenario provided by an embodiment of the present invention;

第二圖是本發明一實施例提供的系統示意圖; The second figure is a schematic diagram of a system provided by an embodiment of the present invention;

第三圖是本發明一實施例提供的社交網路連接建立的方法的流程示意圖; The third figure is a schematic flowchart of a method for establishing a social network connection provided by an embodiment of the present invention;

第四圖是本發明一實施例提供的社交網路連接建立的方法的資訊交互流程示意圖; The fourth figure is a schematic diagram of an information interaction process of a method for establishing a social network connection provided by an embodiment of the present invention;

第五圖是本發明另一實施例提供的社交網路連接建立的方法的流程示意圖; Figure 5 is a schematic flowchart of a method for establishing a social network connection according to another embodiment of the present invention;

第六圖是本發明另一實施例提供的社交網路連接建立的方法的流程示意圖; Figure 6 is a schematic flowchart of a method for establishing a social network connection according to another embodiment of the present invention;

第七圖是本發明一實施例提供的社交網路連接建立的裝置示意圖; Figure 7 is a schematic diagram of a device for establishing a social network connection provided by an embodiment of the present invention;

第八圖是本發明另一實施例提供的社交網路連接建立的方法的流程示意圖; Figure 8 is a schematic flowchart of a method for establishing a social network connection according to another embodiment of the present invention;

第九圖是本發明另一實施例提供的社交網路連接建立的裝置示意圖; Figure 9 is a schematic diagram of an apparatus for establishing a social network connection according to another embodiment of the present invention;

第十圖是本發明實施例提供的電子設備的結構示意圖。 Figure 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

以下描述中,為了說明而不是為了限定,提出了諸如特定系統結構、技術之類的具體細節,以便透徹理解本發明實施例。然而,本領域的技術人員應當清楚,在沒有這些具體細節的其它實施例中也可以實現本發明。在其它情況中,省略對眾所周知的系統、裝置、電路以及方法的詳細說明,以免不必要的細節妨礙本發明的描述。 In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of the present invention.

應當理解,當在本發明說明書和所附申請專利範圍中使用時,術語“包括”指示所描述特徵、整體、步驟、操作、元素和/或元件的存在,但並不排除一個或多個其它特徵、整體、步驟、操作、元素、元件和/或其集合的存在或添加。 It should be understood that when used in the specification of the present invention and the appended patent application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or elements, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, elements, and/or collections thereof.

還應當理解,在本發明說明書和所附申請專利範圍中使用的術語“和/或”是指相關聯列出的項中的一個或多個的任何組合以及所有可能組合,並且包括這些組合。 It should also be understood that the term "and/or" used in the specification of the present invention and the scope of the appended patent application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

如在本發明說明書和所附申請專利範圍中所使用的那樣,術語“如果”可以依據上下文被解釋為“當...時”或“一旦”或“回應於確定”或“回應於檢測到”。類似地,短語“如果確定”或“如果檢測到[所描述條件或事件]”可以依據上下文被解釋為意指“一旦確定”或“回應於確定”或“一旦檢測到[所描述條件或事件]”或“回應於檢測到[所描述條件或事件]”。 As used in the specification of the present invention and the scope of the appended application, the term "if" can be construed as "when" or "once" or "in response to determination" or "in response to detection" depending on the context ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "response to determination" or "once detected [described condition or event]" depending on the context. Event]" or "in response to the detection of [the described condition or event]".

另外,在本發明說明書和所附申請專利範圍的描述中,術語“第一”、“第二”、“第三”等僅用於區分描述,而不能理解為指示或暗示相對重要性。 In addition, in the description of the specification of the present invention and the scope of the attached patent application, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

在本發明說明書中描述的參考“一個實施例”或“一些實施例”等意味著在本發明的一個或多個實施例中包括結合該實施例描述的特定特徵、結構或特點。由此,在本說明書中的不同之處出現的語句“在一個實施例中”、“在一些實施例中”、“在其他一些實施例中”、“在另外一些實施例中”等不是必然都參考相同的實施例,而是意味著“一個或多個但不是所有的實施例”,除非是以其他方式另外特別強調。術語“包括”、“包含”、“具有”及它們的變形都意味著“包括但不限於”,除非是以其他方式另外特別強調。 The reference to "one embodiment" or "some embodiments" etc. described in the specification of the present invention means that one or more embodiments of the present invention include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

在一些場所中,例如購物商場、咖啡店、健身房、酒吧、餐館、體育場館或共用工作空間等場所,會有和在同一場所的陌生人社交的需求。為避免當面交談發生尷尬,於上述場所對應的虛擬場所中進行線上互動後,再轉而進行線下(面對面)的交流是一種較好的選擇。因此需要確定線上交流的使用者在同一場所,因此需要對使用者的手持終端進行定位。但是目前手持終端透過衛星導航定位的位置不夠精確,尤其是在室內,定位誤差變得更大,因此需要一種精準定位使用者在同一場所的方法。 In some places, such as shopping malls, coffee shops, gyms, bars, restaurants, sports venues or shared working spaces, there will be a need to socialize with strangers in the same place. In order to avoid embarrassment in face-to-face conversations, it is a better choice to conduct online interaction in the virtual place corresponding to the above-mentioned place, and then switch to offline (face-to-face) communication. Therefore, it is necessary to make sure that the users communicating online are in the same place, so it is necessary to locate the user's handheld terminal. However, the current position of the handheld terminal through satellite navigation is not accurate enough, especially indoors, the positioning error becomes greater, so a method for accurately positioning the user in the same place is needed.

如第一圖所示的場景,第一場所的建築101和第二場所的建築102的位置很近,很難透過衛星定位區分使用者是處於第一場所的建築101還是第二場所的建築102。如果在第一場所的建築101中舉行交流活動,第二場所的建築102中的使用者有可能因為衛星定位的偏差,被判定為第一場所的建築101中的使用者而誤參加該交流活動,導致不必要的誤會。 As shown in the scene in the first figure, the location of the building 101 of the first place and the building 102 of the second place are very close, it is difficult to distinguish whether the user is in the building 101 of the first place or the building 102 of the second place through satellite positioning. . If an exchange event is held in the building 101 of the first place, the user in the building 102 of the second place may be judged to be a user in the building 101 of the first place due to the deviation of satellite positioning and participate in the exchange by mistake , Resulting in unnecessary misunderstandings.

因此,本發明實施例透過為目標場所產生與該場所識別資訊,例如商號,對應的標識,例如二維條碼,來幫助使用者精準定位到目 標場所。如第一圖所示,為第一場所的建築101和第二場所的建築102分別產生與兩建築101/102識別資訊對應的二維條碼。使用者採用本發明實施例提供的智慧手機應用程式(Application,APP)掃描二維條碼,即可在本發明實施例提供的伺服器中將自己定位在該二維條碼對應的建築,並登入本發明實施例的伺服器提供的,與現實場所逐一對應的虛擬場所。 Therefore, the embodiment of the present invention helps the user to accurately locate the target location by generating identification information, such as a business name, corresponding to the location for the target location, such as a two-dimensional bar code. Standard place. As shown in the first figure, two-dimensional barcodes corresponding to the identification information of the two buildings 101/102 are generated for the building 101 in the first place and the building 102 in the second place, respectively. The user scans the two-dimensional bar code using the smartphone application (APP) provided by the embodiment of the present invention, and then locates himself in the building corresponding to the two-dimensional bar code in the server provided by the embodiment of the present invention, and logs into the book The virtual places provided by the server of the embodiment of the invention correspond to the real places one by one.

另外,由於透過標識,例如二維條碼,對使用者進行定位,可能出現使用者將該二維條碼拍照,然後在距離該二維條碼對應的建築很遠的異地掃描該二維條碼,達到欺騙本發明實施例中提供的伺服器,進而使該伺服器錯誤的判斷此使用者所處的目標場所,並為此使用者提供包括但不限於身份驗證或通信服務。本發明實施例透過獲取使用者手持終端的衛星定位的位置,並將其與二維條碼對應場所的位置進行比較,計算這兩個位置間的距離,如果該距離超過預設的距離,則確定該使用者並不在目標場所附近,判定該使用者有可能存在作弊的行為。進而伺服器拒絕為該使用者提供包括但不限於身份驗證或通信服務。本發明還提供多種實施例,透過多種方案來防止位置作弊。另外,由於本發明用於實現社交目的,因此本發明實施例在實現使用者準確定位的基礎上,還提供了提高使用者匹配效率的方法。 In addition, because the user is positioned through a mark, such as a two-dimensional bar code, it may happen that the user takes a photo of the two-dimensional bar code and then scans the two-dimensional bar code in a remote place far away from the building corresponding to the two-dimensional bar code to achieve deception. The server provided in the embodiment of the present invention further makes the server erroneously determine the target place where the user is located, and provides the user with identity verification or communication services including but not limited to. The embodiment of the present invention calculates the distance between the two positions by obtaining the position of the satellite positioning of the user's handheld terminal and comparing it with the position of the corresponding place of the two-dimensional bar code. If the distance exceeds the preset distance, it is determined The user is not near the target location, and it is determined that the user may have cheated. Furthermore, the server refuses to provide the user with services including but not limited to identity verification or communication. The present invention also provides various embodiments to prevent location cheating through various solutions. In addition, since the present invention is used to achieve social purposes, the embodiments of the present invention also provide a method for improving the matching efficiency of users on the basis of realizing accurate positioning of users.

第二圖所示者係為本發明實施例提供的一種社交網路系統200。該系統包括:一伺服器210以及多個第一終端220。 The figure shown in the second figure is a social network system 200 provided by an embodiment of the present invention. The system includes: a server 210 and a plurality of first terminals 220.

其中,該伺服器210和任意一個第一終端220透過無線網路通信的連接。該無線網路包括但不限於無線區域網路、蜂窩移動通信網路;該蜂窩移動通信網路可以使用任一通信標準或協定,包括但不限於全球移 動通訊系統(Global System of Mobile communication,GSM)、通用分組無線服務(General Packet Radio Service,GPRS)、碼分多址(Code Division Multiple Access,CDMA)、寬頻碼分多址(Wideband Code Division Multiple Access,WCDMA)、長期演進(Long Term Evolution,LTE)、5G網路通訊協定,或者未來演進的公共陸地移動網路(Public Land Mobile Network,PLMN)網路通訊協定。 Wherein, the server 210 and any one of the first terminals 220 are connected through wireless network communication. The wireless network includes but is not limited to wireless local area network, cellular mobile communication network; the cellular mobile communication network can use any communication standard or protocol, including but not limited to global mobile communication network. Mobile communication system (Global System of Mobile communication, GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access) , WCDMA), Long Term Evolution (LTE), 5G network communication protocol, or future evolution of the Public Land Mobile Network (PLMN) network communication protocol.

其中,該伺服器210包括但不限於桌上型電腦、筆記本、單體伺服器、群體伺服器、分散式伺服器或雲端伺服器。 The server 210 includes, but is not limited to, a desktop computer, a notebook, a single server, a group server, a distributed server, or a cloud server.

其中,該第一終端220包括但不限於手機、平板電腦、可穿戴設備、車載設備、增強現實(Augmented Reality,AR)/虛擬實境(Virtual Reality,VR)設備、筆記型電腦、超級移動個人電腦(Ultra-mobile Personal Computer,UMPC)、上網本、個人數位助理(Personal Digital Assistant,PDA)等終端設備,本發明實施例對終端設備的具體類型不作任何限制。 Among them, the first terminal 220 includes, but is not limited to, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and ultra-mobile personal computers. Terminal devices such as computers (Ultra-mobile Personal Computer, UMPC), netbooks, and personal digital assistants (Personal Digital Assistant, PDA), and the embodiments of the present invention do not impose any restrictions on the specific types of terminal devices.

例如,該終端設備可以是WLAN中的網站(STAION,ST),可以是蜂窩電話、無線電話、會話啟動協定(Session Initiation Protocol,SIP)電話、無線本地環路(Wireless Local Loop,WLL)站、個人數文書處理(Personal Digital Assistant,PDA)設備、具有無線通訊功能的手持設備、計算設備或連接到無線數據機的其它處理設備、車載設備、車聯網終端、電腦、筆記型電腦、掌上型通信設備、掌上型計算設備、衛星無線設備、使用者駐地設備(Customer Premise Equipment,CPE)和/或用於在無線系統上進行通信的其它設備以及下一代通信系統,例如,5G網路中的移動終端或者未來演進的公共陸地移動網路(Public Land Mobile Network, PLMN)網路中的移動終端等。 For example, the terminal device may be a website (STAION, ST) in a WLAN, a cellular phone, a wireless phone, a Session Initiation Protocol (SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, Personal Digital Assistant (PDA) devices, handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, in-vehicle devices, car networking terminals, computers, notebook computers, palm-type communications Devices, palm-sized computing devices, satellite wireless devices, customer premise equipment (Customer Premise Equipment, CPE) and/or other devices used to communicate on wireless systems, as well as next-generation communication systems, such as mobile in 5G networks Terminal or the future evolution of the Public Land Mobile Network (Public Land Mobile Network, PLMN) mobile terminals in the network, etc.

如第二圖所示,本發明的一些實施還提供了顯示裝置230。該顯示裝置230和該伺服器210透過上述的無線網路連接或透過有線通信方式連接。該顯示裝置230用於顯示伺服器210產生的,與目標場所的識別資訊對應的標識。 As shown in the second figure, some implementations of the present invention also provide a display device 230. The display device 230 and the server 210 are connected through the aforementioned wireless network or through wired communication. The display device 230 is used to display the identifier generated by the server 210 and corresponding to the identification information of the target location.

第三圖示出了本發明實施例提供的社交網路連接建立的方法,應用於上述第二圖所示的社交網路系統中的伺服器210,可由該伺服器210的軟體和/或硬體實現。如第三圖所示,該方法包括步驟S110至S150。各個步驟的具體實現原理如下: The third figure shows the method for establishing a social network connection provided by an embodiment of the present invention, which is applied to the server 210 in the social network system shown in the second figure above. The software and/or hardware of the server 210 can be used. Body realization. As shown in the third figure, the method includes steps S110 to S150. The specific implementation principles of each step are as follows:

S110,接收第一終端發送的驗證請求,該驗證請求包括該第一終端的當前位置資訊和第一場所的識別資訊;該驗證請求由該第一終端根據第一標識發出的,該第一標識包括該第一場所的該識別資訊。 S110. Receive a verification request sent by the first terminal, where the verification request includes the current location information of the first terminal and the identification information of the first location; the verification request is issued by the first terminal according to the first identifier, the first identifier Including the identification information of the first place.

其中,該第一場所包括但不限於購物商場、咖啡店、健身房、共用工作空間、圖書館、體育館、餐館或酒吧等場所。在一些實施例中,該第一場所為封閉的室內場所。因室內場所的衛星定位效果更為不準確,本發明實施提供的社交網路連接建立的方法可以取得更好的精確定位的效果。 Among them, the first place includes but is not limited to places such as shopping malls, coffee shops, gyms, shared working spaces, libraries, gymnasiums, restaurants or bars. In some embodiments, the first place is a closed indoor place. Because the satellite positioning effect of indoor places is more inaccurate, the method for establishing a social network connection provided by the implementation of the present invention can achieve a better accurate positioning effect.

其中,該第一標識包括但不限於二維條碼、近場通信(RFID)標籤。 Wherein, the first identification includes, but is not limited to, a two-dimensional barcode and a near field communication (RFID) tag.

其中,該識別資訊包括但不限於商戶名稱、商戶ID、場所名稱、場所ID、建築名稱、建築ID等用於區分商戶或建築的識別資訊。例如,FITNES健身房,或者與該健身房對應的唯一ID“M1202002”。 The identification information includes, but is not limited to, the identification information used to distinguish the business or the building, such as the business name, business ID, place name, place ID, building name, and building ID. For example, FITNES gym, or the unique ID "M1202002" corresponding to the gym.

非限定性的,驗證請求可以為第一終端220透過無線通訊網路向伺服器210發送的短資訊。或者是透過本發明實施例提供的,運行於第一終端的APP,向伺服器210發送的請求消息。 Without limitation, the verification request may be a short message sent by the first terminal 220 to the server 210 through the wireless communication network. Or it is a request message sent to the server 210 by an APP running on the first terminal provided by an embodiment of the present invention.

非限定性的,該當前位置資訊為第一終端透過包括但不限於北斗衛星導航系統(Bei Dou Navigation Satellite System,BDS)、格洛納斯系統(GLObalnaya NAvigatsionnaya Sputnikovaya Sistema,GLONASS)、全球定位系統(Global Positioning System,GPS)、伽利略衛星導航系統(Galileo Satellite Navigation System)等全球導航衛星系統(Global Navigation Satellite System,GNSS)獲取的位置資訊。 In a non-limiting manner, the current location information is provided by the first terminal, including but not limited to Bei Dou Navigation Satellite System (BDS), GLObalnaya NAvigatsionnaya Sputnikovaya Sistema (GLONASS), and Global Positioning System (BDS). Position information obtained by Global Navigation Satellite System (GNSS) such as Global Positioning System (GPS) and Galileo Satellite Navigation System (Galileo Satellite Navigation System).

在一個非限定性的示例中,社交網路系統200中的伺服器210根據第一場所的識別資訊,例如商號,產生包含該商號的第一標識,例如二維條碼。在一些示例中,伺服器可以根據第一場所的位置資訊和識別資訊產生第一標識,該第一標識包含第一場所的位置資訊和識別資訊。在伺服器210產生第一標識後,可以透過多種方式展示該第一標識,例如,傳送該第一標識到與伺服器210透過無線通訊網路連接的移動終端,透過該移動終端的顯示介面顯示該第一標識;又例如,透過與伺服器210有線或無線連接的顯示裝置230顯示該第一標識;再例如,透過列印設備列印該第一標識,將該第一標識張貼或懸掛於第一場所的指定位置。在第一場所的APP使用者,或有興趣參加在該第一場所社交活動的使用者,透過本發明實施提供的APP掃描第一標識,在一個具體的示例中,掃描二維條碼,並識別該二維條碼,獲取該二維條碼中包含的第一場所的識別資訊。該APP透過使用者使用的第一終端220將識別資訊發送到伺服器210,在一個具體的示例中, 該識別資訊包含在發送到伺服器的驗證請求中,該驗證請求用於請求伺服器驗證第一終端的位置資訊是否符合要求。 In a non-limiting example, the server 210 in the social network system 200 generates a first identification containing the business name, such as a two-dimensional barcode, based on the identification information of the first place, such as a business name. In some examples, the server may generate a first identification based on the location information and identification information of the first place, and the first identification includes the location information and identification information of the first place. After the server 210 generates the first logo, the first logo can be displayed in a variety of ways. For example, the first logo can be transmitted to a mobile terminal connected to the server 210 via a wireless communication network, and the display interface of the mobile terminal can be used to display the first logo. The first logo; for example, the first logo is displayed through the display device 230 wired or wirelessly connected to the server 210; for another example, the first logo is printed through a printing device, and the first logo is posted or hung on the first logo The designated location of a place. APP users in the first place, or users who are interested in participating in social activities in the first place, scan the first identification through the APP provided by the implementation of the present invention. In a specific example, scan the two-dimensional barcode and identify The two-dimensional bar code obtains the identification information of the first place contained in the two-dimensional bar code. The APP sends identification information to the server 210 through the first terminal 220 used by the user. In a specific example, The identification information is included in a verification request sent to the server, and the verification request is used to request the server to verify whether the location information of the first terminal meets the requirements.

S120,回應於該驗證請求,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所。 S120. In response to the verification request, obtain second location information of the first place according to the identification information, and if the current location information and the second location information are used to determine the location of the first terminal and the second location information If the distance is less than the first preset distance, the personal data of the first user to which the first terminal belongs is acquired, and the first user logs in to the virtual first place corresponding to the identification information.

在一些實施例中,該第二位置資訊為已知的,第一場所中心位置的精度和緯度資訊,或第一場所中心位置的精度、緯度和海拔高度資訊。在另一些實施例中,該第二位置信息還可以是透過上述全球導航衛星系統獲取的位置資訊。 In some embodiments, the second location information is known, the accuracy and latitude information of the central location of the first place, or the accuracy, latitude, and altitude information of the central location of the first place. In other embodiments, the second location information may also be location information obtained through the aforementioned global navigation satellite system.

在一些實施例中,該預設距離為預先設置的第一終端與第一場所中心位置的最大距離,例如,100米。在另一些實施例中,不同的第一場所設置有不同的預設距離。伺服器210在接收到第一終端的驗證請求後,獲得該驗證請求中的識別資訊,伺服器根據該識別資訊確定目標第一場所,並獲取該目標第一場所的規模資訊。該規模資訊包括但不限於目標第一場所的占地面積資訊、目標場所主體建築的水準投影面積資訊、目標場所主體建築的水準投影輪廓上任意兩點距離中的最大距離。 In some embodiments, the preset distance is a preset maximum distance between the first terminal and the center position of the first place, for example, 100 meters. In other embodiments, different first places are set with different preset distances. After the server 210 receives the verification request from the first terminal, it obtains the identification information in the verification request. The server determines the target first place according to the identification information, and obtains the scale information of the target first place. The scale information includes, but is not limited to, the floor area information of the target first place, the level projection area information of the main building of the target place, and the maximum distance between any two points on the level projection contour of the main building of the target place.

在一個非限定性的示例中,伺服器210在判斷該第一終端與該第一場所的距離小於預設距離前,獲取該第一場所的規模屬性資訊,根據該規模屬性資訊確定該第一預設距離。 In a non-limiting example, the server 210 obtains the scale attribute information of the first place before determining that the distance between the first terminal and the first place is less than a preset distance, and determines the first place according to the scale attribute information. Preset distance.

在一個具體的示例中,伺服器獲得目標場所主體建築的水準 投影輪廓上任意兩點距離中的最大距離為30米,透過查表或根據預設的算式,確定該最大距離對應的第一預設距離為50米。在另一個非限定性的示例中,伺服器獲得目標場所主體建築的水準投影輪廓上任意兩點距離中的最大距離為300米,透過查表或根據預設的算式,確定該最大距離對應的第一預設距離為350米。 In a specific example, the server obtains the level of the main building of the target site The maximum distance among the distances of any two points on the projection contour is 30 meters, and the first preset distance corresponding to the maximum distance is determined to be 50 meters by looking up a table or according to a preset calculation formula. In another non-limiting example, the server obtains that the maximum distance of any two points on the horizontal projection contour of the main building of the target location is 300 meters, and determines the corresponding maximum distance by looking up the table or according to a preset calculation. The first preset distance is 350 meters.

可以理解的是,透過將第一預設距離與第一場所的規模資訊向匹配,確定第一預設距離,可以避免單一固定的預設距離造成錯誤的驗證結果。例如,使用者希望確認自己的位置在小咖啡店,如果第一預設距離設置過大,會導致該使用者即便在距離該咖啡店的建築,仍可被判定為在小咖啡店。又例如,使用者希望確認自己的位置在體育館,但是由於第一預設距離設置過小,導致即便使用者在體育館內,仍有可能被判斷為該使用者不再體育館內。本發明實施例提供的第一預設距離的確定方法可以避免單一預設距離造成的定位判斷不準確的問題。 It is understandable that by matching the first preset distance with the scale information of the first place, and determining the first preset distance, it is possible to prevent a single fixed preset distance from causing an erroneous verification result. For example, if the user wants to confirm that his location is in a small coffee shop, if the first preset distance is set too large, it will cause the user to be determined to be in a small coffee shop even if the user is in a building away from the coffee shop. For another example, the user wants to confirm that his location is in the gymnasium, but because the first preset distance is set too small, even if the user is in the gymnasium, it may still be judged that the user is no longer in the gymnasium. The method for determining the first preset distance provided by the embodiment of the present invention can avoid the problem of inaccurate positioning judgment caused by a single preset distance.

其中,在一些實施例中,該個人資料為第一終端所屬第一使用者在第一終端的APP中輸入的個人資料,該個人資料包括但不限於該第一使用者的姓名、別名、暱稱、性別、年齡、身高、照片、興趣愛好等關於該第一使用者的資訊。在一些實施例中,該個人資料還包括該第一使用者希望結識的目標使用者的性別、年齡、身高、興趣愛好等資訊。 Wherein, in some embodiments, the personal data is the personal data entered in the APP of the first terminal by the first user to which the first terminal belongs, and the personal data includes, but is not limited to, the first user’s name, alias, and nickname , Gender, age, height, photos, hobbies and other information about the first user. In some embodiments, the personal data also includes information such as the gender, age, height, hobbies, etc. of the target user that the first user wishes to get acquainted with.

其中,該虛擬第一場所為在伺服器210中與第一場所對應的虛擬空間,包括但不限於聊天室、論壇、使用者列表或虛擬實境空間等形式。 The virtual first place is a virtual space corresponding to the first place in the server 210, including but not limited to chat rooms, forums, user lists, or virtual reality spaces.

在一個非限定性的示例中,該將該第一使用者登入該識別資 訊對應的虛擬第一場所是將該第一使用者的註冊資料與該第一場所對應的意義虛擬場所匹配,並設置該使用者的登入狀態為有效。 In a non-limiting example, the first user logs into the identification information The virtual first place corresponding to the message is to match the registration data of the first user with the meaning virtual place corresponding to the first place, and set the user's login status to be valid.

S130,向該第一終端發送一個或多個第二使用者的個人資料;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者。 S130. Send personal data of one or more second users to the first terminal; the second user is a user who has logged in to the virtual first place and other than the first user.

在一個非限定性的示例中,伺服器210中包括多個使用者的個人資料,其中,當前需要接受個人資料的終端為第一終端,第一終端所屬的使用者為第一使用者;伺服器中登入該虛擬第一場所的其他使用者為第二使用者。伺服器將全部或部分第二使用者的個人資料傳送到第一終端的APP供所屬第一使用者進行選擇。 In a non-limiting example, the server 210 includes the personal data of multiple users, where the terminal that currently needs to accept the personal data is the first terminal, and the user to which the first terminal belongs is the first user; the server Other users who log in to the virtual first place in the device are second users. The server transmits all or part of the personal data of the second user to the APP of the first terminal for the first user to choose.

S140,回應於該第一終端發送的選擇請求確定目標終端;該選擇請求包括針對該一個或多個第二使用者的個人資料選擇的結果。 S140: Determine a target terminal in response to a selection request sent by the first terminal; the selection request includes a result of personal data selection for the one or more second users.

在一個非限定性的示例中,該目標終端為該第二使用者使用的終端;伺服器將一個或多個第二使用者資料發送到第一使用者終端,透過該第一使用者的第一終端的APP介面展示第二使用者資料;第一使用者操作該第一終端的APP選擇確定想要結識的第二使用者;第一終端的APP將第一使用者的選擇結果發送給伺服器。伺服器透過該選擇結果中包含的使用者資料確定第二使用者,進而確定該第二使用者使用的終端為目標終端。 In a non-limiting example, the target terminal is the terminal used by the second user; the server sends one or more second user data to the first user terminal through the first user’s The APP interface of a terminal displays the data of the second user; the first user operates the APP of the first terminal to select the second user who wants to get acquainted; the APP of the first terminal sends the result of the first user’s selection to the server Device. The server determines the second user through the user data included in the selection result, and then determines the terminal used by the second user as the target terminal.

S150,建立該第一終端與該目標終端間的通信連接。 S150. Establish a communication connection between the first terminal and the target terminal.

在一個非限定性的示例中,透過伺服器210建立第一終端與目標終端間的資料交互通道,透過伺服器實現第一終端和目標終端間的轉發。 In a non-limiting example, the server 210 establishes a data exchange channel between the first terminal and the target terminal, and the server realizes the forwarding between the first terminal and the target terminal.

在一個非限定性的示例中,伺服器210分別向第一終端和目標終端分發對方的通信地址,該通信地址包括IP位址和APP身份標識,以建立第一終端和目標終端間的直接通信連接。 In a non-limiting example, the server 210 distributes each other’s communication addresses to the first terminal and the target terminal respectively, and the communication addresses include the IP address and the APP identity to establish direct communication between the first terminal and the target terminal. connect.

可以理解的是,透過建立該第一終端與該目標終端間的通信連接,可以實現使用者間相互發送文字、語音、圖像、視頻,以及透過該通信連接進行語音交談等互動。 It can be understood that by establishing a communication connection between the first terminal and the target terminal, users can send text, voice, image, and video to each other, and interact with each other through voice conversations through the communication connection.

在一個非限定性的示例中,伺服器210在建立該第一終端與該目標終端間的通信連接前,向該目標終端發送連接建立請求,在伺服器收到該目標終端的連接建立應答後,建立該第一終端與該目標終端間的通信連接;其中該連接建立請求包括該第一使用者的個人資料;該連接建立應答包括同意建立通信連接的指示。可以理解的是,本示例可以進一步提升社交網路連接建立的安全性,避免騷擾事件的發生。 In a non-limiting example, before establishing a communication connection between the first terminal and the target terminal, the server 210 sends a connection establishment request to the target terminal, and after the server receives a connection establishment response from the target terminal Establish a communication connection between the first terminal and the target terminal; wherein the connection establishment request includes the personal data of the first user; the connection establishment response includes an instruction to agree to establish a communication connection. It is understandable that this example can further improve the security of social network connection establishment and avoid the occurrence of harassment incidents.

在一個具體的非限定性的示例中,第四圖所示者係為本發明實施例提供的社交網路系統200的資訊交互流程示意圖。如第四圖所示,伺服器210根據第一場所的識別資訊,例如商號,產生第一標識,伺服器透過顯示裝置顯示該第一標識;第一終端透過掃描裝置獲取該第一標識後,識別該第一標識獲取第一場所的識別資訊;第一終端透過衛星導航定位裝置獲取自身的當前位置資訊,並結合識別資訊產生驗證請求;第一終端將該驗證請求發給伺服器;伺服器回應於該驗證請求,對第一終端的當前位置資訊進行驗證;具體的,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用 者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所;伺服器為該第一終端準備一個或多個第二使用者的個人資料,將這些第二使用者的個人資料發送給第一終端;第一終端接收到一個或多個由伺服器發送的第二使用者的個人資料後,透過第一終端的APP顯示第二使用者的個人資料;第一使用者對第一終端顯示的第二使用者資料進行選擇操作,確定目標使用者;第一終端的APP將該選擇結果透過第一終端以選擇請求的方式發送給伺服器;伺服器回應於該第一終端發送的選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。可以理解的是,本示例是為了使本領域技術人員能夠較好的理解本發明的各個實施例,本發明的各個實施例中的各個示例均可用於替換或補充本示例。 In a specific non-limiting example, the figure shown in Figure 4 is a schematic diagram of the information interaction process of the social network system 200 according to an embodiment of the present invention. As shown in Figure 4, the server 210 generates a first identification based on the identification information of the first place, such as a business name, and the server displays the first identification through the display device; after the first terminal obtains the first identification through the scanning device, Identify the first identifier to obtain the identification information of the first place; the first terminal obtains its own current position information through the satellite navigation and positioning device, and generates a verification request in combination with the identification information; the first terminal sends the verification request to the server; the server In response to the verification request, the current location information of the first terminal is verified; specifically, the second location information of the first place is obtained according to the identification information, and if the current location information and the second location information are used to determine the If the distance between the first terminal and the position in the second position information is less than the first preset distance, the first terminal to which the first terminal belongs The personal data of the first user, and log the first user into the virtual first place corresponding to the identification information; the server prepares the personal data of one or more second users for the first terminal, and transfers the Personal data is sent to the first terminal; after the first terminal receives one or more personal data of the second user sent by the server, it displays the personal data of the second user through the APP of the first terminal; the first user Perform a selection operation on the second user data displayed by the first terminal to determine the target user; the APP of the first terminal sends the selection result to the server through the first terminal in the form of a selection request; the server responds to the first terminal The selection request sent by the terminal determines the target terminal, and establishes a communication connection between the first terminal and the target terminal. It can be understood that this example is to enable those skilled in the art to better understand each embodiment of the present invention, and each example in each embodiment of the present invention can be used to replace or supplement this example.

可以理解的是,本發明實施例提供的社交網路連接建立的方法,一方面,透過產生與第一場所的識別資訊對應的標識,並將該標識展示出來,用於第一終端確認自身具體位置,可以精確的將第一終端定位在具體的建築或者場所,避免了因衛星導航定位的誤差,造成錯誤的定位結果,方便使用者和在同一場所的其他使用者進行社交活動;另一方面,透過第一終端當前位置資訊,與第一場所的第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,可以防止他人惡意將上述標識拍照,在異地進行登錄以參加第一場所的社交活動,進而進行欺詐活動,提高了社交網路連接的安全性。 It is understandable that the method for establishing a social network connection provided by the embodiment of the present invention, on the one hand, generates an identifier corresponding to the identification information of the first place, and displays the identifier for the first terminal to confirm its specific information. The location can accurately locate the first terminal in a specific building or place, avoiding the error of satellite navigation and positioning, which will cause wrong positioning results, and it is convenient for users and other users in the same place to conduct social activities; on the other hand, According to the current location information of the first terminal and the second location information of the first location, it is determined that the distance between the first terminal and the location in the second location information is less than the first preset distance, which can prevent others from maliciously taking photos of the above-mentioned logo , Log in at a different place to participate in social activities in the first place, and then engage in fraudulent activities, which improves the security of social network connections.

在上述第三圖所示的社交網路連接建立的方法的實施例的基礎上,在步驟S150,建立該第一終端與該目標終端間的通信連接後,如第五圖所示,還包括步驟S1601,以及步驟S1602或步驟S1603: On the basis of the embodiment of the method for establishing a social network connection shown in Figure 3 above, in step S150, after establishing a communication connection between the first terminal and the target terminal, as shown in Figure 5, the method further includes Step S1601, and step S1602 or step S1603:

S1601,驗證該第一使用者的登入狀態是否有效。 S1601: Verify whether the login status of the first user is valid.

非限定性的,伺服器210透過維護第一使用者登錄狀態標誌來標識該第一使用者的登錄狀態是否有效,例如登錄狀態標識為0,則表示登錄狀態為有效,登錄狀態標識為1,則表示登錄狀態為失效。 Without limitation, the server 210 identifies whether the login status of the first user is valid by maintaining the first user login status flag. For example, if the login status flag is 0, it means that the login status is valid, and the login status flag is 1. It means that the login status is invalid.

在一個非限定性的示例中,驗證該第一使用者的登入狀態是否有效,包括: In a non-limiting example, verifying whether the login status of the first user is valid includes:

若檢測到該第一使用者的第一終端在第一預設時長內沒透過該通信連接發送資料,則確定該第一使用者的登入狀態為失效;或,若檢測到該第一使用者的登入時長超過第二預設時長,則確定該第一使用者的登入狀態為失效。示例性的,第一預設時長為3小時;示例性的,第二預設時長為24小時,本領域技術人員可以根據實際情況設置。 If it is detected that the first terminal of the first user does not send data through the communication connection within the first preset time period, it is determined that the login status of the first user is invalid; or, if the first user is detected If the login duration of the user exceeds the second preset duration, it is determined that the login status of the first user is invalid. Illustratively, the first preset duration is 3 hours; illustratively, the second preset duration is 24 hours, which can be set by those skilled in the art according to actual conditions.

在一個非限定性的示例中,定時獲取該第一終端的當前位置資訊;若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離大於第二預設距離,則確定該第一使用者的登入狀態為失效。在一些實施例中,該第二預設距離即為第一預設距離,或第二預設距離等於第一預設距離。可以理解的是,在此種情況下透過第二預設距離判斷第一使用者離開了登入時驗證的範圍,即認為使用者離開了第一場所。在一些實施例中,第二預設距離大於第一預設距離;例如,第一預設距離為50米,那麼第二預設距離為80米。當然,該第二預設距離也可以根據第一場所的規模屬性資訊確定,具體的,根據該規模屬性資訊確定第一預設距離,根據第一預設距離和比例係數確定第二預設距離,例如第二預設距離等於1.5乘以第一預設距離。可以理解的是,當第一使用者的 在第一場所內或在第一場所附近時,透過對第一使用者的驗證;以精確定位使用者的位置;但是第一使用者在登入後如果臨時走出第一場所,並且並沒有走出很遠,例如第一使用者臨時到附近店鋪購物並在很短的時間內返回第一場所,如果此期間將該第一使用者登出,當該第一使用者再次回到第一場所,需要與第一場所內的其他人進行社交互動時,需要重新驗證位置資訊,造成了較差的使用者體驗;假設使用者離開登入的第一場所,例如咖啡店,去附近的便利店買包口香糖,然後再返回該咖啡店,如果這個距離大於第一預設距離,該使用者就被登出了,使用者登入狀態的穩定性就不好,使用者體驗會變差,因此將第二預設距離大於第一預設距離,可以提高使用者登入狀態的穩定性,提高使用者體驗。 In a non-limiting example, the current location information of the first terminal is periodically acquired; if based on the current location information and the second location information, it is determined that the distance between the first terminal and the location in the second location information is greater than The second preset distance determines that the login status of the first user is invalid. In some embodiments, the second preset distance is the first preset distance, or the second preset distance is equal to the first preset distance. It is understandable that, in this case, it is judged that the first user has left the scope of authentication during login based on the second preset distance, that is, it is considered that the user has left the first place. In some embodiments, the second preset distance is greater than the first preset distance; for example, if the first preset distance is 50 meters, then the second preset distance is 80 meters. Of course, the second preset distance may also be determined according to the scale attribute information of the first place. Specifically, the first preset distance is determined according to the scale attribute information, and the second preset distance is determined according to the first preset distance and the scale factor. For example, the second preset distance is equal to 1.5 times the first preset distance. Understandably, when the first user’s When in the first place or near the first place, through the verification of the first user; to accurately locate the user’s location; but if the first user temporarily walks out of the first place after logging in, and does not go out very much For example, the first user temporarily goes shopping in a nearby store and returns to the first place in a short time. If the first user is logged out during this period, when the first user returns to the first place again, he needs When performing social interactions with other people in the first place, the location information needs to be re-verified, resulting in a poor user experience; suppose that the user leaves the first place to log in, such as a coffee shop, and goes to a nearby convenience store to buy a pack of chewing gum. Then return to the coffee shop. If the distance is greater than the first preset distance, the user will be logged out. The stability of the user login status will be poor and the user experience will be worse. Therefore, the second preset The distance is greater than the first preset distance, which can improve the stability of the user's login state and improve the user experience.

在一個更具體的示例中,若根據該當前位置資訊與該第二位置資訊,計算該第一終端與該第二位置資訊中的位置的即時距離,若該即時距離大於第二預設距離的時長超過第三預設時長,則確定該第一使用者的登入狀態為失效。在上述示例中,如果該第一使用者超出第二預設距離,可能是衛星定位導航信號因為多徑誤差等因素,使得使用者終端的當前位置資訊短暫漂移出第二預設距離,如果將該使用者登出,則會造成使用者無辜被登出的問題。為了消除位置資訊短暫漂移的影響,根據第三預設時間,例如5分鐘,對第一終端離開第二預設距離的時間進行判斷,防止使用者登錄狀態的穩定性受到衛星導航定位的多徑誤差的干擾,提高使用者登錄狀態的穩定性,改善使用者體驗。 In a more specific example, if the real-time distance between the first terminal and the position in the second position information is calculated based on the current position information and the second position information, if the real-time distance is greater than the second preset distance If the duration exceeds the third preset duration, it is determined that the login status of the first user is invalid. In the above example, if the first user exceeds the second preset distance, it may be that the satellite positioning and navigation signal may temporarily drift out of the second preset distance due to factors such as multipath errors. If the user logs out, it will cause the user to be logged out innocently. In order to eliminate the influence of the short-term drift of the location information, the time for the first terminal to leave the second preset distance is judged according to the third preset time, such as 5 minutes, to prevent the stability of the user's login state from being affected by the multipath of satellite navigation and positioning. The interference of errors improves the stability of the user's login status and improves the user experience.

S1602,若該第一使用者的登入狀態為有效,則保持該第一使用者的第一終端的通信連接。 S1602: If the login status of the first user is valid, the communication connection of the first terminal of the first user is maintained.

S1603,若該第一使用者的登入狀態為失效,則斷開該第一使用者的第一終端的通信連接,並登出該第一使用者。 S1603: If the login status of the first user is invalid, the communication connection of the first terminal of the first user is disconnected, and the first user is logged out.

其中,該登出包括但不限於以下操作:將第一使用者的登錄狀態設置為失效,禁止該使用者再次驗證位置前透過伺服器與其他使用者通信。 Wherein, the logout includes but is not limited to the following operations: setting the login status of the first user to invalid, and prohibiting the user from communicating with other users through the server before verifying the location again.

在一個非限定性的示例中,伺服器在斷開與第一使用者的第一終端的通信連接時,向該第一終端連接的目標終端發送提示資訊,以避免目標終端使用者的等待。 In a non-limiting example, when the server disconnects the communication connection with the first terminal of the first user, it sends prompt information to the target terminal connected to the first terminal, so as to avoid the waiting of the target terminal user.

可以理解的是,透過及時的登出長時間不進行通信或互動的使用者,避免了他人惡意佔用通信資源和社交資源的情況。透過檢測第一使用者是否已經遠離第一場所,保證了第一場所的社交活動的及時和有效。 It is understandable that by promptly logging out users who have not communicated or interacted for a long time, the situation of malicious occupation of communication resources and social resources by others is avoided. By detecting whether the first user has been far away from the first place, the timely and effective social activities of the first place are ensured.

在上述第三圖所示的社交網路連接建立的方法的實施例的基礎上,在步驟S130,向該第一終端發送一個或多個第二使用者的個人資料前,如第六圖所示,還包括步驟S125: On the basis of the embodiment of the method for establishing a social network connection shown in the third figure above, in step S130, before sending the personal data of one or more second users to the first terminal, as shown in the sixth figure Show, it also includes step S125:

S125,將各個第二使用者的個人資料與該第一使用者的個人資料進行匹配,篩選得到一個或多個該第二使用者的個人資料。 S125: Match the personal data of each second user with the personal data of the first user, and obtain one or more personal data of the second user through filtering.

在一個非限定性的示例中,透過第一使用者選擇第二使用者的歷史資料,建立統計學模型,根據該統計學模型匹篩選與當前第一使用者匹配的第二使用者。例如,經過統計,一般男性選擇比自己小2到3歲的異性的概率較高,當前的第一使用者為25歲男性,根據該統計結果和第一使用者的個人資料,篩選出年齡比當前第一使用者小2歲或3歲的異性的個人資料,作為與該第一使用者匹配的第二使用者的個人資料。 In a non-limiting example, the first user selects the historical data of the second user to establish a statistical model, and the second user matching the current first user is selected according to the statistical model. For example, after statistics, the average male has a higher probability of choosing the opposite sex who is 2 to 3 years younger than him. The current first user is a 25-year-old male. Based on the statistical results and the first user’s personal data, the age ratio is selected. The personal data of the opposite sex of the current first user who is 2 or 3 years younger is used as the personal data of the second user matching the first user.

在一個非限定性的示例中,透過經訓練的神經網路模型對第二使用者資料進行篩選,獲得與當前第一使用者匹配的第二使用者個人資料。具體的,可以採用偽孿生神經網路(Pseudo-Siamese Network),將第一使用者選擇第二使用者的結果的歷史資料,以及該歷史資料對應的第一使用者的個人資料和第二使用者個人資料作為作該偽孿生神經網路的訓練樣本;透過該訓練樣本訓練得到使用者輸出第一使用者和第二使用者的使用者個人資料匹配度的模型;將當前的第一使用者的個人資料與各個第二使用者的使用者個人資料作為該模型的輸入,分別獲取兩個使用者的個人資料的匹配度,一般的,為模型輸出的匹配概率;將概率值最大的前N個第二使用者的個人資料作為篩選後的第二使用者個人資料,其中N為大於或等於1的整數。 In a non-limiting example, the second user data is filtered through the trained neural network model to obtain the second user personal data that matches the current first user. Specifically, a Pseudo-Siamese Network can be used to combine the historical data of the result of the first user’s selection of the second user, and the personal data of the first user and the second user corresponding to the historical data. The personal data of the user is used as the training sample for the pseudo-twin neural network; the training sample is used to train the user to output a model of the matching degree of the user’s personal data of the first user and the second user; and the current first user The personal data of each second user and the user personal data of each second user are used as the input of the model, and the matching degree of the personal data of the two users is obtained respectively. Generally, it is the matching probability output by the model; the top N with the largest probability value The personal data of the second user is used as the filtered personal data of the second user, where N is an integer greater than or equal to 1.

可以理解的是,透過將第一使用者和第二使用者的個人資料進行匹配,篩選得到一個或多個該第二使用者的個人資料,將經過篩選的第二使用者個人資料發送給第一使用者;一方面,可以減少資料發送量,節約網路資源;另一方面,較少的資料佔用第一使用者的第一終端的空間較少,提高了對第一終端設備的相容性;再一方面,第一使用者在APP介面進行選擇時,有針對性性的較少選擇提升了使用者體驗,同時也提高了社交匹配的效率。 It is understandable that by matching the personal data of the first user and the second user, one or more personal data of the second user is obtained by filtering, and the filtered personal data of the second user is sent to the first user. One user; on the one hand, it can reduce the amount of data sent and save network resources; on the other hand, less data occupies less space in the first terminal of the first user, which improves the compatibility with the first terminal device On the other hand, when the first user makes choices on the APP interface, fewer targeted choices improve the user experience and at the same time improve the efficiency of social matching.

對應於上述第三圖所示的社交網路連接建立的方法,第七圖所示者係為本發明實施例提供的一種社交網路連接建立的裝置,包括: Corresponding to the method for establishing a social network connection shown in Figure 3, the device shown in Figure 7 is a device for establishing a social network connection provided by an embodiment of the present invention, including:

接收模組M110,用於接收第一終端發送的驗證請求,該驗證請求包括該第一終端的當前位置資訊和第一場所的識別資訊;該驗證請求 由該第一終端根據第一標識發出的,該第一標識包括該第一場所的該識別資訊。 The receiving module M110 is used to receive a verification request sent by the first terminal, the verification request including the current location information of the first terminal and the identification information of the first location; the verification request It is issued by the first terminal according to the first identifier, and the first identifier includes the identification information of the first place.

驗證模組M120,用於回應於該驗證請求,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所。 The verification module M120 is used to respond to the verification request and obtain the second location information of the first place according to the identification information. If the current location information and the second location information are used to determine the first terminal and the second location information If the distance of the location in the location information is less than the first preset distance, the personal data of the first user to which the first terminal belongs is obtained, and the first user logs into the virtual first place corresponding to the identification information.

資料發送模組M130,用於向該第一終端發送一個或多個第二使用者的個人資料;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者。 The data sending module M130 is used to send the personal data of one or more second users to the first terminal; the second users are those who have logged in to the virtual first place and are excluding the first user user.

終端確認模組M140,用於回應於該第一終端發送的選擇請求確定目標終端;該選擇請求包括針對該一個或多個第二使用者的個人資料選擇的結果。 The terminal confirmation module M140 is configured to determine a target terminal in response to a selection request sent by the first terminal; the selection request includes the result of personal data selection for the one or more second users.

連接建立模組M150,建立該第一終端與該目標終端間的通信連接。 The connection establishment module M150 establishes a communication connection between the first terminal and the target terminal.

可以理解的是,以上實施例中的各種實施方式和實施方式組合及其有益效果同樣適用於本實施例,這裡不再贅述。 It can be understood that the various implementation manners and implementation manner combinations in the above embodiments and their beneficial effects are also applicable to this embodiment, and will not be repeated here.

第九圖示出了本發明實施例提供的一種社交網路連接建立的方法,應用於上述第二圖所所示的第一終端220,可由該第一終端220的軟體和/或硬體實現。該方法包括步驟S210至S230。各個步驟的具體實現原理如下: The ninth figure shows a method for establishing a social network connection provided by an embodiment of the present invention, which is applied to the first terminal 220 shown in the second figure above, and can be implemented by the software and/or hardware of the first terminal 220 . The method includes steps S210 to S230. The specific implementation principles of each step are as follows:

S210,識別包括第一場所的識別資訊的第一標識。 S210: Identify a first identifier that includes identification information of the first place.

S220,根據對該第一標識的識別結果,向伺服器發送驗證請求;該驗證請求包括第一終端的當前位置資訊和該識別資訊;該驗證請求用於指示該伺服器根據該識別資訊獲取該第一場所的第二位置資訊;若根據當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所。 S220: Send a verification request to the server based on the identification result of the first identifier; the verification request includes the current location information of the first terminal and the identification information; the verification request is used to instruct the server to obtain the identification information according to the identification information. The second location information of the first place; if it is determined based on the current location information and the second location information that the distance between the first terminal and the location in the second location information is less than the first preset distance, then the first terminal is acquired To belong to the personal data of the first user, and log the first user into the virtual first place corresponding to the identification information.

S230,響應於伺服器發送一個或多個第二使用者的個人資料;向該伺服器發送選擇請求;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者;該選擇請求,包括針對該一個或多個第二使用者的個人資料選擇的結果,用於指示該伺服器回應於該選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。 S230. In response to the server sending the personal data of one or more second users; sending a selection request to the server; the second user is already logged in the virtual first place and is excluding the first user The selection request, including the result of selecting the personal data of the one or more second users, is used to instruct the server to determine the target terminal in response to the selection request, and to establish the first terminal and the target terminal Communication connection between.

可以理解的是,上述各個社交網路連接建立的方法的實施例勻適用於本實施例,這裡不再贅述。 It can be understood that the above embodiments of the methods for establishing social network connections are equally applicable to this embodiment, and will not be repeated here.

對應於上述第八圖所示的社交網路連接建立的方法,第九圖所示者係為本發明實施例提供的一種社交網路連接建立的裝置,包括: Corresponding to the method for establishing a social network connection shown in Figure 8 above, the one shown in Figure 9 is a device for establishing a social network connection provided by an embodiment of the present invention, including:

識別模組M210,用於識別包括第一場所的識別資訊的第一標識。 The identification module M210 is used to identify the first identifier including the identification information of the first place.

驗證請求發送模組M220,用於根據對該第一標識的識別結果,向伺服器發送驗證請求;該驗證請求包括第一終端的當前位置資訊和該識別資訊;該驗證請求用於指示該伺服器根據該識別資訊獲取該第一場所的第二位置資訊;若根據當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一 終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所。 The verification request sending module M220 is used to send a verification request to the server according to the identification result of the first identifier; the verification request includes the current location information of the first terminal and the identification information; the verification request is used to instruct the server The device obtains the second location information of the first place according to the identification information; if based on the current location information and the second location information, it is determined that the distance between the first terminal and the location in the second location information is less than the first preset distance , Then get the first Personal data of the first user to which the terminal belongs, and log the first user into the virtual first place corresponding to the identification information.

選擇模組M230,用於響應於伺服器發送一個或多個第二使用者的個人資料;向該伺服器發送選擇請求;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者;該選擇請求,包括針對該一個或多個第二使用者的個人資料選擇的結果,用於指示該伺服器回應於該選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。 The selection module M230 is used for sending the personal data of one or more second users in response to the server; sending a selection request to the server; the second user has logged in to the virtual first place, and except for the second user A user other than a user; the selection request includes the result of selecting the personal data of the one or more second users, and is used to instruct the server to determine the target terminal in response to the selection request, and create the first The communication connection between the terminal and the target terminal.

可以理解的是,上述各個社交網路連接建立的方法的實施例勻適用於本實施例,這裡不再贅述。 It can be understood that the above embodiments of the methods for establishing social network connections are equally applicable to this embodiment, and will not be repeated here.

第十圖為本發明一實施例提供的電子設備的結構示意圖。該電子設備用於實現上述社交網路系統200中的伺服器210或第一終端220,以執行上述各個方法中的各個步驟。如第十圖所示,該實施例的電子設備D10包括:至少一個處理器D100(第十圖中僅示出一個)處理器、儲存器D101以及存儲在該儲存器D101中並可在該至少一個處理器D100上運行的計算機程序D102,該處理器D100執行該計算機程序D102時實現上述任意各個方法實施例中的步驟。或者,該處理器D100執行該計算機程序D102時實現上述各裝置實施例中各模組/單元的功能。 Figure 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device is used to implement the server 210 or the first terminal 220 in the aforementioned social network system 200 to execute the steps in the aforementioned methods. As shown in the tenth figure, the electronic device D10 of this embodiment includes: at least one processor D100 (only one is shown in the tenth figure), a processor, a storage D101, and a A computer program D102 running on a processor D100, and when the processor D100 executes the computer program D102, the steps in any of the foregoing method embodiments are implemented. Or, when the processor D100 executes the computer program D102, the functions of the modules/units in the foregoing device embodiments are realized.

該電子設備D10可以是桌上型電腦、筆記本、掌上型電腦及雲端伺服器等計算設備。該電子設備可包括,但不僅限於,處理器D100、儲存器D101。本領域技術人員可以理解,第十圖僅僅是電子設備D10的舉例,並不構成對電子設備D10的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件,例如還可以包括輸入輸出設備、網 路接入設備等。 The electronic device D10 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The electronic device may include, but is not limited to, a processor D100 and a storage D101. Those skilled in the art can understand that the tenth figure is only an example of the electronic device D10, and does not constitute a limitation on the electronic device D10. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. Components, for example, can also include input and output devices, network Access equipment, etc.

所稱處理器D100可以是中央處理單元(Central Processing Unit,CPU),該處理器D100還可以是其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者該處理器也可以是任何常規的處理器等。 The so-called processor D100 may be a central processing unit (Central Processing Unit, CPU), the processor D100 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated integrated circuits (Application Specific Integrated Circuits) Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.

該儲存器D101在一些實施例中可以是該電子設備D10的內部存儲單元,例如電子設備D10的硬碟或儲存器。該儲存器D101在另一些實施例中也可以是該電子設備D10的外部存放裝置,例如該電子設備D10上配備的插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃儲存器卡(Flash Card)等。進一步地,該儲存器D101還可以既包括該電子設備D10的內部存儲單元也包括外部存放裝置。該儲存器D101用於存儲作業系統、應用程式、引導裝載程式(BootLoader)、資料以及其他程式等,例如該計算機程序的程式碼等。該儲存器D101還可以用於暫時地存儲已經輸出或者將要輸出的資料。 The storage D101 may be an internal storage unit of the electronic device D10 in some embodiments, such as a hard disk or storage of the electronic device D10. In other embodiments, the storage D101 may also be an external storage device of the electronic device D10, such as a plug-in hard disk, a Smart Media Card (SMC), and a secure digital ( Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the storage D101 may also include both an internal storage unit of the electronic device D10 and an external storage device. The memory D101 is used to store the operating system, application programs, boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The storage D101 can also be used to temporarily store data that has been output or will be output.

需要說明的是,上述裝置/單元之間的資訊交互、執行過程等內容,由於與本發明方法實施例基於同一構思,其具體功能及帶來的技術效果,具體可參見方法實施例部分,此處不再贅述。 It should be noted that the information interaction and execution process among the above-mentioned devices/units are based on the same concept as the method embodiment of the present invention. For specific functions and technical effects, please refer to the method embodiment section for details. I won't repeat it here.

所屬領域的技術人員可以清楚地瞭解到,為了描述的方便和簡潔,僅以上述各功能單元、模組的劃分進行舉例說明,實際應用中,可 以根據需要而將上述功能分配由不同的功能單元、模組完成,即將該裝置的內部結構劃分成不同的功能單元或模組,以完成以上描述的全部或者部分功能。實施例中的各功能單元、模組可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中,上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。另外,各功能單元、模組的具體名稱也只是為了便於相互區分,並不用於限制本發明的保護範圍。上述系統中單元、模組的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。 Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, According to the needs, the above-mentioned function allocation is completed by different functional units and modules, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the above-described functions. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be either hardware Realization in the form of a body can also be realized in the form of a software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.

本發明實施例還提供了一種網路設備,該網路設備包括:至少一個處理器、儲存器以及存儲在該儲存器中並可在該至少一個處理器上運行的計算機程序,該處理器執行該計算機程序時實現上述任意各個方法實施例中由伺服器210的步驟。 An embodiment of the present invention also provides a network device, which includes: at least one processor, a storage, and a computer program stored in the storage and running on the at least one processor, and the processor executes The computer program implements the steps of the server 210 in any of the foregoing method embodiments.

本發明實施例還提供了一種電腦可讀存儲介質,該電腦可讀存儲介質存儲有計算機程序,該計算機程序被處理器執行時實現可實現上述各個方法實施例中的步驟。 The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.

本發明實施例提供了一種計算機程序產品,當計算機程序產品在移動終端上運行時,使得移動終端執行時實現可實現上述各個方法實施例中由第一終端220執行的步驟。 The embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the steps executed by the first terminal 220 in the above-mentioned various method embodiments can be realized when the mobile terminal is executed.

該集成的單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,可以透過計算機程序來指令相關的硬體來完成,該的計算機程序可存儲於一電腦可讀存 儲介質中,該計算機程序在被處理器執行時,可實現上述各個方法實施例的步驟。其中,該計算機程序包括計算機程序代碼,該計算機程序代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。該電腦可讀介質至少可以包括:能夠將計算機程序代碼攜帶到拍照裝置/終端設備的任何實體或裝置、記錄介質、電腦儲存器、唯讀儲存器(Read-Only Memory,ROM)、隨機存取儲存器(Random Access Memory,RAM)、電載波信號、電信信號以及軟體分發介質。例如U盤、移動硬碟、磁碟或者光碟等。在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不可以是電載波信號和電信信號。 If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiments and methods, which can be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable memory. In the storage medium, when the computer program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original program code, object code, executable file, or some intermediate forms. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer storage, read-only memory (Read-Only Memory, ROM), random access Storage (Random Access Memory, RAM), electric carrier signal, telecommunications signal, and software distribution medium. For example, U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electric carrier signals and telecommunication signals.

在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述或記載的部分,可以參見其它實施例的相關描述。 In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.

本領域普通技術人員可以意識到,結合本文中所公開的實施例描述的各示例的單元及演算法步驟,能夠以電子硬體、或者電腦軟體和電子硬體的結合來實現。這些功能究竟以硬體還是軟體方式來執行,取決於技術方案的特定應用和設計約束條件。專業技術人員可以對每個特定的應用來使用不同方法來實現所描述的功能,但是這種實現不應認為超出本發明的範圍。 A person of ordinary skill in the art may be aware that the units and algorithm steps described in the examples in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.

在本發明所提供的實施例中,應該理解到,所揭露的裝置/網路設備和方法,可以透過其它的方式實現。例如,以上所描述的裝置/網路設備實施例僅僅是示意性的,例如,該模組或單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或元件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。 另一點,所顯示或討論的相互之間的耦合或直接耦合或通訊連接可以是透過一些介面,裝置或單元的間接耦合或通訊連接,可以是電性,機械或其它的形式。 In the embodiments provided by the present invention, it should be understood that the disclosed device/network equipment and method can be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or elements can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

該作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。 The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

以上該實施例僅用以說明本發明的技術方案,而非對其限制;儘管參照前述實施例對本發明進行了詳細的說明,本領域的普通技術人員應當理解:其依然可以對前述各實施例所記載的技術方案進行修改,或者對其中部分技術特徵進行等同替換;而這些修改或者替換,並不使相應技術方案的本質脫離本發明各實施例技術方案的精神和範圍,均應包含在本發明的保護範圍之內。 The above embodiment is only used to illustrate the technical solution of the present invention, not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still compare the foregoing embodiments. The recorded technical solutions are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in this Within the scope of protection of the invention.

200:社交網路系統 200: social network system

210:伺服器 210: server

220:第一終端 220: the first terminal

230:顯示裝置 230: display device

Claims (10)

一種社交網路連接建立的方法,其特徵在於,包括: A method for establishing a social network connection, which is characterized in that it includes: 接收第一終端發送的驗證請求,該驗證請求包括該第一終端的當前位置資訊和第一場所的識別資訊;該驗證請求由該第一終端根據第一標識發出的,該第一標識包括該第一場所的該識別資訊; Receiving a verification request sent by the first terminal, the verification request including the current location information of the first terminal and the identification information of the first location; the verification request is issued by the first terminal according to the first identifier, the first identifier including the The identification information of the first place; 回應於該驗證請求,根據該識別資訊獲取該第一場所的第二位置資訊,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; In response to the verification request, the second location information of the first place is obtained according to the identification information, and the distance between the first terminal and the location in the second location information is determined based on the current location information and the second location information If the distance is less than the first preset distance, obtain the personal data of the first user to which the first terminal belongs, and log the first user into the virtual first place corresponding to the identification information; 向該第一終端發送一個或多個第二使用者的個人資料;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者; Sending personal data of one or more second users to the first terminal; the second user is a user who has logged in to the virtual first place and other than the first user; 回應於該第一終端發送的選擇請求確定目標終端;該選擇請求包括針對該一個或多個第二使用者的個人資料選擇的結果; Determining a target terminal in response to a selection request sent by the first terminal; the selection request includes a result of personal data selection for the one or more second users; 建立該第一終端與該目標終端間的通信連接。 Establish a communication connection between the first terminal and the target terminal. 如請求項1該的方法,其特徵在於,在建立該第一終端與該目標終端間的通信連接後,還包括: The method according to claim 1, characterized in that, after establishing a communication connection between the first terminal and the target terminal, the method further includes: 驗證該第一使用者的登入狀態是否有效; Verify that the login status of the first user is valid; 若該第一使用者的登入狀態為有效,則保持該第一使用者的第一終端的通信連接; If the login status of the first user is valid, maintain the communication connection of the first terminal of the first user; 若該第一使用者的登入狀態為失效,則斷開該第一使用者的第一終端的通信連接,並登出該第一使用者。 If the login status of the first user is invalid, the communication connection of the first terminal of the first user is disconnected, and the first user is logged out. 如請求項2該的方法,其特徵在於,驗證該第一使用者的登入狀態是否有效,包括: The method according to claim 2, characterized in that, verifying whether the login status of the first user is valid includes: 若檢測到該第一使用者的第一終端在第一預設時長內沒透過該通信連接發送資料,則確定該第一使用者的登入狀態為失效; If it is detected that the first terminal of the first user has not sent data through the communication connection within the first preset time period, it is determined that the login status of the first user is invalid; 若檢測到該第一使用者的登入時長超過第二預設時長,則確定該第一 使用者的登入狀態為失效。 If it is detected that the login duration of the first user exceeds the second preset duration, it is determined that the first user The user's login status is invalid. 如請求項2該的方法,其特徵在於,驗證該第一使用者的登入狀態是否有效,包括: The method according to claim 2, characterized in that, verifying whether the login status of the first user is valid includes: 定時獲取該第一終端的當前位置資訊; Obtain the current location information of the first terminal regularly; 若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離大於第二預設距離,則確定該第一使用者的登入狀態為失效。 If it is determined based on the current location information and the second location information that the distance between the first terminal and the location in the second location information is greater than a second preset distance, it is determined that the login status of the first user is invalid. 如請求項4該的方法,其特徵在於,若根據該當前位置資訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離大於第二預設距離,則確定該第一使用者的登入狀態為失效,包括:若根據該當前位置資訊與該第二位置資訊,計算該第一終端與該第二位置資訊中的位置的即時距離,若該即時距離大於第二預設距離的時長超過第三預設時長,則確定該第一使用者的登入狀態為失效。 According to claim 4, the method is characterized in that if it is determined based on the current location information and the second location information that the distance between the first terminal and the location in the second location information is greater than a second preset distance, then it is determined The login status of the first user is invalid, including: if the real-time distance between the first terminal and the location in the second location information is calculated based on the current location information and the second location information, if the real-time distance is greater than the first location information If the duration of the second preset distance exceeds the third preset duration, it is determined that the login status of the first user is invalid. 如請求項1該的方法,其特徵在於,在判斷該第一終端與該第一場所的距離小於預設距離前,還包括:獲取該第一場所的規模屬性資訊,根據該規模屬性資訊確定該第一預設距離。 According to claim 1, the method is characterized in that, before determining that the distance between the first terminal and the first place is less than a preset distance, the method further comprises: obtaining scale attribute information of the first place, and determining according to the scale attribute information The first preset distance. 如請求項1該的方法,其特徵在於,向該第一終端發送一個或多個第二使用者的個人資料前,還包括:將各個第二使用者的個人資料與該第一使用者的個人資料進行匹配,篩選得到一個或多個該第二使用者的個人資料。 For example, the method according to claim 1, characterized in that, before sending the personal data of one or more second users to the first terminal, the method further includes: comparing the personal data of each second user with that of the first user. The personal data is matched, and one or more personal data of the second user is obtained by screening. 一種社交網路連接建立的方法,其特徵在於,應用於第一終端,該方法包括: A method for establishing a social network connection, characterized in that it is applied to a first terminal, and the method includes: 識別包括第一場所的識別資訊的第一標識; Identify the first identifier that includes the identification information of the first place; 根據對該第一標識的識別結果,向伺服器發送驗證請求;該驗證請求包括第一終端的當前位置資訊和該識別資訊;該驗證請求用於指示該伺服器根據該識別資訊獲取該第一場所的第二位置資訊;若根據該當前位置資 訊與該第二位置資訊,判斷該第一終端與該第二位置資訊中的位置的距離小於第一預設距離,則獲取該第一終端所屬第一使用者的個人資料,並將該第一使用者登入該識別資訊對應的虛擬第一場所; According to the identification result of the first identifier, a verification request is sent to the server; the verification request includes the current location information of the first terminal and the identification information; the verification request is used to instruct the server to obtain the first identification information according to the identification information. The second location information of the place; if based on the current location information Information and the second location information, it is determined that the distance between the first terminal and the location in the second location information is less than the first preset distance, then the personal data of the first user to which the first terminal belongs is acquired, and the second A user logs in the virtual first place corresponding to the identification information; 響應於伺服器發送一個或多個第二使用者的個人資料;向該伺服器發送選擇請求;該第二使用者為已經登入該虛擬第一場所,並除該第一使用者之外的使用者;該選擇請求,包括針對該一個或多個第二使用者的個人資料選擇的結果,用於指示該伺服器回應於該選擇請求確定目標終端,建立該第一終端與該目標終端間的通信連接。 In response to the server sending the personal data of one or more second users; sending a selection request to the server; the second user is already logged in to the virtual first place and uses other than the first user The selection request, including the result of the personal data selection for the one or more second users, is used to instruct the server to determine the target terminal in response to the selection request, and establish a connection between the first terminal and the target terminal Communication connection. 一種電子設備,其特徵在於,包括:包括儲存器、處理器以及存儲在該儲存器中並可在該處理器上運行的計算機程序,該處理器執行該計算機程序時實現如請求項1至7任一項該的方法,以及請求項8的方法。 An electronic device, characterized by comprising: a storage, a processor, and a computer program stored in the storage and running on the processor; Any one of the methods, and the method of claim 8. 一種電腦可讀存儲介質,該電腦可讀存儲介質存儲有計算機程序,其特徵在於,該計算機程序被處理器執行時實現如請求項1至7任一項,以及請求項8的方法。 A computer-readable storage medium in which a computer program is stored, characterized in that, when the computer program is executed by a processor, it implements any one of claim items 1 to 7 and a method of claim item 8.
TW109124157A 2020-03-12 2020-07-15 Method, electric equipment and storage medium for social network connection establishment TW202135590A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010170251.XA CN111479222A (en) 2020-03-12 2020-03-12 Method for establishing social network connection, electronic device and storage medium
CN202010170251.X 2020-03-12

Publications (1)

Publication Number Publication Date
TW202135590A true TW202135590A (en) 2021-09-16

Family

ID=71747436

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109124157A TW202135590A (en) 2020-03-12 2020-07-15 Method, electric equipment and storage medium for social network connection establishment

Country Status (3)

Country Link
CN (1) CN111479222A (en)
SG (1) SG10202006847YA (en)
TW (1) TW202135590A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079862B (en) * 2020-08-05 2023-03-10 华为技术有限公司 Automatic control method, electronic device and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201030645A (en) * 2009-02-03 2010-08-16 li-he Yao Information exchange apparatus, method and its management system by utilizing the wireless channel
CN102695121A (en) * 2011-03-25 2012-09-26 北京千橡网景科技发展有限公司 Method and system for pushing friend information for user in social network
CN102567857B (en) * 2012-01-18 2015-08-26 北京友录在线科技发展有限公司 A kind of being taken pictures by hand-held mobile terminal adds the method for tissue fast
CN103227796A (en) * 2013-05-06 2013-07-31 北京灵创众和科技有限公司 Method and system of sharing contact network based on two-dimensional code
CN104392502B (en) * 2014-11-14 2018-08-24 苏州盖雅信息技术有限公司 A kind of Work attendance method of the Quick Response Code attendance checking system based on smart mobile phone
CN110851565A (en) * 2019-10-31 2020-02-28 上海动听网络科技有限公司 Friend making method, terminal, server and friend making system

Also Published As

Publication number Publication date
CN111479222A (en) 2020-07-31
SG10202006847YA (en) 2021-10-28

Similar Documents

Publication Publication Date Title
US10834529B2 (en) Location-based discovery of network members
US11263618B2 (en) Information processing method and apparatus
CN106162804B (en) For the method and apparatus for the access information for providing wireless access focus
US20180324573A1 (en) Information Sending Method, Network Device, and Terminal
US10009731B2 (en) Information sharing method, device and storage medium
JP6348134B2 (en) Mobile ad hoc networking
WO2017114125A1 (en) Terminal positioning method and server
US10237272B2 (en) Methods, apparatus, and systems for identity authentication
WO2012001624A1 (en) Location-aware mobile connectivity and information exchange system
CN102082881A (en) Method and systems for real time display of caller location, profile, and trust relationship
CN102405474A (en) User challenge using information based on geography or user identity
US10171577B2 (en) Local area networking system
US20170208029A1 (en) System and Method for Improved Social Networking
TW202135590A (en) Method, electric equipment and storage medium for social network connection establishment
CN106255074B (en) A kind of group's method for building up and device
CN110570553A (en) Personnel management method and related device
US20160294833A1 (en) Social communication system and method thereof
CN100471288C (en) Method and system for obtaining sponsor party position information for target party
US20230177138A1 (en) Identity verification utilizing uploaded content and trust score
WO2014048101A1 (en) Method for labelling user data, terminal device and server
US20210329041A1 (en) User of identity services to auto-discover subscribers of social networking sites
CN108810821A (en) Method, apparatus, terminal, server and the storage medium of attendance tracking
US10933312B2 (en) Systems, apparatus and methods for verifying locations
CN111145376A (en) Card punching method, system, central server and storage medium
TW201910978A (en) System for completing check in process automatically through mobile device and method thereof