CN105554094B - Data interactive method and device - Google Patents

Data interactive method and device Download PDF

Info

Publication number
CN105554094B
CN105554094B CN201510921212.8A CN201510921212A CN105554094B CN 105554094 B CN105554094 B CN 105554094B CN 201510921212 A CN201510921212 A CN 201510921212A CN 105554094 B CN105554094 B CN 105554094B
Authority
CN
China
Prior art keywords
data
interface
information
customer attribute
attribute information
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
CN201510921212.8A
Other languages
Chinese (zh)
Other versions
CN105554094A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510921212.8A priority Critical patent/CN105554094B/en
Publication of CN105554094A publication Critical patent/CN105554094A/en
Priority to PCT/CN2016/109407 priority patent/WO2017097262A1/en
Application granted granted Critical
Publication of CN105554094B publication Critical patent/CN105554094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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 

Abstract

The invention discloses a kind of data interactive method and devices, it is related to information technology field, limitation and security hidden trouble between client and server for solving existing search service when data interaction, the technical solution of the present invention is as follows: receiving the data command that server is sent, interface identifier information is carried in the data command;The customer attribute information in current page is obtained according to interface function corresponding with the interface identifier information;The customer attribute information is sent to the server.Present invention is mainly used for the data of client are transmitted on server.

Description

