The content of the invention
In view of this, the application provides a kind of method for providing terminal applies daily record, using on the server,
Including:
The daily record identification information and daily record data of the application that receiving terminal is uploaded;
The log data requests of displaying main frame are received, the log data requests include daily record identification information;
The daily record number with the application of daily record identification information in the log data requests is returned to displaying main frame
According to.
A kind of method of offer terminal applies daily record that the application is provided, applies in terminal, including:
Generate the daily record data of application;
The daily record identification information and daily record data of the application are uploaded to server.
A kind of method of acquisition terminal applies daily record that the application is provided, applies on displaying main frame, including:
Obtain the daily record identification information of application;
Log data requests are sent to server, the log data requests include the daily record mark of application
Information;
The daily record data with the application of daily record identification information in log data requests that the reception server is returned,
And represent the daily record data of reception.
Present invention also provides a kind of device for providing terminal applies daily record, using on the server, including:
Daily record mark and data receipt unit, for receiving terminal upload application daily record identification information and
Daily record data;
Log data requests receiving unit, the log data requests for receiving displaying main frame, the daily record
Request of data includes daily record identification information;
Daily record data issuance unit, for being returned with daily record in the log data requests to displaying main frame
The daily record data of the application of identification information.
A kind of device of offer terminal applies daily record that the application is provided, applies in terminal, including:
Daily record data generation unit, the daily record data for generating application;
Daily record mark and data uploading unit, the daily record identification information for uploading the application to server
And daily record data.
A kind of device of acquisition terminal applies daily record that the application is provided, applies on displaying main frame, including:
Daily record identity information element, the daily record identification information for obtaining application;
Log data requests transmitting element, for sending log data requests, the daily record number to server
Include the daily record identification information of application according to request;
Data receiver and represent unit, for the reception server return with daily record in log data requests
The daily record data of the application of identification information, and represent the daily record data of reception.
From above technical scheme, in embodiments herein, the daily record that will be applied by terminal identifies letter
Breath and daily record data are uploaded onto the server, and server is specified according to displaying main frame in log data requests
Daily record identification information, displaying main frame is sent to by corresponding daily record data, and user is shown to by displaying main frame.
So, displaying main frame can simultaneously be checked and the terminal number of daily record be no longer limited by displaying main frame is local connects
Mouthful quantity, and the daily record data of different terminals operating system can be checked, it is to avoid terminal operating system
Therefrom.
Specific embodiment
Embodiments herein proposes a kind of method of new offer terminal applies daily record and a kind of new acquisition
The method of terminal applies daily record, is uploaded onto the server the daily record data of application by terminal, by under server
Issue displaying main frame to be shown, daily record identification information is passed through between terminal, server and displaying main frame
To distinguish the daily record data of different terminals so that displaying main frame can obtain simultaneously the terminal quantity of daily record with
The number of its hardware interface is unrelated, and shows that main frame can obtain the application day of any terminal operating system
Will, to solve problems of the prior art.
A kind of network structure of the embodiment of the present application application scenarios as shown in figure 1, between terminal and server,
Mutually may be used by communication network (such as internet and/or mobile communications network) between displaying main frame and server
Access;In application scenes, can also be by WLAN, logical between terminal and displaying main frame
Communication network etc. is communicated.In the embodiment of the present application, terminal can be mobile phone, panel computer, personal electricity
The equipment such as brain, notebook;Displaying main frame can be mobile phone, panel computer, PC, notebook,
Server physically or logically etc.;Server can be one physically or logically server, or by
Two or more are shared the physically or logically server of different responsibilities, mutually cooperate with to realize the application
The various functions of server in embodiment.To terminal, species, the communication network of displaying main frame in the present embodiment
Agreement and networking structure, specific implementation of server of network etc. are not limited.
In the embodiment of the present application, there is provided the method operation of terminal applies daily record flow on the server is as schemed
Shown in 2, the flow in terminal is operated in as shown in figure 3, the method for obtaining terminal applies daily record is operated in
Flow on displaying main frame is as shown in Figure 4.
On displaying main frame, step 410 obtains the daily record identification information of application.
Daily record identification information is used for representing terminal and the application belonging to daily record data, and terminal is identified using daily record
Information informs the daily record data that displaying main frame is uploaded belongs to which terminal and application, shows host computer daily record
Identification information carrys out notification server will ask the daily record data of which terminal and application.
Which terminal received daily record data belongs to and the mark of application all may be used can to separate server area
For as daily record identification information.According to the difference of concrete application scene, daily record identification information can be
Terminal iidentification, can be terminal iidentification and application identities, can also be server-assignment to displaying main frame and
The mark that terminal is used.Wherein, terminal iidentification can be the hardware address of terminal, such as MAC (Media
Access Control, medium access control) address, UUID (Universally Unique Identifier,
General unique identifier) etc., can also be the network address of terminal, such as IP in application scenes
(Internet Protocol, Internet protocol) address etc..Application identities are used for the multiple on distinguishing terminal
Using can be title etc. of application.
For example, if server is used for receiving certain application daily record data over multiple terminals,
Can be using terminal iidentification as daily record identification information.For another example, if server is applied for receiving multiple
Daily record data in multiple terminals, then can be using terminal iidentification and application identities as daily record identification information.
In both implementations, displaying main frame can be by keeper's manual configuration daily record data to be shown institute
Belong to the mark of terminal or the mark and the mark of affiliated application of affiliated terminal;Can also be by wireless local
Net or communication network, obtained from the equipment such as terminal or NM server terminal iidentification or terminal iidentification and
Application identities.
In one implementation, daily record identification request can be sent from displaying main frame to server;Service
Device generates the daily record identification information of application, daily record mark letter according to the daily record identification request of displaying main frame
Breath can uniquely represent certain terminal and application in server side;The daily record identification information that server will be generated
It is handed down to displaying main frame;The daily record identification information of the application that displaying main frame the reception server is returned, by the day
Will identification information is supplied to the terminal of the daily record data for generating the application.So, main frame and server are shown
Between, between terminal and server can indicate which daily record data belongs to the daily record identification information
Individual terminal and application.
In above-mentioned implementation, server can generate daily record by the way of various generation unique marks
Identification information, does not limit in the embodiment of the present application.Displaying main frame can also be adopted in various manners will service
The daily record identification information of device generation informs terminal, such as by communication network, by WLAN;For another example,
The daily record identification information generation Quick Response Code of the application that displaying main frame is returned according to server, and show the two dimension
Code is supplied to generate the daily record data terminal scanning of the application, and the Quick Response Code that terminal scanning displaying main frame shows is obtained
To the daily record identification information that the Quick Response Code is carried.
In terminal, step 310 generates the daily record data of application.
Terminal can record its day using the various modes for providing in the prior art in the running of application
Will data, the embodiment of the present application is not limited.
In terminal, step 320 uploads the daily record identification information and daily record data of the application to server.
On the server, step 210, the daily record identification information and daily record number of the application that receiving terminal is uploaded
According to.
Terminal by the communication network between server will apply daily record identification information and daily record data on
Server is transmitted to, the specific agreement for being used is not limited.
In one implementation, can be set up after Socket (socket) is connected in terminal and server,
Terminal first passes through the daily record identification information of the application that Socket connections are uploaded, the notification server Socket
Connection (belongs to which daily record mark is believed for the daily record data transmitted corresponding to which daily record identification information
Cease the daily record data of corresponding terminal and application), then terminal is connected on server by the Socket
Pass the daily record data of application generation in this terminal.
Server receive terminal upload daily record identification information and daily record data after, preserve daily record data with
And which daily record identification information the daily record data corresponds to.
On displaying main frame, step 420 sends log data requests, log data requests to server
Include the daily record identification information of application.
On the server, step 220, receives the log data requests of displaying main frame.
On the server, step 230, daily record in having log data requests is returned to displaying main frame and is identified
The daily record data of the application of information.
Displaying main frame on, step 430, the reception server return with daily record in log data requests
The daily record data of the application of identification information, and represent the daily record data of reception.
Displaying main frame sends log data requests to server, and with least one in log data requests
What the daily record identification information of individual application came that notification server asked is which or which daily record data.Service
Device finds corresponding daily record data (i.e. with the day according to the daily record identification information in log data requests
The daily record data of the application of will identification information), the daily record data that will be applied is returned in daily record data response
Give displaying main frame.After displaying main frame receives asked daily record data, daily record data is shown to user.
Log data requests and response between displaying main frame and server can use various agreements, and
Daily record data is transmitted to be matched with the interactive mode of agreement.For example, displaying main frame can be built with server
Vertical connection long, displaying main frame is first connected based on the length and sends log data requests to server, and server leads to
Cross log data requests and learn length connection for transmitting the daily record of the application with which daily record identification information
Data, then be based on the daily record data of the application linkup transmit long and give displaying main frame;When the day of the application
When will data have renewal, server can be issued based on length connection and not yet be transferred to the newly-increased of displaying main frame
Daily record data.
In one example, main frame is shown in a browser to the daily record data of user's display terminal application,
Due between browser and server generally using Http (Hyper Text Transfer Protocol, it is super literary
This host-host protocol) class short connection protocol, when displaying main frame wish it is lasting acquisition certain terminal applies day
During will data, can be asked with the Http that some cycles send the daily record identification information for carrying application by browser
Ask (i.e. log data requests);After server receives the log data requests of Http forms, it is right to search
The daily record data of Ying Yu wherein daily record identification informations, will not yet be handed down to the newly-increased daily record data of displaying main frame
(the daily record number for typically being uploaded from terminal after the log data requests and response of last time and the displaying main frame
According to), the browser of displaying main frame is sent in Http responses, it is shown to by the browser of displaying main frame
User.So, user can see that designated terminal application is constantly updated in the browser on displaying main frame
Daily record data.
It can be seen that, in embodiments herein, terminal to server uploads daily record identification information and the day of application
Will data, server will show that the daily record data that main frame specifies daily record identification information corresponding is handed down to displaying master
Machine, by recognizing the terminal applies belonging to daily record data using daily record identification information, user can be in exhibition
Show the daily record data that multiple terminal applies are checked on main frame, be no longer limited by showing the hardware interface number of main frame
Amount, and shows that main frame can obtain the daily record data of the terminal applies of any operating system, it is to avoid flat
Platform is limited.
In an application example of the application, displaying main frame is with the Web page of browser come aobvious to user
Show the daily record data of terminal applies.Displaying main frame, the interaction flow between terminal and server refer to figure
5。
Show that the browser of main frame sends Web page access request to server, it is predetermined to meet in request
The Web page address of condition, shows that the Web page access request is daily record identification request.
Server receives the Web page access request of displaying main frame and identifies that the request is identified for daily record
Request, for the request generates Token (token), the Token for being generated is in currently valid all Token
In be uniquely corresponding to the Web page.
The Token of generation is sent to displaying main frame by server in the response of Web page access request.
In other words, the Token that server will be generated is identified in daily record and responded as the daily record identification information of application
In reply to displaying main frame.
Show that the browser of main frame parses the Token corresponding to Web page from daily record mark response,
Generation carries the Quick Response Code of the Token, is displayed in the Web page.
Terminal starts application, and the Quick Response Code in scanning displaying main frame Web page is carried in acquisition Quick Response Code
Token.
Socket connections long are set up between terminal applies and server, after connection is set up, terminal applies first will
Token is uploaded to server, and the daily record data that the application is generated is uploaded into server afterwards.Work as application
After generating new daily record data in operation, the application is connected new day yet by the Socket for having set up
Will data are uploaded to server.
Server receives the Token of terminal applies upload and the daily record data of application from Socket connections,
The daily record data received based on Socket connections is preserved according to Token, in order to other-end and/or
The daily record data of application makes a distinction.
On displaying main frame, the Web page of browser uses Http agreements, using the Token as ginseng
Number, is circulated with some cycles and (carries the daily record number of daily record identification information to server transmission Http requests
According to request).
Server receives the Http requests of displaying main frame Web page, according to Token therein, by correspondence
In the Token, be not yet handed down to the daily record data of the Web page, be encapsulated in Http response in send out
Give the Web page of displaying main frame.
The daily record data of reception is shown to user by displaying main frame in the Web page.
So, user can open several Web pages on the browser of displaying main frame, and user is every
Individual Web page is it can be seen that a daily record data for terminal applies continuous updating.
Corresponding with the realization of above-mentioned flow, embodiments herein additionally provides a kind of application on the server
Device, a kind of device of the offer terminal applies daily record applied in terminal of terminal applies daily record are provided,
Applied in the device for showing the acquisition terminal applies daily record on main frame with a kind of.These three devices can be with
Realized by software, it is also possible to realized by way of hardware or software and hardware combining.It is implemented in software to be
Example, is the CPU (Central by showing main frame, terminal or server as the device on logical meaning
Process Unit, central processing unit) corresponding computer program instructions are read to run in internal memory formed
's.From for hardware view, in addition to the CPU shown in Fig. 6, internal memory and nonvolatile memory,
Terminal where providing the device of terminal applies daily record generally also includes the core for carrying out wireless signal transmitting-receiving
Other hardware such as piece;Displaying main frame, offer terminal applies day where obtaining the device of terminal applies daily record
Server where the device of will is generally also including for other hardware etc. the board for realizing network communicating function.
Fig. 7 show a kind of device of offer terminal applies daily record of the embodiment of the present application offer, applies
On server, including under mark and data receipt unit, log data requests receiving unit and daily record data
Bill unit, wherein:Mark and data receipt unit are used for the daily record mark letter of the application that receiving terminal is uploaded
Breath and daily record data;Log data requests receiving unit is used to receive the log data requests of displaying main frame,
The log data requests include daily record identification information;Daily record data issuance unit is used for displaying main frame
Return to the daily record data with the application of daily record identification information in the log data requests.
In one example, described device also includes daily record identification generation unit, for according to displaying main frame
Daily record identification request, generates the daily record identification information of application and is handed down to displaying main frame;Will for displaying main frame
The daily record identification information is supplied to the terminal of the daily record data for generating the application.
In previous example, the daily record identification generation unit can be specifically for:Browsed according to displaying main frame
The WWW Web page access request of device, generates token Token, used as the daily record identification information of application
It is handed down to displaying main frame.
Optionally, the log data requests include:What the browser of displaying main frame was sent with some cycles
HTTP Http is asked;The daily record data issuance unit specifically for:To not yet be handed down to
Displaying main frame, the daily record data with the application of daily record identification information in the log data requests,
Displaying main frame is sent in Http responses.
Optionally, the mark and data receipt unit include that connection establishment module long, daily record mark are received
Module and daily record data receiver module, wherein:Connection establishment module long is used to set up socket with terminal
Socket is connected;Daily record identifies receiver module is used for receiving terminal by answering that Socket connections are uploaded
Daily record identification information;Daily record data receiver module is used for receiving terminal and is connected by the Socket
The daily record data of the application for passing.
Optionally, the daily record identification information of the application includes:Terminal iidentification or terminal iidentification and application
Mark.
Fig. 8 show a kind of device of offer terminal applies daily record of the embodiment of the present application offer, applies
In terminal, including daily record data generation unit and mark and data uploading unit, wherein:Daily record data is given birth to
It is used to generate the daily record data of application into unit;Mark and data uploading unit are used to upload institute to server
State the daily record identification information and daily record data of application.
In one example, described device also includes daily record mark acquiring unit, for being obtained from displaying main frame
The daily record identification information of application;The daily record identification information is generated by server and is handed down to displaying main frame.
In previous example, the daily record mark acquiring unit can be specifically for:Scanning displaying main frame shows
Quick Response Code, the Quick Response Code carries the daily record identification information of application;The daily record identification information can be with
Including:The token Token of server generation.
Optionally, the mark and data uploading unit include that Socke connection establishment modules, daily record are identified
Uploading module and daily record data uploading module, wherein:Socke connection establishment modules are used to be built with server
Vertical Socket connections;Daily record mark uploading module is used to connect the daily record for uploading application by the Socket
Identification information;Daily record data uploading module is used to connect the daily record for uploading the application by the Socket
Data.
Fig. 9 show a kind of device of acquisition terminal applies daily record of the embodiment of the present application offer, applies
Displaying main frame on, including daily record identity information element, log data requests transmitting element and data receiver and
Represent unit, wherein:Daily record identity information element is used to obtain the daily record identification information of application;Daily record number
It is used to send log data requests to server according to request transmitting unit, the log data requests include
The daily record identification information of application;Data receiver and represent unit for the reception server return with daily record
The daily record data of the application of daily record identification information in request of data, and represent the daily record data of reception.
In one example, the daily record identity information element specifically for:Daily record is sent to server to identify
Request, the daily record identification information of the application of the reception server generation;Described device also includes:Daily record is identified
Unit is provided, for the daily record identification information of the application received from server to be supplied into the generation application
Daily record data terminal.
In above-mentioned example, the daily record identification request can include:The WWW Web page interview of browser
Ask request;The daily record identification information can include:The token Token of server generation.
In above-mentioned example, daily record mark provides unit can be specifically for:Returned according to server
The daily record identification information generation Quick Response Code of application is shown, for the end of the daily record data of the generation application
End scanning.
Optionally, the log data requests include:What the browser of displaying main frame was sent with some cycles
HTTP Http is asked;The data receiver and represent unit specifically for:The reception server
Http response in return, with log data requests in daily record identification information application newly-increased daily record
Data, and represent the daily record data of reception.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, it is all at this
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.
In a typical configuration, computing device includes one or more processors (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer include, but are not limited to phase transition internal memory (PRAM),
Static RAM (SRAM), dynamic random access memory (DRAM), it is other kinds of with
Machine accesses memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory
(EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk are stored or it
His magnetic storage apparatus or any other non-transmission medium, can be used to store the letter that can be accessed by a computing device
Breath.Defined according to herein, computer-readable medium does not include temporary computer readable media (transitory
Media), such as the data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only wrapped
Include those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can be used and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on implement computer program product form.