WO2018196613A1 - Application control method and device using function switches, server, and medium - Google Patents

Application control method and device using function switches, server, and medium Download PDF

Info

Publication number
WO2018196613A1
WO2018196613A1 PCT/CN2018/082617 CN2018082617W WO2018196613A1 WO 2018196613 A1 WO2018196613 A1 WO 2018196613A1 CN 2018082617 W CN2018082617 W CN 2018082617W WO 2018196613 A1 WO2018196613 A1 WO 2018196613A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
function switch
user
switch
menus
Prior art date
Application number
PCT/CN2018/082617
Other languages
French (fr)
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 WO2018196613A1 publication Critical patent/WO2018196613A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Definitions

  • the present application belongs to the field of application processing technologies, and in particular, to a function switch-based application control method, apparatus, server, and medium.
  • An application is a computer readable instruction that performs one or more specific tasks. It runs in user mode and can interact with the user.
  • a function switch is a switch that turns the function provided by the application on or off.
  • the inventor found in the process of implementing the present application that at least the following problems exist in the prior art: usually, the function switch can only perform switching control of the application function for the script configured or registered by the application, and has a single function.
  • the function switch in the application can only be configured for the application or registered script, and the function is single.
  • a first aspect of the embodiment of the present application provides a function switch-based application control method, including:
  • the menus of the levels, or the respective function points When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  • a second aspect of the embodiments of the present application provides a function switch-based application control apparatus, including:
  • An implant module is used to implant corresponding function switches for the application configuration layer, various levels of menus, and various function points.
  • a detecting module configured to detect operation information of the configuration layer, the menus of the levels, and the respective function points.
  • control module configured to: when the detecting module detects abnormality information of operation information of the configuration layer, the menus of the levels, or the function points, control the configuration layer by using a corresponding function switch, The level menu or the operating status of the various function points.
  • a third aspect of the embodiments of the present application provides a function switch based application control server, including a memory, a processor, and the computer storing computer readable instructions executable on the processor, the processing The following steps are implemented when the computer readable instructions are executed:
  • the menus of the levels, or the respective function points When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  • 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 menus of the levels, or the respective function points When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  • FIG. 1 is a flowchart of a function switch based application control method provided by an embodiment of the present application
  • step S103 in FIG. 1 is a flowchart of an implementation of step S103 in FIG. 1;
  • FIG. 3 is a schematic diagram of an operating environment of an application control program based on a function switch according to an embodiment of the present application
  • FIG. 4 is a functional block diagram of a function switch based application control program provided by an embodiment of the present application.
  • an embodiment of the present application provides a flow chart of an application control method based on a function switch.
  • an execution body of an application control method based on a function switch is a terminal, such as a mobile phone or a computer.
  • the function switch based application control method 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
  • functional switch-based application control steps in social applications are simplified.
  • FIG. 2 is a schematic flowchart of a method for controlling an application based on a function switch 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 function switch based application control method provided by 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
  • functional switch-based application control steps in social applications are simplified.
  • FIG. 6 is a schematic block diagram of a function switch based application program control apparatus according to an embodiment of the present application.
  • Each unit of the function switch-based application control device 30 of the present embodiment is configured to perform the steps in the embodiment corresponding to FIG. 2 .
  • the function switch-based application control device 30 of the present embodiment includes an acquisition unit 31, a determination unit 32, a first execution unit 33, a second execution unit 335, and a transmission 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
  • functional switch-based application control steps in social applications 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 described in the embodiments of the present application may perform the first embodiment and the second implementation of a function switch-based application control method provided by the embodiments of the present application.
  • the implementations of the devices described in the embodiments of the present application may also be implemented in the implementation manners in the examples, 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
  • functional switch-based application control steps in social applications 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An application control method and device using function switches, a server, and a medium. The application control method using function switches comprises: implanting a corresponding function switch for a configuration layer, each menu layer, and any function point of an application (S101); detecting operation information of the configuration layer, each menu layer, and any function point (S102); and, if it is detected that the operation information of the configuration layer, each menu layer, or any function point is abnormal, controlling an operation status of the configuration layer, each menu layer, or any function point by using a corresponding function switch (S103). The method of the invention can control a function of an application by using a corresponding function switch when the function of the application is normal, so as to prevent operation of the entire application from being severely affected, improving operational efficiency of the application and the overall user experience.

Description