Data interactive method and device
Technical field
The present invention relates to information technology fields, more particularly to a kind of data interactive method and device.
Background technique
With the fast development of information technology, browser brings hundred as the maximum entrance of search service, for search service / seven ten or more occupancy.But with the continuous refinement and development of search service, data provided by browser are not yet It is single again, in order to guarantee that browser interface can provide the search service customized according to different user situations, obtain browsing It needs to distinguish the source of data when device client data, such as distinguishes different channel users, different location user, separate sources user Data etc., then these data for distinguishing source are effectively counted, to provide the search clothes of customization for user Business.
Currently, client is to call client for server end by way of necessary parameter additional in browser address End data, or the data supplementing of needs is called into client data for server end in cookie.But by address Middle additional parameter is larger by limiting to for the mode of specific URL additional parameter in cookie, there are the constraint of URL judgement, If other URL also think to need constantly to expire by increasing response URL if additional parameter to the additional parameter of specific URL Sufficient demand, and if expanded to the restriction range of URL, some URL do not need parameter again, thus control and extending all compare by Limit.In addition, the data of exposure client are all easy no matter using mode additional in parameter additional in address or cookie, There are security risks.
Summary of the invention
In view of this, the present invention provides a kind of data interactive method and device, main purpose is to solve in the prior art Limitation and security hidden trouble between the client and server of search service when data interaction.
According to the present invention on one side, a kind of data interactive method is provided, this method comprises:
The data command that server is sent is received, carries interface identifier information in the data command;
The customer attribute information in current page is obtained according to interface function corresponding with the interface identifier information;
The customer attribute information is sent to the server.
According to the present invention on the other hand, a kind of data interaction device is provided, which includes:
Receiving unit carries interface identifier letter for receiving the data command of server transmission in the data command Breath;
Acquiring unit, for obtaining the user in current page according to interface function corresponding with the interface identifier information Attribute information;
Transmission unit, for the customer attribute information to be sent to the server.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
A kind of data interactive method and device provided in an embodiment of the present invention, the data that reception server is sent first refer to It enables, carries interface identifier information in the data command, then according to interface function corresponding with the interface identifier information The customer attribute information in current page is obtained, the customer attribute information is finally sent to the server.Lead to current It crosses in browser address the mode of additional necessary parameter and calls client data for server end, or by the data of needs Additional to call client data to compare for server end in cookie, the embodiment of the present invention provides interface by client, and confession is clear The server end of device look at is called, and when the server end of browser needs the data of client, can be passed through and be called client The interface that end provides obtains the data of client, thus when solving data interaction between client and server in the prior art Limitation and security risk the problems such as.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of data interactive method flow chart provided in an embodiment of the present invention;
Fig. 2 shows another data interactive method flow charts provided in an embodiment of the present invention;
Fig. 3 shows a kind of data interaction device structural block diagram provided in an embodiment of the present invention;
Fig. 4 shows another data interaction device structural block diagram provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of data interactive methods, applied to the client of search service, as shown in Figure 1, The described method includes:
101, the data command that server is sent is received.
Wherein, interface identifier information is carried in the data command, the interface identifier information is for indicating server The client-side interface that will be called.In embodiments of the present invention, what the interface identifier information indicated is to obtain client data Interface.Wherein, acquisition client data can specifically be realized by console.log function fashion by obtaining client data, Server sends data command to client first, then according in data command when needing requesting client data Interface identifier information call console.log function realize obtain client data.
For the embodiment of the present invention, in addition to carrying interface identifier information in the data command, request is also carried Information, the embodiment of the present invention such as data type, the method for receiving data are not specifically limited.It wherein, can be by interface identifier information It is specifically defined as " LISTENER_PROVIDE_DATA ", is indicated by interface identifier information " LISTENER_PROVIDE_DATA " It calls and obtains client data interface;The data type of the request can be indicated by MSG_TYPE, described received Data method can be defined as CALLBACK method, and CALLBACK is the method that server receives data, for by client Data readjustment.
Such as: data command is specifically as follows console.log (LISTENER_PROVIDE_DATA+MSG_TYPE+ CALLBACK), wherein LISTENER_PROVIDE_DATA is interface identifier information, and+MSG_TYPE is the data type of request, CALLBACK is the method that server receives data.
It should be noted that tool will not be exposed by being related to safety problem when calling client data through the embodiment of the present invention Body portal contents.In addition, the data type of MSG_TYPE identification request can be the data type of default, it can also be also specified Data type, the embodiment of the present invention are not specifically limited.Wherein, the data type of default is common data, specified data class Type can be selected according to the difference of browser version, or be selected according to special browsing pages, and the present invention is real Example is applied to be not specifically limited.
102, the customer attribute information in current page is obtained according to interface function corresponding with the interface identifier information.
Wherein, the attribute information of the user is the information of browser clients end subscriber, and the attribute information of user specifically may be used Think unique identification information, the information such as channel information, location information and phone number, the embodiment of the present invention does not do specific limit It is fixed.For the embodiment of the present invention, after the data command for receiving server transmission, believed according to the interface identifier in data command The customer attribute information that corresponding interface function obtains client is ceased, then adjusts back customer attribute information to server.It needs Illustrate, when the data type called in servers' data instruction is defaults, calling the information of client is specially only One identification information and channel information.
103, the customer attribute information is sent to the server.
For the embodiment of the present invention, client externally provides the data-interface that server demands use, and server is what when The data for needing client are waited, the data-interface for when calling client to provide, the data then provided according to client The corresponding function of interface obtains the data of client, therefore meets server tune by the data-interface mode that client provides The demand of client data is taken, and the server that meets that can be flexible and convenient by this kind of mode takes client data With.To which server can count the user data of acquisition, customization then is provided for client according to statistical result Search server.
The data command that a kind of data interactive method provided in an embodiment of the present invention, first reception server are sent, it is described Interface identifier information is carried in data command, is then obtained according to interface function corresponding with the interface identifier information current The customer attribute information is finally sent to the server by the customer attribute information in the page.With at present by browsing The mode of additional necessary parameter calls client data for server end in device address, or the data supplementing of needs is existed Client data is called to compare for server end in cookie, the embodiment of the present invention provides interface by client, for browser Server end is called, can be by calling client to provide when the server end of browser needs the data of client Interface obtain client data, to solve limitation when data interaction between client and server in the prior art The problems such as property and security risk.
The embodiment of the invention provides another data interactive methods, applied to the client of search service, such as Fig. 2 institute Show, which comprises
201, the data command that server is sent is received.
Wherein, interface identifier information is carried in the data command, the interface identifier information is for indicating server The client-side interface that will be called.In embodiments of the present invention, what the interface identifier information indicated is to obtain client data Interface.Wherein, acquisition client data can specifically be realized by console.log function fashion by obtaining client data, Server sends data command to client first, then according in data command when needing requesting client data Interface identifier information call console.log function realize obtain client data.For the embodiment of the present invention, can will connect Mouth identification information is specifically defined as " LISTENER_PROVIDE_DATA ", passes through interface identifier information " LISTENER_ PROVIDE_DATA ", which indicates to call, obtains client data interface.
202, judge whether the interface identifier information is to call client data interface.
For the embodiment of the present invention, browser client is rewritten customized by WebChromeClient method OnConsoleMessage method, and judge in onConsoleMessage method the interface identifier information that server end is sent It whether is LISTENER_PROVIDE_DATA, if then illustrating that the data command that server end is sent is to transfer client data Order, the customer attribute information of browser client can be obtained in the next steps.Wherein, the side onConsoleMessage Method is used to monitor the content of the data command of server transmission, so that client makes corresponding place according to the content listened to Reason operation.
If 203, the interface identifier information is to call client data interface, judge whether the current page is branch It holds and the page of data is provided.
If 204, the current page is supports to provide the page of data, according to and the calling interface identification information pair The interface function answered obtains the customer attribute information in current page.
Wherein, the attribute information of the user is the information of browser clients end subscriber, and the attribute information of user specifically may be used Think unique identification information, the information such as channel information, location information and phone number, the embodiment of the present invention does not do specific limit It is fixed.For the embodiment of the present invention, after the data command for receiving server transmission, believed according to the interface identifier in data command The customer attribute information that corresponding interface function obtains client is ceased, then adjusts back customer attribute information to server.It needs Illustrate, when the data type called in servers' data instruction is defaults, calling the information of client is specially only One identification information and channel information.
For the embodiment of the present invention, the data type of request is also carried in the data command and receives the side of data Method, basis interface function corresponding with the calling interface identification information obtain the customer attribute information packet in current page It includes: the data command is parsed, to obtain the data type and the method for receiving data of the request;According to The corresponding interface function of the calling interface identification information, obtains use corresponding with the data type of the request in current page Family attribute information.Wherein, the data type of the request can be indicated by MSG_TYPE, the received data method It can be defined as CALLBACK method, CALLBACK is the method that server receives data, for adjusting back the data of client. For example, the data type parsed from data command is channel information and location information, then user is obtained from client Channel information and location information, the information that then will acquire be sent to server.
It should be noted that tool will not be exposed by being related to safety problem when calling client data through the embodiment of the present invention Body portal contents.In addition, the data type of MSG_TYPE identification request can be the data type of default, it can also be also specified Data type, the embodiment of the present invention are not specifically limited.Wherein, the data type of default is common data, specified data class Type can be selected according to the difference of browser version, or be selected according to special browsing pages, and the present invention is real Example is applied to be not specifically limited.
205, according to the data type of the request, the customer attribute information is packaged.
It, can be by getDataForProvide (type) method to the data class requested for the embodiment of the present invention Type is packaged, in order to which the data of encapsulation are sent to the server in the next steps.
206, according to the method for the data receiver, the customer attribute information of the encapsulation is sent to the server.
Wherein, the method for data receiver is that server end defines, and includes in the data command for being transferred to client There is the method for the reception data.The method that client parses the reception data from the data command, and pass through the reception The customer attribute information of encapsulation is sent to the server by the method for data.It in embodiments of the present invention, can be by data receiver Method be defined as callback method, if the data receiver method that parses of client is callback method, client It when the attribute information of user is sent to server, is sent by callback method.Therefore it is mentioned by client The data-interface mode of confession meets the demand that server transfers client data, and can be flexible and convenient by this kind of mode The server that meets client data is taken.To which server can be counted according to the user data of acquisition, it is Client provides the search server customized.
In embodiments of the present invention, the data command that server is sent is received first, is carried and is connect in the data command Then mouth identification information judges whether the interface identifier information is to call client data interface, if the interface identifier is believed Breath then continues to judge the current page whether to support to provide the page of data, if described to call client data interface Current page is then worked as according to interface function corresponding with calling interface identification information acquisition to support to provide the page of data Customer attribute information in the preceding page.Further according to the data type of the request, the customer attribute information is packaged, most Afterwards according to the method for the data receiver, the customer attribute information of the encapsulation is sent to the server.To solve In the prior art the problems such as limitation and security risk between client and server when data interaction.
The data command that another kind data interactive method provided in an embodiment of the present invention, first reception server are sent, institute It states and carries interface identifier information in data command, then worked as according to interface function corresponding with interface identifier information acquisition The customer attribute information is finally sent to the server by the customer attribute information in the preceding page.With at present by clear The mode of additional necessary parameter in device address of looking at calls client data for server end, or the data supplementing of needs is existed Client data is called to compare for server end in cookie, the embodiment of the present invention provides interface by client, for browser Server end is called, can be by calling client to provide when the server end of browser needs the data of client Interface obtain client data, to solve limitation when data interaction between client and server in the prior art The problems such as property and security risk.
Further, a kind of data interaction device provided in an embodiment of the present invention, as shown in figure 3, described device includes: to connect Receive unit 31, acquiring unit 32, transmission unit 33.
Receiving unit 31 carries interface identifier in the data command for receiving the data command of server transmission Information.
Acquiring unit 32, for obtaining the use in current page according to interface function corresponding with the interface identifier information Family attribute information.
Transmission unit 33, for the customer attribute information to be sent to the server.
It should be noted that other of each functional unit involved by a kind of data interaction device provided in an embodiment of the present invention Corresponding description, can be with reference to the corresponding description of method shown in Fig. 1, and details are not described herein.
The data command that a kind of data interaction device provided in an embodiment of the present invention, first reception server are sent, it is described Interface identifier information is carried in data command, is then obtained according to interface function corresponding with the interface identifier information current The customer attribute information is finally sent to the server by the customer attribute information in the page.With at present by browsing The mode of additional necessary parameter calls client data for server end in device address, or the data supplementing of needs is existed Client data is called to compare for server end in cookie, the embodiment of the present invention provides interface by client, for browser Server end is called, can be by calling client to provide when the server end of browser needs the data of client Interface obtain client data, to solve limitation when data interaction between client and server in the prior art The problems such as property and security risk.
Further, another data interaction device provided in an embodiment of the present invention, as shown in figure 3, described device includes: Receiving unit 41, acquiring unit 42, transmission unit 43.
Receiving unit 41 carries interface identifier in the data command for receiving the data command of server transmission Information.
Acquiring unit 42, for obtaining the use in current page according to interface function corresponding with the interface identifier information Family attribute information.
Transmission unit 43, for the customer attribute information to be sent to the server.
Further, described device further include: judging unit 44;
The judging unit 44, for judging whether the interface identifier information is to call client data interface.
The acquiring unit 42, if being specifically used for the interface identifier information is to call client data interface, basis Interface function corresponding with the calling interface identification information obtains the customer attribute information in current page.
The judging unit 44 judges institute if being also used to the interface identifier information to call client data interface State current page whether for support the page of data is provided
The acquiring unit 42, if providing the page of data, basis and institute specifically for the current page for support State the customer attribute information in the corresponding interface function acquisition current page of calling interface identification information.
Further, the method that the data type of request is also carried in the data command and receives data, it is described to obtain The unit 42 is taken to include:
Parsing module 421, for being parsed to the data command, to obtain the data type of the request and described The method for receiving data.
Module 422 is obtained, for obtaining current page according to interface function corresponding with the calling interface identification information In customer attribute information corresponding with the data type of the request.
Further, described device further include:
Encapsulation unit 45 is packaged the customer attribute information for the data type according to the request.
The transmission unit 43 believes the user property of the encapsulation specifically for the method according to the data receiver Breath is sent to the server.
It should be noted that its of each functional unit involved by another kind data interaction device provided in an embodiment of the present invention He accordingly describes, can be with reference to the corresponding description of method shown in Fig. 2, and details are not described herein.
The data command that another kind data interaction device provided in an embodiment of the present invention, first reception server are sent, institute It states and carries interface identifier information in data command, then worked as according to interface function corresponding with interface identifier information acquisition The customer attribute information is finally sent to the server by the customer attribute information in the preceding page.With at present by clear The mode of additional necessary parameter in device address of looking at calls client data for server end, or the data supplementing of needs is existed Client data is called to compare for server end in cookie, the embodiment of the present invention provides interface by client, for browser Server end is called, can be by calling client to provide when the server end of browser needs the data of client Interface obtain client data, to solve limitation when data interaction between client and server in the prior art The problems such as property and security risk.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) are realized in data interactive method and device according to an embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all device or device programs (for example, computer program and computer program product).Such reality Existing program of the invention can store on a computer-readable medium, or may be in the form of one or more signals. Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or in any other forms It provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of data interactive method, comprising:
The data command that server is sent is received, carries interface identifier information in the data command;
The customer attribute information in current page is obtained according to interface function corresponding with the interface identifier information;
The customer attribute information is sent to the server.
A2, method as described in a1 are obtained in current page according to interface function corresponding with the interface identifier information Customer attribute information before, the method also includes:
Judge whether the interface identifier information is to call client data interface;
Basis interface function corresponding with the interface identifier information obtains the customer attribute information in current page Include:
Belong to if so, obtaining the user in current page according to interface function corresponding with the calling interface identification information Property information.
A3, as described in A2 method, it is described judge the interface identifier information whether be call client data interface it Afterwards, the method also includes:
If the interface identifier information is to call client data interface, judge whether the current page is to support to mention For the page of data;
Basis interface function corresponding with the calling interface identification information obtains the user property in current page Information includes:
If the current page is supports to provide the page of data, according to corresponding with the calling interface identification information Interface function obtains the customer attribute information in current page.
A4, the method as described in A3 also carry the data type of request in the data command and receive the side of data Method, basis interface function corresponding with the calling interface identification information obtain the customer attribute information packet in current page It includes:
The data command is parsed, to obtain the data type and the method for receiving data of the request;
According to interface function corresponding with the calling interface identification information, the number in current page with the request is obtained According to the corresponding customer attribute information of type.
A5, the method as described in A4, before the customer attribute information is sent to the server, the method is also wrapped It includes:
According to the data type of the request, the customer attribute information is packaged.
A6, method as described in a5, the customer attribute information, which is sent to the server, includes:
According to the method for the data receiver, the customer attribute information of the encapsulation is sent to the server.
The invention discloses B7, a kind of data interaction device, comprising:
Receiving unit carries interface identifier letter for receiving the data command of server transmission in the data command Breath;
Acquiring unit, for obtaining the user in current page according to interface function corresponding with the interface identifier information Attribute information;
Transmission unit, for the customer attribute information to be sent to the server.
B8, device as described in b7, described device further include: judging unit;
The judging unit, for judging whether the interface identifier information is to call client data interface;
The acquiring unit, if be specifically used for the interface identifier information be call client data interface, according to The corresponding interface function of the calling interface identification information obtains the customer attribute information in current page.
B9, the device as described in B8,
The judging unit, if being also used to the interface identifier information for calling client data interface, described in judgement Current page whether for support the page of data is provided;
The acquiring unit, if specifically for the current page to support to provide the page of data, according to it is described The corresponding interface function of calling interface identification information obtains the customer attribute information in current page.
B10, the device as described in B9 also carry the data type of request in the data command and receive the side of data Method, the acquiring unit include:
Parsing module, for being parsed to the data command, to obtain the data type of the request and described connect The method for receiving data;
Module is obtained, for obtaining in current page according to interface function corresponding with the calling interface identification information Customer attribute information corresponding with the data type of the request.
B11, the device as described in B10, described device further include:
Encapsulation unit is packaged the customer attribute information for the data type according to the request.
B12, device as described in b11,
The transmission unit, specifically for the method according to the data receiver, by the customer attribute information of the encapsulation It is sent to the server.

