CN108156220B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN108156220B
CN108156220B CN201711262144.4A CN201711262144A CN108156220B CN 108156220 B CN108156220 B CN 108156220B CN 201711262144 A CN201711262144 A CN 201711262144A CN 108156220 B CN108156220 B CN 108156220B
Authority
CN
China
Prior art keywords
target
domain name
message
character
name 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
CN201711262144.4A
Other languages
Chinese (zh)
Other versions
CN108156220A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711262144.4A priority Critical patent/CN108156220B/en
Publication of CN108156220A publication Critical patent/CN108156220A/en
Application granted granted Critical
Publication of CN108156220B publication Critical patent/CN108156220B/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/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a communication method and apparatus, wherein the method includes: acquiring a target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation; acquiring target message information carried by the target domain name request message; extracting target parameters based on the target message information; and executing target operation according to the target parameters. According to the method and the device, the target parameters are extracted from the target domain name request message, so that the function of an operating system is enhanced, and the user experience of the terminal is improved.

Description

Communication method and device
Technical Field
The present disclosure relates to the field of communications, and in particular, to a communication method and apparatus.
Background
With the development of computer communication technology, various application software brings excellent communication experience to people.
In the related art, the jump between applications may be realized by adding an API (Application Programming Interface). For example, in the case of application a adding a corresponding API interface, the user triggers a link in application a for jumping to another application, through which a jump to an inner page of another application, such as application B, can be made. However, if the API interface is not added to the application a, the page jump function between the applications is not available, which affects the user experience of the terminal.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a communication method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a communication method, where the method is used for a terminal, and the method includes:
acquiring a target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation;
acquiring target message information carried by the target domain name request message;
extracting target parameters based on the target message information;
and executing target operation according to the target parameters.
Optionally, the method further comprises:
when a preset trigger condition is met, acquiring the target message information;
converting target message characters into target domain name characters according to a corresponding relation between preset message characters and domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name according to the target domain name character according to a preset legal domain name format;
generating the target domain name request message based on the target domain name;
and sending the target domain name request message to an operating system.
Optionally, the generating the target domain name request message based on the target domain name includes:
if the total number of the characters of the target domain name exceeds a preset value, compressing the target domain name;
and generating a target domain name request message based on the compressed target domain name.
Optionally, the obtaining the target domain name request message includes:
and acquiring the target domain name request message by a preset component in the operating system.
Optionally, the preset assembly comprises any one of:
presetting a domain name system or a firewall.
Optionally, the obtaining target message information carried by the target domain name request message includes:
acquiring target message information carried by the target domain name request message by the preset domain name system; or
And after the preset domain name system or the firewall forwards the target domain name request message to a preset message service, the preset message service acquires target message information carried by the target domain name request message.
Optionally, the obtaining target message information carried by the target domain name request message includes:
converting a target domain name character into a target message character according to a corresponding relation between preset message characters and domain name characters, wherein the target domain name character is a character included in the target domain name request message;
and obtaining the target message information indicated by the target message characters.
Optionally, the method further comprises:
checking the target domain name character to obtain a checking result;
and if the verification result is that the verification is passed, executing the step of converting the target domain name character into the target message character.
Optionally, the checking the target domain name character to obtain a checking result includes:
and if the target domain name character meets a preset check formula, determining that the check result is that the check is passed, otherwise, determining that the check result is that the check is not passed.
Optionally, the executing the target operation according to the target parameter includes:
and opening the target application according to the target parameters, wherein the target parameters at least comprise the identity of the target application.
Optionally, the opening the target application according to the target parameter includes:
determining whether the target application is installed locally or not according to the identity of the target application;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target parameters through a preset application platform.
According to a second aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web server, the method including:
converting the target message information into target domain name characters;
generating target domain name information based on the target domain name characters;
placing the target domain name request information or a target domain name message generated based on the target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating a terminal to send the target domain name request message to an operating system of the terminal when the terminal detects that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
Optionally, the method further comprises:
and sending the target webpage carrying the target domain name information or one item of target domain name request information generated based on the target domain name information and the virtual domain name request indication information to the terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web server, the method including:
the method comprises the steps of placing target message information in a target webpage and setting virtual domain name request indicating information in the target webpage, wherein the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and sending the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
Optionally, the method further comprises:
and sending the target webpage carrying the target message information and the virtual domain name request information to the terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web client, the method including:
when a preset trigger condition is detected, acquiring target message information from a webpage according to virtual domain name request indication information in the webpage;
converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
and sending the target domain name request message to an operating system of a terminal provided with the webpage client.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a communication apparatus, the apparatus being used for a terminal, the apparatus comprising:
a first obtaining module, configured to obtain a target domain name request message, where the target domain name request message carries target message information, and the target message is used to instruct an operating system to execute a target operation, where the target domain name request conforms to a format requirement of a domain name request, the domain name request is used to execute a first operation, and the target operation is an operation other than the first operation;
the second acquisition module is configured to acquire target message information carried by the target domain name request message;
an extraction module configured to extract a target parameter based on the target message information;
an execution module configured to execute a target operation according to the target parameter.
Optionally, the apparatus further comprises:
the third acquisition module is configured to acquire the target message information when a preset trigger condition is met;
the conversion module is configured to convert a target message character into a target domain name character according to a corresponding relation between preset message characters and domain name characters, wherein the target message character is a character included in the target message information;
the first generation module is configured to generate a target domain name according to the target domain name characters in a preset legal domain name format;
a second generation module configured to generate the target domain name request message based on the target domain name;
a sending module configured to send the target domain name request message to an operating system.
Optionally, the second generating module includes:
a compression sub-module configured to compress the target domain name if a total number of characters of the target domain name exceeds a preset value;
a generation sub-module configured to generate a target domain name request message based on the compressed target domain name.
Optionally, the first obtaining module includes:
and the first acquisition sub-module is configured to acquire the target domain name request message by a preset component in the operating system.
Optionally, the preset assembly comprises any one of:
presetting a domain name system or a firewall.
Optionally, the second obtaining module includes any one of the following sub-modules:
the second obtaining sub-module is configured to obtain target message information carried by the target domain name request message by the preset domain name system;
and the third obtaining sub-module is configured to obtain the target message information carried by the target domain name request message by the preset message service after the preset domain name system or the firewall forwards the target domain name request message to the preset message service.
Optionally, the second obtaining module includes:
a conversion sub-module configured to convert a target domain name character into a target message character according to a correspondence between preset message characters and domain name characters, the target domain name character being a character included in the target domain name request message;
a fourth obtaining sub-module configured to obtain the target message information indicated by the target message characters.
Optionally, the apparatus further comprises:
the checking module is configured to check the target domain name character to obtain a checking result;
and the control module is configured to control the conversion sub-module to convert the target domain name character into the target message character if the verification result is that the verification is passed.
Optionally, the verification module includes:
the verification sub-module is configured to determine that the verification result is that verification passes if the target domain name characters meet a preset verification formula, and otherwise determine that the verification result is that verification fails.
Optionally, the execution module includes:
and the execution submodule is configured to open a target application according to the target parameter, wherein the target parameter at least comprises the identity of the target application.
Optionally, the execution submodule includes:
a determining unit configured to determine whether the target application is installed locally according to the identity of the target application;
the first execution unit is configured to download and install the target application if the target application is not installed locally;
and the second execution unit is configured to open the target application according to the target parameter through a preset application platform.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a communication apparatus applied to a web server, the apparatus including:
a second conversion module configured to convert the target message information into target domain name characters;
a third generation module configured to generate target domain name information based on the target domain name characters;
a first setting module, configured to place the target domain name request information or a target domain name message generated based on the target domain name information in a target webpage and set virtual domain name request indication information in the target webpage, where the virtual domain name request indication information is used to indicate a terminal to send the target domain name request message to an operating system of the terminal when detecting that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
Optionally, the apparatus further comprises:
a second sending module, configured to send the target webpage carrying the target domain name information or one of target domain name request messages generated based on the target domain name information and the virtual domain name request indication information to the terminal.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a communication apparatus, applied to a web server, the apparatus including:
the second setting module is configured to place target message information in a target webpage and set virtual domain name request indication information in the target webpage, wherein the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and send the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
Optionally, the apparatus further comprises:
a third sending module, configured to send the target webpage carrying the target message information and the virtual domain name request information to the terminal.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a communication apparatus applied to a web client, the apparatus including:
the third acquisition module is configured to acquire target message information from a webpage according to virtual domain name request indication information in the webpage when a preset trigger condition is detected;
a third conversion module configured to convert target message characters into target domain name characters, the target message characters being characters included in the target message information;
a fourth generation module configured to generate a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
and the third sending module is configured to send the target domain name request message to an operating system of the terminal provided with the webpage client.
According to a ninth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the communication method according to any one of the first, second, third or fourth aspects.
According to a tenth aspect of embodiments of the present disclosure, there is provided a communication apparatus, the apparatus being for a terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation;
acquiring target message information carried by the target domain name request message;
extracting target parameters based on the target message information;
and executing target operation according to the target parameters.
According to an eleventh aspect of the embodiments of the present disclosure, there is provided a communication apparatus, where the apparatus is used for a web server, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
converting the target message information into target domain name characters;
generating and generating target domain name information based on the target domain name corresponding to the target domain name characters;
placing the target domain name request information or a target domain name message generated based on the target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating a terminal to send the target domain name request message to an operating system of the terminal when the terminal detects that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
According to a twelfth aspect of the embodiments of the present disclosure, there is provided a communication apparatus, where the apparatus is used for a web server, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the method comprises the steps of placing target message information in a target webpage and setting virtual domain name request indicating information in the target webpage, wherein the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and sending the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
According to a thirteenth aspect of embodiments of the present disclosure, there is provided a communication apparatus for a web client, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a preset trigger condition is detected, acquiring target message information from a webpage according to virtual domain name request indication information in the webpage;
converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
and sending the target domain name request message to an operating system of a terminal provided with the webpage client.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the present disclosure, after acquiring a target domain name request message, a terminal may acquire target message information carried by the target domain name request message, so as to extract a target parameter based on the target message information, and execute a target operation according to the target parameter. In the above process, the target parameter may be extracted through a target domain name request message, so as to instruct the operating system to perform a target operation, where the target domain name request conforms to a format requirement of a domain name request, the domain name request is used to perform a first operation, and the target operation is an operation other than the first operation. Through the process, the function of the operating system is enhanced, and the user experience of the terminal is improved.
In this embodiment of the present disclosure, optionally, the terminal may obtain the target message information when the trigger condition is satisfied, so that characters included in the target message information may be converted into target domain name characters in the following, thereby generating the target domain name request message. The realization is simple and convenient, and the usability is high.
In the embodiment of the present disclosure, after acquiring the target message information, the web client of the terminal may encode characters included in the target message information into target domain name characters. Or the target web page may carry a domain name conversion program, and the domain name conversion program programs characters included in the target message information, so as to obtain a target domain name character sequence. Further, a domain name conversion program carried by the web client or the target web page can generate the target domain name according to a preset legal domain name format by the target domain name characters. And finally, generating a target domain name request message based on the target domain name, and sending the target domain name request message to an operating system. Through the process, the target domain name request message can be automatically generated by a domain name conversion program carried by a webpage client or a target webpage, so that the target message information is borne through the target domain name request message.
In this embodiment of the present disclosure, optionally, when generating the target domain name request message based on the target domain name, if the number of characters of the target domain name exceeds a preset value, the target domain name may be compressed, so that the target domain name request message is generated based on the compressed target domain name. By compressing the target domain name, the number of characters of the target domain name is effectively shortened, and the subsequent generated target domain name request message is conveniently transmitted.
In the embodiment of the present disclosure, after a domain name conversion program carried by a web client or a target web page generates a target domain name request message, the target domain name request message may be acquired by a preset component of an operating system. Optionally, the preset component may be a preset domain name system or a firewall. Through the process, the preset component of the operating system can acquire the target domain name request message carrying the target message information on the basis of not increasing hardware facilities on the terminal, so that the function of the operating system is enhanced. In the embodiment of the present disclosure, after the operating system acquires the target domain name request message, a preset domain name system may acquire target message information carried in the target domain name request message, or the preset domain name system or a firewall may forward the target domain name request message to a preset message service, and the preset message service acquires the target message information carried in the target domain name request message. Through the process, the target message information carried in the target domain name request message can be automatically acquired by the operating system, so that the target operation is executed, the function of the operating system is enhanced, and the user experience of the terminal is improved.
In the embodiment of the present disclosure, the preset domain name system or the preset message service may convert the target domain name character into the target parameter character according to the preset correspondence between the message character and the domain name character. Wherein the target domain name character is a character included in the target domain name request message. Further, the target message information indicated by the target message character can be obtained. The purpose of acquiring the target message information carried by the target domain name request message is realized.
In the implementation of the present disclosure, optionally, the target domain name character may be checked, and the target domain name character is converted into the target message character only after the check result is that the check is passed. The accuracy of the acquired target message information is ensured.
In the embodiment of the present disclosure, when the target operation is executed according to the target parameter, the target operation may be an operation of opening the target application, and accordingly, the target parameter at least includes the identity of the target application. Further, if the target application is not installed locally, the target application is downloaded and installed, and the target application is directly opened through a preset application platform. After the terminal acquires the compressed packet of the target application from the server, the compressed packet can be automatically installed or updated in the background, the foreground of the installation process is invisible, the update process can be presented to the user in the foreground, the intelligent degree of the terminal is improved, and the user experience is improved.
In the embodiment of the present disclosure, after the web page server converts the target message information into the target domain name character, the target domain name information is generated based on the target domain name character, so that the target domain name information or the target domain name request message generated based on the target domain name information is placed in the target web page, and the virtual domain name request indication information is set in the target web page. Through the process, the target domain name information can be directly generated by the webpage server, and the terminal can generate the target domain name request message based on the target domain name information or directly send the target domain name request message in the target webpage to the operating system when the preset trigger condition is met. The process of the webpage client is simplified, and the performance of the operating system is enhanced.
In the embodiment of the disclosure, the web page server may further place the target message information in the target web page, and set the virtual domain name request indication information in the target web page. The terminal can convert characters included in the target message information into target domain name characters by a domain name conversion program carried by the target webpage or a webpage client according to the target message information in the target webpage, and then generates a target domain name request message based on the target domain name characters, so that the target message information is sent to an operating system. The above-mentioned process is to put the target message information into the target webpage, and the webpage client generates the target domain name request message according to the target message information, and then sends it to the operating system, so that the operating system can execute the target operation, and the performance of the operating system is enhanced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of communication according to an example embodiment.
Fig. 2 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 3A-3D are diagrams illustrating communication scenarios according to an example embodiment.
Fig. 4 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 5 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 6 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 7 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 8 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 9 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 10 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 11 is a flow chart illustrating another method of communication according to an example embodiment.
Fig. 12 is a block diagram illustrating a communication device according to an example embodiment.
Fig. 13 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 14 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 15 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 16 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 17 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 18 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 19 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 20 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 21 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 22 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 23 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 24 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 25 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 26 is a block diagram illustrating another communication device according to an example embodiment.
Fig. 27 is a block diagram illustrating a structure for a communication device according to an exemplary embodiment of the present disclosure.
Fig. 28 is a schematic diagram illustrating another configuration for a communication device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The technical principle and the technical effect of the present disclosure are explained first below:
in the communication method provided by the present disclosure, a web page client, such as a browser, for presenting a web page, or other network proxy service programs, such as mikeli chat and wechat, may bear target message information in a target domain name request message without adding an Application Programming Interface (API), and smoothly transmit the target message information to an operating system, so that the operating system may extract target parameters from the target message information carried in the target domain name request message, thereby performing target operations according to the target parameters. The target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, such as a domain name resolution operation, the target operation is an operation other than the first operation, for example, opening a target application or executing a command, such as executing a command of shutdown, restart, starting a timer, and the like, and specifically, how to execute the target operation may refer to the related art, belong to the capabilities of an operating system and/or an application installed thereon, and the present disclosure does not limit the type of the target operation.
In the related art, the preset communication protocol allows the web client to open a limited variety of operating system capabilities to the web page. That is, in the related communication protocol, the carrier type of the message that the operating system can receive from the web page is limited, and may include: network requests, clipboard information, picture format files, audio format files, and the like.
In the present disclosure, the target domain name request message may be used as a carrier for carrying target message information, so as to instruct the operating system to execute the target operation. The method and the device realize that the operating system is triggered to execute more types of operations through the webpage, enhance the functions of the operating system and effectively improve the user experience of the terminal.
The present disclosure provides a communication method, illustrated with reference to fig. 1 according to a flow chart of an exemplary embodiment, which may include the steps of:
in step 101, a target domain name request message is obtained, where the target domain name request message carries target message information, and the target message is used to instruct an operating system to execute a target operation, where the target domain name request conforms to a format requirement of a domain name request, the domain name request is used to execute a first operation, and the target operation is an operation other than the first operation;
in step 102, target message information carried by the target domain name request message is acquired;
in step 103, extracting target parameters based on the target message information;
in step 104, a target operation is performed according to the target parameter.
In the above embodiment, after acquiring the target domain name request message, the terminal may acquire the target message information carried in the target domain name request message, so as to extract the target parameter based on the target message information, and execute the target operation according to the target parameter. In the above process, the target parameter may be extracted through a target domain name request message, so as to instruct the operating system to perform a target operation, where the target domain name request conforms to a format requirement of a domain name request, the domain name request is used to perform a first operation, and the target operation is an operation other than the first operation. Through the process, the function of the operating system is enhanced, and the user experience of the terminal is improved.
For step 101, a web client on the terminal may generate a target domain name request message, and further, the web client may send the target domain name request message to a preset component in a terminal operating system, and the preset component acquires the target domain name request message. Optionally, the preset component may be a preset domain name system or a firewall.
Or in the embodiment of the present disclosure, the target domain name request message may also be generated by a program carried by the target web page itself, for example, a domain name conversion program; or the target domain name information or the target domain name request message generated based on the target domain name information may also be directly inserted into the target web page by the web page server, and the process generated by the target web page itself and the web page server will be introduced later, which is not described herein again. In this embodiment, the action subject is taken as a web page client for example, and an exemplary description is given.
Fig. 2 is a flowchart of a process of generating a target domain name request message by a web client, where fig. 2 is another communication method shown on the basis of the embodiment shown in fig. 1, and the communication method may further include:
in step 201, when a preset trigger condition is met, acquiring the target message information;
in this step, the web page client may obtain the target message information corresponding to the trigger condition when it is determined that the trigger condition is satisfied.
Optionally, the preset trigger condition may be a preset event trigger condition, for example, a preset interface element is triggered, and the preset interface element may be a preset virtual key, for example, as shown in fig. 3A; or the preset display element may be a URL address, such as shown in fig. 3B; or the preset display element may also be a picture link, such as shown in fig. 3C and 3D.
In addition, the preset trigger condition may also be a preset action trigger condition or a preset time trigger condition, for example, a preset webpage is loaded, or the preset webpage is loaded for a preset duration, and the like.
In the embodiment of the present disclosure, the target message may be obtained through the target message information, for example, the target message information may be assembled, so as to obtain the target message; or the target message is obtained by inquiring through the index included in the target message information. In the embodiment of the present disclosure, the target message information may be all or part of the target message; or may also be information associated with all or part of the targeted message, such as an index corresponding to all or part of the targeted message; or the target message information may also be at least one of the target parameters. Optionally, the target parameter may include an identity of the target application, such as APP ID; other information may also be included, such as page name, i.e., detail page name; page parameters, namely detail page parameters and the like; or the target parameter can also be specific operation indication information of the target operation.
In step 202, converting a target message character into a target domain name character according to a preset correspondence between the message character and the domain name character, where the target message character is a character included in the target message information;
in the embodiment of the present disclosure, since the target message character may include some characters that are not allowed by the domain name format, for example, if the target message character includes: the AppID is abc123, but characters such as "═" are not allowed to appear in the domain name format, so that the generated target domain name cannot be recognized by the preset domain name system. Therefore, the target message characters need to be converted to the target domain name characters allowed by the domain name format.
When converting the target message character into the target domain name character, a corresponding relationship between the message character and the domain name character may be preset, for example, as shown in table 1.
Message character Domain name character
A aaa
D ddd
egl
a a
…… ……
TABLE 1
In this step, the target message character may be converted into a target domain name character by the web client according to table 1. Wherein the target message character is a character included in the target message information.
In step 203, generating a target domain name according to the target domain name character according to a preset legal domain name format;
in this step, the web client may generate the target domain name according to a preset legal domain name format after obtaining the target domain name character.
For example, the target domain name characters include: aaabsdergeqlabc123, the preset legal domain name format may be www. target domain name character, com, or www. target domain name character, net, etc., and the current application may generate www.aaabsdergeqlabc123.com the target domain name.
In step 204, the target domain name request message is generated based on the target domain name.
In this step, the web client may generate a target domain name request message based on the target domain name according to a related technology, and send the target domain name request message through a data packet.
In an embodiment, the total number of characters of the target domain name may be more, and if the preset value is greater than a preset value, which may be a maximum value of the number of characters that can be carried in one data packet, the web client may compress the target domain name according to a related technique, so as to generate the target domain name request message based on the compressed target domain name.
In step 205, the target domain name request message is sent to the operating system.
In this step, after the web client generates the target domain name request message, the web client may send the target domain name request message to the operating system according to the related technology.
At this time, step 101 is executed, and the target domain name request message may be obtained by a preset component in the operating system. The preset component can be arranged on a domain name transmission channel of the operating system and is a preset system with a target domain name request identification function, such as a preset domain name system additionally provided with a Hook function; or the preset component may be a newly added service program installed in the operating system, or may be a service process externally hung in an existing operating system component, such as a domain name component or a firewall, which is not limited in this disclosure.
For step 102, after acquiring the target domain name request message, a preset component in the operating system may directly acquire target message information carried by the target domain name request message by using a preset domain name system, and may also forward the target domain name request message to a preset message service by using the preset domain name system or a firewall, and acquire the target message information carried by the target domain name request message by using the preset message service. In the embodiment of the present disclosure, all received domain name request messages may be identified by a preset component, and if the target domain name request message is identified, step 102 is continuously executed; the other domain name request messages can be converted into IP addresses by a preset domain name system according to the existing flow in the related technology, and then the servers corresponding to the IP addresses are accessed after the domain names are filtered by the firewall.
In the related art, some web page clients with relatively powerful functions may directly send domain name request messages to a firewall through a UDP (User Datagram Protocol) packet without passing through a domain name system in an operating system, and the domain name request messages are directly filtered by the firewall and forwarded to a server corresponding to the UDP packet.
In an embodiment of the present disclosure, if the preset component is a preset firewall component with a target domain name request identification function, according to whether a domain name request sent by an application program, such as a web client, passes through a DNS component, a process of identifying the target domain name request by the preset firewall component may include at least two implementation manners as follows:
in a first identification mode, the application program first passes through a DNS component in the operating system
Assuming that the operating system of the user terminal is an Android system, in the related art, when an application program needs the operating system to perform a first operation according to domain name information, such as performing domain name resolution, a sent domain name request may first pass through a DNS component of the operating system, that is, the application program sends the domain name request to the DNS component first, and in the Android system, the DNS component may be a service program named Netd to request the Netd service program to perform domain name resolution on domain name information included in a current domain name request, such as resolving a corresponding IP address. The Netd service program is a background daemon program which is specially responsible for network management and control in the Android system.
The Netd server then searches for locally stored and cached DNS information such as a default list, which may include: searching an IP address corresponding to the domain name information according to the corresponding relation between the domain name information and the IP address; if the Netd service program can locally search the corresponding IP address, the IP address is sent to the application program. If the Netd service program cannot search the corresponding IP address locally, the domain name request is sent to a pre-configured DNS server through a preset firewall component.
In the process that the Netd service program sends the current domain name request to the preset DNS server, the preset firewall component can identify whether the current domain name request belongs to the target domain name request.
In the second identification mode, the domain name request sent by the application program does not pass through the DNS component of the operating system
In another embodiment of the present disclosure, the application may directly send a domain name request to a preconfigured DNS server through a preset firewall component, and request an external DNS server to perform a first operation, such as performing domain name resolution, according to domain name information included in the domain name request. That is, in the disclosed embodiments, domain name requests issued by an application do not pass through the operating system's DNS component. The domain name request sent by the application program can be identified as belonging to the target domain name request when passing through the preset firewall component.
In the disclosure, after generating a target domain name request message, a web page client may send the target domain name request message to a preset domain name system, where the preset domain name system may identify all received domain name request messages and acquire target message information carried by the identified target domain name request message; or after the preset domain name system identifies the target domain name request message, the target domain name request message is forwarded to a preset message service, and then the preset message service acquires the target message information carried by the target domain name request message; or the webpage client can directly send the target domain name request message to a firewall without passing through a preset domain name system, a service process in the firewall identifies all the received domain name request messages, and forwards the identified target domain name request message to a preset message service, so that the preset message service acquires target message information carried by the target domain name request message.
In the embodiment of the present disclosure, when the preset component identifies all domain name request messages, it may be determined whether the domain name corresponding to the current domain name request message has the preset feature information. Optionally, whether the target domain name has the preset feature information may be determined by determining whether the target domain name conforms to the preset format. The preset format includes but is not limited to: the total number of characters included in the target domain name is a preset character number, and characters located at preset positions in the target domain name are preset characters and the like. Or, it may also be determined whether the domain name has the preset feature information by determining whether the domain name is subjected to special processing, such as compression or encryption.
If the domain name has the preset feature information, the preset component can identify that the current domain name request message is the target domain name request message, and further can acquire the target message information carried in the current domain name request message by a preset domain name system or a preset message service.
In the embodiment of the present disclosure, referring to fig. 4, fig. 4 is another communication method shown on the basis of the embodiment shown in fig. 1, and step 102 may include:
in step 102-1, converting a target domain name character into a target message character according to a preset correspondence between the message character and the domain name character, where the target domain name character is a character included in the target domain name request message;
in this step, the preset domain name system or the preset message service may convert the target domain name character into the target message character again according to the corresponding relationship in table 1.
For example, the target domain name characters include: www.aaabsdergeqlabc123.com, the target message characters converted according to Table 1 include: ap p id ═ a b c123.
In step 102-2, the target message information indicated by the target message character is obtained.
In this step, a preset domain name system or a preset message service may obtain the target message information indicated by the target message character.
In an embodiment, in order to ensure the accuracy of the subsequently obtained target message information, the target domain name character may be checked, and after the check is passed, the target domain name character is converted into the target message character. Referring to fig. 5, fig. 5 is another communication method based on the embodiment shown in fig. 4, where the communication method may further include:
in step 105, the target domain name character is checked to obtain a check result.
In this step, the preset domain name system or the preset message service may check the target domain name character first to obtain a check result.
Optionally, it may be determined whether the target domain name character satisfies a preset check formula, and if so, it is determined that the check result is a check pass. For example, the target domain name character may be converted into a corresponding number, and if the sum of the numbers corresponding to the first few target domain name characters is equal to the number corresponding to the last target domain name character, it is determined that the target domain name character satisfies the preset check formula.
In this disclosure, before determining whether the target domain name character satisfies the preset check formula, it may be determined whether the length of the target domain name character is a preset length, and whether the target domain name character is encoded according to a preset domain name format. And after the target domain name character meets the conditions, judging whether the target domain name character meets a preset check formula.
After the verification result is that the verification is passed, step 102-1 is executed to convert the target domain name character into the target message character, so that the efficiency of accurately obtaining the target parameter character can be improved.
It should be noted that, before the preset domain name system or the preset message service acquires the target message information carried by the target domain name request message, if the target domain name is compressed when the web client generates the target domain name request message, the preset domain name system or the preset message service needs to decompress the target domain name according to the related technology after acquiring the target domain name in the target domain name request message, and further determines the target message information according to the target domain name acquired by decompression.
For step 103, after the preset domain name system or the preset message service obtains the target message information, the preset domain name system or the preset message service may further extract the target parameter based on the target message information.
In this step, the preset domain name system or the preset message service may extract the target parameter according to the obtained target message information according to the related technology, and determine the target operation that needs to be executed currently.
It should be noted that steps 102 and 103 may be combined into the same step if the target message information includes at least one of the target parameters, i.e. the target parameter is directly carried in the target domain name request message.
For the above step 104, the preset domain name system or the preset message service control operating system may perform the target operation according to the target parameter. The target operation is an operation other than the first operation, and may be an operation of opening a target application, shutting down, restarting, starting a timer, and the like, and how to perform the target operation may refer to the related art, and belong to capabilities of an operating system and/or an application installed thereon.
In the embodiment of the present disclosure, if the target parameter includes an identity of the target application, the target parameter may be sent to the application platform by a preset domain name system or the preset message service. And the application platform opens the target application according to the identity of the target application.
In the embodiment of the present disclosure, optionally, the application platform may be a platform directly installed in an operating system, and the operating system may be an android, an IOS, or the like; or the application platform may be some application such as WeChat, Payment treasures, QQ, etc., or the application platform may be a browser.
In the embodiment of the present disclosure, the target application may be an application that needs to be manually triggered by a user in the related art during an installation process, or may be a new application, where the new application is different from the application in the related art in that: the installation process runs in the background of the user terminal.
Namely, after acquiring the compressed packet of the new application from the server, the terminal can install or update itself at the background, the foreground of the installation process is invisible, and the update process can be presented to the user at the foreground.
If the target application belongs to an application in the related art, in the case that the target application is installed in the terminal, the implementation process of the step 104 may be:
and the application platform starts the target application according to the identity of the target application in the target parameters, for example, opening an application home page or opening a login or registration page of the target application.
Under the condition that the target parameters also comprise other information, the started target application program can also execute corresponding operation according to the information, such as opening an inner page of the target application, for example, a detail page of a sales commodity in an e-commerce platform; or playing audio and video files and the like in a preset interface; or pop up a preset dialog box, etc.
If the target application is not installed in the user terminal, the user can be reminded to download and install the target application by opening an application store and the like; alternatively, the target message is discarded.
If the target parameter includes operation instruction information for instructing a restart operation or a shutdown operation, the target parameter may be directly sent to the operating system by a preset domain name system or a preset message service, and then the operating system executes the restart operation or the shutdown operation. Optionally, the target parameter further includes time point information, and the operating system may perform a restart operation or a shutdown operation when the time point indicated by the target parameter is reached.
Currently, other information for instructing the operating system to perform the target operation may also be included in the target parameter, and how to perform the target operation may refer to the related art, which belongs to the capabilities of the operating system and/or the application installed thereon, and this disclosure is not limited thereto.
In the above embodiment, the target domain name request message is generated by the web client, and in this embodiment of the present disclosure, optionally, the target domain name request message may also be generated by the web server. Referring to fig. 6, fig. 6 illustrates another communication method according to an embodiment, where the communication method is used for a web server and may include:
in step 301, converting the target message information into target domain name characters;
in step 302, generating target domain name information based on the target domain name characters;
in step 303, the target domain name information or a target domain name request message generated based on the target domain name information is placed in a target webpage and virtual domain name request indication information is set in the target webpage, where the virtual domain name request indication information is used to indicate that a terminal sends the target domain name request message to an operating system of the terminal when detecting that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
In the above embodiment, after the web page server converts the target message information into the target domain name character, the target domain name information is generated based on the target domain name character, so that the target domain name information or the target domain name request message generated based on the target domain name information is placed in the target web page, and the virtual domain name request indication information is set in the target web page. Through the process, the target domain name information can be directly generated by the webpage server, and the terminal can generate the target domain name request message based on the target domain name information or directly send the target domain name request message in the target webpage to the operating system when the preset trigger condition is met. The process of the webpage client is simplified, and the performance of the operating system is enhanced.
For the above step 301, the target message may be used to instruct the operating system of the terminal to perform a target operation, where the target operation is an operation other than the first operation; the target message information may be used to obtain the target message, for example, the target message information may be assembled to obtain the target message; or obtaining the target message by querying through an index included in the target message information.
In this step, the web page client may automatically convert the pre-stored target message characters into the target domain name characters according to the corresponding relationship between the preset message characters and the domain name characters.
For the above step 302, the web server may generate the target domain name information based on the target domain name character according to the related technology. For example, the target domain name characters may be combined in a preset order, or preset characters, such as www, com, or the like, may be added to obtain the target domain name information.
In the step 303, the web client directly provides a target web page, and the target web page may transmit the target domain name information to an operating system of a user terminal displaying the target web page, or transmit a target domain name request message generated based on the target domain name information.
In the embodiment of the present disclosure, the web page server may load the target domain name information or a target domain name request message generated based on the target domain name information into a web page code of the target web page according to a preset protocol. In addition, the web page server can also load virtual domain name request indication information in the web page code, and the virtual domain name request indication information can indicate that the terminal sends the target domain name request message to an operating system of the terminal when detecting that a preset trigger condition is met.
Referring to fig. 7, fig. 7 shows another communication method according to the embodiment shown in fig. 6, and the communication method may further include:
step 304, sending the target webpage carrying the target domain name information or one of target domain name request messages generated based on the target domain name information and the virtual domain name request indication information to the terminal.
In this step, the web page server may send the target web page carrying the target domain name information and the virtual domain name request indication information to the terminal according to the related technology; or the web page server may send the target web page of the target domain name request message and the virtual domain name request indication information to a terminal.
Further, when the terminal detects that a preset trigger condition is met, for example, a preset interface element is triggered, the target webpage is loaded, or the target webpage is loaded for a preset duration, the target domain name information in the target webpage is acquired by the webpage client, so that a target domain name request message is generated based on the target domain name information; or the webpage client can directly acquire the target domain name request message. And sending the target domain name request message to an operating system of the terminal, acquiring the target message information carried in the target domain name request message by a preset component of the operating system, further extracting target parameters based on the target message information, and executing target operation according to the target parameters. The above process of the terminal operating system may refer to step 101 to step 104, which is not described herein again.
In the embodiment, a mode that the web server generates the target domain name request message is provided, and in the embodiment of the present disclosure, the web server may also only place the target message information in the target web page, and generate the target domain name request message by a program carried by the target web page itself, for example, a domain name conversion program. The communication method may include:
in step 401, placing target message information in a target webpage and setting virtual domain name request indication information in the target webpage, where the virtual domain name request information is used to indicate a terminal to generate a target domain name request message according to the target message information in the target webpage and send the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
In this step, the web page server may directly place the target message information in the target web page, and set the virtual domain name request indication information in the target web page.
Referring to fig. 8, fig. 8 illustrates another communication method according to an embodiment, which may further include:
step 402, sending the target webpage carrying the target message information and the virtual domain name request information to the terminal.
In this step, the web page server may send the target web page carrying the target message information and the virtual domain name request information to the terminal.
After the terminal receives the target webpage, if it is determined that the preset trigger condition is currently met, the target domain name request message can be automatically generated by the program carried by the target webpage according to the target message information, and the generation process is the same as the process of generating the target domain name request message by the webpage client and the webpage server according to the target message information, and is not repeated here.
After a target domain name request message is generated by a target webpage, a webpage client sends the target domain name request message to an operating system of a terminal, a preset component of the operating system acquires target message information carried in the target domain name request message, and then target parameters are extracted based on the target message information, and target operation is executed according to the target parameters. The above process of the terminal operating system may refer to step 101 to step 104, which is not described herein again.
In another embodiment, after the web server places the target message information in the target web page, the web client may generate the target domain name request message according to the target message information when the terminal meets a preset trigger condition. Referring to fig. 9, fig. 9 illustrates another communication method according to an embodiment, which may be used for a web client, and may include:
in step 501, when a preset trigger condition is detected, target message information is acquired from a webpage according to virtual domain name request indication information in the webpage;
in step 502, converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
in step 503, generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
in step 504, the target domain name request message is sent to an operating system of the terminal where the web client is installed.
In the above embodiment, the web client of the terminal may detect whether a preset trigger condition is met after receiving a target web page pushed by the web server, and obtain target message information from the web page according to the virtual domain name request indication information in the web page when the preset trigger condition is met. And then converting characters included in the target message information into target domain name characters according to the corresponding relation between the preset message characters and the domain name characters. And then generating a target domain name according with a domain name format based on the target domain name characters, generating a target domain name request message according to the target domain name, sending the target domain name request message to an operating system of the terminal, acquiring target message information carried in the target domain name request message by a preset assembly of the operating system, further extracting target parameters based on the target message information, and executing target operation according to the target parameters. The above process of the terminal operating system may refer to step 101 to step 104, which is not described herein again.
Referring to fig. 10, fig. 10 illustrates another communication method according to an embodiment, which may include:
in step 601, the web client acquires target message information when meeting a preset trigger condition.
A web client is an application that can present a web page, such as a browser or other web agent.
In step 602, the web client converts the target message character into a target domain name character according to a preset correspondence between the message character and the domain name character; wherein the target message character is a character included in the target message information.
In step 603, the web client generates a target domain name from the target domain name characters according to a preset legal domain name format.
In step 604, the web client generates a target domain name request message based on the target domain name.
In step 605, the web client sends the target domain name request message to a preset domain name system in the operating system.
In step 606, the preset domain name system determines whether the domain name corresponding to the target domain name request message has preset feature information.
In step 607, the default domain name system sends the target domain name request message with default feature information to a default message service.
In step 608, the preset message service checks the target domain name character to obtain a check result.
Wherein the target domain name character is a character included in the target domain name request message.
In step 609, when the verification result is that the verification passes, the preset message service converts the target domain name character into the target message character according to the corresponding relationship between the preset message character and the domain name character.
In step 610, the preset message service extracts a target parameter according to the target message information indicated by the target message character.
In step 611, the preset message service instructs the operating system to perform the target operation according to the target parameter.
Of course, the preset domain name system may be changed to a firewall.
In the above embodiment, when the preset trigger condition is met, the web client automatically generates the target domain name request message. And the webpage client sends the target domain name request message to a preset domain name system or a firewall, and the preset domain name system or the firewall forwards the target domain name request message to a preset message service. And after the preset message service extracts the target parameter from the target domain name request message, indicating an operating system to execute target operation according to the target parameter. Through the process, the function of the operating system is enhanced and the user experience of the terminal is improved by extracting the target parameters from the target domain name request message. In the above embodiment, the target domain name request message may also be generated by the web page server, and after the web page client on the terminal directly obtains the target domain name request message through the target web page, the target domain name request message is sent to the preset domain name system in the operating system, and the subsequent steps are the same as steps 606 to 611.
Or the web page server carries target message information in a target web page, when the terminal determines that a preset trigger condition is met, the target web page automatically generates a target domain name request message based on the target message information through a self-contained program, or the web page client generates the target domain name request message based on the target message information in the target web page, further, the web page client sends the target domain name request message to a preset domain name system in an operating system, and the subsequent steps are the same as the steps 606 to 611.
Referring to fig. 11, fig. 11 illustrates another communication method according to an embodiment, which may include:
in step 701, the web page client acquires target message information when meeting a preset trigger condition.
In step 702, the web client converts the target message character into a target domain name character according to a preset correspondence between the message character and the domain name character.
Wherein the target message character is a character included in the target message information.
In step 703, the web client generates a target domain name from the target domain name characters according to a preset legal domain name format.
In step 704, the web client generates a target domain name request message based on the target domain name.
In step 705, the web client sends the target domain name request message to a preset domain name system.
In step 706, the preset domain name system determines whether the domain name corresponding to the target domain name request message has preset feature information.
In step 707, if the domain name corresponding to the target domain name request message has preset feature information, the preset domain name system checks the target domain name character to obtain a check result.
Wherein the target domain name character is a character included in the target domain name.
Optionally, the preset domain name system may check the target domain name conforming to the preset format to obtain a check result.
In step 708, when the check result is that the check is passed, the preset domain name system converts the target domain name character into the target message character according to a corresponding relationship between preset message characters and domain name characters.
In step 709, the preset domain name system indicates the target message information according to the target message characters.
In step 710, the preset domain name system instructs an operating system to perform a target operation according to the target parameter.
In the above embodiment, when determining that the preset trigger condition is met, the web client automatically generates the target domain name request message. And the webpage client sends the target domain name request message to a preset domain name system, and after the preset domain name system extracts the target parameter from the target domain name request message, the preset domain name system controls an operating system to execute target operation according to the target parameter. Through the process, the function of the operating system is enhanced and the user experience of the terminal is improved by extracting the target parameters from the target domain name request message.
In the above embodiment, the target domain name request message may also be generated by the web page server, and after the web page client on the terminal directly obtains the target domain name request message through the target web page, the target domain name request message is sent to the preset domain name system in the operating system, and the subsequent steps are the same as those in steps 706 to 710.
Or the web page server carries target message information in a target web page, when the terminal determines that a preset trigger condition is met, a program carried by the target web page automatically generates a target domain name request message, or the web page client generates the target domain name request message based on the target message information in the target web page, further, the web page client sends the target domain name request message to a preset domain name system in an operating system, and the subsequent steps are the same as the steps 706 to 710.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
Referring to fig. 12, a block diagram of a communication device, for a terminal, is shown according to an example embodiment, including:
a first obtaining module 810, configured to obtain a target domain name request message, where the target domain name request message carries target message information, and the target message is used to instruct an operating system to execute a target operation, where the target domain name request meets a format requirement of a domain name request, the domain name request is used to execute a first operation, and the target operation is an operation other than the first operation;
a second obtaining module 820, configured to obtain target message information carried by the target domain name request message;
an extracting module 830 configured to extract a target parameter based on the target message information;
an execution module 840 configured to execute a target operation according to the target parameter.
Referring to fig. 13, another block diagram of a communication device according to an exemplary embodiment is shown, and based on the embodiment of the device shown in fig. 12, the device further includes:
a third obtaining module 850, configured to obtain the target message information when a preset trigger condition is met;
a first conversion module 860 configured to convert a target message character into a target domain name character according to a correspondence between preset message characters and domain name characters, the target message character being a character included in the target message information;
a first generating module 870, configured to generate the target domain name according to a preset legal domain name format for the target domain name characters;
a second generating module 880 configured to generate the target domain name request message based on the target domain name;
a first sending module 890 configured to send the target domain name request message to an operating system.
Referring to fig. 14, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and on the basis of the apparatus embodiment shown in fig. 13, the second generating module 880 includes:
a compression sub-module 881 configured to compress the target domain name if a total number of characters of the target domain name exceeds a preset value;
a generating sub-module 882 configured to generate a target domain name request message based on the compressed target domain name.
Referring to fig. 15, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and based on the embodiment of the apparatus shown in fig. 12, the first obtaining module 810 includes:
the first obtaining sub-module 811 is configured to obtain the target domain name request message by a preset component in the operating system.
Optionally, the preset assembly comprises any one of: presetting a domain name system or a firewall.
Referring to fig. 16, another block diagram of a communication device according to an exemplary embodiment is shown, and based on the embodiment of the device shown in fig. 12, the second obtaining module 820 includes any one of the following sub-modules:
a second obtaining sub-module 821 configured to obtain, by the preset domain name system, target message information carried by the target domain name request message;
a third obtaining sub-module 822, configured to obtain, by a preset message service, target message information carried by the target domain name request message after the preset domain name system or the firewall forwards the target domain name request message to the preset message service.
Referring to fig. 17, which is a block diagram of another communication apparatus according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 12, the second obtaining module 820 includes:
a conversion sub-module 823 configured to convert the target domain name characters into target message characters according to a correspondence between preset message characters and domain name characters, where the target domain name characters are characters included in the target domain name request message;
a fourth obtaining sub-module 824, configured to obtain the target message information indicated by the target message characters.
Referring to fig. 18, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and based on the embodiment of the apparatus shown in fig. 17, the apparatus further includes:
a checking module 910, configured to check the target domain name character to obtain a checking result;
a control module 920 configured to control the conversion sub-module to convert the target domain name character into the target message character if the check result is that the check is passed.
Referring to fig. 19, another block diagram of a communication device according to an exemplary embodiment is shown, and based on the embodiment of the device shown in fig. 18, the checking module 910 includes:
the checking sub-module 911 is configured to determine that the checking result is that the checking is passed if the target domain name character satisfies a preset checking formula, and otherwise determine that the checking result is that the checking is not passed.
Referring to fig. 20, another block diagram of a communication device according to an exemplary embodiment is shown, and on the basis of the embodiment of the device shown in fig. 12, the executing module 840 includes:
the execution submodule 841 is configured to open a target application according to the target parameters, where the target parameters at least include an identity of the target application.
Referring to fig. 21, another block diagram of a communication device according to an exemplary embodiment is shown, on the basis of the embodiment of the device shown in fig. 20, the execution submodule 841 includes:
a determining unit 8411 configured to determine whether to install the target application locally according to the identity of the target application;
a first execution unit 8412 configured to download and install the target application if the target application is not installed locally;
a second execution unit 8413 configured to open the target application according to the target parameter through a preset application platform.
Referring to fig. 22, a block diagram of a communication device for a web server is shown, according to an example embodiment, including:
a second conversion module 1010 configured to convert the target message information into target domain name characters;
a third generating module 1020 configured to generate target domain name information based on the target domain name characters;
a first setting module 1030, configured to place the target domain name information or a target domain name request message generated based on the target domain name information in a target webpage and set virtual domain name request indication information in the target webpage, where the virtual domain name request indication information is used to indicate a terminal to send the target domain name request message to an operating system of the terminal when detecting that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
Referring to fig. 23, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and based on the embodiment of the apparatus shown in fig. 22, the apparatus further includes:
a second sending module 1040, configured to send the target webpage carrying the target domain name information or one of target domain name request messages generated based on the target domain name information, and the virtual domain name request indication information to the terminal.
Referring to fig. 24, a block diagram of a communication device for a web server is shown, according to an example embodiment, including:
a second setting module 1110, configured to place target message information in a target webpage and set virtual domain name request indication information in the target webpage, where the virtual domain name request information is used to indicate a terminal to generate a target domain name request message according to the target message information in the target webpage and send the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
Referring to fig. 25, another block diagram of a communication device according to an exemplary embodiment is shown, and based on the embodiment of the device shown in fig. 24, the device further includes:
a third sending module 1120, configured to send the target webpage carrying the target message information and the virtual domain name request information to the terminal.
Referring to fig. 26, a block diagram of a communication device for a web client is shown, according to an example embodiment, including:
a third obtaining module 1210, configured to, when a preset trigger condition is detected, obtain target message information from a web page according to virtual domain name request indication information in the web page;
a third conversion module 1220 configured to convert a target message character into a target domain name character, the target message character being a character included in the target message information;
a fourth generating module 1230 configured to generate a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
a third sending module 1240 configured to send the target domain name request message to an operating system of the terminal where the web client is installed.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, the embodiment of the present disclosure further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is used to execute any one of the communication methods described above.
Correspondingly, the embodiment of the present disclosure further provides a communication apparatus, where the apparatus is used for a terminal, and the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation;
acquiring target message information carried by the target domain name request message;
extracting target parameters based on the target message information;
and executing target operation according to the target parameters.
Fig. 27 is a schematic diagram illustrating a structure of a communication device according to an exemplary embodiment. As shown in fig. 27, a communication apparatus 2700 according to an exemplary embodiment is shown, and the apparatus 2700 may be a computer, a mobile phone, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 27, the apparatus 2700 may include one or more of the following components: processing components 2701, memory 2702, power components 2703, multimedia components 2704, audio components 2705, interfaces for input/output (I/O) 2706, sensor components 2707, and communication components 2708.
The processing component 2701 generally controls the overall operation of the device 2700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 2701 may include one or more processors 2709 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 2701 can include one or more modules that facilitate interaction between processing component 2701 and other components. For example, the processing component 2701 can include a multimedia module to facilitate interaction between the multimedia component 2704 and the processing component 2701.
The memory 2702 is configured to store various types of data to support operation at the apparatus 2700. Examples of such data include instructions for any application or method operating on the device 2700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 2702 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 2703 provides power to the various components of the device 2700. The power components 2703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 2700.
The multimedia component 2704 comprises a screen providing an output interface between the device 2700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2704 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 2700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 2705 is configured to output and/or input audio signals. For example, audio component 2705 comprises a Microphone (MIC) configured to receive external audio signals when apparatus 2700 is in operational modes, such as call mode, record mode, and voice recognition mode. The received audio signals may further be stored in memory 2702 or transmitted via communications component 2708. In some embodiments, audio component 2705 also includes a speaker for outputting audio signals.
The I/O interface 2706 provides an interface between the processing component 2701 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 2707 includes one or more sensors for providing various aspects of status assessment for apparatus 2700. For example, sensor assembly 2707 can detect the open/closed status of device 2700, the relative positioning of components, such as a display and keypad of device 2700, sensor assembly 2707 can also detect a change in position of device 2700 or a component of device 2700, the presence or absence of user contact with device 2700, orientation or acceleration/deceleration of device 2700, and a change in temperature of device 2700. The sensor assembly 2707 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 2707 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 2708 is configured to facilitate communications between the apparatus 2700 and other devices in a wired or wireless manner. The device 2700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 2708 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 2708 further comprises a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 2700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as the memory 2702 including instructions, which are executable by the processor 2709 of the apparatus 2700 to perform the above-described methods. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 2700 to perform the above-described communication method.
Correspondingly, the embodiment of the present disclosure further provides a communication device, where the device is used for a web server, and includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
converting the target message information into target domain name characters;
generating target domain name information based on the target domain name characters;
placing the target domain name information or a target domain name request message generated based on the target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating a terminal to send the target domain name request message to an operating system of the terminal when the terminal detects that a preset trigger condition is met;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation.
Correspondingly, the embodiment of the present disclosure further provides a communication device, where the device is used for a web server, and includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the method comprises the steps of placing target message information in a target webpage and setting virtual domain name request indicating information in the target webpage, wherein the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and sending the target domain name request message to an operating system of the terminal;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
Correspondingly, an embodiment of the present disclosure further provides a communication device, where the device is used for a web client, and the device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a preset trigger condition is detected, acquiring target message information from a webpage according to virtual domain name request indication information in the webpage;
converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing the first operation;
and sending the target domain name request message to an operating system of a terminal provided with the webpage client.
As shown in fig. 28, fig. 28 is a schematic structural diagram of a communication device 2800 according to an example embodiment. For example, the apparatus 2800 may be provided as a web server. Referring to fig. 28, the apparatus 2800 includes a processing component 2822 that further includes one or more processors and memory resources, represented by memory 2832, for storing instructions, such as applications, that are executable by the processing component 2822. The application programs stored in memory 2832 may include one or more modules that each correspond to a set of instructions. Further, the processing component 2822 is configured to execute instructions to perform the communication methods described above.
The apparatus 2800 may also include a power component 2826 configured to perform power management of the apparatus 2800, a wired or wireless network interface 2850 configured to connect the apparatus 2800 to a network, and an input/output (I/O) interface 2858. The device 2800 may operate based on an operating system stored in memory 2832 such as Android, IOS, Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Wherein the instructions in the memory 2832, when executed by the processing component 2822, enable the apparatus 4200 to perform the communication method for web servers described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (29)