一种基于功能开关的应用程序控制方法、装置、服务器及介质Application control method, device, server and medium based on function switch
本申请要求于2017年04月27日提交中国专利局、申请号为201710285727.2、发明名称为“基于功能开关的应用程序控制方法和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200910285727.2, entitled "Application Switch Control Method Based on Function Switch and Server", filed on April 27, 2017, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请属于应用程序处理技术领域,尤其涉及一种基于功能开关的应用程序控制方法、装置、服务器及介质。The present application belongs to the field of application processing technologies, and in particular, to a function switch-based application control method, apparatus, server, and medium.
背景技术Background technique
目前,智能手机、平板电脑等智能终端设备极大方便了人们的日常生活,而各种各样的应用程序也相继出现。应用程序是指为完成某项或多项特定工作的计算机可读指令,它运行在用户模式,可以和用户进行交互。At present, smart terminal devices such as smart phones and tablet computers greatly facilitate people's daily lives, and various applications have appeared one after another. An application is a computer readable instruction that performs one or more specific tasks. It runs in user mode and can interact with the user.
功能开关是指用来开启或关闭应用程序提供的功能的开关。发明人在实现本申请的过程中发现现有技术至少存在以下不足:通常功能开关只能针对应用程序配置或注册的脚本进行应用程序功能的开关控制,功能单一。A function switch is a switch that turns the function provided by the application on or off. The inventor found in the process of implementing the present application that at least the following problems exist in the prior art: usually, the function switch can only perform switching control of the application function for the script configured or registered by the application, and has a single function.
技术问题technical problem
现有技术中应用程序中的功能开关只能针对应用程序配置或注册的脚本,功能单一的问题。In the prior art, the function switch in the application can only be configured for the application or registered script, and the function is single.
技术解决方案Technical solution
本申请实施例的第一方面提供了一种基于功能开关的应用程序控制方法,包括:A first aspect of the embodiment of the present application provides a function switch-based application control method, including:
为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
本申请实施例的第二方面提供了一种基于功能开关的应用程序控制装置,包括:A second aspect of the embodiments of the present application provides a function switch-based application control apparatus, including:
植入模块,用于为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关。An implant module is used to implant corresponding function switches for the application configuration layer, various levels of menus, and various function points.
检测模块,用于检测所述配置层、所述各级菜单和所述各个功能点的运行信息。And a detecting module, configured to detect operation information of the configuration layer, the menus of the levels, and the respective function points.
控制模块,用于在所述检测模块检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。a control module, configured to: when the detecting module detects abnormality information of operation information of the configuration layer, the menus of the levels, or the function points, control the configuration layer by using a corresponding function switch, The level menu or the operating status of the various function points.
本申请实施例的第三方面提供了一种基于功能开关的应用程序控制服务器,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the embodiments of the present application provides a function switch based application control server, including a memory, a processor, and the computer storing computer readable instructions executable on the processor, the processing The following steps are implemented when the computer readable instructions are executed:
为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤: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:
为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
有益效果Beneficial effect
能够在应用程序某个功能出现异常时,通过相应的功能开关进行控制,以防止对整个应用程序的运行造成较为严重的影响,提高应用程序的运行效率,提高用户体验。It can control when a certain function of the application is abnormal, and control through the corresponding function switch to prevent the serious impact on the operation of the entire application, improve the running efficiency of the application, and improve the user experience.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本申请实施例提供的基于功能开关的应用程序控制方法的流程图;1 is a flowchart of a function switch based application control method provided by an embodiment of the present application;
图2是图1中步骤S103的实现流程图;2 is a flowchart of an implementation of step S103 in FIG. 1;
图3是本申请实施例提供的基于功能开关的应用程序控制程序的运行环境示意图;3 is a schematic diagram of an operating environment of an application control program based on a function switch according to an embodiment of the present application;
图4是本申请实施例提供的基于功能开关的应用程序控制程序的功能模块图。4 is a functional block diagram of a function switch based application control program provided by an embodiment of the present application.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions described in the present application, the following description will be made by way of specific embodiments.
参见图1,是本申请实施例提供一种基于功能开关的应用程序控制方法的实现流程图,本实施例中基于功能开关的应用程序控制方法的执行主体为终端,如手机、电脑等。如图1所示基于功能开关的应用程序控制方法可包括:Referring to FIG. 1 , an embodiment of the present application provides a flow chart of an application control method based on a function switch. In this embodiment, an execution body of an application control method based on a function switch is a terminal, such as a mobile phone or a computer. The function switch based application control method shown in FIG. 1 may include:
S11:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。S11: 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, the account of the second user is acquired by the near field communication NFC.
在步骤S11中,第二用户的账号为所述第二用户在所述社交应用中的唯一标识。第一用户为目标社区中具有社区成员添加权限的用户,例如,创建方、管理员等。社交应用为终端上已安装有的社交应用,预设操作用于触发终端启用近场通信(Near Field Communication,NFC),以获取另一终端通过NFC发送的第二用户的第二用户的账号。In step S11, 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.
在实际应用中,用于添加第二用户至目标社区的预设操作,还可以是第一用户在登录社交应用后,在该社交应用中的目标社区的成员添加界面中进行添加第二用户的操作。In a practical application, 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.
在本实施例中,当第一用户在已登录的社交应用中选择了目标社区进行成员添加的操作后,开启第一终端的NFC功能,同时通过第一终端的NFC功能组件向周围辐射第一NFC信号,该第一NFC信号用于请求获取第二用户的账号。通过开启第二终端的NFC功能,使得第一终端与第二终端靠近时,第二终端接收第一终端发送的第一NFC信号,并根据第一NFC信号将第二用户的账号作为第二NFC信号发送给第一终端。In this embodiment, after the first user selects the target community for the member addition operation in the logged-in social application, 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. When 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.
需要说明的是,在通过NFC功能组件获取第二用户的账号的过程中,第一用户登录的社交应用所在的终端,与另一终端之间通过NFC信号进行数据交互,其中,第一用户登录的社交应用所在的终端作为NFC信号的发起设备,该发起设备需要在其周围生成射频磁场,并将数据以一固定的传输速度例如,106kbps、212kbps或424kbps发送至另一终端上,即目标设备上,目标设备接收到该数据后,无需再次生成磁场,可以通过负载调制的方式将响应数据传回发起设备,响应数据的回传速度与传输速度相同。It should be noted that, in the process of acquiring the account of the second user by using the NFC function component, 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.
可以理解的是,不同社交应用启用终端NFC功能的方式或者权限设置可以不同,在实际应用中,当社交应用无法成功启用终端NFC功能时,提示用户重新设置该社交应用权限的操作路径,以便通过该社交应用具有启用终端NFC功能的权限。It can be understood that the manner in which the NFC function is enabled in different social applications or the permission setting may be different. In an actual application, when 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.
S12:通过所述社交应用向所述第二用户的账号配置标记戳。S12: Configure a markup by using the social application to the account of the second user.
在步骤S12中,标记戳用于指向所述目标社区,并反映第二用户的账号为第一用户选择的添加至目标社区的待添加成员。In 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.
在本实施例中,第一用户的账号具有向目标社区添加成员的权限,在向目标社区添加成员的过程中,被添加账号即第二用户的账号,与第一用户的账号之间可以为好友关系,或者非好友关系。第一用户的账号可以同时具有管理多个社区的权限,即第一用户可以是多个社区的创建方或管理方,当目标社区为多个社区时,可以通过社交应用向第二用户的账号配置多个标记戳,不同的标记戳用于指向不同的目标社区,或者只向第二用户的账号配置一个标记戳,该一个标记戳可以同时指向多个不同的目标社区。In this embodiment, the account of the first user has the right to add a member to the target community. In the process of adding the 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.
在实际应用中,为了避免标记戳被恶意复制和使用,在通过社交应用向第二用户的账号配置标记戳时,还通过社交应用向服务器发送相同的标记戳作为参考标记戳。服务器接收到配置了标记戳的第二用户的账号后,根据第二用户的账号上配置的标记戳查找是否存在相同的参考标记戳,若存在相同的标记戳,则确定该第二用户的账号为第一用户希望添加至目标社区的成员账号。In practical applications, in order to prevent the markup being maliciously copied and used, when the markup is configured to the account of the second user through the social application, the same markup is also sent to the server as a reference mark by the social application. 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:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。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. .
在步骤S13中,服务器为用于通过社交应用与终端之间进行数据交互的服务器,服务器中存储有与社交应用相关的数据资源。配置了所述标记戳的第二用户的账号,用于令服务器将第二用户的账号添加至目标社区中。In step S13, 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.
在本实施例中,终端上的社交应用通过移动数据网络实现与服务器之间的数据交互后,将配置了标记戳的第二用户的账号发送给服务器,社交应用的当前登录用户为第一用户,由于第一用户具有向目标社区中添加成员的权限,因此,服务器根据配置了标记戳的第二用户的账号后,可以直接将第二用户的账号添加至社区中,无需再向第一用户或者目标社区中的其他管理方发送验证请求信息。In this embodiment, after the social application on the terminal implements data interaction with the server through the mobile data network, 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.
在本申请的所有实施例中,社交应用被安装在终端上,通过在终端上运行社交应用,且以第一用户的账号登录的社交应用,用户通过在社交应用中进行添加第二用户至目标社区的预设操作时,通过调用终端的NFC功能获取第二用户的账号、向第二用户的账号配置标记戳,以及将配置了标记戳的第二用户的账号发送给服务器,无需用户手动输入第二用户的账号,也不需要对第二用户申请加入目标社区的请求进行验证,就可以将第二用户的账号添加至目标社区中。In all embodiments of the present application, 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. When the preset operation of the community is performed, 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.
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中基于功能开关的应用程序控制步骤。It can be seen that, in the social application that the first user logs in, when the preset operation for adding the second user to the target community is detected, 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 In the community, functional switch-based application control steps in social applications are simplified.
参见图2,图2是本申请另一实施例提供一种基于功能开关的应用程序控制方法的示意流程图。本实施例是在上一实施例的基础上,对通过社交应用向第二用户的账号配置标记戳的步骤之前的操作步骤做进一步地限定。如图2所示,本申请另一实施例提供的基于功能开关的应用程序控制方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for controlling an application based on a function switch according to another embodiment of the present application. In this embodiment, based on the previous embodiment, the steps before the step of configuring the marking of the account of the second user by the social application are further defined. As shown in FIG. 2, a function switch based application control method provided by another embodiment of the present application includes:
S21:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。S21: 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, the account of the second user is acquired by the near field communication NFC.
S22:通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员。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.
在步骤S22中,不同的用户在社交应用中的账号也不同,通过用户的账号在社交应用中可以查找到相应的用户并对该用户发送信息,例如,添加为好友的请求信息。In 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.
在实际应用中,为了减少社交应用与服务器之间不必要的数据交互,可以在社交应用的本地数据库中存储目标社区的成员列表,通过社交应用根据第二用户的账号在社区列表中进行查找,进而能够确定第二用户是否为目标社区的成员。In an actual application, in order to reduce unnecessary data interaction between the social application and the server, 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.
在本实施例中,步骤S22具体可以包括:根据第二用户的账号在目标社区的成员列表中进行查找;若在目标社区的成员列表中查找到与第二用户的账号匹配的成员,则确定第二用户为目标社区的成员;若在目标社区的成员列表中未查找到与第二用户的账号匹配的成员,则确定第二用户不是目标社区的成员。In this embodiment, 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.
可以理解的是,为了提高判断第二用户是否为目标社区的成员的准确率,在目标社区中的成员发生变化时,服务器将更新后的成员列表发送至社交应用,进而对本地数据库中存储的目标社区的成员列表进行更新,以提高判断第二用户是否为目标社区的成员的准确率。It can be understood that, in order to improve the accuracy of determining whether the second user is a member of the target community, when the member in the target community changes, 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.
S23:若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。S23: If the second user is not a member of the target community, configure a markup to the account of the second user by using the social application.
在本实施例中,步骤S22之后还包括与步骤S23并列的步骤S235。In this embodiment, step S22 further includes step S235 along with step S23.
S235:若所述第二用户是所述目标社区的成员,则显示提示信息,所述提示信息用于描述所述第二用户已为所述目标社区的成员。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.
在步骤S235中,显示提示信息可以是通过显示提示窗口的方式,在社交应用的界面中显示提示窗口,在提示窗口中显示提示信息的内容,可以通过预先设置显示提示窗口的时长阈值,进而使提示窗口可以在显示时长达到时长阈值时被关闭。In step S235, 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.
在本实施例中,提示信息的内容描述了第二用户已为目标社区的成员。即提示信息中可以包括部分或全部目标社区的标识或者名称,其中,标识可以为部分或全部目标社区的图标,使提示信息可以更直观地体现第二用户已为目标社区的成员。In this embodiment, 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.
需要说明的是,步骤S23与步骤S235之间的执行顺序不分先后,当执行了步骤S23之后便执行步骤S24,不再执行步骤S235;当执行了步骤S235之后便不再执行步骤S23,值到重新获取第二用户的账号。It should be noted that 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:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。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. .
作为本实施例一种可能实现的方式,在上述各个实施例的基础上,对通过NFC获取第二用户的账号的方式做进一步地限定。如图3所示,步骤S21具体包括:As a possible implementation manner of this embodiment, on the basis of the foregoing various embodiments, the manner of acquiring the account of the second user by using NFC is further defined. As shown in FIG. 3, step S21 specifically includes:
S211:若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务。S211: If it is detected that the NFC antenna is occupied, generating an interrupt instruction, where the interrupt instruction is used to interrupt the current service of the NFC antenna.
S212:调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号。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. .
S213:调用所述NFC天线获取所述第二NFC信号。S213: Call the NFC antenna to acquire the second NFC signal.
需要说明的是,检测NFC天线是否被占用,可以通过获取当前的任务列表或者进程列表,判断任务列表或者进程列表中是否存在调用NFC天线进行数据传输的任务或者进程。如果任务列表或者进程列表中存在调用NFC天线进行数据传输的任务或者进程,则生成中断指令,对该任务或进程进行中断操作。或者,通过检测当前终端的NFC天线是向周围辐射信号,或NFC天线的馈电点是否有电流产生,进而判断当前NFC天线是否被占用。It should be noted that, 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.
在本实施例中,第一用户登录的社交应用所在的终端,作为NFC信号的发起设备,该发起设备需要在其周围生成射频磁场,并将数据以一固定的传输速度将第一NFC信号发送至另一终端上,即目标设备上,目标设备接收到该第一NFC信号,无需再次生成磁场,可以通过负载调制的方式将响应第二NFC信号传回发起设备,其中,第一NFC信号所携带的数据用于请求另一终端发送第二用户的账号,第二NFC信号所携带的数据用于描述第二用户的账号。In this embodiment, 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. On the other terminal, that is, the target device, 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.
在实际应用中,另一终端发送第二用户的账号,可以是在社交应用客户端上登录第二用户的账号,进而在另一终端与第一用户登录的社交应用所在的终端相互靠近时,通过NFC信号将第二用户的账号发送至第一用户登录的社交应用所在的终端。或者,另一终端发送第二用户的账号,可以是在社交应用客户端上登录第三用户的账号,进而在另一终端与第一用户登录的社交应用所在的终端相互靠近时,通过NFC信号将第二用户的账号发送至第一用户登录的社交应用所在的终端,其中,第三用户的账号与第二用户的账号之间互为好友关系的账号。In an actual application, 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. Alternatively, 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.
在获取到第二用户的账号之后,通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,当第二用户不是目标社区的成员时,则通过社交应用向第二用户的账号配置标记戳。After obtaining the account of the second user, determining, by the social application, whether the second user is a member of the target community according to the account of the second user, and when the second user is not a member of the target community, using the social application to the second user Account configuration tag stamp.
作为本实施例一种可能实现的方式,在上述各个实施例的基础上,对通过社交应用向第二用户的账号配置标记戳的方式做进一步地限定,其中,目标社区为N个社区,N为等于或大于1的整数。如图4所示,步骤S23具体包括:As a possible implementation manner of this embodiment, on the basis of the foregoing various embodiments, the manner of configuring a markup stamp to the account of the second user by the social application is further defined, where the target community is N communities, N Is an integer equal to or greater than 1. As shown in FIG. 4, step S23 specifically includes:
S231:通过所述社交应用生成标记戳列表。S231: Generate a tag stamp list by using the social application.
在步骤S231中,标记戳用于指向目标社区,第一用户为目标社区的创建方或者管理方,相应的第一用户的账号具有生成标记戳的权限,当第一用户为多个目标社区的创建方或管理方时,通过第一用户已登录的社交应用生成标记戳列表,该标记戳列表包括了N个标记戳,N个标记戳分别指向的目标社区均不相同。In step S231, 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 When the creator or the admin is created, 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.
可以理解的是,在向目标社区同时添加多个成员时,可以分别向不同的账号配置标记戳,不同的账号之间,指向同一个目标社区的标记戳可以相同。It can be understood that when multiple members are added to the target community at the same time, 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:基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。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.
在步骤S232中,配置了标记戳的第二用户的账号,用于令服务器根据标记戳将第二用户的账号添加至目标社区中。In 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.
在本实施例中,当第一用户选择的目标社区为多个时,按照用户选择目标社区的顺序依次生成多个标记戳,得到标记戳列表,标记戳列表中的每个标记戳所指向的社区均不相同。In this embodiment, when the target community selected by the first user is multiple, 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.
需要说明的是,基于标记戳列表向第二用户的账号配置标记戳,可以按照标记戳列表中标记戳的排列顺序依次向第二用户的账号分别配置N次标记戳,进而得到N组配置了标记戳的第二用户的账号。It should be noted that, based on the tag stamp list, 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.
作为本实施例一种可能实现的方式,在上述实施例的基础上,对将配置了标记戳的第二用户的账号发送给服务器的方式做进一步地限定,其中,目标社区为N个社区,N大于1。如图5所示,步骤S25包括:As a possible implementation manner of this embodiment, on the basis of the foregoing embodiment, the manner of sending the account of the second user configured with the tag stamp to the server is further defined, where the target community is N communities. N is greater than 1. As shown in FIG. 5, step S25 includes:
S251:通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。S251: Send, by the social application, the N groups of the accounts of the second user configured with the marked stamp to the server.
在本实施例中,当需要将第二用户的账号添加至多个目标社区时,用户通过在社交应用中选择多个目标社区,通过社交应用生成多个与目标社区一一对应的标记戳,组成标记戳列表。基于该标记戳列表向第二用户的账号配置标记戳,得到N组配置了标记戳的第二用户的账号,在通过社交应用将N组配置了标记戳的第二用户的账号,依次发送给服务器的过程中,可以按照用户选择目标社区的顺序依次将N组配置了标记戳的第二用户的账号依次发送给服务器。In this embodiment, when the account of the second user needs to be added to the multiple target communities, 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. During the process of the server, 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.
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中基于功能开关的应用程序控制步骤。It can be seen that, in the social application that the first user logs in, when the preset operation for adding the second user to the target community is detected, 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 In the community, functional switch-based application control steps in social applications are simplified.
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。Determining, by the social application, whether the second user is a member of the target community according to the account of the second user, and configuring the markup of the account of the second user through the social application when the second user is not a member of the target community, to avoid The account configuration tag of the target community member.
参见图6,图6是本申请实施例提供的一种基于功能开关的应用程序控制装置的示意性框图。本实施例的一种基于功能开关的应用程序控制装置30包括的各单元用于执行图2对应的实施例中的各步骤,具体请参阅图2及图2对应的实施例中的相关描述,此处不赘述。本实施例的一种基于功能开关的应用程序控制装置30包括:获取单元31、判断单元32、第一执行单元33、第二执行单元335以及发送单元34。具体地:Referring to FIG. 6, FIG. 6 is a schematic block diagram of a function switch based application program control apparatus according to an embodiment of the present application. Each unit of the function switch-based application control device 30 of the present embodiment is configured to perform the steps in the embodiment corresponding to FIG. 2 . For details, refer to the related description in the embodiment corresponding to FIG. 2 and FIG. 2 . I will not go into details here. The function switch-based application control device 30 of the present embodiment includes an acquisition unit 31, a determination unit 32, a first execution unit 33, a second execution unit 335, and a transmission unit 34. specifically:
获取单元31,用于若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号。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.
进一步地,作为本实施例一种可能实现的方式,获取单元31具体用于,若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;调用所述NFC天线获取所述第二NFC信号。Further, as a possible implementation manner of the embodiment, 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.
判断单元32,用于通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员。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.
第一执行单元33,用于若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。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.
进一步地,作为本实施例一种可能实现的方式,目标社区为N个社区,N为等于或大于1的整数,第一执行单元33具体用于,通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。Further, as a possible implementation manner of the embodiment, 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.
第二执行单元335,用于若所述第二用户是所述目标社区的成员,则显示提示信息,所述提示信息用于描述所述第二用户已为所述目标社区的成员。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.
发送单元34,用于通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。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.
进一步地,作为本实施例一种可能实现的方式,若N大于1,发送单元34具体用于,通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。Further, as a possible implementation manner of the embodiment, if N is greater than 1, 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.
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中基于功能开关的应用程序控制步骤。It can be seen that, in the social application that the first user logs in, when the preset operation for adding the second user to the target community is detected, 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 In the community, functional switch-based application control steps in social applications are simplified.
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。Determining, by the social application, whether the second user is a member of the target community according to the account of the second user, and configuring the markup of the account of the second user through the social application when the second user is not a member of the target community, to avoid The account configuration tag of the target community member.
参见图7,是本申请另一实施例提供的一种终端示意框图。如图所示的本实施例中的电子设备400可以包括:一个或多个处理器401;一个或多个输入设备402,一个或多个输出设备403和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器402用于存储,计算机可读指令包括指令,处理器401 通过调用存储器402存储的计算机可读指令执行如下操作: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:
处理器401用于:若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识。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.
处理器401用于:通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区。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.
处理器401用于:通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。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.
处理器401还用于:通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。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.
进一步地,处理器401具体用于:若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;调用所述NFC天线获取所述第二NFC信号。Further, 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.
目标社区为N个社区,N为等于或大于1的整数,处理器401具体用于:通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。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.
若N大于1,处理器401具体用于:通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。If N is greater than 1, 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.
应当理解,在本申请实施例中,所称处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, 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.
输入设备402可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备403可以包括显示器(LCD等)、扬声器等。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., and the output device 403 can include a display (LCD or the like), a speaker, and the like.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401 提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。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. For example, the memory 404 can also store information of the device type.
具体实现中,本申请实施例中所描述的处理器401、输入设备402、输出设备403可执行本申请实施例提供的一种基于功能开关的应用程序控制方法的第一实施例和第二实施例中所描述的实现方式,也可执行本申请实施例所描述的设备的实现方式,在此不再赘述。In a specific implementation, the processor 401, the input device 402, and the output device 403 described in the embodiments of the present application may perform the first embodiment and the second implementation of a function switch-based application control method provided by the embodiments of the present application. The implementations of the devices described in the embodiments of the present application may also be implemented in the implementation manners in the examples, and details are not described herein again.
在本申请的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现:In another embodiment of the present application, a computer readable storage medium is stored, the computer readable storage medium storing computer readable instructions that are implemented by a processor to:
若在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作,则通过近场通信NFC获取所述第二用户的账号,所述第二用户的账号为所述第二用户在所述社交应用中的唯一标识;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, 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;
通过所述社交应用向所述第二用户的账号配置标记戳,所述标记戳用于指向所述目标社区;Configuring, by the social application, a markup stamp to the account of the second user, where the markup is used to point to the target community;
通过所述社交应用,将配置了所述标记戳的第二用户的账号发送给服务器,以使所述服务器根据所述标记戳将所述第二用户的账号添加至所述目标社区中。And sending, 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 computer readable instructions are also executed by the processor to:
通过所述社交应用,根据所述第二用户的账号判断所述第二用户是否为所述目标社区的成员;Determining, by the social application, whether the second user is a member of the target community according to the account of the second user;
若所述第二用户不是所述目标社区的成员,则通过所述社交应用向所述第二用户的账号配置标记戳。If the second user is not a member of the target community, 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:
若检测到NFC天线被占用,则生成中断指令,所述中断指令用于中断所述NFC天线的当前业务;If it is detected that the NFC antenna is occupied, generating an interrupt instruction, the interrupt instruction is used to interrupt the current service of the NFC antenna;
调用所述NFC天线向周围辐射第一NFC信号,所述第一NFC信号用于请求获取第二NFC信号,所述第二NFC信号携带的数据内容用于描述所述第二用户的账号;Invoking the NFC antenna to radiate a first NFC signal to the surroundings, the first NFC signal is used to request acquisition of a second NFC signal, and the data content carried by the second NFC signal is used to describe an account of the second user;
调用所述NFC天线获取所述第二NFC信号。The NFC antenna is called to acquire the second NFC signal.
所述目标社区为N个社区,N为等于或大于1的整数,所述计算机可读指令被处理器执行时还实现: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:
通过所述社交应用生成标记戳列表;所述标记戳列表中包括N个标记戳,N个所述标记戳分别指向的所述目标社区均不相同;Generating, by the social application, a mark stamp list; the mark stamp list includes N mark stamps, and the target communities to which the N mark stamps respectively point are different;
基于所述标记戳列表向所述第二用户的账号配置所述标记戳,得到N组所述配置了所述标记戳的第二用户的账号。And configuring the markup stamp to the account of the second user based on the markup stamp list, and obtaining an account number of the second set of the second user configured with the markup stamp.
若N大于1,所述计算机可读指令被处理器执行时还实现:If N is greater than 1, the computer readable instructions are also executed by the processor to:
通过所述社交应用,将N组所述配置了所述标记戳的第二用户的账号依次发送给服务器。Through the social application, the N groups of the accounts of the second user configured with the mark stamp are sequentially sent to the server.
以上可以看出,本申请实施例通过在第一用户登录的社交应用中,检测到用于添加第二用户至目标社区的预设操作时,利用近场通信NFC获取第二用户的账号,再通过社交应用向第二用户的账号配置用于指向目标社区的标记戳,并将配置了标记戳的第二用户的账号发送给服务器,使得服务器可以根据标记戳将第二用户的账号添加至目标社区中,简化了社交应用中基于功能开关的应用程序控制步骤。It can be seen that, in the social application that the first user logs in, when the preset operation for adding the second user to the target community is detected, 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 In the community, functional switch-based application control steps in social applications are simplified.
通过社交应用根据第二用户的账号判断第二用户是否为目标社区的成员,并在第二用户不是目标社区的成员时,才通过社交应用向第二用户的账号配置标记戳,避免对已是目标社区成员的账号配置标记戳。Determining, by the social application, whether the second user is a member of the target community according to the account of the second user, and configuring the markup of the account of the second user through the social application when the second user is not a member of the target community, to avoid The account configuration tag of the target community member.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如计算机的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机可读指令以及所述设备所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。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. Further, 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.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a 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). A variety of media that can store program code, such as a memory, a disk, or an optical disk.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种基于功能开关的应用程序控制方法,其特征在于,包括:An application switch control method based on a function switch, comprising:
    为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
    检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
    在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  2. 根据权利要求1所述的基于功能开关的应用程序控制方法,其特征在于,所述通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的功能状态包括:The function switch-based application control method according to claim 1, wherein the controlling a functional state of the configuration layer, the menus of the levels, or the respective function points by a corresponding function switch comprises:
    根据所述异常信息,对相应的功能开关设置对应的工作状态;Setting a corresponding working state for the corresponding function switch according to the abnormality information;
    根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理。The function corresponding to the abnormality information is processed correspondingly according to the working state of the function switch.
  3. 根据权利要求2所述的基于功能开关的应用程序控制方法,其特征在于,所述根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理具体为:The function switch-based application control method according to claim 2, wherein the corresponding processing of the function corresponding to the abnormal information according to the working state of the function switch is specifically:
    在所述功能开关的工作状态为第一状态时,将与所述功能开关所处的位置对应的功能屏蔽或关闭,并发出第一警示信息;When the working state of the function switch is the first state, the function corresponding to the position where the function switch is located is shielded or closed, and the first warning information is sent;
    在所述功能开关的工作状态为第二状态时,发出第二警示信息;Sending a second warning message when the working state of the function switch is the second state;
    在所述功能开关的工作状态为第三状态时,发出提醒信息。When the working state of the function switch is the third state, an alert message is issued.
  4. 根据权利要求1所述的基于功能开关的应用程序控制方法,其特征在于,在所述为应用程序的配置层、各级菜单和各个功能点均设置相应的功能开关之后,还包括:The function switch-based application control method according to claim 1, wherein after the setting of the corresponding function switch for the configuration layer, the menus of the various levels, and the respective function points of the application program, the method further includes:
    对各个所述功能开关设置有效工作时间。Set the effective working time for each of the function switches.
  5. 根据权利要求1所述的基于功能开关的应用程序控制方法,其特征在于,还包括:The function switch-based application control method according to claim 1, further comprising:
    设置所述应用程序中的各个所述功能开关的工作状态。Setting an operating state of each of the function switches in the application.
  6. 一种基于功能开关的应用程序控制装置,其特征在于,包括:An application control device based on a function switch, comprising:
    植入模块,用于为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关。An implant module is used to implant corresponding function switches for the application configuration layer, various levels of menus, and various function points.
    检测模块,用于检测所述配置层、所述各级菜单和所述各个功能点的运行信息。And a detecting module, configured to detect operation information of the configuration layer, the menus of the levels, and the respective function points.
    控制模块,用于在所述检测模块检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。a control module, configured to: when the detecting module detects abnormality information of operation information of the configuration layer, the menus of the levels, or the function points, control the configuration layer by using a corresponding function switch, The level menu or the operating status of the various function points.
  7. 如权利要求6所述的基于功能开关的应用程序控制装置,其特征在于,所述控制模块,包括:The function switch-based application control device according to claim 6, wherein the control module comprises:
    设置单元,用于根据所述异常信息,对相应的功能开关设置对应的工作状态。And a setting unit, configured to set a corresponding working state to the corresponding function switch according to the abnormality information.
    处理单元,用于根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理。The processing unit is configured to perform corresponding processing on the function corresponding to the abnormal information according to the working state of the function switch.
  8. 如权利要求7所述的基于功能开关的应用程序控制装置,其特征在于,所述处理单元具体用于:The function switch-based application control device according to claim 7, wherein the processing unit is specifically configured to:
    在所述功能开关的工作状态为第一状态时,将与所述功能开关所处的位置对应的功能屏蔽或关闭,并发出第一警示信息;When the working state of the function switch is the first state, the function corresponding to the position where the function switch is located is shielded or closed, and the first warning information is sent;
    在所述功能开关的工作状态为第二状态时,发出第二警示信息;Sending a second warning message when the working state of the function switch is the second state;
    在所述功能开关的工作状态为第三状态时,发出提醒信息。When the working state of the function switch is the third state, an alert message is issued.
  9. 如权利要求6所述的基于功能开关的应用程序控制装置,其特征在于,还包括:The function switch-based application control device according to claim 6, further comprising:
    有效工作时间设置模块,用于对各个所述功能开关设置有效工作时间。An effective working time setting module is configured to set an effective working time for each of the function switches.
  10. 如权利要求6所述的基于功能开关的应用程序控制装置,其特征在于,还用于:The function switch-based application control device according to claim 6, further comprising:
    工作状态设置模块,用于设置所述应用程序中的各个所述功能开关的工作状态。a working state setting module, configured to set an operating state of each of the function switches in the application.
  11. 一种基于功能开关的应用程序控制服务器,其特征在于,所述基于功能开关的应用程序控制处理服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A function switch based application control server, characterized in that the function switch based application control processing server comprises a memory, a processor on which is stored readable by a computer executable on the processor The instructions, when the processor executes the computer readable instructions, implement the following steps:
    为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
    检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
    在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  12. 根据权利要求11所述的基于功能开关的应用程序控制服务器,其特征在于,所述通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的功能状态包括:The function switch-based application control server according to claim 11, wherein the controlling the functional status of the configuration layer, the menus of the levels, or the respective function points by a corresponding function switch comprises:
    根据所述异常信息,对相应的功能开关设置对应的工作状态;Setting a corresponding working state for the corresponding function switch according to the abnormality information;
    根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理。The function corresponding to the abnormality information is processed correspondingly according to the working state of the function switch.
  13. 根据权利要求12所述的基于功能开关的应用程序控制服务器,其特征在于,所述根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理具体为:The function switch-based application control server according to claim 12, wherein the corresponding processing of the function corresponding to the abnormal information according to the working state of the function switch is specifically:
    在所述功能开关的工作状态为第一状态时,将与所述功能开关所处的位置对应的功能屏蔽或关闭,并发出第一警示信息;When the working state of the function switch is the first state, the function corresponding to the position where the function switch is located is shielded or closed, and the first warning information is sent;
    在所述功能开关的工作状态为第二状态时,发出第二警示信息;Sending a second warning message when the working state of the function switch is the second state;
    在所述功能开关的工作状态为第三状态时,发出提醒信息。When the working state of the function switch is the third state, an alert message is issued.
  14. 根据权利要求11所述的基于功能开关的应用程序控制服务器,其特征在于,在所述为应用程序的配置层、各级菜单和各个功能点均设置相应的功能开关之后,还包括:The function switch-based application control server according to claim 11, wherein after the setting of the corresponding function switch for the configuration layer of the application, the menus of the various levels, and the respective function points, the method further includes:
    对各个所述功能开关设置有效工作时间。Set the effective working time for each of the function switches.
  15. 根据权利要求11所述的基于功能开关的应用程序控制服务器,其特征在于,还包括:The function switch based application control server according to claim 11, further comprising:
    设置所述应用程序中的各个所述功能开关的工作状态。Setting an operating state of each of the function switches in the application.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by at least one processor, implement the following steps:
    为应用程序的配置层、各级菜单和各个功能点均植入相应的功能开关;Embed the corresponding function switches for the application's configuration layer, menus, and individual function points;
    检测所述配置层、所述各级菜单和所述各个功能点的运行信息;Detecting operation information of the configuration layer, the menus of the levels, and the respective function points;
    在检测到所述配置层、所述各级菜单或所述各个功能点的运行信息出现异常信息时,通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的运行状态。When detecting abnormality information of the operation information of the configuration layer, the menus of the levels, or the respective function points, controlling the configuration layer, the menus of the levels, or the function points of the respective functions by corresponding function switches Operating status.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述通过相应的功能开关控制所述配置层、所述各级菜单或所述各个功能点的功能状态包括:The computer readable storage medium according to claim 16, wherein the controlling the functional status of the configuration layer, the menus of the levels, or the respective function points by a corresponding function switch comprises:
    根据所述异常信息,对相应的功能开关设置对应的工作状态;Setting a corresponding working state for the corresponding function switch according to the abnormality information;
    根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理。The function corresponding to the abnormality information is processed correspondingly according to the working state of the function switch.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述根据所述功能开关的工作状态对所述异常信息对应的功能进行相应处理具体为:The computer readable storage medium according to claim 17, wherein the corresponding processing of the function corresponding to the abnormal information according to the working state of the function switch is specifically:
    在所述功能开关的工作状态为第一状态时,将与所述功能开关所处的位置对应的功能屏蔽或关闭,并发出第一警示信息;When the working state of the function switch is the first state, the function corresponding to the position where the function switch is located is shielded or closed, and the first warning information is sent;
    在所述功能开关的工作状态为第二状态时,发出第二警示信息;Sending a second warning message when the working state of the function switch is the second state;
    在所述功能开关的工作状态为第三状态时,发出提醒信息。When the working state of the function switch is the third state, an alert message is issued.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,在所述为应用程序的配置层、各级菜单和各个功能点均设置相应的功能开关之后,还包括:The computer readable storage medium according to claim 18, further comprising: after the setting a corresponding function switch for the configuration layer of the application, the menu of each level, and each function point,
    对各个所述功能开关设置有效工作时间。Set the effective working time for each of the function switches.
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,还包括:The computer readable storage medium of claim 16, further comprising:
    设置所述应用程序中的各个所述功能开关的工作状态。Setting an operating state of each of the function switches in the application.