Claims (10)

1. a kind of data interactive method characterized by comprising
The data command that server is sent is received, carries interface identifier information, the data type of request in the data command With the method for receiving data;
The customer attribute information in current page is obtained according to interface function corresponding with the interface identifier information;
The customer attribute information is sent to the server;
Wherein, basis interface function corresponding with the calling interface identification information obtains the user property in current page Information includes:
The data command is parsed, to obtain the data type and the method for receiving data of the request;
According to interface function corresponding with the calling interface identification information, the data class in current page with the request is obtained The corresponding customer attribute information of type.
2. the method according to claim 1, wherein according to interface function corresponding with the interface identifier information Before obtaining the customer attribute information in current page, the method also includes:
Judge whether the interface identifier information is to call client data interface;
The customer attribute information that corresponding with the interface identifier information interface function of the basis obtains in current page includes:
Believe if so, obtaining the user property in current page according to interface function corresponding with the calling interface identification information Breath.
3. according to the method described in claim 2, it is characterized in that, described judge whether the interface identifier information is to call visitor After the end data interface of family, the method also includes:
If the interface identifier information be call client data interface, judge the current page whether for support number is provided According to the page;
Basis interface function corresponding with the calling interface identification information obtains the customer attribute information in current page Include:
If the current page is supports to provide the page of data, according to interface corresponding with the calling interface identification information Function obtains the customer attribute information in current page.
4. the method according to claim 1, wherein by the customer attribute information be sent to the server it Before, the method also includes:
According to the data type of the request, the customer attribute information is packaged.
5. according to the method described in claim 4, it is characterized in that, the customer attribute information is sent to the server packet It includes:
According to the method for the data receiver, the customer attribute information of the encapsulation is sent to the server.
6. a kind of data interaction device characterized by comprising
Receiving unit carries interface identifier information in the data command, asks for receiving the data command of server transmission The data type asked and the method for receiving data;
Acquiring unit, for obtaining the user property in current page according to interface function corresponding with the interface identifier information Information;
Transmission unit, for the customer attribute information to be sent to the server;
Wherein, the acquiring unit includes:
Parsing module, for being parsed to the data command, with obtain the request data type and the reception number According to method;
Obtain module, for according to interface function corresponding with the calling interface identification information, obtain in current page with institute State the corresponding customer attribute information of data type of request.
7. device according to claim 6, which is characterized in that described device further include: judging unit;
The judging unit, for judging whether the interface identifier information is to call client data interface;
The acquiring unit, if be specifically used for the interface identifier information be call client data interface, according to it is described The corresponding interface function of calling interface identification information obtains the customer attribute information in current page.
8. device according to claim 7, which is characterized in that
The judging unit judges described current if being also used to the interface identifier information to call client data interface The page whether for support the page of data is provided;
The acquiring unit, if providing the page of data, basis and the calling specifically for the current page for support The corresponding interface function of interface identifier information obtains the customer attribute information in current page.
9. device according to claim 6, which is characterized in that described device further include:
Encapsulation unit is packaged the customer attribute information for the data type according to the request.
10. device according to claim 9, which is characterized in that
The transmission unit sends the customer attribute information of the encapsulation specifically for the method according to the data receiver To the server.
CN201510921212.8A 2015-12-11 2015-12-11 Data interactive method and device Active CN105554094B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510921212.8A CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device
PCT/CN2016/109407 WO2017097262A1 (en) 2015-12-11 2016-12-12 Data exchange method and apparatus, computer program, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510921212.8A CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device