1. A communication method, wherein the method is used for a terminal, and wherein the method comprises:
identifying a target domain name request message by using a preset component, and under the condition that the target domain name request message is identified:
acquiring the target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation;
acquiring target message information carried by the target domain name request message, including: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; obtaining the target message information indicated by the target message characters;
extracting target parameters based on the target message information;
executing target operation according to the target parameters, wherein the target operation comprises opening a target application according to the target parameters, and the target parameters at least comprise: and the identity of the target application.
2. The method of claim 1, further comprising:
when a preset trigger condition is met, acquiring the target message information;
converting target message characters into target domain name characters according to a corresponding relation between preset message characters and domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name according to the target domain name character according to a preset legal domain name format;
generating the target domain name request message based on the target domain name;
and sending the target domain name request message to an operating system.
3. The method of claim 2, wherein the generating the target domain name request message based on the target domain name comprises:
if the total number of the characters of the target domain name exceeds a preset value, compressing the target domain name;
and generating a target domain name request message based on the compressed target domain name.
4. The method of claim 1, wherein the retrieving the target domain name request message comprises:
and acquiring the target domain name request message by a preset component in the operating system.
5. The method of claim 4, wherein the preset component comprises any one of:
presetting a domain name system or a firewall.
6. The method according to claim 5, wherein the obtaining of the target message information carried by the target domain name request message includes:
acquiring target message information carried by the target domain name request message by the preset domain name system; or
And after the preset domain name system or the firewall forwards the target domain name request message to a preset message service, the preset message service acquires target message information carried by the target domain name request message.
7. The method of claim 1, wherein the opening a target application according to the target parameter comprises:
determining whether the target application is installed locally or not according to the identity of the target application;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target parameters through a preset application platform.
8. A communication method is applied to a web page server side, and the method comprises the following steps:
converting the target message information into target domain name characters;
generating target domain name information based on the target domain name characters;
the method for acquiring the target domain name information includes the steps of placing the target domain name information or a target domain name request message generated based on the target domain name information in a target webpage, and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating a terminal to send the target domain name request message to an operating system of the terminal when the terminal detects that a preset trigger condition is met, so that the terminal acquires the carried target message information according to the target domain name request message, and the method includes the following steps: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, the target operation comprises opening a target application according to target parameters, and the target parameters at least comprise: an identity of the target application; the target operation is an operation other than the first operation.
9. The method of claim 8, further comprising:
and sending the target webpage carrying the target domain name information or one item of target domain name request information generated based on the target domain name information and the virtual domain name request indication information to the terminal.
10. A communication method is applied to a web page server side, and the method comprises the following steps:
the method for setting the virtual domain name request information in the target webpage comprises the following steps that target message information is placed in the target webpage, the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and sending the target domain name request message to an operating system of the terminal, and the terminal is enabled to acquire the carried target message information according to the target domain name request message, and the method comprises the following steps: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise: and the identity of the target application.
11. The method of claim 10, further comprising:
and sending the target webpage carrying the target message information and the virtual domain name request information to the terminal.
12. A communication method is applied to a webpage client, and comprises the following steps:
when a preset trigger condition is detected, acquiring target message information from a webpage according to virtual domain name request indication information in the webpage;
converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing a first operation;
sending the target domain name request message to an operating system of a terminal provided with the webpage client, so that the terminal acquires the carried target message information according to the target domain name request message, wherein the method comprises the following steps: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters; instructing an operating system to execute a target operation, wherein the target operation comprises opening a target application according to target parameters, and the target parameters at least comprise: and the identity of the target application.
13. A communication apparatus, wherein the apparatus is for a terminal, the apparatus comprising:
an identification module configured to identify a target domain name request message using a preset component;
a first obtaining module configured to, in a case where the identifying module identifies the target domain name request message: acquiring the target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation;
a second obtaining module, configured to obtain target message information carried by the target domain name request message, including: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; obtaining the target message information indicated by the target message characters;
an extraction module configured to extract a target parameter based on the target message information;
an execution module configured to execute a target operation according to the target parameter, wherein the target operation includes opening a target application according to the target parameter, and the target parameter at least includes: and the identity of the target application.
14. The apparatus of claim 13, further comprising:
the third acquisition module is configured to acquire the target message information when a preset trigger condition is met;
the first conversion module is configured to convert a target message character into a target domain name character according to a corresponding relation between preset message characters and domain name characters, wherein the target message character is a character included in the target message information;
the first generation module is configured to generate a target domain name according to the target domain name characters in a preset legal domain name format;
a second generation module configured to generate the target domain name request message based on the target domain name;
a first sending module configured to send the target domain name request message to an operating system.
15. The apparatus of claim 14, wherein the second generating module comprises:
a compression sub-module configured to compress the target domain name if a total number of characters of the target domain name exceeds a preset value;
a generation sub-module configured to generate a target domain name request message based on the compressed target domain name.
16. The apparatus of claim 13, wherein the first obtaining module comprises:
and the first acquisition sub-module is configured to acquire the target domain name request message by a preset component in the operating system.
17. The apparatus of claim 16, wherein the preset component comprises any one of:
presetting a domain name system or a firewall.
18. The apparatus of claim 17, wherein the second obtaining module comprises any one of the following sub-modules:
the second obtaining sub-module is configured to obtain target message information carried by the target domain name request message by the preset domain name system;
and the third obtaining sub-module is configured to obtain the target message information carried by the target domain name request message by the preset message service after the preset domain name system or the firewall forwards the target domain name request message to the preset message service.
19. The apparatus of claim 13, wherein the second obtaining module comprises:
a conversion sub-module configured to convert a target domain name character into a target message character according to a correspondence between preset message characters and domain name characters, the target domain name character being a character included in the target domain name request message;
a fourth obtaining sub-module configured to obtain the target message information indicated by the target message characters.
20. A communication apparatus, applied to a web server, the apparatus comprising:
a second conversion module configured to convert the target message information into target domain name characters;
a third generation module configured to generate target domain name information based on the target domain name characters;
a first setting module, configured to place the target domain name request information or a target domain name message generated based on the target domain name information in a target webpage and set virtual domain name request indication information in the target webpage, where the virtual domain name request indication information is used to indicate a terminal to send the target domain name request information to an operating system of the terminal when detecting that a preset trigger condition is met, so that the terminal obtains the carried target message information according to the target domain name request message, and the method includes: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise: and the identity of the target application.
21. The apparatus of claim 20, further comprising:
a second sending module, configured to send the target webpage carrying the target domain name information or one of target domain name request messages generated based on the target domain name information and the virtual domain name request indication information to the terminal.
22. A communication apparatus, applied to a web server, the apparatus comprising:
a second setting module, configured to place target message information in a target webpage and set virtual domain name request indication information in the target webpage, where the virtual domain name request information is used to indicate a terminal to generate a target domain name request message according to the target message information in the target webpage and send the target domain name request message to an operating system of the terminal, so that the terminal obtains the carried target message information according to the target domain name request message, and the second setting module includes: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise: and the identity of the target application.
23. The apparatus of claim 22, further comprising:
a third sending module, configured to send the target webpage carrying the target message information and the virtual domain name request information to the terminal.
24. A communication apparatus, applied to a web client, the apparatus comprising:
the third acquisition module is configured to acquire target message information from a webpage according to virtual domain name request indication information in the webpage when a preset trigger condition is detected;
a third conversion module configured to convert target message characters into target domain name characters, the target message characters being characters included in the target message information;
a fourth generation module configured to generate a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing a first operation;
a third sending module, configured to send the target domain name request message to an operating system of a terminal on which the web client is installed, so that the terminal obtains the carried target message information according to the target domain name request message, including: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters; and instructing an operating system to execute target operation, wherein the target operation comprises opening a target application according to target parameters, and the target parameters at least comprise the identity of the target application.
25. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the communication method of any of the above claims 1-12.
26. A communication apparatus, wherein the apparatus is used for a terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
identifying a target domain name request message by using a preset component, and under the condition that the target domain name request message is identified:
acquiring the target domain name request message, wherein the target domain name request message carries target message information and is used for indicating an operating system to execute target operation, the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing first operation, and the target operation is operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise: an identity of the target application;
acquiring target message information carried by the target domain name request message, including: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; obtaining the target message information indicated by the target message characters;
extracting target parameters based on the target message information;
and executing target operation according to the target parameters.
27. A communication apparatus, wherein the apparatus is used for a web server, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
converting the target message information into target domain name characters;
generating target domain name information based on the target domain name characters;
the step of placing the target domain name request information or a target domain name message generated based on the target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, where the virtual domain name request indication information is used to indicate a terminal to send the target domain name request message to an operating system of the terminal when detecting that a preset trigger condition is met, so that the terminal obtains the carried target message information according to the target domain name request message, includes: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target domain name request conforms to the format requirement of the domain name request, the domain name request is used for executing a first operation, the target message is used for indicating an operating system to execute a target operation, and the target operation is an operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise an identity of the target application.
28. A communication apparatus, wherein the apparatus is used for a web server, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the method for setting the virtual domain name request information in the target webpage comprises the following steps that target message information is placed in the target webpage, the virtual domain name request information is used for indicating a terminal to generate a target domain name request message according to the target message information in the target webpage and sending the target domain name request message to an operating system of the terminal, and the terminal is enabled to acquire the carried target message information according to the target domain name request message, and the method comprises the following steps: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters;
the target message is used for instructing an operating system to execute a target operation, the target domain name request conforms to the format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation; the target operation comprises opening a target application according to target parameters, wherein the target parameters at least comprise: and the identity of the target application.
29. A communications apparatus, for use with a web client, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a preset trigger condition is detected, acquiring target message information from a webpage according to virtual domain name request indication information in the webpage;
converting target message characters into target domain name characters, wherein the target message characters are characters included in the target message information;
generating a target domain name request message based on the target domain name characters; the target domain name request conforms to the format requirement of the domain name request, and the domain name request is used for executing a first operation;
sending the target domain name request message to an operating system of a terminal provided with the webpage client, so that the terminal acquires the carried target message information according to the target domain name request message, wherein the method comprises the following steps: checking the target domain name character and obtaining a checking result, wherein the target domain name character is a character included in the target domain name request message; if the target domain name character meets a preset check formula, determining that a check result is a check pass, otherwise, determining that the check result is a check fail; under the condition that the verification result is that the verification is passed, converting the target domain name character into the target message character according to the corresponding relation between the preset message character and the domain name character; the terminal obtains the target message information indicated by the target message characters; instructing an operating system to execute a target operation, wherein the target operation comprises opening a target application according to target parameters, and the target parameters at least comprise: and the identity of the target application.
CN201711262144.4A 2017-12-04 2017-12-04 Communication method and device Active CN108156220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711262144.4A CN108156220B (en) 2017-12-04 2017-12-04 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711262144.4A CN108156220B (en) 2017-12-04 2017-12-04 Communication method and device