PCT/CN2018/082617 2017-04-27 2018-04-11 Application control method and device using function switches, server, and medium WO2018196613A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710285727.2A CN108255536A (en) 2017-04-27 2017-04-27 Application control method and server based on functional switch
CN201710285727.2 2017-04-27

Publications (1)

Publication Number Publication Date
WO2018196613A1 true WO2018196613A1 (en) 2018-11-01

Family

ID=62721781

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082617 WO2018196613A1 (en) 2017-04-27 2018-04-11 Application control method and device using function switches, server, and medium

Country Status (2)

Country Link
CN (1) CN108255536A (en)
WO (1) WO2018196613A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683944B (en) * 2018-11-16 2024-05-07 平安科技(深圳)有限公司 Application function switch management method, device, equipment and readable storage medium
CN115080276B (en) * 2022-07-20 2022-12-09 北京聚通达科技股份有限公司 Application program function dynamic switching method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067901A (en) * 2011-10-24 2013-04-24 中兴通讯股份有限公司 Billing early warning method and billing early warning system
CN104572318A (en) * 2013-10-24 2015-04-29 腾讯科技(深圳)有限公司 Report information obtaining method, device, equipment and system
US20150120572A1 (en) * 2013-10-25 2015-04-30 Nitro Mobile Solutions, LLC Location based mobile deposit security feature
CN104951394A (en) * 2014-03-26 2015-09-30 上海宝信软件股份有限公司 System and method for capturing ActiveX control abnormities during configuration running
CN105573854A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Terminal application processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7200773B2 (en) * 2004-01-15 2007-04-03 International Business Machines Corporation Reproducing errors via inhibit switches
CN106326062B (en) * 2015-06-29 2019-01-25 阿里巴巴集团控股有限公司 The operating status control method and device of application program
CN105511944B (en) * 2016-01-07 2018-09-28 上海海事大学 A kind of method for detecting abnormality of cloud system internal virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067901A (en) * 2011-10-24 2013-04-24 中兴通讯股份有限公司 Billing early warning method and billing early warning system
CN104572318A (en) * 2013-10-24 2015-04-29 腾讯科技(深圳)有限公司 Report information obtaining method, device, equipment and system
US20150120572A1 (en) * 2013-10-25 2015-04-30 Nitro Mobile Solutions, LLC Location based mobile deposit security feature
CN104951394A (en) * 2014-03-26 2015-09-30 上海宝信软件股份有限公司 System and method for capturing ActiveX control abnormities during configuration running
CN105573854A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 Terminal application processing method and device