Publications (2)

Publication Number Publication Date
CN105554094A CN105554094A (en) 2016-05-04
CN105554094B true CN105554094B (en) 2019-03-08

Family

ID=55833026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510921212.8A Active CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device

Country Status (2)

Country Link
CN (1) CN105554094B (en)
WO (1) WO2017097262A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554094B (en) * 2015-12-11 2019-03-08 北京奇虎科技有限公司 Data interactive method and device
CN109213606A (en) * 2017-06-29 2019-01-15 北京京东尚科信息技术有限公司 A kind of method and apparatus of data interaction
CN107423072B (en) * 2017-08-11 2020-10-30 苏州浪潮智能科技有限公司 Method and device for screening dynamic columns of web page and searching table data
CN108536492B (en) * 2018-04-08 2021-09-07 武汉斗鱼网络科技有限公司 Method, device, equipment and storage medium for acquiring attribute information of live broadcast room
CN112181442B (en) * 2019-06-17 2023-05-16 腾讯科技(深圳)有限公司 Unloading page display method, device, terminal, server and storage medium
CN111090879B (en) * 2019-12-05 2023-07-21 达闼机器人股份有限公司 Data processing method, device, readable storage medium, electronic equipment and system
CN112511526B (en) * 2020-11-25 2023-01-24 深圳致星科技有限公司 Data transmission method, device and readable storage medium
CN113127337A (en) * 2020-12-30 2021-07-16 中国农业银行股份有限公司 Debugging method and device for individually starting mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
CN103905502A (en) * 2012-12-27 2014-07-02 中国移动通信集团江苏有限公司 User position information obtaining method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069915A1 (en) * 2001-10-09 2003-04-10 James Clough Method for authenticating mobile printer users
US8924459B2 (en) * 2005-10-21 2014-12-30 Cisco Technology, Inc. Support for WISPr attributes in a TAL/CAR PWLAN environment
CN102736910B (en) * 2011-05-11 2017-07-28 新奥特(北京)视频技术有限公司 A kind of general command interface based on plug-in unit defines method
CN102801737B (en) * 2012-08-28 2016-04-27 北京城市网邻信息技术有限公司 A kind of asynchronous network communication means and device
CN103077032B (en) * 2013-01-06 2019-08-27 北京百度网讯科技有限公司 The operating method of application program and the client of application program
CN103957211B (en) * 2014-04-30 2017-06-30 北界创想(北京)软件有限公司 Data communications method and device between client and front end page
CN105554094B (en) * 2015-12-11 2019-03-08 北京奇虎科技有限公司 Data interactive method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
CN103905502A (en) * 2012-12-27 2014-07-02 中国移动通信集团江苏有限公司 User position information obtaining method and system

