CN108566440B - Network connection method, equipment and storage medium - Google Patents

Network connection method, equipment and storage medium Download PDF

Info

Publication number
CN108566440B
CN108566440B CN201810670119.8A CN201810670119A CN108566440B CN 108566440 B CN108566440 B CN 108566440B CN 201810670119 A CN201810670119 A CN 201810670119A CN 108566440 B CN108566440 B CN 108566440B
Authority
CN
China
Prior art keywords
connection
network
strategy
networking application
request
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
CN201810670119.8A
Other languages
Chinese (zh)
Other versions
CN108566440A (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.)
Shanghai Shangxiang Network Technology Co.,Ltd.
Original Assignee
Shanghai Shangxiang 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 Shanghai Shangxiang Network Technology Co ltd filed Critical Shanghai Shangxiang Network Technology Co ltd
Priority to CN201810670119.8A priority Critical patent/CN108566440B/en
Publication of CN108566440A publication Critical patent/CN108566440A/en
Application granted granted Critical
Publication of CN108566440B publication Critical patent/CN108566440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a network connection method, network connection equipment and a storage medium, and belongs to the technical field of network connection. The method comprises the following steps: the server records network connection data of the networking application in real time; when the connection program package receives a connection request from a user, generating a request for acquiring a connection strategy and sending the request to a server; the server generates a connection strategy according to the currently recorded network connection data and returns the connection strategy to the connection program package; the connection program package connects the network according to the received connection strategy, wherein the connection strategy comprises connection information for connecting the network through the host application or the networking application; wherein the connectivity package is provided by the networking application and is located in the host application. According to the invention, not only can the accurate jump of the connection program package be realized, but also the utilization rate of networking application can be improved, and the user experience can be improved; and the problem that the click rate of the host application is reduced because the user does not return to the host application after the network connection is successful can be effectively avoided.

Description