Publications (2)

Publication Number Publication Date
CN108156220A CN108156220A (en) 2018-06-12
CN108156220B true CN108156220B (en) 2021-12-03

Family

ID=62466453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711262144.4A Active CN108156220B (en) 2017-12-04 2017-12-04 Communication method and device

Country Status (1)

Country Link
CN (1) CN108156220B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924136B (en) * 2018-07-03 2021-01-15 北京小米移动软件有限公司 Authorization authentication method, device and storage medium
CN109714425A (en) * 2018-12-29 2019-05-03 北京小米移动软件有限公司 Communication means and device
CN110618768B (en) * 2019-03-18 2021-05-04 北京无限光场科技有限公司 Information presentation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
CN106940674A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 The triggering method and device of object event in a kind of mobile terminal
CN107423324A (en) * 2017-03-31 2017-12-01 北京小米移动软件有限公司 Access method, device and the equipment of webpage

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073953A (en) * 2009-11-24 2011-05-25 阿里巴巴集团控股有限公司 On-line payment method and system
CN102647482B (en) * 2012-03-31 2015-05-06 北京奇虎科技有限公司 Method and system for accessing website
KR101761577B1 (en) * 2012-10-08 2017-07-26 한국전자통신연구원 Apparatus and method for controlling session mobility, and apparatus and method for registering IP multimedia subsystem
CN104125258B (en) * 2013-04-28 2016-03-30 腾讯科技(深圳)有限公司 Method for page jump, terminal, server and system
CN103559211B (en) * 2013-10-10 2017-09-22 北京奇虎科技有限公司 Information processing method and information processor and browser in webpage
CN105763630A (en) * 2016-04-12 2016-07-13 百度在线网络技术(北京)有限公司 Information pushing method and device applied to mobile terminal
CN106503134B (en) * 2016-10-19 2019-08-13 Oppo广东移动通信有限公司 Browser jumps to the method for data synchronization and device of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
CN106940674A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 The triggering method and device of object event in a kind of mobile terminal
CN107423324A (en) * 2017-03-31 2017-12-01 北京小米移动软件有限公司 Access method, device and the equipment of webpage

