WO2019161600A1 - 一种向社区添加成员的方法、装置、服务器及介质 - Google Patents

一种向社区添加成员的方法、装置、服务器及介质 Download PDF

Info

Publication number
WO2019161600A1
WO2019161600A1 PCT/CN2018/082615 CN2018082615W WO2019161600A1 WO 2019161600 A1 WO2019161600 A1 WO 2019161600A1 CN 2018082615 W CN2018082615 W CN 2018082615W WO 2019161600 A1 WO2019161600 A1 WO 2019161600A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
account
social application
stamp
community
Prior art date
Application number
PCT/CN2018/082615
Other languages
English (en)
French (fr)
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 WO2019161600A1 publication Critical patent/WO2019161600A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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

Definitions

  • the present application belongs to the field of social application technologies, and in particular, to a method, an apparatus, a server, and a medium for adding members to a community.
  • existing social applications can add friends by scanning a QR code, etc., when adding a friend or a non-friend user to a community (group), it is necessary to implement a relatively cumbersome operation. For example, to add a user in the buddy list to an existing community, first enter the member addition interface in the community, then select a buddy list in the interface, and find the buddy list that the user wants to add to the community. Then add the community members, it can be seen that the existing social application has the problem of cumbersome steps when adding members to the community.
  • a first aspect of an embodiment of the present application provides a method for adding a member to a community, including:
  • the account of the second user is acquired by the NFC, and the account of the second user is a unique identifier of the second user in the social application;
  • a second aspect of the embodiments of the present application provides an apparatus for adding a member to a community, including:
  • An acquiring unit configured to acquire, by using a near field communication NFC, an account of the second user, if the preset operation for adding the second user to the target community is detected in the social application that is logged in by the first user, where The account of the second user is a unique identifier of the second user in the social application;
  • a determining unit configured to determine, by the social application, whether the second user is a member of the target community according to an account of the second user;
  • a first execution unit configured to configure, by the social application, a markup to an account of the second user, if the second user is not a member of the target community;
  • a sending unit configured to send, by the social application, an account of a second user configured with the marking stamp to a server, so that the server adds the account of the second user to the In the target community.
  • a third aspect of an embodiment of the present application provides a server for adding a member to a community, comprising a memory, a processor, and the computer storing computer readable instructions executable on the processor, the processor executing The computer readable instructions implement the following steps:
  • the account of the second user is acquired by the NFC, and the account of the second user is a unique identifier of the second user in the social application;
  • a fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer readable instructions, wherein the computer readable instructions are implemented by at least one processor The following steps:
  • the account of the second user is acquired by the NFC, and the account of the second user is a unique identifier of the second user in the social application;
  • the step of enabling the server to add the second user's account to the target community according to the tagging simplifies the step of adding members to the community in the social application.
  • FIG. 1 is a schematic flowchart of an implementation method of adding a member to a community according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an implementation method of adding a member to a community according to another embodiment of the present application
  • FIG. 3 is a specific implementation flowchart of a method S21 of adding a member to a community according to another embodiment of the present application;
  • FIG. 4 is a flowchart of a specific implementation of a method S23 of adding a member to a community according to another embodiment of the present application;
  • FIG. 5 is a flowchart of a specific implementation of a method S25 of adding a member to a community according to another embodiment of the present application;
  • FIG. 6 is a schematic structural diagram of an apparatus for adding a member to a community according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of an electronic device according to an embodiment of the present application.
  • an embodiment of the present application provides a flowchart for implementing a method for adding a member to a community.
  • a method for adding a member to a community is a terminal, such as a mobile phone or a computer.
  • the method of adding members to the community as shown in FIG. 1 may include:
  • the account of the second user is a unique identifier of the second user in the social application.
  • the first user is a user who has permission to add community members in the target community, such as a create party, an administrator, and the like.
  • the social application is a social application installed on the terminal, and the preset operation is used to trigger the terminal to enable near field communication (Near Field Communication (NFC), to obtain the account of the second user of the second user sent by another terminal through the NFC.
  • NFC Near Field Communication
  • the preset operation for adding the second user to the target community may be that the first user adds the second user in the member adding interface of the target community in the social application after logging in to the social application. operating.
  • the NFC function of the first terminal is enabled, and the first NFC function component of the first terminal is radiated to the surroundings.
  • An NFC signal the first NFC signal is used to request to acquire an account of the second user.
  • the NFC function of the second terminal is enabled, when the first terminal is close to the second terminal, the second terminal receives the first NFC signal sent by the first terminal, and uses the account number of the second user as the second NFC according to the first NFC signal. The signal is sent to the first terminal.
  • the terminal where the social application that the first user logs in is interacting with the other terminal through the NFC signal, where the first user logs in.
  • the terminal where the social application is located serves as an initiating device of the NFC signal, and the initiating device needs to generate a radio frequency magnetic field around it, and send the data to another terminal at a fixed transmission speed, for example, 106 kbps, 212 kbps or 424 kbps, that is, the target device After receiving the data, the target device does not need to generate a magnetic field again, and the response data can be transmitted back to the initiating device by means of load modulation, and the return speed of the response data is the same as the transmission speed.
  • the manner in which the NFC function is enabled in different social applications or the permission setting may be different.
  • the social application cannot successfully enable the terminal NFC function, the user is prompted to reset the operation path of the social application permission, so as to pass the The social application has permissions to enable terminal NFC functionality.
  • step S12 the markup stamp is used to point to the target community, and reflects that the account of the second user is the to-be-added member added to the target community selected by the first user.
  • the account of the first user has the right to add a member to the target community.
  • the account that is added that is, the account of the second user, and the account of the first user may be Friends relationship, or non-friend relationship.
  • the account of the first user may have the right to manage multiple communities at the same time, that is, the first user may be the creator or the administrator of multiple communities, and when the target community is multiple communities, the account of the second user may be used by the social application.
  • Multiple tag stamps are configured, different tag stamps are used to point to different target communities, or only a second user's account is configured with a tag stamp, which can point to multiple different target communities at the same time.
  • the same markup is also sent to the server as a reference mark by the social application.
  • the server After receiving the account of the second user configured with the markup stamp, the server searches for the same reference mark stamp according to the markup stamp configured on the account of the second user. If the same markup stamp exists, the account of the second user is determined. The member account that the first user wishes to add to the target community.
  • S13 Send, by the social application, an account of the second user configured with the marking stamp to the server, so that the server adds the account of the second user to the target community according to the marking stamp.
  • the server is a server for performing data interaction between the social application and the terminal, and the server stores data resources related to the social application.
  • the account of the second user configured with the tag stamp is used to enable the server to add the account of the second user to the target community.
  • the account of the second user configured with the marked stamp is sent to the server, and the current login user of the social application is the first user. Because the first user has the right to add the member to the target community, the server can directly add the account of the second user to the community according to the account of the second user configured with the marked stamp, without further accessing the first user. Or other management parties in the target community send verification request information.
  • the social application is installed on the terminal, and by running the social application on the terminal and logging in with the first user's account, the user adds the second user to the target by using the social application in the social application.
  • the NFC function of the terminal is used to acquire the account of the second user, the markup of the account of the second user is configured, and the account of the second user configured with the markup is sent to the server without manual input by the user.
  • the account of the second user does not need to verify the request of the second user to join the target community, and the account of the second user can be added to the target community.
  • the NFC is used to obtain the account of the second user, and then And configuring, by the social application, a token for pointing to the target community to the account of the second user, and sending the account of the second user configured with the token stamp to the server, so that the server can add the account of the second user to the target according to the token stamp
  • the steps to add members to the community in a social app are simplified.
  • FIG. 2 is a schematic flowchart of a method for adding a member to a community according to another embodiment of the present application.
  • the steps before the step of configuring the marking of the account of the second user by the social application are further defined.
  • a method for adding a member to a community according to another embodiment of the present application includes:
  • S22 Determine, by the social application, whether the second user is a member of the target community according to the account of the second user.
  • step S22 different users have different accounts in the social application, and the user's account can find the corresponding user in the social application and send information to the user, for example, adding the request information as a friend.
  • the member list of the target community may be stored in the local database of the social application, and the social application searches for the second user's account in the community list. It is in turn possible to determine if the second user is a member of the target community.
  • the step S22 may specifically include: performing a search in the member list of the target community according to the account of the second user; and if the member matching the account of the second user is found in the member list of the target community, determining The second user is a member of the target community; if the member matching the account of the second user is not found in the member list of the target community, it is determined that the second user is not a member of the target community.
  • the server sends the updated member list to the social application, and then stores the information in the local database.
  • the list of members of the target community is updated to improve the accuracy of determining whether the second user is a member of the target community.
  • step S22 further includes step S235 along with step S23.
  • S235 If the second user is a member of the target community, displaying prompt information, where the prompt information is used to describe that the second user is a member of the target community.
  • the prompt information may be displayed by displaying a prompt window, displaying a prompt window in the interface of the social application, and displaying the content of the prompt information in the prompt window, and setting a duration threshold for displaying the prompt window in advance, thereby
  • the prompt window can be closed when the display duration reaches the duration threshold.
  • the content of the prompt information describes that the second user is already a member of the target community. That is, the prompt information may include an identifier or a name of some or all of the target communities, wherein the identifier may be an icon of some or all of the target communities, so that the prompt information may more intuitively reflect that the second user is a member of the target community.
  • step S23 the execution sequence between step S23 and step S235 is in no particular order. After step S23 is performed, step S24 is executed, step S235 is not executed, and after step S235 is executed, step S23 is not executed. Re-acquire the account of the second user.
  • S24 Send, by the social application, an account of the second user configured with the marking stamp to the server, so that the server adds the account of the second user to the target community according to the marking stamp.
  • step S21 specifically includes:
  • S212 Invoking the NFC antenna to radiate a first NFC signal, wherein the first NFC signal is used to request to acquire a second NFC signal, and the data content carried by the second NFC signal is used to describe an account of the second user. .
  • the NFC antenna when detecting whether the NFC antenna is occupied, it is possible to determine whether there is a task or a process for invoking an NFC antenna for data transmission in the task list or the process list by acquiring a current task list or a process list. If there is a task or process in the task list or process list that calls the NFC antenna for data transmission, an interrupt instruction is generated to perform an interrupt operation on the task or process. Alternatively, it is determined whether the current NFC antenna is occupied by detecting whether the NFC antenna of the current terminal radiates a signal to the surroundings, or whether a current is generated at a feeding point of the NFC antenna.
  • the terminal where the social application that the first user logs in is used as an initiating device of the NFC signal, and the initiating device needs to generate a radio frequency magnetic field around the same, and send the data to the first NFC signal at a fixed transmission speed.
  • the target device receives the first NFC signal, and does not need to generate a magnetic field again, and may transmit the response to the second NFC signal to the initiating device by means of load modulation, where the first NFC signal is The carried data is used to request another terminal to send the account of the second user, and the data carried by the second NFC signal is used to describe the account of the second user.
  • the other terminal sends the account of the second user, which may be the login of the account of the second user on the social application client, and then when the other terminal and the terminal where the social application that the first user logs in are close to each other.
  • the account of the second user is sent to the terminal where the social application that the first user logs in by using the NFC signal.
  • the other terminal sends the account of the second user, and may log in to the account of the third user on the social application client, and then pass the NFC signal when the other terminal and the terminal where the social application that the first user logs in are close to each other. Sending the account of the second user to the terminal where the social application that the first user logs in, wherein the account of the third user and the account of the second user are mutually friendly accounts.
  • step S23 specifically includes:
  • S231 Generate a tag stamp list by using the social application.
  • the markup stamp is used to point to the target community, the first user is the creator or the management party of the target community, and the corresponding first user's account has the right to generate the markup stamp, when the first user is the target community
  • the tagged list is generated by the social application that the first user has logged in, and the tagged list includes N marked stamps, and the N marked stamps respectively point to different target communities.
  • the markup can be configured separately for different accounts, and the markups of the same target community can be the same between different accounts.
  • S232 Configure the marking stamp to the account of the second user based on the marked stamp list, and obtain an account number of the second group of the N users configured with the marking stamp.
  • step S232 the account of the second user of the marked stamp is configured to enable the server to add the account of the second user to the target community according to the markup stamp.
  • a plurality of tag stamps are sequentially generated according to the order in which the user selects the target community, and a tag stamp list is obtained, and each tag stamp in the tag stamp list points to The communities are different.
  • the tag is stamped to the account of the second user, and the tag of the second user may be sequentially configured with N times in accordance with the order of the tag stamps in the tag stamp list, thereby obtaining N sets of configurations.
  • the account of the second user who marked the stamp is required to obtain N sets of configurations.
  • step S25 includes:
  • S251 Send, by the social application, the N groups of the accounts of the second user configured with the marked stamp to the server.
  • the user selects multiple target communities in the social application, and generates a plurality of markups corresponding to the target community through the social application. Mark the list of stamps. And configuring, according to the tag stamp list, a token of the second user's account to obtain an account of the second user configured with the marked stamp, and sequentially sending, to the social application, the account of the second user configured with the marked stamp by the social application.
  • the N groups of the accounts of the second users configured with the marked stamps may be sequentially sent to the server in the order in which the user selects the target community.
  • the NFC is used to obtain the account of the second user, and then And configuring, by the social application, a token for pointing to the target community to the account of the second user, and sending the account of the second user configured with the token stamp to the server, so that the server can add the account of the second user to the target according to the token stamp
  • the steps to add members to the community in a social app are simplified.
  • FIG. 6 is a schematic block diagram of an apparatus for adding a member to a community according to an embodiment of the present application.
  • Each unit included in the device 30 of the present embodiment is configured to perform the steps in the embodiment corresponding to FIG. 2 .
  • An apparatus 30 for adding a member to a community in this embodiment includes: an obtaining unit 31, a determining unit 32, a first executing unit 33, a second executing unit 335, and a transmitting unit 34. specifically:
  • the obtaining unit 31 is configured to: if the preset operation for adding the second user to the target community is detected in the social application that is logged in by the first user, acquire the account of the second user by using the near field communication NFC.
  • the acquiring unit 31 is specifically configured to: if it is detected that the NFC antenna is occupied, generate an interrupt instruction, where the interrupt instruction is used to interrupt the current service of the NFC antenna;
  • the NFC antenna radiates a first NFC signal to the surroundings, the first NFC signal is used to request to acquire a second NFC signal, and the data content carried by the second NFC signal is used to describe an account of the second user;
  • the NFC antenna acquires the second NFC signal.
  • the determining unit 32 is configured to determine, by the social application, whether the second user is a member of the target community according to the account of the second user.
  • the first execution unit 33 is configured to configure, by the social application, a markup to an account of the second user, if the second user is not a member of the target community.
  • the target community is N communities, and N is an integer equal to or greater than 1.
  • the first execution unit 33 is specifically configured to generate a tag stamp list by using the social application.
  • the tag stamp list includes N mark stamps, and the target communities to which the N mark stamps respectively point are different; and the mark stamp is configured to the account of the second user based on the mark stamp list to obtain N The group of accounts of the second user configured with the tag stamp.
  • the second executing unit 335 is configured to display, if the second user is a member of the target community, prompt information, where the prompt information is used to describe that the second user is a member of the target community.
  • the sending unit 34 is configured to send, by the social application, an account of the second user configured with the marking stamp to the server, so that the server adds the account of the second user to the server according to the marking stamp In the target community.
  • the sending unit 34 is specifically configured to sequentially, through the social application, the account groups of the N users that are configured with the marked stamps. Sent to the server.
  • the NFC is used to obtain the account of the second user, and then And configuring, by the social application, a token for pointing to the target community to the account of the second user, and sending the account of the second user configured with the token stamp to the server, so that the server can add the account of the second user to the target according to the token stamp
  • the steps to add members to the community in a social app are simplified.
  • FIG. 7 is a schematic block diagram of a terminal according to another embodiment of the present application.
  • the electronic device 400 in this embodiment as shown may include one or more processors 401; one or more input devices 402, one or more output devices 403, and a memory 404.
  • the above processor 401, input device 402, output device 403, and memory 404 are connected by a bus 405.
  • the memory 402 is for storage, the computer readable instructions include instructions, and the processor 401 performs the following operations by invoking computer readable instructions stored by the memory 402:
  • the processor 401 is configured to: if the preset operation for adding the second user to the target community is detected in the social application that is logged in by the first user, acquire the account of the second user by using the near field communication NFC, The account of the second user is a unique identifier of the second user in the social application.
  • the processor 401 is configured to: configure, by the social application, a markup to an account of the second user, where the markup is used to point to the target community.
  • the processor 401 is configured to: send, by the social application, an account of the second user configured with the marking stamp to the server, so that the server adds the account of the second user to the server according to the marking stamp In the target community.
  • the processor 401 is further configured to: determine, by the social application, whether the second user is a member of the target community according to an account of the second user; if the second user is not a member of the target community, And configuring, by the social application, a markup stamp to the account of the second user.
  • the processor 401 is specifically configured to: if it is detected that the NFC antenna is occupied, generate an interrupt instruction, where the interrupt instruction is used to interrupt the current service of the NFC antenna; and invoke the NFC antenna to radiate the first NFC signal to the surroundings.
  • the first NFC signal is used to request to acquire a second NFC signal, and the data content carried by the second NFC signal is used to describe an account of the second user; and the NFC antenna is called to acquire the second NFC signal.
  • the target community is N communities, and N is an integer equal to or greater than 1.
  • the processor 401 is specifically configured to: generate a mark stamp list by using the social application; the mark stamp list includes N mark stamps, and the N mark marks The target communities pointed to by the stamps are all different; the mark stamp is configured to the account of the second user based on the marked stamp list, and the account number of the second user configured with the mark stamp is obtained.
  • the processor 401 is specifically configured to: sequentially send, by the social application, N groups of the accounts of the second user configured with the marked stamp to the server.
  • the so-called processor 501 may be a central processing unit (Central) Processing Unit (CPU), which can also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits (Application). Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 402 can include a touchpad, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, etc.
  • the output device 403 can include a display (LCD or the like), a speaker, and the like.
  • the memory 404 can include read only memory and random access memory and provides instructions and data to the processor 401.
  • a portion of memory 404 may also include non-volatile random access memory.
  • the memory 404 can also store information of the device type.
  • the processor 401, the input device 402, and the output device 403, which are described in the embodiments of the present application, may be used in the first embodiment and the second embodiment of the method for adding members to the community provided by the embodiments of the present application.
  • the implementation of the device described in the embodiment of the present application may also be implemented in the implementation manners, and details are not described herein again.
  • a computer readable storage medium is stored, the computer readable storage medium storing computer readable instructions that are implemented by a processor to:
  • the account of the second user is acquired by the NFC, and the account of the second user is a unique identifier of the second user in the social application;
  • the computer readable instructions are also executed by the processor to:
  • a tag is configured to the account of the second user by the social application.
  • the computer readable instructions are also executed by the processor to:
  • the interrupt instruction is used to interrupt the current service of the NFC antenna
  • the first NFC signal is used to request acquisition of a second NFC signal
  • the data content carried by the second NFC signal is used to describe an account of the second user
  • the NFC antenna is called to acquire the second NFC signal.
  • the target community is N communities, N is an integer equal to or greater than 1, and the computer readable instructions are also executed by the processor:
  • the mark stamp list includes N mark stamps, and the target communities to which the N mark stamps respectively point are different;
  • the N groups of the accounts of the second user configured with the mark stamp are sequentially sent to the server.
  • the NFC is used to obtain the account of the second user, and then And configuring, by the social application, a token for pointing to the target community to the account of the second user, and sending the account of the second user configured with the token stamp to the server, so that the server can add the account of the second user to the target according to the token stamp
  • the steps to add members to the community in a social app are simplified.
  • the computer readable storage medium may be an internal storage unit of the device described in any of the preceding embodiments, such as a hard disk or a memory of a computer.
  • the computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, and a smart memory card (Smart Media Card, SMC), Secure Digital (Secure Digital, SD) card, flash card (Flash Card) and so on.
  • the computer readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer readable storage medium is for storing the computer readable instructions and other programs and data required by the device.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM, Random Access).
  • ROM read-only memory
  • RAM Random Access

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本方案适用于社交应用技术领域,提供了一种向社区添加成员的方法、电子设备及计算机可读存储介质。其中,一种向社区添加成员的方法,通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。