Also Published As

Publication number Publication date
WO2017097262A1 (en) 2017-06-15
CN105554094A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105554094B (en) Data interactive method and device
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
CN107844324B (en) Client page jump processing method and device
CN111062024B (en) Application login method and device
CN102904959B (en) Network accelerating method and gateway
CN110377440B (en) Information processing method and device
CN110262933B (en) Test method, test device, and storage medium
CN105227673B (en) Data download method, client, server and the system of anti-abduction
CN109902247A (en) A kind of method, apparatus and electronic equipment of page rendering
CN103607376A (en) Method and device for compatible protocol
CN108549586B (en) Information processing method and device
CN108924183B (en) Method and device for processing information
CN110007936A (en) Data processing method and device
CN113076294A (en) Information sharing method and device
CN111435380B (en) Page cross-domain interaction method, system, device and storage device
CN104572914B (en) The method and apparatus that Ad blocking is carried out in double-core browser
CN109343975A (en) Method and apparatus for asynchronous communication between the page
CN108023905B (en) Internet of things application system and method
US20190370293A1 (en) Method and apparatus for processing information
CN112015383A (en) Login method and device
CN116737598B (en) Page debugging method, device, electronic equipment and computer readable medium
CN105404827B (en) The method, apparatus and system communicated between control application program
US20140047267A1 (en) System, method and computer program product for reconstructing data received by a computer in a manner that is independent of the computer
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN111953718A (en) Page debugging method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right