Network connection method, equipment and storage medium
Technical Field
The present invention relates to the field of network connection technologies, and in particular, to a network connection method, device, and storage medium.
Background
With the continuous development of science and technology, various application programs come into existence, and with the continuous association between each business, the joint use of two or more application programs has become more and more common, and reasonable joint not only can improve the utilization rate of each application program, but also can bring convenience to the user, and improves user experience.
Currently, since each application generally needs to be connected to a network before being used, the joint use between each application and an application having a network connection function becomes significant; a common implementation of the method is that an application program with a network connection function (hereinafter referred to as a networking application) provides a connection SDK (Software Development Kit, hereinafter referred to as a connection package) to another application program (hereinafter referred to as a host application) for the host application to perform network connection through the connection package. The implementation mode can be divided into two specific situations, one is that an entrance of networking application is integrated in host application, and when a user needs to connect to the network, the entrance is clicked to directly jump to the networking application for network connection; and secondly, the most basic networking function is integrated in the host application, which is equivalent to a simple version of networking application, and when a user needs to network, the user can directly connect the network by clicking the networking function. However, in the first method, since the user directly jumps to the networking application at each networking, the task of the networking application is too heavy, which affects the networking speed, so that the user experience is reduced, and after the networking is successful, the user cannot guarantee to return to the host application, which affects the click rate of the host application; in the second method, the utilization rate and click rate of networking application cannot be sufficiently improved, and the joint use value cannot be better realized. It can be seen that how to better combine networking applications with host applications still requires intensive research.
Disclosure of Invention
The purpose of the invention is realized by the following technical scheme.
In a first aspect, the present invention provides a network connection method, including:
the connection program package receives a connection request from a user, generates a connection strategy acquisition request according to the connection request and sends the connection strategy acquisition request to the server;
the connection program package receives a connection strategy returned by the server, wherein the connection strategy comprises connection information of a host application connection network or connection information of a networking application connection network;
the connection program package is connected with the network according to the connection strategy;
wherein the connectivity package is provided by the networking application and is located in the host application.
Optionally, the request for obtaining the connection policy includes: obtaining backspacing strategy information;
correspondingly, when the connection policy includes connection information for connecting the network through the networking application:
the connection program package receives the connection strategy returned by the server, and specifically comprises the following steps: the connection program package receives a connection strategy and a rollback strategy returned by the server;
after the connection program package is connected with the network according to the connection strategy, the method further comprises the following steps: and the connection program package backs to the host application according to the backspacing strategy.
Optionally, when the connection policy includes connection information for connecting to a network through a networking application, after the connection package connects to the network according to the connection policy, the method further includes:
the connection program package sends a request for obtaining a backspacing strategy to the server and receives the backspacing strategy returned by the server;
and the connection program package backs to the host application according to the backspacing strategy.
Optionally, the connection package is rolled back to the host application according to the rolling-back policy, specifically:
the linker package automatically backs up to the host application;
or the connecting program package prompts the user to return to the host application, and returns to the host application when receiving the trigger information of the user.
Optionally, when the connection policy includes connection information for connecting to a network through a networking application, after the network is successfully connected according to the connection policy, the method further includes: and jumping to a page specified by the networking application.
Optionally, the generating a request for obtaining a connection policy according to the connection request specifically includes: and generating a connection strategy acquisition request according to the equipment information of the equipment where the equipment is located and the network hotspot information contained in the connection request.
In a second aspect, the present invention provides a network connection method, including:
the server records network connection data of the networking application in real time;
when the server receives a request for acquiring a connection strategy sent by a connection program package, generating a connection strategy according to the currently recorded network connection data and returning the connection strategy to the connection program package for the connection program package to carry out network connection;
wherein the connectivity package is provided by the networking application and is located in a host application.
Optionally, the generating a connection policy according to the currently recorded network connection data specifically includes: judging whether the network is connected through the networking application or not according to the currently recorded network connection data, and if so, generating a connection strategy for connecting the network through the networking application; otherwise, generating a connection strategy for connecting the network through the host application.
Optionally, the network connection data includes: a number of independent visitors to the networked application;
correspondingly, the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically includes: judging whether the number of independent visitors in a preset time period exceeds a preset expected value or not, if so, judging that the network is not connected through the networking application; otherwise, the network is connected through the networking application.
Optionally, the network connection data includes: the request for obtaining the connection policy comprises: device information of a device in which the connection package is located;
correspondingly, the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically includes: judging whether the independent visitor information contains the equipment information or not, and if so, judging not to connect the network through the networking application; otherwise, the network is connected through the networking application.
Optionally, the network connection data includes: connecting records of each network hotspot; the request for obtaining the connection policy comprises: hot spot information of a network hot spot to be connected;
correspondingly, the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically includes: searching the connection records of the network hotspots to be connected in the connection records of the network hotspots according to the hotspot information of the network hotspots to be connected, calculating the connection success rate of the network hotspots to be connected according to the searched connection records, judging whether the connection success rate is greater than a preset success rate or not, and judging that the network is connected through the networking application if the connection success rate is greater than the preset success rate; otherwise, the network is not connected through the networking application.
Optionally, the determining, according to the currently recorded network connection data, whether to connect to the network through the networking application further includes: determining the user type of the current user, judging whether the user type is a faithful user, and if so, judging that the network is connected through the networking application; otherwise, the network is not connected through the networking application.
Optionally, the determining, according to the currently recorded network connection data, whether to connect to the network through the networking application further includes: acquiring current time, judging whether the current time is within a preset time range, and if so, judging that the network is connected through the networking application; otherwise, the network is not connected through the networking application. .
Optionally, the obtaining the connection request includes: obtaining backspacing strategy information;
correspondingly, the generating a connection policy and returning the connection policy to the connection program package specifically include: and generating a connection strategy and a rollback strategy and returning the connection strategy and the rollback strategy to the connection program package.
Optionally, after generating the connection policy and returning the connection policy to the connection package, the method further includes: and receiving a request for obtaining the backspacing strategy sent by the connection program package, generating the backspacing strategy and returning the backspacing strategy to the connection program package.
Optionally, generating the fallback policy includes: determining the user type of the current user, and generating a backspacing strategy for automatically backspacing to the host application or prompting the user to backspace to the host application when the user type is a faithful user; and when the user type is a non-faithful user, generating a rollback strategy for automatically rolling back to the host application.
In a third aspect, the present invention provides a network connection method, including:
the server records network connection data of the networking application in real time;
when the connection program package receives a connection request from a user, generating a request for acquiring a connection strategy and sending the request to a server;
the server generates a connection strategy according to the currently recorded network connection data and returns the connection strategy to the connection program package, wherein the connection strategy comprises connection information for connecting the network through host application or connection information for connecting the network through networking application;
the connection program package is connected with the network according to the connection strategy;
wherein the connectivity package is provided by the networking application and is located in a host application.
In a fourth aspect, the present invention provides a network connection device, including:
one or more processors, storage devices to store one or more programs;
the one or more programs, when executed by the one or more processors, implement the method of any of the first and second aspects of the invention.
In a fifth aspect, the present invention proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first and second aspects of the present invention.
The invention has the advantages that:
in the invention, when the connection program package receives the connection request of the user, the connection strategy is acquired from the server, so that the accurate jump of the connection program package can be realized, the full utilization of networking application is facilitated, the utilization rate of the networking application is improved, and the joint value between the applications is realized; moreover, the problems that the waiting time of a user is prolonged and the user experience is poor due to the fact that the user jumps to the networking application when the success rate of the network hotspot connection is not high can be avoided, and meanwhile, the bad use bias of the user on the networking application is also avoided; moreover, a rollback strategy is obtained from the server side by combining the connection program package, so that different rollback modes are determined according to different users, the user experience can be improved, and the joint value between applications is realized; and the problem that the non-faithful user does not return to the host application after the network connection is successful, so that the click rate of the host application is reduced can be effectively solved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 illustrates a network connection method for a client according to an embodiment of the present invention;
fig. 2 illustrates a network connection method for a server side according to an embodiment of the present invention;
FIG. 3 illustrates a network connection method according to an embodiment of the present invention;
fig. 4 illustrates a network connection system according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
According to an embodiment of the present invention, a network connection method for a client is provided, as shown in fig. 1, including:
step 101: the connection program package receives a connection request from a user, generates a connection strategy acquisition request according to the received connection request and sends the connection strategy acquisition request to the server;
in the present invention, the connectivity package is provided by the networking application and is located in the host application; the networking application is specifically an application with a network connection function, such as a WIFI housekeeper; the host application is specifically an application that needs to be available after connecting to the network, for example, today's first line.
According to the embodiment of the present invention, the request for obtaining the connection policy is generated according to the received connection request, specifically: generating a connection strategy acquisition request according to the equipment information of the equipment where the equipment is located, the network hotspot information contained in the received connection request and the like; the device information is preferably a device unique identifier, and the network hotspot information is preferably a hotspot name.
Optionally, the request for obtaining the connection policy further includes a user type of the current user, or further includes user information of the current user and host application information.
The user information includes, but is not limited to, a user name, and the host application information includes, but is not limited to, a host application name.
Step 102: the connection program package receives a connection strategy returned by the server, wherein the connection strategy comprises connection information for connecting the network through the host application or connection information for connecting the network through the networking application;
step 103: the connectivity package connects to the network according to the received connectivity policy.
Specifically, the connection package connects to the network through the host application or connects to the network through the networking application according to the received connection policy.
Optionally, in step 101, the obtaining of the connection policy request includes: obtaining backspacing strategy information;
correspondingly, when the connection policy includes connection information for connecting the network through the networking application:
in step 102, the connection program package receives a connection policy returned by the server, specifically: the connection program package receives a connection strategy and a rollback strategy returned by the server;
after the connection package connects to the network according to the received connection policy in step 103, the method further includes: the linker package backs off to the host application according to the received back-off policy.
Optionally, when the connection policy includes connection information for connecting to the network through the networking application, after the connection package connects to the network according to the received connection policy in step 103, the method further includes:
and the connection program package sends a request for obtaining the backspacing strategy to the server, receives the backspacing strategy returned by the server and backspacing to the host application according to the received backspacing strategy.
According to the embodiment of the present invention, backing to the host application according to the received rollback policy specifically includes:
automatically rolling back to the host application; or prompting the user to return to the host application, and returning to the host application when receiving the trigger information of the user.
According to an embodiment of the present invention, when the connection policy includes connection information for connecting the network through the networking application, after the step 103 of successfully connecting the network according to the received connection policy, the method further includes: and jumping to a page specified by the networking application.
The page designated by the networking application can be set according to the requirement, for example, a certain advertisement page.
In the invention, the connection strategy is acquired from the server side through the connection program package, so that not only can the accurate jump of the connection program package be realized, but also the utilization rate of networking application can be improved; and obtaining a rollback strategy from the server through the connection program package so as to determine different rollback modes according to different users and improve user experience.
According to an embodiment of the present invention, there is also provided a network connection method for a server, as shown in fig. 2, including:
step 201: the server records network connection data of the networking application in real time;
the network connection data includes independent Visitor (UV) information of networking application, the number of independent visitors, connection records of network hotspots, and the like.
In the present invention, a computer or a device that has accessed a networking application is a visitor, and the same visitor is recorded only once within 24 hours (00:00-24: 00).
Step 202: and when the server receives a request for acquiring the connection strategy, which is sent by the connection program package, the server generates the connection strategy according to the currently recorded network connection data and returns the connection strategy to the connection program package for the connection program package to carry out network connection.
The connection strategy request comprises equipment information of equipment where the connection program package is located and hotspot information of a network hotspot to be connected;
optionally, the request for obtaining the connection policy further includes a user type of the current user, or further includes user information of the current user and host application information.
In the present invention, the connectivity package is provided by the networking application and is located in the host application.
According to the embodiment of the present invention, in step 202, a connection policy is generated according to the currently recorded network connection data, specifically: judging whether to connect the network through the networking application according to the currently recorded network connection data, and if so, generating a connection strategy for connecting the network through the networking application; otherwise, generating a connection strategy for connecting the network through the host application.
It should be noted that the connection policy includes connection information for connecting to the network through the networking application or connection information for connecting to the network through the host application, and may also include other information, which may be set according to the requirement.
Optionally, judging whether to connect to the network through the networking application according to the currently recorded network connection data specifically includes: judging whether the number of the independent visitors recorded in a preset time period exceeds a preset expected value or not, if so, judging that the network is not connected through the networking application; otherwise, judging to connect the network through the networking application; wherein the preset time period is preferably one day, namely 00:00-24: 00.
Optionally, judging whether to connect to the network through the networking application according to the currently recorded network connection data specifically includes: judging whether the recorded independent visitor information contains equipment information contained in the received connection strategy acquisition request, and if so, judging that the independent visitor information is not connected with the network through networking application; otherwise, judging to connect the network through the networking application.
Optionally, judging whether to connect to the network through the networking application according to the currently recorded network connection data specifically includes: searching a connection record of the network hotspot to be connected in the recorded connection records of each network hotspot according to hotspot information of the network hotspot to be connected contained in the connection strategy request, calculating the connection success rate of the network hotspot to be connected according to the searched connection record, judging whether the connection success rate is greater than a preset success rate, and if so, judging that the network is connected through the networking application; otherwise, the network is not connected through the networking application.
According to the embodiment of the present invention, determining whether to connect to a network through a networking application according to currently recorded network connection data further includes: determining the user type of the current user, judging whether the user type is a faithful user, and if so, judging to connect the network through the networking application; otherwise, the network is not connected through the networking application.
Wherein, determining the user type of the current user comprises:
when the received connection policy acquisition request contains the user type of the current user, reading the user type of the current user in the received connection policy acquisition request;
when the received connection strategy acquisition request contains user information of a current user and host application information, searching user data shared by host applications according to the host application information, and reading a user type corresponding to the user information of the current user from the searched user data; or searching the data of the current user in the searched user data according to the user information of the current user, and evaluating the user type of the current user according to the data of the current user; in the invention, the user types comprise loyalty users and non-loyalty users.
According to the embodiment of the present invention, determining whether to connect to a network through a networking application according to currently recorded network connection data further includes: acquiring current time, judging whether the current time is within a preset time range, and if so, judging that the current time is connected with a network through a networking application; otherwise, judging not to connect the network through the networking application;
for example, it is preset that before 16:00 of a day, a network is connected through a networking application, and after 16:00, the network is not connected through the networking application; the current time is 12:35, which is before 16:00, then a decision is made to connect to the network through the networking application.
It should be noted that the specific process of determining whether to connect to the network through the networking application according to the currently recorded network connection data may be any one or any combination of the above determination processes, and may be set by the user according to the requirement. Preferably, the present invention is a combination of all the above judgment processes.
In the invention, whether the network connection is carried out through the networking application is determined by judging the number of the independent visitors of the networking application, whether the information of the independent visitors contains the equipment information or not and the current time, so that the access amount of the networking application can be improved, the full utilization of the networking application is facilitated, and the utilization rate of the networking application is improved; whether the network connection is carried out through the networking application is determined by judging the user type of the current user, so that the situation that the non-faithful user does not fall back to the host application after the network connection is successful and the click rate of the host application is reduced can be effectively avoided; by judging the connection success rate of the network hotspot, whether network connection is carried out through the networking application is determined, the problems that the waiting time of a user is prolonged and the user experience is poor due to the fact that the user jumps to the networking application when the connection success rate of the network hotspot is not high can be avoided, and meanwhile the bad use bias of the user on the networking application is avoided.
Optionally, the obtaining the connection request further includes: obtaining backspacing strategy information;
correspondingly, the step 202 generates a connection policy and returns the connection policy to the connection program package, specifically: and generating a connection strategy and a rollback strategy and returning the connection strategy and the rollback strategy to the connection program package.
Optionally, after generating the connection policy and returning the connection policy to the connection package in step 202, the method further includes: and receiving a request for obtaining the backspacing strategy sent by the connection program package, generating the backspacing strategy and returning the backspacing strategy to the connection program package.
According to an embodiment of the present invention, generating a fallback policy comprises: determining the user type of the current user, and generating a backspacing strategy for automatically backspacing to the host application or prompting the user to backspace to the host application when the user type is a faithful user; and when the user type is a non-faithful user, generating a rollback strategy for automatically rolling back to the host application.
The process of determining the user type of the user is the same as the method for determining the user type, and is not described herein again.
In the invention, when the user type is a non-faithful user, the backspacing strategy of automatically backspacing to the host application is generated, so that the problem that the click rate of the host application is reduced because the user does not backspace to the host application any more after the network connection is successful can be effectively avoided.
According to an embodiment of the present invention, there is also provided a network connection method, as shown in fig. 3, including:
step 301: the server records network connection data of the networking application in real time;
the network connection data includes independent Visitor (UV) information of networking application, the number of independent visitors, and the like; a networking application is for example WIFI housekeeping.
Step 302: when the connection program package receives a connection request from a user, generating a connection strategy acquisition request according to the received connection request and sending the connection strategy acquisition request to a server;
specifically, when the connection program package receives a connection request from a user, the connection program package generates a connection policy acquisition request according to the device information of the device in which the connection program package is located, the network hotspot information contained in the received connection request, and the like;
optionally, the connection policy obtaining request further includes a user type of the current user, or further includes user information of the current user and host application information;
further, the request for obtaining the connection policy may further include obtaining fallback policy information.
For example, the connection package generates a request for obtaining a connection policy, which contains device information 123456, a network hotspot name wifi1, a user name abc, a host application name jinritotiao, and obtaining rollback policy information.
It is noted that the connectivity package is provided by the networking application and is located in the host application.
Step 303: the server generates a connection strategy according to the currently recorded network connection data and returns the connection strategy to the connection program package;
specifically, the server analyzes the received request for obtaining the connection strategy to obtain all information contained in the request, judges whether the network is connected through the networking application according to the currently recorded network connection data, and generates a connection strategy for connecting the network through the networking application if the network is connected through the networking application; otherwise, generating a connection strategy for connecting the network through the host application.
Further, when the request for obtaining the connection policy includes the information for obtaining the fallback policy, step 303 further includes: and determining the user type of the current user, generating a rollback strategy according to the user type, and returning the rollback strategy and the connection strategy to the connection program package.
For example, the server parses the received request for obtaining the connection policy to obtain device information 123456, a network hotspot name wifi1, a user name abc of the current user, an application name jinrititioutiao of the host application information, and obtaining rollback policy information; judging that the number of the independent visitors is less than 900 thousands of preset expected values according to the number of the currently recorded independent visitors of the networking application, which is 400 thousands; determining 123456 that the connection policy acquisition request does not contain the device information according to the currently recorded independent visitor information of the networking application; searching a historical connection record corresponding to the network hotspot according to the network hotspot name wifi1 contained in the connection strategy acquisition request, and counting that the connection power of the network hotspot wifi1 is 85% and is greater than the preset success rate 80% according to the searched historical connection record; searching user data shared by the host application according to the host application name jinritouriao contained in the connection strategy acquisition request, and reading the user type corresponding to the user name abc in the searched user data as an inactive user; according to the current time 12:35, which is before 16:00 in a set day; and if the network connection is judged to be carried out through the networking application, generating a connection strategy for carrying out the network connection through the connection function of the networking application and generating a rollback strategy for automatically rolling back to the host application.
Step 304: the connection program package is connected with the network according to the received connection strategy;
specifically, the connection package connects to the network through the host application or connects to the network through the networking application according to the received connection policy.
According to the embodiment of the present invention, step 304 is followed by: the linker package is rolled back to the host application according to a rollback policy.
For example, the connectivity package connects to the network hotspot WiFi1 through a WiFi housekeeping networking application according to the connection policy received above, and automatically backs to the host application jinritotiao after the network connection is successful according to the fallback policy received above.
According to an embodiment of the present invention, there is also provided a network connection system, as shown in fig. 4, including: a linker package and a server, wherein the linker package is provided by the networking application and is located in the host application;
the connection package includes:
the first receiving module is used for receiving a connection request from a user;
the first generation module is used for generating a request for acquiring a connection strategy according to the connection request received by the first receiving module;
the first sending module is used for sending the connection strategy acquisition request generated by the first generating module to the server;
the first receiving module is further used for receiving a connection policy returned by the server, wherein the connection policy comprises connection information for connecting the network through the host application or connection information for connecting the network through the networking application;
and the connection module is used for connecting the network according to the connection strategy received by the first receiving module.
The server includes:
the recording module is used for recording network connection data of networking application in real time;
the second receiving module is used for receiving a request for acquiring the connection strategy, which is sent by the connection program package;
the second generating module is used for generating a connection strategy according to the network connection data currently recorded by the recording module when the second receiving module receives the request for acquiring the connection strategy, which is sent by the connection program package;
and the second sending module is used for returning the connection strategy generated by the second generating module to the connection program package.
According to an embodiment of the present invention, the first generating module is specifically configured to: and generating a request for acquiring a connection strategy according to the equipment information of the equipment where the application program package is positioned and the network hotspot information contained in the connection request received by the first receiving module.
According to an embodiment of the invention, the connectivity package further comprises: a rollback module;
optionally, the obtaining the connection policy request further includes: obtaining backspacing strategy information;
correspondingly, when the connection policy includes connection information for connecting the network through the networking application:
the first receiving module is specifically configured to: receiving a connection request from a user, and receiving a connection strategy and a rollback strategy returned by a server;
and the backspacing module is used for backspacing to the host application according to the backspacing strategy received by the first receiving module.
Optionally, when the connection policy includes connection information for connecting to a network through a networking application, the first sending module is further configured to send a request for obtaining a fallback policy to the server after the connection module connects to the network according to the networking application;
correspondingly, the first receiving module is further configured to receive a rollback policy returned by the server;
correspondingly, the rollback module is used for backing to the host application according to the rollback strategy received by the first receiving module.
According to an embodiment of the present invention, the rollback module is specifically configured to: automatically backing to the host application according to the backing strategy received by the first receiving module; or prompting the user to return to the host application, and returning to the host application when receiving the trigger information of the user.
According to an embodiment of the invention, the connectivity package further comprises: a skip module;
and the jumping module is used for jumping to a page specified by the networking application after the connection module successfully connects the network according to the connection strategy when the connection strategy comprises the connection information of the network connected by the networking application.
According to an embodiment of the present invention, the second generating module specifically includes: the judgment submodule and the generation submodule, wherein:
the judging submodule is used for judging whether to connect the network through the networking application according to the network connection data currently recorded by the recording module;
the generation submodule is used for generating a network connection strategy through the networking application when the judgment submodule judges that the network is connected through the networking application; and when the judging submodule judges that the network is not connected through the networking application, generating a connection strategy for connecting the network through the host application.
According to an embodiment of the present invention, the network connection data includes: independent visitor information, the number of independent visitors, connection records of network hotspots, and the like of networking applications;
optionally, the judgment sub-module is specifically configured to: judging whether the number of independent visitors in a preset time period exceeds a preset expected value or not, if so, judging that the network is not connected through the networking application; otherwise, judging to connect the network through the networking application; wherein the preset time period is preferably one day, namely 00:00-24: 00.
Optionally, the judgment sub-module is specifically configured to: judging whether the independent visitor information recorded by the recording module contains equipment information contained in the connection strategy acquisition request received by the second receiving module, and if so, judging that the independent visitor information is not connected with the network through the networking application; otherwise, judging to connect the network through the networking application;
optionally, the judgment sub-module is specifically configured to: searching connection records of the network hotspots to be connected in the recorded connection records of the network hotspots according to the hotspot information of the network hotspots to be connected, calculating the connection success rate of the network hotspots to be connected according to the searched connection records, judging whether the connection success rate is greater than a preset success rate or not, and judging that the network is connected through the networking application if the connection success rate is greater than the preset success rate; otherwise, the network is not connected through the networking application.
According to an embodiment of the invention, the server further comprises: the determination module is used for determining the number of the modules,
the determining module is used for determining the type of the current user;
correspondingly, the judgment submodule is further configured to: judging whether the user type determined by the determining module is a faithful user, if so, judging to connect the network through the networking application; otherwise, the network is not connected through the networking application.
According to an embodiment of the present invention, the determining module is specifically configured to:
when the connection policy acquisition request received by the second receiving module contains the user type of the current user, reading the user type of the current user from the connection policy acquisition request received by the second receiving module;
when the connection policy acquisition request received by the second receiving module contains user information of the current user and host application information, searching user data shared by the host application according to the host application information, and reading a user type corresponding to the user information of the current user from the searched user data; or searching the data of the current user in the searched user data according to the user information of the current user, and evaluating the user type of the current user according to the data of the current user; in the invention, the user types comprise loyalty users and non-loyalty users.
According to an embodiment of the invention, the server further comprises: an acquisition module;
the acquisition module is used for acquiring the current time;
correspondingly, the judging submodule is also used for judging whether the current time is within a preset time range, and if so, judging that the current time is connected with the network through the networking application; otherwise, the network is not connected through the networking application.
According to an embodiment of the invention, the server further comprises: a third generation module;
optionally, the obtaining the connection request includes: obtaining backspacing strategy information;
correspondingly, the third generation module is used for generating a rollback strategy when the second generation module generates the connection strategy;
correspondingly, the second sending module is specifically configured to: and returning the connection strategy generated by the second generation module and the rollback strategy generated by the third generation module to the connection program package.
Optionally, the second receiving module is further configured to receive a request for obtaining the fallback policy sent by the connection package after the second sending module sends the connection policy to the connection package;
correspondingly, the third generating module is used for generating a rollback policy when the second receiving module receives a request for obtaining the rollback policy sent by the connection program package;
correspondingly, the second sending module is further configured to: and sending the rollback strategy generated by the third generation module to the connection program package.
According to an embodiment of the invention, the third generating module is specifically configured to: determining the user type of the current user, and generating a backspacing strategy for automatically backspacing to the host application or prompting the user to backspace to the host application when the user type is a faithful user; and when the user type is a non-faithful user, generating a rollback strategy for automatically rolling back to the host application.
According to an embodiment of the present invention, there is also provided a network connection device, including:
one or more processors, storage devices to store one or more programs;
the steps of the network connection method as described above are implemented when the one or more programs are executed by the one or more processors.
According to an embodiment of the present invention, a computer-readable storage medium is also proposed, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the network connection method as described above.
In the invention, when the connection program package receives the connection request of the user, the connection strategy is acquired from the server, so that the accurate jump of the connection program package can be realized, the full utilization of networking application is facilitated, the utilization rate of the networking application is improved, and the joint value between the applications is realized; moreover, the problems that the waiting time of a user is prolonged and the user experience is poor due to the fact that the user jumps to the networking application when the success rate of the network hotspot connection is not high can be avoided, and meanwhile, the bad use bias of the user on the networking application is also avoided; moreover, a rollback strategy is obtained from the server side by combining the connection program package, so that different rollback modes are determined according to different users, the user experience can be improved, and the joint value between applications is realized; and the problem that the non-faithful user does not return to the host application after the network connection is successful, so that the click rate of the host application is reduced can be effectively solved.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (18)

