CN107015824B - Method and device for binding application and sharing account - Google Patents

Method and device for binding application and sharing account Download PDF

Info

Publication number
CN107015824B
CN107015824B CN201710098709.3A CN201710098709A CN107015824B CN 107015824 B CN107015824 B CN 107015824B CN 201710098709 A CN201710098709 A CN 201710098709A CN 107015824 B CN107015824 B CN 107015824B
Authority
CN
China
Prior art keywords
identification information
sharing
application
account
registration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710098709.3A
Other languages
Chinese (zh)
Other versions
CN107015824A (en
Inventor
刘恩坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Koudai Network Technology Co ltd
Original Assignee
Shenzhen Koudai Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Koudai Network Technology Co ltd filed Critical Shenzhen Koudai Network Technology Co ltd
Priority to CN201710098709.3A priority Critical patent/CN107015824B/en
Publication of CN107015824A publication Critical patent/CN107015824A/en
Application granted granted Critical
Publication of CN107015824B publication Critical patent/CN107015824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0214Referral reward systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for binding an application and a sharing account, which comprises the following steps: the method comprises the steps of acquiring sharing information, and sending an access request to a server when an access instruction triggered based on the sharing information is detected; receiving and displaying a sharing page returned by the server based on the access request, writing identification information of a sharing account into a system clipboard based on the sharing page, and acquiring an installation package of a shared application based on the sharing page; when the application is detected to be started for the first time and identification information exists in the system clipboard, the identification information is stored in a storage area of the application, so that the identification information is added to the registration information when the account registration in the application is detected. The invention further provides a device for binding the application and the sharing account. The invention realizes the automatic filling of the identification information of the sharing account when registering the application, thereby improving the application and popularization efficiency.

Description

Method and device for binding application and sharing account
Technical Field
The invention relates to the technical field of terminals, in particular to a method and a device for binding an application and a shared account.
Background
With the development of mobile terminals such as mobile phones and tablet computers, more and more applications are installed on the mobile terminals by users, and a popularization manner of applying the applications by providing rewards for users actively sharing the applications appears. This requires that the sharee timely feeds back the information of the sharee to the application server when registering the account.
However, in the existing sharing mode, when the sharee registers information, the information of the sharee is manually filled in, for example, the sent invitation code or account information of the sharee is shared, but the ratio of the sharee filling the information of the sharee in the registration information to the total sharee is relatively small, and when a great number of users register, the step of filling the information of the sharee is often omitted in order to save time, so for the application server, if the received registration information does not contain the information of the sharee, the sharee cannot be considered to install and register the application through the sharing of the sharee, and no benefit is brought to the sharee. This greatly reduces the enthusiasm of the sharer for sharing the application, and further leads to low efficiency of application promotion.
Disclosure of Invention
The invention provides a method and a device for binding an application and a sharing account, and mainly aims to solve the technical problem that in the prior art, the sharing application of a sharer is low in enthusiasm and further low in application popularization efficiency due to the fact that information of the sharer needs to be filled in actively.
In order to achieve the above object, the present invention provides a method for binding an application and a sharing account, which is applied to a terminal, and the method for binding the application and the sharing account includes:
the method comprises the steps of obtaining sharing information, and sending an access request to a server when an access instruction triggered based on the sharing information is detected;
receiving and displaying a sharing page returned by the server based on the access request, writing identification information of a sharing account into a system clipboard based on the sharing page, and acquiring an installation package of a shared application based on the sharing page;
when the application is detected to be started for the first time and the identification information exists in the system clipboard, the identification information is stored in the storage area of the application, so that when the account registration in the application is detected, the identification information is added to the registration information.
Optionally, the receiving and displaying a sharing page returned by the server based on the access request, writing identification information of a sharing account into a system clipboard based on the sharing page, and acquiring an installation package of a shared application based on the sharing page includes:
receiving and displaying a sharing page which is returned by the server based on the access request and contains a JS code, identification information of a sharing account and a downloading link of an application;
executing the JS code to write the identifying information into a system clipboard;
and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to a server based on the downloading instruction, and receiving an installation package returned by the server.
Optionally, after the step of storing the identification information in the storage area of the application, the method further includes:
when the application is detected to enter a registration page, acquiring the identification information from the storage area and adding the identification information to the registration page;
and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
Optionally, the method further comprises:
and deleting the identification information in the storage area after detecting that the registration account corresponding to the registration request is successfully registered.
In addition, the invention provides a method for binding an application and a sharing account, which is applied to a server and comprises the following steps:
when an access request sent by a terminal based on sharing information is received, acquiring identification information of a sharing account from the access request;
adding the identification information to a preset sharing page and then sending the identification information to the terminal so that the terminal can write the identification information of the sharing account into a system clipboard based on the sharing page and obtain an installation package of the shared application based on the sharing page; and when the terminal detects that the application is started for the first time and the identification information exists in the system clipboard, storing the identification information to a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information.
Optionally, after the step of adding the identification information to a preset sharing page and then sending the identification information to the terminal, the method further includes:
when a registration request sent by the terminal is received, detecting whether the registration request contains identification information;
and if so, binding the registration account based on the registration request with the sharing account corresponding to the identification information contained in the registration request.
In addition, in order to achieve the above object, the present invention further provides a device for binding an application with a shared account, which is applied to a terminal, and includes a first obtaining module, a first sending module, an executing module, a displaying module, and a storing module; wherein the first obtaining module is configured to: acquiring sharing information;
the first sending module is configured to: when an access instruction triggered based on the sharing information is detected, sending an access request to a server;
the display module is used for: receiving and displaying a sharing page returned by the server based on the access request;
the execution module is configured to: writing identification information of a sharing account into a system clipboard based on the sharing page, and acquiring an installation package of a shared application based on the sharing page;
the storage module is used for: when the application is detected to be started for the first time and the identification information exists in the system clipboard, the identification information is stored in the storage area of the application, so that when the account registration in the application is detected, the identification information is added to the registration information.
Optionally, the display module is further configured to: receiving and displaying a sharing page which is returned by the server based on the access request and contains a JS code, identification information of a sharing account and a downloading link of an application;
the execution module is further to: executing the JS code to write the identifying information into a system clipboard; and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to the server based on the downloading instruction, and receiving an installation package returned by the server.
Optionally, the apparatus further comprises:
the adding module is used for acquiring the identification information from the storage area and adding the identification information to the registration page when the application is detected to enter the registration page;
the first sending module is further configured to: and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
In addition, to achieve the above object, the present invention further provides an apparatus for binding an application with a shared account, which is applied to a server, and the apparatus for binding an application with a shared account includes:
the second acquisition module is used for acquiring identification information of the sharing account from an access request sent by a terminal based on the sharing information when the access request is received;
the second sending module is used for sending the sharing information to a terminal where the communication account is located;
the identification information is added to a preset sharing page and then is sent to the terminal, so that the terminal can write the identification information of the sharing account into a system clipboard based on the sharing page and acquire an installation package of the shared application based on the sharing page; and when the terminal detects that the application is started for the first time and the identification information exists in the system clipboard, storing the identification information to a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information.
The method and the device for binding the application and the shared account, which are provided by the invention, have the advantages that the shared information is obtained, when an access instruction triggered based on the shared information is detected, an access request is sent to the server, a shared page returned by the server based on the access request is received, the identification information of the shared account is automatically added to a clipboard of a system by the terminal through the shared page returned by the server, meanwhile, an installation package of the shared application is obtained based on the shared page, when the application is detected to be started for the first time and corresponding identification information exists in the clipboard, the identification information is stored in a storage area of the application, so that when the account is registered in the application, the identification information of the storage area can be automatically added into the registration information, namely, a user does not need to manually fill the identification information in the registration information, when the account is registered in the application, the identification information can be obtained from the storage area of the, and for the sharer, the identification information of the sharing account does not need to be stored manually, the binding of the application and the sharing account is completed under the condition that the user does not sense, the problem that the user neglects the filling of the identification information of the sharing account is solved, the enthusiasm of the sharer for sharing the application is improved, and the popularization efficiency of the application is further improved.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for binding an application to a shared account according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for binding an application to a shared account according to the present invention;
FIG. 3 is a functional block diagram illustrating a first embodiment of an apparatus for binding an application to a shared account according to the present invention;
fig. 4 is a functional module diagram of a second embodiment of the apparatus for binding an application and a shared account according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for binding an application and a sharing account. Referring to fig. 1, a flowchart of a first embodiment of a method for binding an application and a shared account according to the present invention is shown.
In this embodiment, the method for binding an application and a sharing account includes:
step S10, obtaining sharing information, and sending an access request to a server when detecting an access instruction triggered based on the sharing information.
The method provided by the embodiment is applied to a terminal, which may be a mobile terminal such as a mobile phone and a tablet Computer, or a fixed terminal such as a Personal Computer (PC). The method provided by the embodiment is described below with the terminal as the execution subject.
In the embodiment of the present invention, a user a may share an application to other users in multiple ways, for example, as an implementation manner, the user a does not need to select any sharing object, and only needs to generate a sharing request based on identification information of the user a itself, where the generated sharing request includes identification information of the user a, the user a is a sharing account, the user a may send the sharing information to a sharing platform, other users who see the information may access the sharing information, send an access request to a server through the sharing information, and when receiving the access request, the server obtains the identification information of the user a from the access request. The identification information may be information capable of uniquely identifying a registered account of the user a in the application, for example, the identification information may be a registered mailbox, an account number, an account name, or the like of a shared account, or may be a randomly generated invitation code, and the invitation code has uniqueness. The sharing information is information that a user can enter a downloading interface of a sharing application preset by a server after triggering the information on a terminal, and for example, the sharing information may be a sharing link or a two-dimensional code.
Or, in other embodiments, when the user a wants to share an application with the user B, the user a enters an application sharing interface of the application, fills in communication information of the user B, generates a sharing request based on the application sharing interface, and sends the sharing request to the server, where the sharing request includes the communication information of the user B and identification information of the user a, and the user a is a sharing account; the communication information may be a communication mode of the user B, such as a mobile phone number, a mailbox address, account information of a social application, or the like. When receiving the sharing request, the server acquires the communication information and the identification information contained in the sharing request and stores the identification information. The server generates sharing information and sends the sharing information to the terminal where the communication information is located. For example, if the communication information is a mobile phone number, the sharing information is sent to a terminal corresponding to the mobile phone number in a form of a short message; and if the communication information is the mailbox address, sending the sharing information to the terminal corresponding to the mailbox address in a mail form. In this embodiment, the sharing information is taken as an example of a sharing link, if the sharing link is sent to a mobile phone of the user B in a form of a short message, and if the user B clicks the sharing link, the terminal sends an access request to the server based on the sharing link.
Step S20, receiving and displaying a sharing page returned by the server based on the access request, writing identification information of a sharing account into a system clipboard based on the sharing page, and acquiring an installation package of a shared application based on the sharing page.
When receiving an access request sent based on the sharing link, the server acquires the identification information of the user A, adds the identification information of the user A to a pre-configured sharing page, sends the sharing page to a terminal corresponding to the access request, and the terminal can call a system browser to display the sharing page. After the sharing page pre-configured by the server is displayed on the terminal, the identification information of the sharing account included in the sharing page can be automatically written into a clipboard of the system. For example, the shared page may include a download link of the shared application, and a JS code that can write the identification information of the user a into a system clipboard of the terminal, where the JS code can operate the system clipboard and needs to be written in advance and added to the preconfigured shared page. In other embodiments, a link is added in advance on the shared page, and the link is used for writing the identification information of the user a into a system clipboard of the terminal when the user clicks the link.
The terminal receives and displays a sharing page which is returned by the server based on the access request and contains the JS code, the identification information of the sharing account and the downloading link of the application; executing the JS code to write the identifying information into a system clipboard; and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to a server based on the downloading instruction, and receiving an installation package returned by the server.
When the terminal receives and displays the sharing page containing the JS code sent by the server, when the JS code is detected in the page, the code is automatically executed, and the identification information of the user A is written into a system clipboard of the terminal. Specifically, the following steps are executed based on the JS code: all current data in the system clipboard are backed up and stored, and after a special separator is added after the content of the current system clipboard, the identification information is written into the special separator and then stored, wherein the original data in the system clipboard and the newly added identification information are separated by the special separator to avoid confusion.
In addition, the shared page contains a download link of the application, the terminal displays the download link on the shared page, the installation package of the shared application can be obtained through the download link, the user B clicks the download link to trigger a download instruction, and the terminal sends an installation package obtaining request to the server based on the download instruction and receives the installation package returned by the server. For the server, it is not necessary to configure a corresponding installation package for each identification information, and only a uniform installation package needs to be configured in advance.
Step S30, when the application is detected to be started for the first time and the identification information exists in the system clipboard, the identification information is stored in the storage area of the application, so that when the account registration in the application is detected, the identification information is added to the registration information.
When detecting that the application is started for the first time and corresponding identification information exists in the system clipboard, storing the identification information into a storage area of the application. In this way, when an account is registered in an installed application, identification information may be automatically obtained from a storage area of the application and added to a registration page, where the identification information may be stored in a particular format to facilitate lookup in the format; alternatively, the identification information may be stored according to a preset storage path, so as to facilitate searching according to the path.
In this embodiment, when storing the identification information based on the shared page, the identification information is stored in the system clipboard, and then when the application is started for the first time, the identification information is also obtained from the system clipboard. When the application is started for the first time, whether the identification information corresponding to the application exists in the clipboard is detected, and if yes, the identification information is stored in a storage area of the application.
However, in the prior art, there is another way of sharing an application, that is, a sharer sends an invitation code to a mobile phone of a sharee in the form of a short message, and when the sharee registers in the shared application, the sharee needs to read the invitation code in the short message and fill the invitation code in a registration page, but some existing operating systems do not have the right to read the content of the short message, such as an iOS system. The invention not only overcomes the problems, but also can execute the operation of the shear plate in the background, and can realize the storage and reading of the identification information under the condition that a user does not sense the operation.
Further, after step S30, the method further includes:
when the application is detected to enter a registration page, acquiring the identification information from the storage area and adding the identification information to the registration page; and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
When detecting that the application enters the registration page, the terminal acquires the identification information from the storage area, adds the identification information to the corresponding position in the registration page, generates a registration request based on the content filled in the registration page, and sends the registration request to the server.
Optionally, if the identification information is not obtained from the storage area during registration, it is determined that the registration is not registered due to sharing by other people, and no binding operation is required.
Further, after detecting that the registration account corresponding to the registration request is successfully registered, deleting the identification information in the storage area.
The method for binding an application and a shared account, provided by this embodiment, includes obtaining shared information, sending an access request to a server when an access instruction triggered based on the shared information is detected, receiving a shared page returned by the server based on the access request, automatically adding identification information of the shared account to a clipboard of a system through the shared page returned by the server by a terminal, obtaining an installation package of the shared application based on the shared page, storing the identification information into a storage area of the application when it is detected that the application is started for the first time and corresponding identification information exists in the clipboard, so that when an account is registered in the application, the identification information of the storage area can be automatically added into registration information, that is, a user does not need to manually fill identification information in the registration information, and when an account is registered in the application, the identification information can be obtained from the storage area of the application and filled in, and for the sharer, the identification information of the sharing account does not need to be stored manually, the binding of the application and the sharing account is completed under the condition that the user does not sense, the problem that the user neglects the filling of the identification information of the sharing account is solved, the enthusiasm of the sharer for sharing the application is improved, and the popularization efficiency of the application is further improved.
A second embodiment of the method of the invention for binding an application to a shared account is proposed based on the first embodiment. Referring to fig. 2, in this embodiment, the method for binding an application and a shared account includes:
step S40, when receiving an access request sent by a terminal based on sharing information, acquiring identification information of a sharing account from the access request;
step S50, the identification information is added to a preset sharing page and then sent to the terminal, so that the terminal can write the identification information of the sharing account into a system clipboard based on the sharing page, and an installation package of the shared application is obtained based on the sharing page; and when the terminal detects that the application is started for the first time and the identification information exists in the system clipboard, storing the identification information to a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information.
In addition, further, after the step of adding the identification information to a preset sharing page and then sending the identification information to the terminal, the method further includes: when a registration request sent by the terminal is received, detecting whether the registration request contains identification information; and if so, binding the registration account based on the registration request with the sharing account corresponding to the identification information contained in the registration request.
Regarding the operation specifically executed by the server and the interaction with the terminal, reference is made to the first embodiment, which is not described herein again.
The invention further provides a device for binding the application and the sharing account.
Fig. 3 is a schematic diagram of functional modules of a device for binding an application and a shared account according to a first embodiment of the present invention.
In this embodiment, the apparatus for binding an application with a sharing account includes:
the first obtaining module 10 is configured to obtain shared information;
and the first sending module 20 is configured to send an access request to the server when detecting an access instruction triggered based on the sharing information.
The apparatus proposed in this embodiment is applied to a terminal, which may be a mobile terminal such as a mobile phone and a tablet Computer, or a fixed terminal such as a Personal Computer (PC).
The user A can share the application to other users in various ways, for example, as an implementation manner, the user A does not need to select any sharing object, and only needs to generate a sharing request based on identification information of the user A, the generated sharing request contains the identification information of the user A, the user A is a sharing account, the user A can send the sharing information to a sharing platform, other users who see the information can access the sharing information, an access request is sent to a server through the sharing information, and the server obtains the identification information of the user A from the access request when receiving the access request. The identification information may be information capable of uniquely identifying a registered account of the user a in the application, for example, the identification information may be a registered mailbox, an account number, an account name, or the like of a shared account, or may be a randomly generated invitation code, and the invitation code has uniqueness. The sharing information is information that a user can enter a downloading interface of a sharing application preset by a server after triggering the information on a terminal, and for example, the sharing information may be a sharing link or a two-dimensional code.
Or, in other embodiments, when the user a wants to share an application with the user B, the user a enters an application sharing interface of the application, fills in communication information of the user B, generates a sharing request based on the application sharing interface, and sends the sharing request to the server, where the sharing request includes the communication information of the user B and identification information of the user a, and the user a is a sharing account; the communication information may be a communication mode of the user B, such as a mobile phone number, a mailbox address, account information of a social application, or the like. When receiving the sharing request, the server acquires the communication information and the identification information contained in the sharing request and stores the identification information. The server generates sharing information and sends the sharing information to the terminal where the communication information is located. For example, if the communication information is a mobile phone number, the sharing information is sent to a terminal corresponding to the mobile phone number in a form of a short message; and if the communication information is the mailbox address, sending the sharing information to the terminal corresponding to the mailbox address in a mail form. In this embodiment, the sharing information is taken as an example of a sharing link, if the sharing link is sent to a mobile phone of the user B in a form of a short message, and if the user B clicks the sharing link, the terminal sends an access request to the server based on the sharing link.
The display module 30 is configured to receive and display a shared page returned by the server based on the access request;
and the execution module 40 is configured to write the identification information of the shared account into the system clipboard based on the shared page, and obtain the installation package of the shared application based on the shared page.
When receiving an access request sent based on the sharing link, the server acquires the identification information of the user A, adds the identification information of the user A to a pre-configured sharing page, sends the sharing page to a terminal corresponding to the access request, and the terminal can call a system browser to display the sharing page. After the sharing page pre-configured by the server is displayed on the terminal, the identification information of the sharing account included in the sharing page can be automatically written into a clipboard of the system. For example, the shared page may include a download link of the shared application, and a JS code that can write the identification information of the user a into a system clipboard of the terminal, where the JS code can operate the system clipboard and needs to be written in advance and added to the preconfigured shared page. In other embodiments, a link is added in advance on the shared page, and the link is used for writing the identification information of the user a into a system clipboard of the terminal when the user clicks the link.
The terminal receives and displays a sharing page which is returned by the server based on the access request and contains the JS code, the identification information of the sharing account and the downloading link of the application; executing the JS code to write the identifying information into a system clipboard; and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to a server based on the downloading instruction, and receiving an installation package returned by the server.
When the terminal receives and displays the sharing page containing the JS code sent by the server, when the JS code is detected in the page, the code is automatically executed, and the identification information of the user A is written into a system clipboard of the terminal. Specifically, the execution module 40 executes the following based on the JS code: all current data in the system clipboard are backed up and stored, and after a special separator is added after the content of the current system clipboard, the identification information is written into the special separator and then stored, wherein the original data in the system clipboard and the newly added identification information are separated by the special separator to avoid confusion.
In addition, the shared page includes a download link of the application, the terminal displays the download link on the shared page, an installation package of the shared application can be acquired through the download link, the user B clicks the download link to trigger a download instruction, and the execution module 40 sends an installation package acquisition request to the server based on the download instruction and receives an installation package returned by the server. For the server, it is not necessary to configure a corresponding installation package for each identification information, and only a uniform installation package needs to be configured in advance.
And the storage module 50 is configured to, when it is detected that the application is started for the first time and the identification information exists in the system clipboard, store the identification information in a storage area of the application, so that when it is detected that an account is registered in the application, the identification information is added to registration information.
When detecting that the application is started for the first time and the system clipboard has corresponding identification information, the storage module 50 stores the identification information in the storage area of the application. In this way, when an account is registered in an installed application, identification information may be automatically obtained from a storage area of the application and added to a registration page, where the identification information may be stored in a particular format to facilitate lookup in the format; alternatively, the identification information may be stored according to a preset storage path, so as to facilitate searching according to the path.
In this embodiment, when storing the identification information based on the shared page, the identification information is stored in the system clipboard, and then when the application is started for the first time, the identification information is also obtained from the system clipboard. When the application is started for the first time, whether the identification information corresponding to the application exists in the clipboard is detected, and if yes, the identification information is stored in a storage area of the application.
However, in the prior art, there is another way of sharing an application, that is, a sharer sends an invitation code to a mobile phone of a sharee in the form of a short message, and when the sharee registers in the shared application, the sharee needs to read the invitation code in the short message and fill the invitation code in a registration page, but some existing operating systems do not have the right to read the content of the short message, such as an iOS system. The invention not only overcomes the problems, but also can execute the operation of the shear plate in the background, and can realize the storage and reading of the identification information under the condition that a user does not sense the operation.
Further, the device further comprises an adding module, configured to, when it is detected that the application enters a registration page, obtain the identification information from the storage area and add the identification information to the registration page; the first sending module is further configured to: and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
When detecting that the application enters the registration page, the terminal acquires the identification information from the storage area, adds the identification information to the corresponding position in the registration page, generates a registration request based on the content filled in the registration page, and sends the registration request to the server.
Optionally, if the identification information is not obtained from the storage area during registration, it is determined that the registration is not registered due to sharing by other people, and no binding operation is required.
The device for binding an application and a shared account, which is provided by this embodiment, acquires shared information, and when an access instruction triggered based on the shared information is detected, sends an access request to a server, and receives a shared page returned by the server based on the access request, a terminal automatically adds identification information of the shared account to a clipboard of a system through the shared page returned by the server, and simultaneously acquires an installation package of the shared application based on the shared page, and when it is detected that the application is started for the first time and corresponding identification information exists in the clipboard, the identification information is stored in a storage area of the application, so that when an account is registered in the application, the identification information of the storage area can be automatically added to registration information, that is, a user does not need to manually fill identification information in the registration information, and when an account is registered in the application, the identification information can be acquired from the storage area of the application and filled in, and for the sharer, the identification information of the sharing account does not need to be stored manually, the binding of the application and the sharing account is completed under the condition that the user does not sense, the problem that the user neglects the filling of the identification information of the sharing account is solved, the enthusiasm of the sharer for sharing the application is improved, and the popularization efficiency of the application is further improved.
A second embodiment of the apparatus for binding an application and a shared account according to the present invention is provided based on the first embodiment. Referring to fig. 4, in this embodiment, the apparatus for binding an application and a shared account includes:
a second obtaining module 60, configured to, when receiving an access request sent by a terminal based on shared information, obtain identification information of a shared account from the access request;
a second sending module 70, configured to send the shared information to a terminal where the communication account is located;
the identification information is added to a preset sharing page and then is sent to the terminal, so that the terminal can write the identification information of the sharing account into a system clipboard based on the sharing page and acquire an installation package of the shared application based on the sharing page; and when the terminal detects that the application is started for the first time and the identification information exists in the system clipboard, storing the identification information to a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information.
In addition, further, after the step of adding the identification information to a preset sharing page and then sending the identification information to the terminal, the apparatus further includes: the detection module is used for detecting whether the registration request contains identification information or not when the registration request sent by the terminal is received; and the binding module is used for binding the registration account based on the registration request with the sharing account corresponding to the identification information contained in the registration request if the registration request contains the identification information.
Regarding the operation specifically executed by the server and the interaction with the terminal, reference is made to the first embodiment, which is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the embodiments can be implemented by applying a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a computer application product, where the computer application product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a cloud server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for binding an application and a shared account is applied to a terminal, and the method comprises the following steps:
the method comprises the steps of obtaining sharing information, and sending an access request to a server when an access instruction triggered based on the sharing information is detected;
receiving and displaying a sharing page returned by the server based on the access request, writing identification information of a sharing account into a system clipboard of the terminal based on the sharing page, and acquiring an installation package of a shared application based on the sharing page;
when the application is detected to be started for the first time and the identification information exists in a system clipboard, the identification information is stored in a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information;
deleting the identification information in the storage area after detecting that the registration account corresponding to the registration request is successfully registered;
wherein the writing into the system clipboard of the terminal comprises:
and backing up and storing all current data in the system clipboard of the terminal, and writing the identification information into the special divider for storage after adding the special divider after the content of the current system clipboard.
2. The method according to claim 1, wherein the step of receiving and displaying a sharing page returned by the server based on the access request, writing identification information of the sharing account into a system clipboard based on the sharing page, and acquiring an installation package of the shared application based on the sharing page includes:
receiving and displaying a sharing page which is returned by the server based on the access request and contains a JS code, identification information of a sharing account and a downloading link of an application;
executing the JS code to write the identifying information into a system clipboard;
and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to a server based on the downloading instruction, and receiving an installation package returned by the server.
3. The method for binding an application with a shared account according to claim 1 or 2, wherein after the step of storing the identification information in a storage area of the application, the method further comprises:
when the application is detected to enter a registration page, acquiring the identification information from the storage area and adding the identification information to the registration page;
and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
4. A method for binding an application with a shared account, wherein the method is applied to a server and comprises the following steps:
when an access request sent by a terminal based on sharing information is received, acquiring identification information of a sharing account from the access request;
adding the identification information to a preset sharing page and then sending the identification information to the terminal so that the terminal can write the identification information of the sharing account into a system clipboard of the terminal based on the sharing page and acquire an installation package of the shared application based on the sharing page; when the terminal detects that the application is started for the first time and the identification information exists in a system clipboard, the identification information is stored in a storage area of the application, so that when the account registration in the application is detected, the identification information is added into registration information, and after the registration of a registration account corresponding to the registration request is detected to be successful, the identification information in the storage area is deleted;
wherein the writing into the system clipboard of the terminal comprises:
and backing up and storing all current data in the system clipboard of the terminal, and writing the identification information into the special divider for storage after adding the special divider after the content of the current system clipboard.
5. The method for binding the application and the shared account according to claim 4, wherein after the step of adding the identification information to a preset shared page and then sending the added identification information to the terminal, the method further comprises:
when a registration request sent by the terminal is received, detecting whether the registration request contains identification information;
and if so, binding the registration account based on the registration request with the sharing account corresponding to the identification information contained in the registration request.
6. The device for binding the application and the sharing account is applied to a terminal and comprises a first acquisition module, a first sending module, an execution module, a display module and a storage module; wherein the first obtaining module is configured to: acquiring sharing information;
the first sending module is configured to: when an access instruction triggered based on the sharing information is detected, sending an access request to a server;
the display module is used for: receiving and displaying a sharing page returned by the server based on the access request;
the execution module is configured to: writing identification information of a sharing account into a system clipboard of the terminal based on the sharing page, and acquiring an installation package of a shared application based on the sharing page;
the storage module is used for: when the application is detected to be started for the first time and the identification information exists in a system clipboard, the identification information is stored in a storage area of the application, so that when the account registration in the application is detected, the identification information is added to registration information; deleting the identification information in the storage area after detecting that the registration account corresponding to the registration request is successfully registered;
wherein the writing into the system shear plate comprises:
and backing up and storing all current data in the system clipboard of the terminal, and writing the identification information into the special divider for storage after adding the special divider after the content of the current system clipboard.
7. The apparatus for binding an application with a shared account of claim 6, wherein the presentation module is further configured to: receiving and displaying a sharing page which is returned by the server based on the access request and contains a JS code, identification information of a sharing account and a downloading link of an application;
the execution module is further to: executing the JS code to write the identifying information into a system clipboard; and when a downloading instruction triggered based on the downloading link is detected, sending an installation package acquisition request to the server based on the downloading instruction, and receiving an installation package returned by the server.
8. The apparatus for binding an application with a shared account according to claim 6 or 7, further comprising:
the adding module is used for acquiring the identification information from the storage area and adding the identification information to the registration page when the application is detected to enter the registration page;
the first sending module is further configured to: and generating a registration request based on the registration page and sending the registration request to the server, so that the server binds a registration account based on the registration request with the sharing account when detecting that the registration request contains the identification information.
9. An apparatus for binding an application with a shared account, the apparatus being applied to a server, the apparatus comprising:
the second acquisition module is used for acquiring identification information of the sharing account from an access request sent by a terminal based on the sharing information when the access request is received;
the second sending module is used for adding the identification information to a preset sharing page and then sending the identification information to the terminal so that the terminal can write the identification information of the sharing account into a system clipboard of the terminal based on the sharing page and obtain an installation package of the shared application based on the sharing page; when the terminal detects that the application is started for the first time and the identification information exists in a system clipboard, the identification information is stored in a storage area of the application, so that when the account registration in the application is detected, the identification information is added into registration information, and after the registration of a registration account corresponding to the registration request is detected to be successful, the identification information in the storage area is deleted;
wherein the writing into the system clipboard of the terminal comprises:
and backing up and storing all current data in the system clipboard of the terminal, and writing the identification information into the special divider for storage after adding the special divider after the content of the current system clipboard.
CN201710098709.3A 2017-02-22 2017-02-22 Method and device for binding application and sharing account Active CN107015824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710098709.3A CN107015824B (en) 2017-02-22 2017-02-22 Method and device for binding application and sharing account

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710098709.3A CN107015824B (en) 2017-02-22 2017-02-22 Method and device for binding application and sharing account

Publications (2)

Publication Number Publication Date
CN107015824A CN107015824A (en) 2017-08-04
CN107015824B true CN107015824B (en) 2021-07-06

Family

ID=59440098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710098709.3A Active CN107015824B (en) 2017-02-22 2017-02-22 Method and device for binding application and sharing account

Country Status (1)

Country Link
CN (1) CN107015824B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109997344B (en) * 2017-11-02 2022-04-15 腾讯科技(深圳)有限公司 Information processing method and device, server and storage medium
CN109831470A (en) * 2017-11-23 2019-05-31 阿里巴巴集团控股有限公司 Application data management method, device and electronic equipment
CN107958045A (en) * 2017-11-24 2018-04-24 海尔优家智能科技(北京)有限公司 The page sharing method and device of a kind of mixed developing software
CN108038522A (en) * 2017-12-11 2018-05-15 武汉卓讯互动信息科技有限公司 A kind of easily information introduction method and device
CN110297717A (en) * 2018-03-22 2019-10-01 香港乐蜜有限公司 Determine method, apparatus, electronic equipment and the storage medium of client application participator
US10552136B2 (en) 2018-06-29 2020-02-04 Alibaba Group Holding Limited One click application asset distribution
CN109272504B (en) * 2018-10-17 2022-04-29 广汽丰田汽车有限公司 Method, device and system for detecting and tracing concave-convex defect of vehicle
CN110022350A (en) * 2019-01-28 2019-07-16 阿里巴巴集团控股有限公司 The treating method and apparatus of client registers and registration information
CN110134900A (en) * 2019-04-18 2019-08-16 深圳壹账通智能科技有限公司 Page data sharing method, device, computer equipment and storage medium
CN110198265A (en) * 2019-06-06 2019-09-03 中国移动通信集团内蒙古有限公司 Information processing method, system, device, equipment and medium
CN110648162A (en) * 2019-08-06 2020-01-03 无锡汉咏科技股份有限公司 Sharing APP binding relationship solution
CN110442416B (en) * 2019-08-09 2022-12-09 上海连尚网络科技有限公司 Method, electronic device and computer-readable medium for presenting information
CN110557450A (en) * 2019-08-30 2019-12-10 四川仁来仁网智能科技有限公司 APP sharing method
CN111131201A (en) * 2019-12-12 2020-05-08 国网电子商务有限公司 Multi-user sharing method and device for lattice intelligent writing data
CN111445293A (en) * 2020-04-03 2020-07-24 北京首汽智行科技有限公司 Method for sharing novelty pull reward
CN111563153B (en) * 2020-04-26 2023-07-25 掌阅科技股份有限公司 Recommendation method and terminal based on clipboard information sharing implementation
CN111586164B (en) * 2020-05-06 2023-08-15 上海达龙信息科技有限公司 Sharing, succession and information processing method of remote cloud desktop and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device
CN104702665A (en) * 2014-12-29 2015-06-10 广州唯品会信息科技有限公司 Information sharing method and information sharing device
CN104966211A (en) * 2015-06-04 2015-10-07 广州优蜜移动科技股份有限公司 Method and system for automatically identifying channel relationship

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device
CN104702665A (en) * 2014-12-29 2015-06-10 广州唯品会信息科技有限公司 Information sharing method and information sharing device
CN104966211A (en) * 2015-06-04 2015-10-07 广州优蜜移动科技股份有限公司 Method and system for automatically identifying channel relationship

Also Published As

Publication number Publication date
CN107015824A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107015824B (en) Method and device for binding application and sharing account
CN110019081B (en) Data persistence processing method, device and system and readable storage medium
JP6724234B2 (en) Two-dimensional code information query method, server, client, and system
CN105335187B (en) Application processing method and device
US9697353B2 (en) Method and device for intercepting call for service by application
CN104639721A (en) Method and device for providing application information in mobile terminal device
CN107818023B (en) Thread-based message processing method, intelligent device and storage medium
US9384212B2 (en) Geographic identification system
WO2013178053A1 (en) Methods and apparatuses for sharing information
CN106547769B (en) DOI display method and device
CN109241768B (en) Love information processing method, device, equipment and storage medium
CN107993106B (en) Electronic invoice generation method and device
CN104508689A (en) A two-dimension code processing method and a terminal
CN102752371A (en) Method for achieving splash on client side and client side
CN108989365B (en) Information processing method, server, terminal equipment and storage medium
CN106384255B (en) Method and device for creating information code popularization information
CN113747190A (en) Live broadcast data processing method, device, equipment and storage medium
CN111131415B (en) Information pushing method and device, computer equipment and storage medium
CN111309411B (en) Schedule display method and device
CN109600738B (en) User information updating method, device, equipment and storage medium
CN109189294B (en) Control method and device of electronic control equipment and computer readable storage medium
CN107679871B (en) List management method, device, system and computer readable storage medium
CN114726815A (en) Social information sharing method and device, electronic equipment and computer storage medium
CN102769793A (en) Display device and content promotion method
CN116304403A (en) Webpage access method and device, computer equipment and storage medium

Legal Events

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