Also Published As

Publication number Publication date
CN108255536A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
US11206451B2 (en) Information interception processing method, terminal, and computer storage medium
WO2018177124A1 (en) Service processing method and device, data sharing system and storage medium
US9706371B2 (en) Push notification middleware
US10021543B2 (en) Short message service reading method and device
US9477534B2 (en) Inter-extension messaging
US10579442B2 (en) Inversion-of-control component service models for virtual environments
EP3980889A1 (en) Notification tagging for a workspace or application
US11658963B2 (en) Cooperative communication validation
GB2550451A (en) Offline peer-assisted notification delivery
WO2018191543A1 (en) Protocol-level identity mapping
US20210037055A1 (en) Techniques for incentivized intrusion detection system
US9888070B2 (en) Brokered advanced pairing
WO2021047197A1 (en) Speech processing method, apparatus and device, and computer storage medium
WO2018196613A1 (en) Application control method and device using function switches, server, and medium
CN108156071B (en) Method for adding members to community, terminal device and computer readable storage medium
US11658821B2 (en) Cybersecurity guard for core network elements
US20230413054A1 (en) Systems and methods for providing a secure notification service for mobile applications
US20210042733A1 (en) Automatic activation of a physical payment card
CN103984730B (en) information processing method and electronic equipment
US9980132B2 (en) Method for detecting messages and call request and electronic device adapted thereto
KR102261789B1 (en) Smishing message monitoring method and smishing level determination method
CN112702256B (en) Method and equipment for carrying out message communication
CN111193697B (en) Method, device and system for detecting credibility of social account
CN116954693A (en) State coordination method, device, computer equipment and storage medium
WO2022197283A1 (en) System and method for intelligent identification of content data in files and multi-recipients control

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: 18790220

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 27/01/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18790220

Country of ref document: EP

Kind code of ref document: A1