1. A network connection method, comprising:
the connection program package receives a connection request from a user, generates a connection strategy acquisition request according to the connection request and sends the connection strategy acquisition request to the server; the generating and acquiring a connection policy request according to the received connection request specifically includes: generating a connection strategy acquisition request according to the equipment information of the equipment where the equipment is located and the network hotspot information contained in the received connection request;
the connection program package receives a connection strategy returned by the server, wherein the connection strategy comprises connection information of a host application connection network or connection information of a networking application connection network;
the connection program package is connected with the network according to the connection strategy;
wherein the connectivity package is provided by the networking application and is located in the host application.
2. The method of claim 1, wherein obtaining the connection policy request comprises: obtaining backspacing strategy information;
when the connection policy includes connection information to connect the network through the networking application:
the connection program package receives the connection strategy returned by the server, and specifically comprises the following steps: the connection program package receives a connection strategy and a rollback strategy returned by the server;
after the connection program package is connected with the network according to the connection strategy, the method further comprises the following steps: and the connection program package backs to the host application according to the backspacing strategy.
3. The method of claim 1, wherein when the connection policy includes connection information for connecting to a network via a networking application, after the connection package connects to the network according to the connection policy, further comprising:
the connection program package sends a request for obtaining a backspacing strategy to the server and receives the backspacing strategy returned by the server;
and the connection program package backs to the host application according to the backspacing strategy.
4. The method according to claim 2 or 3, wherein the connection package is rolled back to the host application according to the rolling-back policy, specifically:
the linker package automatically backs up to the host application;
or the connecting program package prompts the user to return to the host application, and returns to the host application when receiving the trigger information of the user.
5. The method of claim 1, wherein when the connection policy includes connection information for connecting to a network via a networking application, after the connection to the network according to the connection policy is successful, further comprising: and jumping to a page specified by the networking application.
6. A network connection method, comprising:
the server records network connection data of the networking application in real time;
when the server receives a request for acquiring a connection strategy sent by a connection program package, generating a connection strategy according to the currently recorded network connection data and returning the connection strategy to the connection program package for the connection program package to carry out network connection; the connection policy includes connection information to connect the network through the host application or connection information to connect the network through the networking application;
wherein the connectivity package is provided by the networking application and is located in a host application; the generating of the request for obtaining the connection policy specifically comprises: and generating a request for acquiring a connection strategy according to the equipment information of the equipment where the connection program package is positioned and the network hotspot information contained in the received connection request.
7. The method according to claim 6, wherein the generating a connection policy according to the currently recorded network connection data specifically comprises: judging whether the network is connected through the networking application or not according to the currently recorded network connection data, and if so, generating a connection strategy for connecting the network through the networking application; otherwise, generating a connection strategy for connecting the network through the host application.
8. The method of claim 7, wherein the network connection data comprises: a number of independent visitors to the networked application;
the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically comprises the following steps: judging whether the number of the independent visitors in a preset time period exceeds a preset expected value or not, if so, judging not to connect the network through the networking application; otherwise, the network is connected through the networking application.
9. The method of claim 7, wherein the network connection data comprises: the request for obtaining the connection policy comprises: device information of a device in which the connection package is located;
the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically comprises the following steps: judging whether the independent visitor information contains the equipment information or not, and if so, judging not to connect the network through the networking application; otherwise, the network is connected through the networking application.
10. The method of claim 7, wherein the network connection data comprises: connecting records of each network hotspot; the request for obtaining the connection policy comprises: hot spot information of a network hot spot to be connected;
the judging whether to connect the network through the networking application according to the currently recorded network connection data specifically comprises the following steps: searching the connection records of the network hotspots to be connected in the connection records of the network hotspots according to the hotspot information of the network hotspots to be connected, calculating the connection success rate of the network hotspots to be connected according to the searched connection records, judging whether the connection success rate is greater than a preset success rate or not, and judging that the network is connected through the networking application if the connection success rate is greater than the preset success rate; otherwise, the network is not connected through the networking application.
11. The method according to any of claims 8-10, wherein said determining whether to connect to the network via the networking application based on the currently recorded network connection data further comprises: determining the user type of the current user, judging whether the user type is a faithful user, and if so, judging that the network is connected through the networking application; otherwise, the network is not connected through the networking application.
12. The method according to any of claims 8-10, wherein said determining whether to connect to the network via the networking application based on the currently recorded network connection data further comprises: acquiring current time, judging whether the current time is within a preset time range, and if so, judging that the network is connected through the networking application; otherwise, the network is not connected through the networking application.
13. The method of claim 6, wherein obtaining the connection request comprises: obtaining backspacing strategy information;
the generating a connection policy and returning the connection policy to the connection program package specifically include: and generating a connection strategy and a rollback strategy and returning the connection strategy and the rollback strategy to the connection program package.
14. The method of claim 6, wherein after generating the connection policy and returning to the connectivity package, further comprising: and receiving a request for obtaining the backspacing strategy sent by the connection program package, generating the backspacing strategy and returning the backspacing strategy to the connection program package.
15. The method of claim 13 or 14, wherein generating a fallback policy comprises:
determining the user type of the current user, and generating a backspacing strategy for automatically backspacing to the host application or prompting the user to backspace to the host application when the user type is a faithful user; and when the user type is a non-faithful user, generating a rollback strategy for automatically rolling back to the host application.
16. A network connection method, comprising:
the server records network connection data of the networking application in real time;
when the connection program package receives a connection request from a user, generating a request for acquiring a connection strategy and sending the request to a server; the request for generating and acquiring the connection strategy specifically comprises the following steps: generating a connection strategy acquisition request according to the equipment information of the equipment where the equipment is located and the network hotspot information contained in the received connection request;
the server generates a connection strategy according to the currently recorded network connection data and returns the connection strategy to the connection program package, wherein the connection strategy comprises connection information for connecting the network through host application or connection information for connecting the network through networking application;
the connection program package is connected with the network according to the connection strategy;
wherein the connectivity package is provided by the networking application and is located in a host application.
17. A network connection device, comprising:
one or more processors, storage devices to store one or more programs;
the one or more programs, when executed by the one or more processors, implement the method of any of claims 1-15.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-15.
CN201810670119.8A 2018-06-26 2018-06-26 Network connection method, equipment and storage medium Active CN108566440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810670119.8A CN108566440B (en) 2018-06-26 2018-06-26 Network connection method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810670119.8A CN108566440B (en) 2018-06-26 2018-06-26 Network connection method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108566440A CN108566440A (en) 2018-09-21
CN108566440B true CN108566440B (en) 2021-06-15