Also Published As

Publication number Publication date
CN108156220A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
US10324707B2 (en) Method, apparatus, and computer-readable storage medium for upgrading a ZigBee device
CN108156221B (en) Communication method and device and electronic equipment
EP2978170A2 (en) Method, device, terminal and server for pushing message through web application
CN108063804B (en) Communication method and device
CN108040095B (en) Communication method and device and electronic equipment
CN108156271B (en) Communication method and device and electronic equipment
CN106375096B (en) short message verification method and device
CN109219036B (en) Method and device for unbinding equipment and electronic equipment
CN108156220B (en) Communication method and device
US9723486B2 (en) Method and apparatus for accessing network
CN109814942B (en) Parameter processing method and device
CN107220059B (en) Application interface display method and device
CN109218375B (en) Application interaction method and device
CN111526129B (en) Information reporting method and device
CN106878654B (en) Video communication method and device
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN109885360B (en) Data processing method, device and storage medium
CN107122174B (en) Application program updating method and device
CN106354532B (en) Application account information processing method and device
CN105827854B (en) Operation processing method and device
US20160119259A1 (en) Method, terminal device and server for pushing message through light application
CN109086143B (en) Application interaction method and device
EP3239880A1 (en) Legal installation package acquiring method and apparatus, computer program and recording medium
CN111274590B (en) Request processing method and device, electronic equipment and storage medium
CN109218374B (en) Application interaction 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
GR01 Patent grant
GR01 Patent grant