Description

一种向社区添加成员的方法、装置、服务器及介质
本申请要求于2018年02月26日提交中国专利局、申请号为201810161077.5、发明名称为“向社区添加成员的方法、终端设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于社交应用技术领域,尤其涉及一种向社区添加成员的方法、装置、服务器及介质。
背景技术
随着终端的普及,社交应用已经成为人们工作和生活中必不可少的辅助工具。
虽然现有的社交应用能够通过扫描二维码等方式添加好友,但是在将好友或者非好友用户添加至社区(群)内时,则需要通过较为繁琐的操作才能实现。例如,将好友列表中的用户添加至已有的社区内,首先需要在社区内进入成员添加界面,然后在该界面中选择好友列表,从好友列表中找到用户想要添加至社区内的好友,然后进行社区成员的添加操作,可见现有的社交应用在向社区添加成员时,存在操作步骤较为繁琐的问题。
技术问题
现有的社交应用在向社区添加成员时,存在操作步骤较为繁琐的问题。
技术解决方案
本申请实施例的第一方面提供了一种向社区添加成员的方法,包括:
若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
本申请实施例的第二方面提供了一种向社区添加成员的装置,包括:
获取单元,用于若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
判断单元,用于通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
第一执行单元,用于若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳;
发送单元,用于通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
本申请实施例的第三方面提供了一种向社区添加成员的服务器,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:
若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
有益效果
使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种向社区添加成员的方法的实现流程示意图;
图2是本申请另一实施例提供的一种向社区添加成员的方法的实现流程示意图;
图3是本申请另一实施例提供的一种向社区添加成员的方法步骤S21的具体实现流程图;
图4是本申请另一实施例提供的一种向社区添加成员的方法步骤S23的具体实现流程图;
图5是本申请另一实施例提供的一种向社区添加成员的方法步骤S25的具体实现流程图;
图6是本申请实施例提供的一种向社区添加成员的装置的结构示意图;
图7是本申请实施例提供的电子设备的示意图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
参见图1,是本申请实施例提供一种向社区添加成员的方法的实现流程图,本实施例中向社区添加成员的方法的执行主体为终端,如手机、电脑等。如图1所示向社区添加成员的方法可包括:
S11:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。
在步骤S11中,第二用户的账号为所述第二用户在所述社交应用中的唯一标识。第一用户为目标社区中具有社区成员添加权限的用户,例如,创建方、管理员等。社交应用为终端上已安装有的社交应用,预设操作用于触发终端启用近场通信(Near Field Communication,NFC),以获取另一终端通过NFC发送的第二用户的第二用户的账号。
在实际应用中,用于添加第二用户至目标社区的预设操作,还可以是第一用户在登录社交应用后,在该社交应用中的目标社区的成员添加界面中进行添加第二用户的操作。
在本实施例中,当第一用户在已登录的社交应用中选择了目标社区进行成员添加的操作后,开启第一终端的NFC功能,同时通过第一终端的NFC功能组件向周围辐射第一NFC信号,该第一NFC信号用于请求获取第二用户的账号。通过开启第二终端的NFC功能,使得第一终端与第二终端靠近时,第二终端接收第一终端发送的第一NFC信号,并根据第一NFC信号将第二用户的账号作为第二NFC信号发送给第一终端。
需要说明的是,在通过NFC功能组件获取第二用户的账号的过程中,第一用户登录的社交应用所在的终端,与另一终端之间通过NFC信号进行数据交互,其中,第一用户登录的社交应用所在的终端作为NFC信号的发起设备,该发起设备需要在其周围生成射频磁场,并将数据以一固定的传输速度例如,106kbps、212kbps或424kbps发送至另一终端上,即目标设备上,目标设备接收到该数据后,无需再次生成磁场,可以通过负载调制的方式将响应数据传回发起设备,响应数据的回传速度与传输速度相同。
可以理解的是,不同社交应用启用终端NFC功能的方式或者权限设置可以不同,在实际应用中,当社交应用无法成功启用终端NFC功能时,提示用户重新设置该社交应用权限的操作路径,以便通过该社交应用具有启用终端NFC功能的权限。
S12:通过所述社交应用向所述第二用户的账号配置标记戳。
在步骤S12中,标记戳用于指向所述目标社区,并反映第二用户的账号为第一用户选择的添加至目标社区的待添加成员。
在本实施例中,第一用户的账号具有向目标社区添加成员的权限,在向目标社区添加成员的过程中,被添加账号即第二用户的账号,与第一用户的账号之间可以为好友关系,或者非好友关系。第一用户的账号可以同时具有管理多个社区的权限,即第一用户可以是多个社区的创建方或管理方,当目标社区为多个社区时,可以通过社交应用向第二用户的账号配置多个标记戳,不同的标记戳用于指向不同的目标社区,或者只向第二用户的账号配置一个标记戳,该一个标记戳可以同时指向多个不同的目标社区。
在实际应用中,为了避免标记戳被恶意复制和使用,在通过社交应用向第二用户的账号配置标记戳时,还通过社交应用向服务器发送相同的标记戳作为参考标记戳。服务器接收到配置了标记戳的第二用户的账号后,根据第二用户的账号上配置的标记戳查找是否存在相同的参考标记戳,若存在相同的标记戳,则确定该第二用户的账号为第一用户希望添加至目标社区的成员账号。
S13:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
在步骤S13中,服务器为用于通过社交应用与终端之间进行数据交互的服务器,服务器中存储有与社交应用相关的数据资源。配置了所述标记戳的第二用户的账号,用于令服务器将第二用户的账号添加至目标社区中。
在本实施例中,终端上的社交应用通过移动数据网络实现与服务器之间的数据交互后,将配置了标记戳的第二用户的账号发送给服务器,社交应用的当前登录用户为第一用户,由于第一用户具有向目标社区中添加成员的权限,因此,服务器根据配置了标记戳的第二用户的账号后,可以直接将第二用户的账号添加至社区中,无需再向第一用户或者目标社区中的其他管理方发送验证请求信息。
在本申请的所有实施例中,社交应用被安装在终端上,通过在终端上运行社交应用,且以第一用户的账号登录的社交应用,用户通过在社交应用中进行添加第二用户至目标社区的预设操作时,通过调用终端的NFC功能获取第二用户的账号、向第二用户的账号配置标记戳,以及将配置了标记戳的第二用户的账号发送给服务器,无需用户手动输入第二用户的账号,也不需要对第二用户申请加入目标社区的请求进行验证,就可以将第二用户的账号添加至目标社区中。
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。
参见图2,图2是本申请另一实施例提供一种向社区添加成员的方法的示意流程图。本实施例是在上一实施例的基础上,对通过社交应用向第二用户的账号配置标记戳的步骤之前的操作步骤做进一步地限定。如图2所示,本申请另一实施例提供的向社区添加成员的方法包括:
S21:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。
S22:通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员。
在步骤S22中,不同的用户在社交应用中的账号也不同,通过用户的账号在社交应用中可以查找到相应的用户并对该用户发送信息,例如,添加为好友的请求信息。
在实际应用中,为了减少社交应用与服务器之间不必要的数据交互,可以在社交应用的本地数据库中存储目标社区的成员列表,通过社交应用根据第二用户的账号在社区列表中进行查找,进而能够确定第二用户是否为目标社区的成员。
在本实施例中,步骤S22具体可以包括:根据第二用户的账号在目标社区的成员列表中进行查找;若在目标社区的成员列表中查找到与第二用户的账号匹配的成员,则确定第二用户为目标社区的成员;若在目标社区的成员列表中未查找到与第二用户的账号匹配的成员,则确定第二用户不是目标社区的成员。
可以理解的是,为了提高判断第二用户是否为目标社区的成员的准确率,在目标社区中的成员发生变化时,服务器将更新后的成员列表发送至社交应用,进而对本地数据库中存储的目标社区的成员列表进行更新,以提高判断第二用户是否为目标社区的成员的准确率。
S23:若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
在本实施例中,步骤S22之后还包括与步骤S23并列的步骤S235。
S235:若所述第二用户是所述目标社区的成员,则显示提示信息,所述提示信息用于描述所述第二用户已为所述目标社区的成员。
在步骤S235中,显示提示信息可以是通过显示提示窗口的方式,在社交应用的界面中显示提示窗口,在提示窗口中显示提示信息的内容,可以通过预先设置显示提示窗口的时长阈值,进而使提示窗口可以在显示时长达到时长阈值时被关闭。
在本实施例中,提示信息的内容描述了第二用户已为目标社区的成员。即提示信息中可以包括部分或全部目标社区的标识或者名称,其中,标识可以为部分或全部目标社区的图标,使提示信息可以更直观地体现第二用户已为目标社区的成员。
需要说明的是,步骤S23与步骤S235之间的执行顺序不分先后,当执行了步骤S23之后便执行步骤S24,不再执行步骤S235;当执行了步骤S235之后便不再执行步骤S23,值到重新获取第二用户的账号。
S24:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
作为本实施例一种可能实现的方式,在上述各个实施例的基础上,对通过NFC获取第二用户的账号的方式做进一步地限定。如图3所示,步骤S21具体包括:
S211:若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务。
S212:调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号。
S213:调用所述NFC天线获取所述第二NFC信号。
需要说明的是,检测NFC天线是否被占用,可以通过获取当前的任务列表或者进程列表,判断任务列表或者进程列表中是否存在调用NFC天线进行数据传输的任务或者进程。如果任务列表或者进程列表中存在调用NFC天线进行数据传输的任务或者进程,则生成中断指令,对该任务或进程进行中断操作。或者,通过检测当前终端的NFC天线是向周围辐射信号,或NFC天线的馈电点是否有电流产生,进而判断当前NFC天线是否被占用。
在本实施例中,第一用户登录的社交应用所在的终端,作为NFC信号的发起设备,该发起设备需要在其周围生成射频磁场,并将数据以一固定的传输速度将第一NFC信号发送至另一终端上,即目标设备上,目标设备接收到该第一NFC信号,无需再次生成磁场,可以通过负载调制的方式将响应第二NFC信号传回发起设备,其中,第一NFC信号所携带的数据用于请求另一终端发送第二用户的账号,第二NFC信号所携带的数据用于描述第二用户的账号。
在实际应用中,另一终端发送第二用户的账号,可以是在社交应用客户端上登录第二用户的账号,进而在另一终端与第一用户登录的社交应用所在的终端相互靠近时,通过NFC信号将第二用户的账号发送至第一用户登录的社交应用所在的终端。或者,另一终端发送第二用户的账号,可以是在社交应用客户端上登录第三用户的账号,进而在另一终端与第一用户登录的社交应用所在的终端相互靠近时,通过NFC信号将第二用户的账号发送至第一用户登录的社交应用所在的终端,其中,第三用户的账号与第二用户的账号之间互为好友关系的账号。
在获取到第二用户的账号之后,通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,当第二用户不是目标社区的成员时,则通过社交应用向第二用户的账号配置标记戳。
作为本实施例一种可能实现的方式,在上述各个实施例的基础上,对通过社交应用向第二用户的账号配置标记戳的方式做进一步地限定,其中,目标社区为N个社区,N为等于或大于1的整数。如图4所示,步骤S23具体包括:
S231:通过所述社交应用生成标记戳列表。
在步骤S231中,标记戳用于指向目标社区,第一用户为目标社区的创建方或者管理方,相应的第一用户的账号具有生成标记戳的权限,当第一用户为多个目标社区的创建方或管理方时,通过第一用户已登录的社交应用生成标记戳列表,该标记戳列表包括了N个标记戳,N个标记戳分别指向的目标社区均不相同。
可以理解的是,在向目标社区同时添加多个成员时,可以分别向不同的账号配置标记戳,不同的账号之间,指向同一个目标社区的标记戳可以相同。
S232:基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
在步骤S232中,配置了标记戳的第二用户的账号,用于令服务器根据标记戳将第二用户的账号添加至目标社区中。
在本实施例中,当第一用户选择的目标社区为多个时,按照用户选择目标社区的顺序依次生成多个标记戳,得到标记戳列表,标记戳列表中的每个标记戳所指向的社区均不相同。
需要说明的是,基于标记戳列表向第二用户的账号配置标记戳,可以按照标记戳列表中标记戳的排列顺序依次向第二用户的账号分别配置N次标记戳,进而得到N组配置了标记戳的第二用户的账号。
作为本实施例一种可能实现的方式,在上述实施例的基础上,对将配置了标记戳的第二用户的账号发送给服务器的方式做进一步地限定,其中,目标社区为N个社区,N大于1。如图5所示,步骤S25包括:
S251:通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
在本实施例中,当需要将第二用户的账号添加至多个目标社区时,用户通过在社交应用中选择多个目标社区,通过社交应用生成多个与目标社区一一对应的标记戳,组成标记戳列表。基于该标记戳列表向第二用户的账号配置标记戳,得到N组配置了标记戳的第二用户的账号,在通过社交应用将N组配置了标记戳的第二用户的账号,依次发送给服务器的过程中,可以按照用户选择目标社区的顺序依次将N组配置了标记戳的第二用户的账号依次发送给服务器。
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。
参见图6,图6是本申请实施例提供的一种向社区添加成员的装置的示意性框图。本实施例的一种向社区添加成员的装置30包括的各单元用于执行图2对应的实施例中的各步骤,具体请参阅图2及图2对应的实施例中的相关描述,此处不赘述。本实施例的一种向社区添加成员的装置30包括:获取单元31、判断单元32、第一执行单元33、第二执行单元335以及发送单元34。具体地:
获取单元31,用于若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。
进一步地,作为本实施例一种可能实现的方式,获取单元31具体用于,若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;调用所述NFC天线获取所述第二NFC信号。
判断单元32,用于通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员。
第一执行单元33,用于若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
进一步地,作为本实施例一种可能实现的方式,目标社区为N个社区,N为等于或大于1的整数,第一执行单元33具体用于,通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
第二执行单元335,用于若所述第二用户是所述目标社区的成员,则显示提示信息,所述提示信息用于描述所述第二用户已为所述目标社区的成员。
发送单元34,用于通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
进一步地,作为本实施例一种可能实现的方式,若N大于1,发送单元34具体用于,通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。
参见图7,是本申请另一实施例提供的一种终端示意框图。如图所示的本实施例中的电子设备400可以包括:一个或多个处理器401;一个或多个输入设备402,一个或多个输出设备403和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器402用于存储,计算机可读指令包括指令,处理器401 通过调用存储器402存储的计算机可读指令执行如下操作:
处理器401用于:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识。
处理器401用于:通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区。
处理器401用于:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
处理器401还用于:通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
进一步地,处理器401具体用于:若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;调用所述NFC天线获取所述第二NFC信号。
目标社区为N个社区,N为等于或大于1的整数,处理器401具体用于:通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
若N大于1,处理器401具体用于:通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
应当理解,在本申请实施例中,所称处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备402可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备403可以包括显示器(LCD等)、扬声器等。
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401 提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。
具体实现中,本申请实施例中所描述的处理器401、输入设备402、输出设备403可执行本申请实施例提供的一种向社区添加成员的方法的第一实施例和第二实施例中所描述的实现方式,也可执行本申请实施例所描述的设备的实现方式,在此不再赘述。
在本申请的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现:
若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
所述计算机可读指令被处理器执行时还实现:
通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
所述计算机可读指令被处理器执行时还实现:
若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;
调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;
调用所述NFC天线获取所述第二NFC信号。
所述目标社区为N个社区,N为等于或大于1的整数,所述计算机可读指令被处理器执行时还实现:
通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;
基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
若N大于1,所述计算机可读指令被处理器执行时还实现:
通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中向社区添加成员的步骤。
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如计算机的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机可读指令以及所述设备所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种向社区添加成员的方法,其特征在于,包括:
    若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
    通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
    通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
  2. 如权利要求1所述的方法,其特征在于,所述通过NFC获取所述第二用户的账号,包括:
    若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;
    调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;
    调用所述NFC天线获取所述第二NFC信号。
  3. 如权利要求1所述的方法,其特征在于,所述目标社区为N个社区,N为等于或大于1的整数,所述通过所述社交应用向所述第二用户的账号配置标记戳,包括:
    通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;
    基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
  4. 如权利要求3所述的方法,其特征在于,若N大于1,则所述通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,包括:
    通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
  5. 如权利要求1至4任一项所述的方法,其特征在于,所述通过所述社交应用向所述第二用户的账号配置标记戳,之前还包括:
    通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
    若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
  6. 一种向社区添加成员的装置,其特征在于,包括:
    获取单元,用于若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
    判断单元,用于通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
    第一执行单元,用于若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳;
    发送单元,用于通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
  7. 如权利要求6所述的向社区添加成员的装置,其特征在于,所述获取单元具体用于:
    若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;调用所述NFC天线获取所述第二NFC信号。
  8. 如权利要求6所述的向社区添加成员的装置,其特征在于,所述第一执行单元具体用于:
    通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
  9. 如权利要求6所述的向社区添加成员的装置,其特征在于,所述发送单元具体用于:
    通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
  10. 如权利要求6所述的向社区添加成员的装置,其特征在于,还用于:
    通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
    若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
  11. 一种向社区添加成员的服务器,其特征在于,所述向社区添加成员的处理服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
    若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
    通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
    通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
  12. 根据权利要求11所述的向社区添加成员的服务器,其特征在于,所述通过NFC获取所述第二用户的账号,包括:
    若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;
    调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;
    调用所述NFC天线获取所述第二NFC信号。
  13. 根据权利要求11所述的向社区添加成员的服务器,其特征在于,所述目标社区为N个社区,N为等于或大于1的整数,所述通过所述社交应用向所述第二用户的账号配置标记戳,包括:
    通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;
    基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
  14. 根据权利要求13所述的向社区添加成员的服务器,其特征在于,若N大于1,则所述通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,包括:
    通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
  15. 根据权利要求11所述的向社区添加成员的服务器,其特征在于,所述通过所述社交应用向所述第二用户的账号配置标记戳,之前还包括:
    通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
    若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:
    若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;
    通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;
    通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述通过NFC获取所述第二用户的账号,包括:
    若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;
    调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;
    调用所述NFC天线获取所述第二NFC信号。
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述目标社区为N个社区,N为等于或大于1的整数,所述通过所述社交应用向所述第二用户的账号配置标记戳,包括:
    通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;
    基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,若N大于1,则所述通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,包括:
    通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述通过所述社交应用向所述第二用户的账号配置标记戳,之前还包括:
    通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;
    若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。