Family

ID=63554470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810670119.8A Active CN108566440B (en) 2018-06-26 2018-06-26 Network connection method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108566440B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245938B (en) * 2018-10-10 2021-06-25 上海尚往网络科技有限公司 Method and equipment for executing resource configuration operation of user
CN109491792B (en) * 2018-11-13 2020-12-25 北京车和家信息技术有限公司 Page rollback method, device and gateway

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014183796A1 (en) * 2013-05-17 2014-11-20 Telefonaktiebolaget Lm Ericsson (Publ) Advanced policy and charging control methods, network nodes and computer programs for sponsored data connectivity by peers
CN105162777A (en) * 2015-08-13 2015-12-16 腾讯科技(深圳)有限公司 Wireless network login method and device
CN105808725A (en) * 2016-03-08 2016-07-27 腾讯科技(深圳)有限公司 Method and apparatus for processing application information
CN105808291A (en) * 2016-03-03 2016-07-27 腾讯科技(深圳)有限公司 Application connection method and device for terminal
CN106162549A (en) * 2015-05-19 2016-11-23 中兴通讯股份有限公司 The processing method and processing device of access network
CN106878935A (en) * 2015-12-11 2017-06-20 北京奇虎科技有限公司 A kind of sharing method of shop WiFi network, server and device
CN107071772A (en) * 2016-07-29 2017-08-18 腾讯科技(深圳)有限公司 WLAN connection method and mobile terminal
CN107864500A (en) * 2017-08-31 2018-03-30 上海连尚网络科技有限公司 A kind of method and apparatus for connecting into power information for being used to determine WAP
CN107864503A (en) * 2017-10-12 2018-03-30 上海连尚网络科技有限公司 Connection method, equipment and the computer-readable recording medium of WLAN
CN107969002A (en) * 2017-10-13 2018-04-27 上海连尚网络科技有限公司 Wifi hot spots sharing method, equipment and storage medium
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9923764B2 (en) * 2014-11-19 2018-03-20 Parallel Wireless, Inc. HealthCheck access point
CN106850506A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 A kind of method and apparatus that WiFi is shared between application good friend
CN106507298A (en) * 2016-10-18 2017-03-15 武汉斗鱼网络科技有限公司 A kind of shared method and system of wifi
CN106412884B (en) * 2016-11-24 2020-02-04 北京小米移动软件有限公司 WIFI connection management method and device
CN106792674A (en) * 2016-12-19 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and WiFi sharing methods and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014183796A1 (en) * 2013-05-17 2014-11-20 Telefonaktiebolaget Lm Ericsson (Publ) Advanced policy and charging control methods, network nodes and computer programs for sponsored data connectivity by peers
CN106162549A (en) * 2015-05-19 2016-11-23 中兴通讯股份有限公司 The processing method and processing device of access network
CN105162777A (en) * 2015-08-13 2015-12-16 腾讯科技(深圳)有限公司 Wireless network login method and device
CN106878935A (en) * 2015-12-11 2017-06-20 北京奇虎科技有限公司 A kind of sharing method of shop WiFi network, server and device
CN105808291A (en) * 2016-03-03 2016-07-27 腾讯科技(深圳)有限公司 Application connection method and device for terminal
CN105808725A (en) * 2016-03-08 2016-07-27 腾讯科技(深圳)有限公司 Method and apparatus for processing application information
CN107071772A (en) * 2016-07-29 2017-08-18 腾讯科技(深圳)有限公司 WLAN connection method and mobile terminal
CN107864500A (en) * 2017-08-31 2018-03-30 上海连尚网络科技有限公司 A kind of method and apparatus for connecting into power information for being used to determine WAP
CN107864503A (en) * 2017-10-12 2018-03-30 上海连尚网络科技有限公司 Connection method, equipment and the computer-readable recording medium of WLAN
CN107969002A (en) * 2017-10-13 2018-04-27 上海连尚网络科技有限公司 Wifi hot spots sharing method, equipment and storage medium
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
iOS应用跳转;面壁者LOGIC;《CSDN博客》;20180523;第1-2页 *

