CN106445507A - Interface switching method, terminal and server - Google Patents

Interface switching method, terminal and server Download PDF

Info

Publication number
CN106445507A
CN106445507A CN201610810841.8A CN201610810841A CN106445507A CN 106445507 A CN106445507 A CN 106445507A CN 201610810841 A CN201610810841 A CN 201610810841A CN 106445507 A CN106445507 A CN 106445507A
Authority
CN
China
Prior art keywords
interface
server
packet
request
rendering data
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.)
Pending
Application number
CN201610810841.8A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610810841.8A priority Critical patent/CN106445507A/en
Publication of CN106445507A publication Critical patent/CN106445507A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the invention provide an interface switching method, a terminal and a server. The interface switching method comprises the steps of receiving an operation instruction sent by a user; determining the type of the operation instruction; when the operation instruction is an interface switching request, sending the interface switching request to a first server, thereby enabling the first server to generate a data package according to the interface switching request, wherein the data package comprises rendering data corresponding to a to-be-switched interface; receiving the data package sent by the first server; and extracting the rendering data corresponding to the to-be-switched interface from the data package to perform interface rendering, generating the to-be-switched interface and performing display. According to the interface switching scheme provided by the method, the processing burden of the server can be reduced.

Description

Interface switching method, terminal and server
Technical field
The present invention relates to changing interface technical field, more particularly to a kind of interface switching method, terminal and server.
Background technology
Increasing company is related to Internationalizationof at present, when developing design multiple solutions project for services sites, How to develop efficient, high performance changing interface project, be those skilled in the art's problem in the urgent need to address.
Inventor finds during realizing the present invention, and in packet discharge and handoff procedure, language pack is bigger, service The parsing pressure of device is bigger.And in existing changing interface scheme, when carrying out language switching, terminal sends receiving user Request when, the request no matter receiving be changing interface request or user interactive process request, all will request send To same server, carry out handling up for the packet of request by single server, server parsing pressure is very big.
Content of the invention
The embodiment of the present invention provides a kind of interface switching method, terminal and server, in order to solve existing changing interface Handle up because single server carries out packet present in scheme, the server leading to parses the big problem of pressure.
In order to solve the above problems, the invention discloses a kind of interface switching method, including:The operation that receive user sends Instruction;Determine the type belonging to described operational order;When described operational order is asked for changing interface, by described changing interface Request sends to first server, so that described first server is asked according to described changing interface, generates packet;Wherein, Described packet includes:The corresponding rendering data in be switched interface;Receive the described packet that described first server sends; Extract the corresponding rendering data in described to be switched interface and carry out interface from described packet and render, generate described to be switched interface Shown.
In order to solve the above problems, the invention discloses another kind of interface switching method, including:First server receives eventually The changing interface request that end sends;Described first server asks to generate packet according to described changing interface;Wherein, described number According to including:The corresponding rendering data in described to be switched interface, the described packet generating is sent to described terminal, for Described terminal is extracted the corresponding rendering data in described to be switched interface from described packet and is carried out interface and renders, after generating switching Interface shown;The interactive operation that second server receiving terminal sends processes request;Described second server responds institute State the corresponding interaction data of interactive operation described in acquisition request;The described interaction data getting is sent by described second server Shown to described terminal.
In order to solve the above problems, the invention also discloses a kind of terminal, described terminal includes:First command reception mould Block, the operational order sending for receive user;Determination type module, for determining the type belonging to described operational order;The One sending module, for when described operational order is asked for changing interface, the request of described changing interface being sent to the first clothes Business device, so that described first server is asked according to described changing interface, generates packet;Wherein, described packet includes: The corresponding rendering data in be switched interface;Packet-receiving module, for receiving the described data that described first server sends Bag;First generation module, carries out interface wash with watercolours for extracting the corresponding rendering data in described to be switched interface from described packet Dye, generates described to be switched interface and is shown.
In order to solve the above problems, the present invention discloses a kind of server again, including:First server, second server; Described first server includes:Request receiving module, the changing interface request sending for receiving terminal;Generation module, is used for Ask to generate packet according to described changing interface;Wherein, described packet includes:Described to be switched interface is corresponding to be rendered Data;Sending module, for sending the described packet generating to described terminal, so that described terminal is from described packet Extract the corresponding rendering data in described to be switched interface and carry out interface and render, generate the interface after switching and shown;Described Two servers include:Receiver module, processes request for the interactive operation that receiving terminal sends;Acquisition module, for responding State the corresponding interaction data of interactive operation described in acquisition request;Interaction data sending module, for by the described interaction getting Data is activation to described terminal is shown.
The changing interface scheme that the present invention provides, the server of process switching operational order is separately laid out in first service Device and second server two class server, two class servers process different types of handover operation instruction respectively.When terminal connects When receiving handover operation instruction, judge the type belonging to operational order, when operational order is asked for changing interface, then will ask Send and to first server, packet is carried out by first server and handle up, when the handover operation receiving is asked at for interactive operation During reason request, then send the request to second server and carry out packet and handle up.It can be seen that, interface provided in an embodiment of the present invention is cut Change scheme, provide changing interface to process by first server and second server two class server, be only capable of compared to existing For the scheme enough providing changing interface to process by single server, the processing load of server can be subtracted.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also root Obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of flow chart of steps of according to embodiments of the present invention one interface switching method;
Fig. 2 is a kind of flow chart of steps of according to embodiments of the present invention two language switching method;
Fig. 3 is a kind of flow chart of steps of according to embodiments of the present invention three interface switching method;
Fig. 4 is a kind of flow chart of steps of according to embodiments of the present invention four interface switching method;
Fig. 5 is a kind of flow chart of steps of according to embodiments of the present invention five interface switching method;
Fig. 6 is a kind of structured flowchart of according to embodiments of the present invention six terminal;
Fig. 7 is a kind of structured flowchart of according to embodiments of the present invention seven terminal;
Fig. 8 is a kind of structured flowchart of according to embodiments of the present invention eight server;
Fig. 9 is a kind of structured flowchart of according to embodiments of the present invention nine server;
Figure 10 is a kind of structural representation of according to embodiments of the present invention ten electronic equipment of execution interface switching method.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, show a kind of flow chart of steps of interface switching method of the embodiment of the present invention one.
From end side or server side, interface switching method is illustrated in the embodiment of the present invention, the present invention is implemented The interface switching method of example comprises the following steps:
Step 101:The operational order that receive user sends.
Wherein, operational order can be changing interface request or interactive operation request of data.Changing interface is asked Can be the switching between the changing interface between same language or different language interface.
For different types of operational order, terminal processes mode is different, therefore, needs receiving in the embodiment of the present invention After the operational order sending to user, determine the type belonging to operational order.
Step 102:Determine the type belonging to operational order.
Step 103:When operational order is asked for changing interface, changing interface request is sent to first server, with Ask according to changing interface for first server, generate packet.
Wherein, packet includes:The corresponding rendering data in be switched interface.
The server providing packet for terminal in the embodiment of the present invention includes first server and second server two Individual server.Wherein, first server is used for extracting to be switched interface from full dose packet, and corresponding interface renders number According to packet;Second server is then used for providing the interactive operation that user sends to process the corresponding interaction data of request.
Step 104:Receive the packet that first server sends.
After first server generates packet, send data packets to terminal, terminal then receives first server transmission Packet.
Step 105:Extract the corresponding rendering data in be switched interface and carry out interface from packet and render, generate to be switched Interface is shown.
Render, for according to rendering data, the concrete mode generating interface, participate in existing correlation technique, the present invention is real Apply in example and this is not specifically limited.
Interface switching method provided in an embodiment of the present invention, the server processing changing interface request is separately laid out in the One server and second server two class server, two class servers process different types of handover operation instruction respectively.When When terminal receives handover operation instruction, judge the type belonging to operational order, when operational order is asked for changing interface, then Send the request to first server packet is carried out by first server and handle up, when the handover operation receiving is asked as interaction During operation processing request, then send the request to second server and carry out packet and handle up.It can be seen that, provided in an embodiment of the present invention Interface switching method, provides changing interface to process by first server and second server two class server, compared to existing Only can by single server provide changing interface process method for, the processing load of server can be subtracted.
Embodiment two
With reference to Fig. 2, show a kind of flow chart of steps of interface switching method of the embodiment of the present invention two.
Still from end side or server side, interface switching method is illustrated in the embodiment of the present invention, the present invention is implemented The interface switching method of example is the optimization further to the interface switching method in embodiment one, the interface switching method after optimization Comprise the following steps:
Step 201:The operational order that receive user sends.
Wherein, operational order includes but is not limited to following two types:The first, changing interface request;Second, interaction Operation processing request.
Changing interface asks to be the request from current web page changing interface to another web interface.Certainly, changing interface But can for the switching between same web interface different language species or with category of language between different web pages interface it Between switching.For example:Current interface is A interface, from A changing interface to the request at B interface and changing interface request, more for example: Current interface is English A interface, from English A changing interface to the request at German A interface also for changing interface request.
Interactive operation processes the interactive operation for user and certain interface for the request.For example:User clicks on " payment " in interface After option, terminal need to show payment interface, and user's triggering terminal shows that this operation of this payment interface is that interactive operation process please Ask.
Step 202:Determine the type belonging to operational order;When operational order is asked for changing interface, then execution step 205, when operational order processes request for interactive operation, then execution step 203.
Include first server and two services of second server with the server of terminal interaction in the embodiment of the present invention Device.Wherein, first server is used for extracting to be switched interface, the number of corresponding interface rendering data from full dose packet According to bag;Second server is then used for providing the interactive operation that user sends to process the corresponding interaction data of request;Therefore, terminal exists After determining the type belonging to operational order, need to send operational order to corresponding server according to judged result.
It should be noted that the operation of the determination of the affiliated type of operational order and the request sending to corresponding server, It is not limited to be executed by terminal.During implementing, web page server can also be set in the server, terminal is born Duty sends operational order to web page server, determines the affiliated type of operational order by web page server, then by web service Device sends operational order to corresponding server according to judged result.
Step 203:When operational order processes request for interactive operation, interactive operation is processed request and sends to the second clothes Business device, processes the corresponding interaction data of request so that second server extracts interactive operation.
Step 204:Receive and show the interaction data that second server sends.
After terminal receives the interaction data of second server transmission, show after the interaction data receiving is processed To user.
Step 205:When operational order is asked for changing interface, changing interface request is sent to first server, with Ask according to changing interface for first server, generate packet.
Wherein, packet includes:The corresponding rendering data in be switched interface.
The identification information to be switched interface can be taken, first server passes through this identification information in changing interface request Extract the corresponding rendering data in be switched interface from full dose packet, generate packet.
Alternatively, first server is when extracting the corresponding rendering data in be switched interface from full dose packet, permissible Together the corresponding rendering data in interface with to be switched interface with incidence relation is extracted, corresponding with to be switched interface Rendering data is together generated packet.
Step 206:Receive the packet that first server sends.
Step 207:Extract the corresponding rendering data in be switched interface and carry out interface from packet and render, generate to be switched Interface is shown.
Step 208:Receive the operation switching to the first interface that there is incidence relation with current interface from current interface to refer to Order.
Optionally, also include in addition to including the corresponding rendering data in be switched interface in packet:With to be switched interface tool The corresponding rendering data in relevant interface.
For example:To be switched interface is A interface, then the corresponding interface A of link 1 interface of display and A1 interface on A interface The corresponding interface A 2 that links of upper display is the interface with to be switched interface with incidence relation.
It should be noted that step 208 to step 210 is optional step.When packet includes and to be switched interface tool During the corresponding rendering data in relevant interface, then can perform step 208 to step 210, and if user is aobvious in terminal Show in be switched interface, do not retransmited changing interface request, then without execution step 208 to step 210.Certainly, if data Do not comprise the corresponding rendering data in interface with to be switched interface with incidence relation in bag, show to be switched boundary used in terminal Behind face, when sending the request switching to related interfaces again, then need to return execution step 202.
Render so that packet includes with to be switched interface has incidence relation interface is corresponding in the embodiment of the present invention As a example data and user send the request switching to related interfaces again, follow-up process is illustrated.
Step 209:The corresponding rendering data in the first interface is extracted from packet.
The interface having incidence relation with the interface of display exists multiple, and the first interface is only in numerous association interfaces One, each interface is respectively provided with mark, when extracting the corresponding rendering data in the first interface from packet, determines the first interface pair The mark answered, then extracts the extraction that the corresponding rendering data of mark determining can complete rendering data from packet.
Step 210:Carry out interface according to the rendering data extracting to render, generate and show the first interface.
Interface switching method provided in an embodiment of the present invention, except having what interface switching method described in embodiment one had Outside beneficial effect, due to generate language pack in not only comprise the corresponding rendering data in be switched interface, also comprise with to be cut Change the corresponding rendering data in interface that interface has incidence relation.So, after showing to be switched interface in the terminal, terminal connects When receiving the handover request that user treats the interface that interface switching has incidence relation, terminal obtains rendering of this interface from local Data render generates interface, and need not send handover request to server again, can mitigate the processing load of server, and And the response speed of handover request can be lifted, thus lifting the experience of user.
Embodiment three
With reference to Fig. 3, show a kind of flow chart of steps of interface switching method of the embodiment of the present invention three.
From server side, interface switching method is illustrated in the embodiment of the present invention, the changing interface of the embodiment of the present invention Method comprises the following steps:
Step 301:The changing interface request that first server receiving terminal sends.
Server in the embodiment of the present invention includes first server and second server.Wherein, first server I.e. static file server is used for extracting the corresponding interface in be switched interface rendering data from full dose packet, and generates Packet;Second server is that dynamic state server is then used for providing the interactive operation that user sends corresponding interaction data.
Step 302:First server generates packet according to changing interface request.
Wherein, the packet of generation includes:The corresponding rendering data of interface switching.
The full dose that is stored with first server packet, displayable various language in the terminal that is stored with full dose packet Interface, rendering data.
In this step, in changing interface request, the corresponding mark in be switched interface can be carried, first server is determining After the mark to be switched interface, you can extract the corresponding rendering data in interface of this mark from full dose packet.
For example:But for the different interface of the identical language of content, Chinese interface is designated A1, and English interface identifies For A2, German interface identification is A3, includes the corresponding rendering data in A1, A2, A3 interface in full dose packet.In first service After device receives the request at switching A1 interface, when determining to be switched interface identification for A1, then can extract from full dose packet The corresponding rendering data of A1 generates packet, and the rendering data that terminal is passed through in this packet can generate Chinese interface.
Step 303:First server sends data packets to terminal.
After first server generates packet, can directly the packet of generation be sent to terminal it is also possible to will generate Packet send to server setting web page server, terminal is sent data packets to by web page server.Terminal connects After receiving packet, you can extract the corresponding rendering data in be switched interface from packet and carry out interface and render, generate switching Interface afterwards is shown.
Step 304:The interactive operation that second server receiving terminal sends processes request.
After the completion of changing interface, user may send the instruction of interface switching it is also possible to send out by terminal by terminal Deliver interoperability and process request.The rendering data in the language pack receiving is called to carry out for interface switching instruction by terminal Reason or return execution step 301 carry out changing interface, and process request for interactive operation, then needing will by terminal This process request sends to second server, provides this interactive operation to process by second server and asks corresponding response data.
It can be seen that, the first server in the embodiment of the present invention is mainly used in providing interface to render required static data, and Second server is mainly used in providing the dynamic data needed for response user interactive.
For example:After user clicks on " payment " option in interface, the payment interface shown by terminal then needs dynamic data Render generation.And user click in interface certain product link when, the commodity details interface shown by terminal then needs static state Data render generates.
Step 305:Second server respond request obtains the corresponding interaction data of interactive operation.
Step 306:The interaction data getting is sent and is shown to terminal by second server.
By interface switching method provided in an embodiment of the present invention, by the server of process switching operational order separately layout Become first server and second server two class server, two class servers process dissimilar handover operation instruction respectively. When terminal receives handover operation instruction, judge the type belonging to operation requests, when operational order is asked for changing interface, Then send the request to first server packet is carried out by first server and handle up, when the operational order receiving is interaction behaviour When dealing with request, then send the request to second server and carry out packet and handle up.It can be seen that, boundary provided in an embodiment of the present invention Face changing method, provides changing interface to process by first server and second server two class server, compared to existing For the method that only changing interface can be provided to process by single server, the processing load of server can be mitigated.
Example IV
With reference to Fig. 4, show a kind of flow chart of steps of interface switching method of the embodiment of the present invention four.
Still from server side, interface switching method is illustrated in the embodiment of the present invention, it is to enforcement that the present invention is implemented The further illustrating of interface switching method in example three, interface switching method specifically includes following steps:
Step 401:The changing interface request that first server receiving terminal sends.
Server in the embodiment of the present invention includes that first server is static file server and second server is Dynamic state server.First server is used for extracting to be switched interface, corresponding interface rendering data from full dose packet Generation packet;Second server is then used for providing the interactive operation that user sends corresponding interaction data.
Changing interface request can be between the webpage of identical content switch different language the request at interface or The request switching between the webpage of different content.
Alternatively, web page server can also be included in server.Wherein, web page server is used for carrying out and terminal between Interaction.It is also possible to being judged and taken by the operational order type that web page server shares terminal execution during implementing The operation that business device selects.Specifically:After the operational order that web page server receiving terminal sends, determine the class belonging to operational order Type, web page server determine operational order be to changing interface request after, by changing interface request send to first server, its In, the corresponding mark in be switched interface can be carried in request.
Step 402:First server calls static packet to generate script from script server.
Alternatively, first server is set to Nginx.By nginx service creation static file, sufficiently make use of Nginx processes the access ability of high concurrent, can effectively lift the performance of service.
Nginx is a high performance HTTP and Reverse Proxy, is also IMAP/POP3/SMTP agency's clothes Business device.The Rambler.ru website exploitation that Nginx is is Russian visit capacity second by Igor Sysoev, first disclosure Version 0.1.0 is published on October 4th, 2004.Source code is issued in the form of class BSD licensing by it, because it stability, The abundant consumption of function collection, sample profile and low system resource and well-known.On June 1st, 2011, nginx 1.0.4 sends out Cloth.
Step 403:By the script that calls, according to the mark at the to be switched interface carrying in changing interface request, from the In the full dose packet of storage in one server, extract the corresponding rendering data in be switched interface, and have with to be switched interface The corresponding rendering data in relevant interface.
For example:To be switched interface is A interface, then the corresponding interface A of link 1 interface of display and A1 interface on A interface The corresponding interface A 2 that links of upper display is the interface with to be switched interface with incidence relation.
Step 404:The rendering data extracting from full dose packet is integrated into by packet by the script calling.
The packet being generated includes:The corresponding rendering data in be switched interface is had with to be switched interface and associates The corresponding rendering data in interface of system.
Wherein, the packet being integrated into can be static JavaScript packet.In the embodiment of the present invention, in service Automatized script is developed at device end, adds according to the demand of those skilled in the art at first server end that interface is corresponding to render number According to.When generating static JavaScript packet, the script execution developed by server end generates static JavaScript Packet.When server end generates JavaScript by this way and calls packet static file, before JavaScript End calls the functional module of translation to be divided into JavaScript packet little one by one, this mode, and packet is called in front end Obtain full dose packet without disposable, but targetedly carry out packet acquisition according to the actual requirements, therefore, it is possible to subtract Few data volume obtaining, thus lift the execution efficiency of changing interface request.
Step 405:The packet of generation is sent to terminal.
After terminal receives packet, you can extract the corresponding rendering data in be switched interface from packet and carry out interface Render, generate the interface after switching and shown.
Step 406:The interactive operation that second server receiving terminal sends processes request.
After the completion of changing interface, terminal use may send the instruction of interface switching it is also possible to pass through eventually by terminal End sends interactive operation and processes request.Rendering data in the packet that interface switching instruction is received by client call Carry out processing, and request is processed for interactive operation, then need to be sent to second server by terminal, by second server There is provided this interactive operation to process and ask corresponding response data.
It can be seen that, the first server in the embodiment of the present invention is mainly used in providing interface to render required static data, and Second server is mainly used in providing the dynamic data needed for response user interactive.
For example:After user clicks on " payment " option in interface, the payment interface shown by terminal then needs dynamic data Render generation.And user click in interface certain product link when, the commodity details interface shown by terminal then needs static state Data render generates.
Step 407:Second server respond request obtains the corresponding interaction data of interactive operation.
Step 408:The interaction data getting is sent and is shown to terminal by second server.
It should be noted that in addition to the sending method that interaction data is directly sent to terminal by second server, acceptable By second server, interaction data is sent to web page server, web page server receives the interactive number of second server transmission According to rear, the interaction data receiving is sent to terminal, terminal is then processed according to the interactive operation that this interaction data responds user Request.
Interface switching method provided in an embodiment of the present invention, the server of process switching operational order is separately laid out in One server and second server two class server, two class servers process dissimilar handover operation instruction respectively.Work as end When termination receives handover operation instruction, judge the type belonging to operation requests, when operational order is asked for changing interface, then will Request transmission carries out packet to first server by first server and handles up, when the operational order receiving is at interactive operation During reason request, then send the request to second server and carry out packet and handle up.It can be seen that, interface provided in an embodiment of the present invention is cut Change method, provide changing interface to process by first server and second server two class server, be only capable of compared to existing For the method enough providing changing interface to process by single server, the processing load of server can be mitigated.
Embodiment five
With reference to Fig. 5, show a kind of flow chart of steps of interface switching method of the embodiment of the present invention five.
It is the angle from terminal and server interaction in the embodiment of the present invention, the interface switching method of the present invention is carried out Explanation.The interface switching method of the embodiment of the present invention specifically includes following steps:
Step 501:The operational order that terminal receive user sends.
Wherein operational order type includes but is not limited to:Changing interface request and interactive operation process request.
Step 502:Terminal determines the type belonging to operational order;When affiliated type is asked for changing interface, execution Step 503, when affiliated type processes request for interactive operation, execution step 507.
Step 503:When operational order is asked for changing interface, terminal sends changing interface request to first service Device.
Step 504:The changing interface request that first server receiving terminal sends.
Wherein, carry the mark to be switched interface in changing interface request.
Step 505:First server generates packet according to changing interface request, and the packet of generation was sent to end End.
Wherein, packet includes:The corresponding rendering data in be switched interface.Alternatively, can also comprise in packet There is the corresponding rendering data in interface of incidence relation with to be switched interface.
Step 506:Terminal receives the packet that first server sends, and extracts to be switched interface corresponding from packet Rendering data carries out interface and renders, and generates to be switched interface and is shown.
Alternatively, after to be switched interface display, if terminal receive changing interface ask for instruction switch to be cut When changing the interface that interface has incidence relation, if comprising the rendering data at this association interface in packet, directly from packet The corresponding rendering data of middle extraction carries out rendering;Certainly, if not comprising the rendering data at this association interface in packet, return Return execution step 503 and carry out rendering data acquisition from first server.
Step 507:When operational order processes request for interactive operation, interactive operation is processed request and sends to the second clothes Business device.
Step 508:The interactive operation that second server receiving terminal sends processes request.
Step 509:Second server respond request obtains the corresponding interaction data of interactive operation, by the interactive number getting According to transmission to terminal.
Step 510:Terminal receives and shows the interaction data that second server sends.
Interface switching method provided in an embodiment of the present invention, the server of process switching operational order is separately laid out in One server and second server two class server, two class servers process dissimilar handover operation instruction respectively.Work as end When termination receives handover operation instruction, judge the type belonging to operation requests, when operational order is asked for changing interface, then will Request transmission carries out packet to first server by first server and handles up, when the operational order receiving is at interactive operation During reason request, then send the request to second server and carry out packet and handle up.It can be seen that, interface provided in an embodiment of the present invention is cut Change method, provide changing interface to process by first server and second server two class server, be only capable of compared to existing For the method enough providing changing interface to process by single server, the processing load of server can be mitigated.
Embodiment six
With reference to Fig. 6, show a kind of structured flowchart of terminal of the embodiment of the present invention six.
The terminal of the embodiment of the present invention includes:First command reception module 601, the operation sending for receive user refers to Order;Determination type module 602, for determining the type belonging to described operational order;First sending module 603, for when described When operational order is asked for changing interface, the request of described changing interface is sent to first server, for described first service Device is asked according to described changing interface, generates packet;Wherein, described packet includes:To be switched interface is corresponding to be rendered Data;Packet-receiving module 604, for receiving the described packet that described first server sends;First generation module 605, render for extracting the corresponding rendering data in described to be switched interface from described packet and carrying out interface, treat described in generation Interface switching is shown.
The present invention implements the terminal providing, and when receiving handover operation instruction, judges the type belonging to operation requests, when When operational order is asked for changing interface, then send the request to first server packet is carried out by first server and handle up; When the operational order receiving processes request for interactive operation, then send the request to second server and carry out packet and gulp down Tell.When the terminal that the present invention implements to provide carries out changing interface, first server and second server two class clothes can be called Business device provides changing interface to process, compared to the existing method that only changing interface can be provided to process by single server Speech, can mitigate the processing load of server.
Embodiment seven
With reference to Fig. 7, show a kind of structured flowchart of terminal of the embodiment of the present invention seven.
The terminal of the embodiment of the present invention includes:First command reception module 701, the operation sending for receive user refers to Order;Determination type module 702, for determining the type belonging to described operational order;First sending module 703, for when described When operational order is asked for changing interface, the request of described changing interface is sent to first server, for described first service Device is asked according to described changing interface, generates packet;Wherein, described packet includes:To be switched interface is corresponding to be rendered Data;Packet-receiving module 704, for receiving the described packet that described first server sends;First generation module 705, render for extracting the corresponding rendering data in described to be switched interface from described packet and carrying out interface, treat described in generation Interface switching is shown.
Alternatively, described terminal also includes:Second sending module 706, for being at interactive operation when described operational order During reason request, described interactive operation is processed request and sends to second server, so that described second server extracts described friendship Interoperability is processed asks corresponding interaction data;Interaction data receiver module 707, for receiving and showing described second server The interaction data sending.
Alternatively, described packet also includes:Corresponding with the interface that described to be switched interface has incidence relation render Data, described terminal also includes:Second command reception module 708, for generating described switching in described first generation module 705 After interface is shown, receive the operation switching to the first interface that there is incidence relation with current interface from current interface and refer to Order;Extraction module 709, for extracting the corresponding rendering data in described first interface from described packet;Second generation module 710, render for carrying out interface according to the rendering data extracting, generate and show described first interface.
The terminal of the present embodiment of the present invention is used for realizing corresponding changing interface in previous embodiment one and embodiment two Method, and there is the beneficial effect of corresponding embodiment of the method, will not be described here.
Embodiment eight
With reference to Fig. 8, show a kind of structured flowchart of server of the embodiment of the present invention eight.
The server of the embodiment of the present invention includes:First server 801, second server 802;
Described first server 801 includes:Request receiving module 8011, the changing interface sending for receiving terminal please Ask;Generation module 8012, for asking to generate packet according to described changing interface;Wherein, described packet includes:Described The corresponding rendering data in be switched interface;Sending module 8013, for the described packet generating is sent to described terminal, with Extract the corresponding rendering data in described to be switched interface for described terminal from described packet and carry out interface and render, generate switching Interface afterwards is shown;
Described second server 802 includes:Receiver module 8021, processing for the interactive operation that receiving terminal sends please Ask;Acquisition module 8022, for responding the corresponding interaction data of interactive operation described in described acquisition request;Interaction data sends mould Block 8023, is shown to described terminal for sending the described interaction data getting.
Server provided in an embodiment of the present invention, is separately laid out in first server and second server two class service Device, two class servers process dissimilar handover operation instruction respectively.When terminal receives handover operation instruction, judge operation Type belonging to request, when operational order is asked for changing interface, then sends the request to first server by first service Device carries out packet and handles up;When the operational order receiving processes request for interactive operation, then send the request to the second clothes Business device carries out packet and handles up.It can be seen that, server provided in an embodiment of the present invention, by first server and second server two Class server provides changing interface to process, compared to the existing side that only changing interface can be provided to process by single server The processing load of server for method, can be mitigated.
Embodiment nine
With reference to Fig. 9, show a kind of structured flowchart of server of the embodiment of the present invention nine.
The server of the embodiment of the present invention includes:First server 901, second server 902;
Described first server 901 includes:Request receiving module 9011, the changing interface sending for receiving terminal please Ask;Generation module 9012, for asking to generate packet according to described changing interface;Wherein, described packet includes:Described The corresponding rendering data in be switched interface;Sending module 9013, for the described packet generating is sent to described terminal, with Extract the corresponding rendering data in described to be switched interface for described terminal from described packet and carry out interface and render, generate switching Interface afterwards is shown;
Described second server 902 includes:Receiver module 9021, processing for the interactive operation that receiving terminal sends please Ask;Acquisition module 9022, for responding the corresponding interaction data of interactive operation described in described acquisition request;Interaction data sends mould Block 9023, is shown to described terminal for sending the described interaction data getting.
Alternatively, also include in described packet:The corresponding wash with watercolours in interface that there is incidence relation with described to be switched interface Dye data.
Alternatively, described generation module 9012 includes:Call submodule 90121, for calling number from script server Generate script according to bag;Rendering data extracting sub-module 90122, for the described script by calling, according to described changing interface The mark at the to be switched interface carrying in request, in the full dose packet of storage from described first server, treats described in extraction The corresponding rendering data of interface switching, and the corresponding rendering data in interface that there is incidence relation with described to be switched interface; Integrate submodule 90123, for the described script by calling, the rendering data extracting from full dose packet is integrated into Packet.
The server of the present embodiment is used for realizing corresponding interface switching method in previous embodiment three and example IV, And there is the beneficial effect of corresponding embodiment of the method, will not be described here.
Embodiment ten
Figure 10 is the hardware configuration of the electronic equipment of execution task priority processing method that the embodiment of the present application five provides Schematic diagram, as shown in Figure 10, this equipment includes:
One or more processors 110 and memory 120, in Figure 10 taking a processor 110 as a example.
The equipment of execution task priority processing method can also include:Input unit 130 and output device 140.
Processor 110, memory 120, input unit 130 and output device 140 can pass through bus or other modes Connect, in Figure 10 taking connected by bus as a example.
Memory 120, as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Task priority processing method in sequence, non-volatile computer executable program and module, such as the embodiment of the present application corresponds to Programmed instruction/module (for example, the first command reception module 601 shown in accompanying drawing 6, determination type module 602, first send Module 603, packet-receiving module 604 and the first generation module 605).Processor 110 is stored in memory by operation Non-volatile software program in 120, instruction and module, thus at the various function application of execute server and data Reason, that is, realize said method embodiment task processing method.
Memory 120 can include storing program area and storage data field, and wherein, storing program area can store operation system Application program required for system, at least one function;Storage data field can store the use according to task priority processing meanss Data being created etc..Additionally, memory 120 can include high-speed random access memory, non-volatile depositing can also be included Reservoir, for example, at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some enforcements In example, memory 120 is optional to include the memory remotely located with respect to processor 110, and these remote memories can pass through Network connection is to task priority processing meanss.The example of above-mentioned network includes but is not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
Input unit 130 can the numeral of receives input or character information, and produce and set with the user of Task Processing Unit Put and the input of key signals that function control is relevant.Output device 140 may include the display devices such as display screen.
One or more of modules are stored in described memory 120, when by one or more of processors During 110 execution, execute the task priority processing method in above-mentioned any means embodiment.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has Beneficial effect.The not ins and outs of detailed description in the present embodiment, can be found in the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The feature of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and low End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, has calculating and processes work( Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.This kind equipment includes:Audio frequency, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server:There is provided the equipment of the service of calculating, it is total that the composition of server includes processor, hard disk, internal memory, system Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, is therefore processing energy The aspects such as power, stability, reliability, security, extensibility, manageability require higher.
(5) other have the electronic installation of data interaction function.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can To be or to may not be physically separate, as the part that unit shows can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs In the purpose to realize this embodiment scheme for some or all of module.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement Example or some partly described methods of embodiment.
Finally it should be noted that:Above example only in order to technical scheme to be described, is not intended to limit;Although With reference to the foregoing embodiments the present invention is described in detail, it will be understood by those within the art that:It still may be used To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to wherein some technical characteristics; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (12)

1. a kind of interface switching method is it is characterised in that include:
The operational order that receive user sends;
Determine the type belonging to described operational order;
When described operational order is asked for changing interface, the request of described changing interface is sent to first server, for institute State first server to ask according to described changing interface, generate packet;Wherein, described packet includes:To be switched interface Corresponding rendering data;
Receive the described packet that described first server sends;
Extract the corresponding rendering data in described to be switched interface and carry out interface from described packet and render, generate described to be switched Interface is shown.
2. method according to claim 1 it is characterised in that:
When described operational order processes request for interactive operation, described interactive operation is processed request and sends to second service Device, processes the corresponding interaction data of request so that described second server extracts described interactive operation;
Receive and show the interaction data that described second server sends.
3. method according to claim 1 is it is characterised in that described packet also includes:Have with described to be switched interface The corresponding rendering data in relevant interface, after generating the step that described interface switching is shown, methods described Also include:
Receive the operational order switching to first interface with current interface with incidence relation from current interface;
The corresponding rendering data in described first interface is extracted from described packet;
Carry out interface according to the rendering data extracting to render, generate and show described first interface.
4. a kind of interface switching method is it is characterised in that include:
The changing interface request that first server receiving terminal sends;
Described first server asks to generate packet according to described changing interface;Wherein, described packet includes:Described treat The corresponding rendering data of interface switching,
The described packet generating is sent to described terminal, for described terminal extract from described packet described to be switched The corresponding rendering data in interface carries out interface and renders, and generates the interface after switching and is shown;
The interactive operation that second server receiving terminal sends processes request;
Described second server responds the corresponding interaction data of interactive operation described in described acquisition request;
The described interaction data getting is sent and is shown to described terminal by described second server.
5. method according to claim 4 it is characterised in that:
Also include in described packet:The corresponding rendering data in interface that there is incidence relation with described to be switched interface.
6. method according to claim 5 is it is characterised in that described first server please be sought survival according to described changing interface The step becoming packet, including:
Described first server calls packet to generate script from script server;
By the described script that calls, according to the mark at the to be switched interface carrying in the request of described changing interface, from described the In the full dose packet of storage in one server, extract the corresponding rendering data in described to be switched interface, and to be cut with described Change the corresponding rendering data in interface that interface has incidence relation;
The rendering data extracting from full dose packet is integrated into by packet by the described script calling.
7. a kind of terminal is it is characterised in that include:
First command reception module, the operational order sending for receive user;
Determination type module, for determining the type belonging to described operational order;
First sending module, for when described operational order is asked for changing interface, the request of described changing interface being sent extremely First server, so that described first server is asked according to described changing interface, generates packet;Wherein, described packet Include:The corresponding rendering data in be switched interface;
Packet-receiving module, for receiving the described packet that described first server sends;
First generation module, carries out interface wash with watercolours for extracting the corresponding rendering data in described to be switched interface from described packet Dye, generates described to be switched interface and is shown.
8. terminal according to claim 7 is it is characterised in that described terminal also includes:
Second sending module, for when described operational order processes request for interactive operation, described interactive operation is processed please Ask transmission to second server, process the corresponding interaction data of request so that described second server extracts described interactive operation;
Interaction data receiver module, for receiving and showing the interaction data that described second server sends.
9. terminal according to claim 7 is it is characterised in that described packet also includes:Have with described to be switched interface The corresponding rendering data in relevant interface, described terminal also includes:
Second command reception module, after being shown in the described first described interface switching of generation module generation, receives Switch to the operational order at first interface with current interface with incidence relation from current interface;
Extraction module, for extracting the corresponding rendering data in described first interface from described packet;
Second generation module, renders for carrying out interface according to the rendering data extracting, generates and show described first interface.
10. a kind of server is it is characterised in that include:First server, second server;
Described first server includes:
Request receiving module, the changing interface request sending for receiving terminal;
Generation module, for asking to generate packet according to described changing interface;Wherein, described packet includes:Described treat The corresponding rendering data of interface switching;
Sending module, for sending the described packet generating to described terminal, so that described terminal is from described packet Extract the corresponding rendering data in described to be switched interface and carry out interface and render, generate the interface after switching and shown;
Described second server includes:
Receiver module, processes request for the interactive operation that receiving terminal sends;
Acquisition module, for responding the corresponding interaction data of interactive operation described in described acquisition request;
Interaction data sending module, is shown to described terminal for sending the described interaction data getting.
11. servers according to claim 10 it is characterised in that:
Also include in described packet:The corresponding rendering data in interface that there is incidence relation with described to be switched interface.
12. servers according to claim 11 are it is characterised in that described generation module includes:
Call submodule, for calling packet to generate script from script server;
Rendering data extracting sub-module, for the described script by calling, according to treating of carrying in the request of described changing interface The mark of interface switching, in the full dose packet of storage from described first server, extracts described to be switched interface corresponding Rendering data, and the corresponding rendering data in interface that there is incidence relation with described to be switched interface;
Integrate submodule, for the described script by calling, the rendering data extracting from full dose packet is integrated into number According to bag.
CN201610810841.8A 2016-09-08 2016-09-08 Interface switching method, terminal and server Pending CN106445507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810841.8A CN106445507A (en) 2016-09-08 2016-09-08 Interface switching method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810841.8A CN106445507A (en) 2016-09-08 2016-09-08 Interface switching method, terminal and server

Publications (1)

Publication Number Publication Date
CN106445507A true CN106445507A (en) 2017-02-22

Family

ID=58164223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810841.8A Pending CN106445507A (en) 2016-09-08 2016-09-08 Interface switching method, terminal and server

Country Status (1)

Country Link
CN (1) CN106445507A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium
CN110248253A (en) * 2019-06-18 2019-09-17 北京字节跳动网络技术有限公司 Switching method, device, equipment and the storage medium of direct broadcasting room interactive interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702782A (en) * 2009-11-17 2010-05-05 广州杰赛科技股份有限公司 Digital television webpage monitoring server, system and method
CN102158524A (en) * 2010-12-30 2011-08-17 北京像素软件科技股份有限公司 Rendering-based distributed behavior control system
CN103399911A (en) * 2013-07-30 2013-11-20 北京小米科技有限责任公司 Access processing method, device and terminal device on basis of browser client
CN103870129A (en) * 2012-12-13 2014-06-18 阿里巴巴集团控股有限公司 Data processing method and device for application system cluster
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application
CN105095220A (en) * 2014-04-24 2015-11-25 华为技术有限公司 Browser implementation method, terminal and virtualized agent device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702782A (en) * 2009-11-17 2010-05-05 广州杰赛科技股份有限公司 Digital television webpage monitoring server, system and method
CN102158524A (en) * 2010-12-30 2011-08-17 北京像素软件科技股份有限公司 Rendering-based distributed behavior control system
CN103870129A (en) * 2012-12-13 2014-06-18 阿里巴巴集团控股有限公司 Data processing method and device for application system cluster
CN103399911A (en) * 2013-07-30 2013-11-20 北京小米科技有限责任公司 Access processing method, device and terminal device on basis of browser client
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application
CN105095220A (en) * 2014-04-24 2015-11-25 华为技术有限公司 Browser implementation method, terminal and virtualized agent device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682255A (en) * 2017-11-17 2018-02-09 腾讯科技(深圳)有限公司 Method for message transmission, device and storage medium
CN107682255B (en) * 2017-11-17 2021-04-16 腾讯科技(深圳)有限公司 Message transmission method, device and storage medium
CN110248253A (en) * 2019-06-18 2019-09-17 北京字节跳动网络技术有限公司 Switching method, device, equipment and the storage medium of direct broadcasting room interactive interface

Similar Documents

Publication Publication Date Title
CN107102941B (en) Test case generation method and device
CN112784989B (en) Inference system, inference method, electronic device, and computer storage medium
CN104598513B (en) A kind of method of data flow control and system based on web page frame
CN106533935A (en) Method for obtaining business chain information in cloud computing system and devices
CN108023808A (en) message distributing method and device in application program
CN107770269A (en) A kind of service response method and its terminal
CN112015573A (en) Interface data simulation method and device and electronic equipment
CN111796747B (en) Multi-open application processing method and device and electronic equipment
CN105190530A (en) Transmitting hardware-rendered graphical data
CN103309695A (en) Icon loading method and terminal
CN115955437B (en) Data transmission method, device, equipment and medium
CN110806922B (en) Script execution method, device, equipment and storage medium
CN107852422A (en) Connected from the server interface with different API to obtain ad data
CN106445507A (en) Interface switching method, terminal and server
CN108345683A (en) Webpage display process, device, terminal and storage medium
CN107222618A (en) Terminal screenshotss method and device
CN106971298A (en) Method of payment, system, payment conversion method and payment conversion equipment
CN109286688A (en) A kind of data download method and device
CN113590243A (en) Energy enterprise project creation method and device, computer equipment and medium
CN113055348B (en) Cross-platform data request method and device and electronic equipment
CN110597492B (en) Module calling method and related products
US20170235943A1 (en) Application Access Control Method and Apparatus
CN103299298A (en) Service processing method and system
CN114095758B (en) Cloud image intercepting method and related device
CN110650546A (en) File transmission method, device, storage medium and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170222