PCT/CN2018/082615 2018-02-26 2018-04-11 一种向社区添加成员的方法、装置、服务器及介质 WO2019161600A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810161077.5 2018-02-26
CN201810161077.5A CN108156071B (zh) 2018-02-26 2018-02-26 向社区添加成员的方法、终端设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2019161600A1 true WO2019161600A1 (zh) 2019-08-29

Family

ID=62455989

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082615 WO2019161600A1 (zh) 2018-02-26 2018-04-11 一种向社区添加成员的方法、装置、服务器及介质

Country Status (2)

Country Link
CN (1) CN108156071B (zh)
WO (1) WO2019161600A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919566A (zh) * 2019-01-17 2019-06-21 平安城市建设科技(深圳)有限公司 社区成员管理方法、设备、存储介质及装置
CN109949084A (zh) * 2019-03-11 2019-06-28 秒针信息技术有限公司 社区团购方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873342A (zh) * 2012-12-11 2014-06-18 腾讯科技(深圳)有限公司 一种加入社交群组的方法、终端以及系统
WO2015036817A1 (en) * 2013-09-15 2015-03-19 Yogesh Chunilal Rathod Structured updated status, requests, user data & programming based presenting & accessing of connections
CN104468335A (zh) * 2014-12-11 2015-03-25 北京奇虎科技有限公司 基于相对位置信息的通讯方法和装置
CN106453050A (zh) * 2016-10-10 2017-02-22 腾讯科技(深圳)有限公司 基于社交应用的信息处理方法、系统以及相关设备
CN107294742A (zh) * 2017-07-01 2017-10-24 珠海格力电器股份有限公司 创建会议群组的方法、装置、参会终端和服务器

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611637A (zh) * 2011-01-20 2012-07-25 腾讯科技(深圳)有限公司 一种群组的实现方法及系统
CN104202173A (zh) * 2014-08-11 2014-12-10 鸿富锦精密工业(深圳)有限公司 终端设备及群组加入控制方法,与服务器及群组邀请方法
US10069777B2 (en) * 2015-04-30 2018-09-04 International Business Machines Corporation Determining a visibility of an online conversation for a new participant
BR102015014422B1 (pt) * 2015-06-17 2024-01-23 Samsung Eletrônica Da Amazônia Ltda Método para comunicação entre dispositivos eletrônicos através da interação de usuários com objetos
CN107733951A (zh) * 2016-08-11 2018-02-23 刘广松 一种基于超声波的社交群建立方法和系统
CN107547103A (zh) * 2016-12-23 2018-01-05 西安闻泰电子科技有限公司 Nfc与无线充电共用天线的系统及方法
CN107317688A (zh) * 2017-07-25 2017-11-03 薛江炜 基于分类标签创建通信群组的装置及方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873342A (zh) * 2012-12-11 2014-06-18 腾讯科技(深圳)有限公司 一种加入社交群组的方法、终端以及系统
WO2015036817A1 (en) * 2013-09-15 2015-03-19 Yogesh Chunilal Rathod Structured updated status, requests, user data & programming based presenting & accessing of connections
CN104468335A (zh) * 2014-12-11 2015-03-25 北京奇虎科技有限公司 基于相对位置信息的通讯方法和装置
CN106453050A (zh) * 2016-10-10 2017-02-22 腾讯科技(深圳)有限公司 基于社交应用的信息处理方法、系统以及相关设备
CN107294742A (zh) * 2017-07-01 2017-10-24 珠海格力电器股份有限公司 创建会议群组的方法、装置、参会终端和服务器

Also Published As

Publication number Publication date
CN108156071A (zh) 2018-06-12
CN108156071B (zh) 2021-01-08

Similar Documents

Publication Publication Date Title
US11854003B2 (en) Signature verification method, apparatus, and system
WO2018177124A1 (zh) 业务处理方法、装置、数据共享系统及存储介质
CN110612528B (zh) 安全地验证自动程序用户的方法、系统及计算机存储介质
US8844013B2 (en) Providing third party authentication in an on-demand service environment
WO2017129083A1 (zh) 消息处理方法、装置、系统和计算机存储介质
US20180247654A1 (en) Device identifier dependent operation processing of packet based data communication
US9477534B2 (en) Inter-extension messaging
KR101270323B1 (ko) 단일 서비스 사인 온을 제공하는 방법, 장치 및 컴퓨터 판독가능 저장 매체
US8544072B1 (en) Single sign-on service
CN106341234B (zh) 一种授权方法及装置
WO2021047193A1 (zh) 一种语音处理方法、装置、设备和计算机存储介质
US20140207679A1 (en) Online money transfer service in connection with instant messenger
US11658963B2 (en) Cooperative communication validation
CN113347242B (zh) 跨设备资源访问方法、装置、存储介质及电子设备
CN104735066A (zh) 一种面向网页应用的单点登录方法、装置和系统
WO2018018697A1 (zh) 伪基站垃圾短信鉴别方法及系统
US20150264095A1 (en) Web service push method and web service push server and web service providing server performing same
CN111404695B (zh) 令牌请求验证方法和装置
WO2021047197A1 (zh) 一种语音处理方法、装置、设备和计算机存储介质
WO2019161600A1 (zh) 一种向社区添加成员的方法、装置、服务器及介质
WO2022088710A1 (zh) 一种镜像管理方法及装置
US11570268B2 (en) Proxy system for bot connectivity to communication channels
WO2018196613A1 (zh) 一种基于功能开关的应用程序控制方法、装置、服务器及介质
CN103559430B (zh) 基于安卓系统的应用账号管理方法和装置
US20180218419A1 (en) Method and apparatus for providing digital product using user account synchronization

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18907056

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01/12/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18907056

Country of ref document: EP

Kind code of ref document: A1