Also Published As

Publication number Publication date
CN108566440A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN102685018B (en) A kind of method of network instant communication information processing, system and instant communication device
CN103593419A (en) Method, device, server and system for inquiring data
CN112822298B (en) Business service capacity expansion and reduction method, device, medium and electronic equipment
CN105630977B (en) Application program recommended method, apparatus and system
CN102467624B (en) Method and system for software license recovery and automatic reapplication
CN108566440B (en) Network connection method, equipment and storage medium
CN105469502A (en) Intelligent oiling method and terminal
CN105847447A (en) Message push method and device
CN105376192A (en) Prompting method and prompting device for logging-on account number
CN107993106B (en) Electronic invoice generation method and device
TW201732694A (en) Task allocation method, system and device
CN107800901A (en) User's call processing method, device, computer equipment and storage medium
CN110018996A (en) A kind of the snapshot rollback method and relevant apparatus of distributed memory system
CN111382008A (en) Virtual machine data backup method, device and system
CN108234141B (en) Directional traffic processing method and server
US20090254435A1 (en) Method for measuring advertisement events, advertisement information system, and relevant devices
US20110055229A1 (en) System and method for generating a valuation of revenue opportunity for a keyword from a valuation of online sessions on a website from user activities following a keyword search
CN111385294B (en) Data processing method, system, computer device and storage medium
CN104901939A (en) Multimedia file play method, terminal and server
CN113256360B (en) Invoice processing control method, device, equipment and storage medium based on Ukey cabinet
CN113157756B (en) Interactive data statistics method and device, electronic equipment and storage medium
CN108989063B (en) Group account data processing method, device and equipment and readable storage medium
CN106060133A (en) Application push method and application server
CN112799872A (en) Erasure code encoding method and device based on key value pair storage system
CN103796042A (en) Resource information pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210402

Address after: 200131 Zone E, 9th floor, No.1 Lane 666, zhangheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Shanghai Shangxiang Network Technology Co.,Ltd.

Address before: 312599 Affiliated Building B-2, 3rd Floor, Jiayi Plaza, 127 Renmin East Road, Nanming Street, Xinchang County, Shaoxing City, Zhejiang Province

Applicant before: LIANSHANG (XINCHANG) NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant