WO2016050144A1 - Interface update method and client - Google Patents

Interface update method and client Download PDF

Info

Publication number
WO2016050144A1
WO2016050144A1 PCT/CN2015/089958 CN2015089958W WO2016050144A1 WO 2016050144 A1 WO2016050144 A1 WO 2016050144A1 CN 2015089958 W CN2015089958 W CN 2015089958W WO 2016050144 A1 WO2016050144 A1 WO 2016050144A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
data
client
category
update
Prior art date
Application number
PCT/CN2015/089958
Other languages
French (fr)
Chinese (zh)
Inventor
彭磊
金锐
曾中华
Original Assignee
阿里巴巴集团控股有限公司
彭磊
金锐
曾中华
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 阿里巴巴集团控股有限公司, 彭磊, 金锐, 曾中华 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016050144A1 publication Critical patent/WO2016050144A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to an interface update method and a client.
  • the application client can provide an interface and display the services it provides to the user through the interface.
  • the interface of the application client is generally fixed and can be set by a layout configuration file preset in the installation package.
  • the server can only continuously release the upgrade package of the application client, so that the user can manually download and install the upgrade package, and then through the layout configuration file in the upgrade package. To change the interface of the application client. This method is inconvenient and inefficient because it requires the user to manually download and install the upgrade package.
  • aspects of the present application provide an interface update method and a client for simplifying the operation of updating an interface and improving the efficiency of updating the interface.
  • An aspect of the present application provides an interface update method, including:
  • the client obtains, from the server, service update data required to update an interface provided by the client for displaying service information;
  • the client updates the first service data used to form the current interface according to the service update data, and obtains the second service data.
  • the first service data includes: a service corresponding to the service category displayed by the current interface. Packet data, and the current interface is displayed in the service category
  • the service data corresponding to the service view; the service packet data corresponding to the service category includes: an identifier of the service belonging to the service category;
  • the client forms the new interface according to the second service data.
  • a client including:
  • An obtaining module configured to obtain, from a server, service update data required to update an interface provided by the client for displaying service information
  • an update module configured to update, according to the service update data, the first service data used by the current interface to obtain the second service data, where the first service data includes: the service category corresponding to the current interface Service packet data, and the current interface presents detailed data of a service corresponding to the service view under the service category; the service packet data corresponding to the service category includes: an identifier of a service belonging to the service category;
  • an interface module configured to form the new interface according to the second service data.
  • the client obtains service update data from the server to update the interface provided by the client for displaying the service information; wherein the current interface displays at least one service category, and in each service category The specific service view is displayed.
  • the first service data includes the service group data corresponding to the service category displayed by the current interface, and the detailed data of the service corresponding to the service view displayed by the current interface in the service category, according to the obtained service. Updating the data, updating the first service data used to form the current interface to obtain the second service data, and forming a new interface according to the second service data. Therefore, in the present application, the client can automatically complete the interface update, and the user does not need to manually download and install the upgrade package, and the interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
  • FIG. 1 is a schematic flowchart of an interface update method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a current interface of a client according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a new interface of a client according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a client according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart diagram of an interface update method according to an embodiment of the present application. As shown in Figure 1, the method includes:
  • the client obtains, from the server, service update data required to update an interface provided by the client for displaying service information.
  • the client updates, according to the service update data, the first service data that is used by the current interface to obtain the second service data.
  • the first service data includes the service group data corresponding to the service category displayed by the current interface, and the current The interface displays the detailed data of the service corresponding to the service view under the service category; the service packet data corresponding to the service category includes the identifier of the service belonging to the service category.
  • the client forms a new interface according to the second service data.
  • the embodiment provides an interface update method.
  • the method provided in this embodiment can be executed by a client.
  • the client can be any client that can provide an interface and needs to be adjusted.
  • it can be a browser or an application. , APP) client.
  • the process of the method provided in this embodiment is specifically as follows:
  • the server stores service information that needs to be presented to the user through an interface provided by the client.
  • the service information that needs to be presented to the user changes as the service provided by the service provider changes. For example, if a new service appears, information that needs to be added to the user's service information needs to be added; if a service is canceled, the information of the service information that needs to be deleted to the user needs to be deleted. If a service is upgraded, the service information that needs to be presented to the user needs to be increased due to the service upgrade.
  • the above services may be search for food service, movie service, news service, lottery service, reading service, product sub-service, photo service, bus inquiry service or weather inquiry service.
  • the client obtains service update data from the server, and the service update data refers to data required to update an interface provided by the client for presenting service information to the user.
  • the content and the presentation manner of the interface may determine the data required for the interface update, that is, the content of the service update data may be determined by the content and presentation manner of the interface.
  • the service in order to facilitate clearer presentation of service information to the user, the service is classified into the same service category by classifying the service.
  • This embodiment does not limit the standard of service classification, that is, the definition of the service category and the services that should be included in each service category are not limited.
  • the interface provided by the client needs to display the service information in the service category + service view.
  • the current page of the client presents a service category, and a specific service view is displayed under the service category.
  • the current page can display a service category or at least two service categories.
  • the service category can display a service view or at least two service views.
  • the service information is specifically presented in the form of a service view.
  • the access view information of the service corresponding to the service picture, the operation picture, the title, the subtitle, the background color, and the service view may be displayed on the service view, wherein the access entry information of the service is different according to the service providing manner, for example, If the service is provided in the form of a webpage, the access entry information may be a Uniform Resoure Locator (URL) address that is jumped to the service, if the service is in the form of a local APP or a WEB APP. Provided, the access entry information may be call interface information of the corresponding APP or the like. As shown in Figure 2, a service category for the current page and a service view for that service category. The service view may include an access portal that jumps to the corresponding service. In FIG.
  • URL Uniform Resoure Locator
  • the service category presented is entertainment
  • the entertainment category includes a search food service view, a movie service view, and a lottery service view.
  • the service view When the user clicks on the service view, it jumps to the corresponding service, and continues to use FIG. 2 as an example. If the user clicks on the search for the gourmet service view, the user can jump to the service of searching for food.
  • the service can be in various ways. Provided to the user, for example, may be a web page form, a local APP form, a WEB APP form, or the like. It is worth noting that the service view can be colored and is not limited to the gray shown in Figure 2.
  • the first service data used to form the current interface includes: service packet data corresponding to the service category displayed by the current interface, and detailed data of the service corresponding to the service view displayed by the current interface in the service category.
  • the service packet data corresponding to the service category includes: an identifier of a service belonging to the service category.
  • the detailed data of the service mainly refers to some configuration data required for generating the service view corresponding to the service, such as a picture of the service, a running picture, a title, a subtitle, a jump URL, and the like.
  • the service update data is mainly update data related to the detailed data of the service and/or the service packet data.
  • the client After obtaining the service update data, the client updates the first service data used by the current interface according to the service update data to obtain the second service data. Thereafter, a new interface is formed based on the second service data.
  • the second service data also includes: service packet data and service specific data, specifically: service packet data corresponding to the service category that needs to be displayed on the new interface, and services that need to be presented in the service.
  • service packet data and service specific data specifically: service packet data corresponding to the service category that needs to be displayed on the new interface, and services that need to be presented in the service.
  • the client may specifically display the service category that needs to be presented on the new interface according to the service group data included in the second service data, and include the service packet data and the second service data included in the second service data.
  • the detailed data of the service under the service category that needs to be presented, presents a service view that needs to be presented, thereby obtaining a new interface.
  • the client may trigger the callback manner to display the service category to be presented in the new interface according to the service group data included in the second service data, and include the service packet data and the second service data according to the second service data.
  • the detailed data of the service showing the service view that needs to be presented under the service category that needs to be presented.
  • the client may include: a data module and a user interface (UI) module.
  • the data module is mainly used to obtain, from the server, the service update data required for updating the interface provided by the client for displaying the service information, and update the first service data used to form the current interface according to the service update data, and obtain the second Service data.
  • the data module here is equivalent to the acquisition module and the update module in the subsequent client device embodiment, but is not limited thereto.
  • the UI module can pre-register a callback function, which can be identified by the callback function name.
  • the data module may send a broadcast message, and carry a callback function name for identifying a callback function pre-registered by the UI module in the broadcast message; after receiving the broadcast message, the UI module obtains the broadcast message Callback function name, by using the callback function identified by the callback function name, actively acquiring the service packet data included in the second service data and the detailed data of the service included in the second service data, and then according to the service packet data included in the second service data,
  • the new interface displays the service category to be presented, and according to the service packet data included in the second service data and the detailed data of the service included in the second service data, the service view that needs to be presented is presented under the service category that needs to be presented.
  • the UI module may determine the specific data of the service under each service category according to the service packet data included in the second service data, generate a service view according to the detailed data of each service, and further may follow each service category.
  • the service views are arranged in the order of the services, and finally the service views are displayed on the new interface in the arranged order.
  • a service category and a service view under the service category are displayed on the new interface.
  • the service view shown in FIG. 3 may include an access portal that jumps to the corresponding service.
  • the service category displayed is entertainment
  • the entertainment category includes a lottery service view, a movie service view, and a reading service. Views, news service views, segment subservice views, and beauty service views.
  • the service view can be redirected to the service for purchasing the lottery ticket.
  • the service can be provided to the user in various ways, for example, it can be a web page form, a local APP form, a WEB APP form, or the like.
  • the new interface shown in Figure 3 shows less of the original service view and several new service views. It is worth noting that the service view can be colored and is not limited to the gray shown in FIG.
  • the client obtains the service update data from the server to update the interface provided by the client for displaying the service information; and according to the acquired service update data, the first service data used to form the current interface is formed.
  • An update is made to obtain second service data, and a new interface is formed according to the second service data. Therefore, in this embodiment, the client can automatically complete the interface update, and the user does not need to manually download and install the upgrade package, and the interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
  • the method provided by the embodiment not only simplifies the interface update operation, but also improves the efficiency of updating the interface, and can customize the interface layout according to the upgrade and diversity of the service, optimize the interface layout method, and enhance the client following service.
  • the adaptability of change provides users with a more personalized and customized interface layout, which is conducive to providing more abundant service information.
  • the server can maintain two types of data: one is the detailed data of the service, and the other is the service packet data.
  • the server can store the detailed data of the service.
  • the detailed data here mainly refers to some configuration data required to generate the service view corresponding to the service, and generally includes but is not limited to the following data: service identifier (service_id) , the picture of the service, the operation picture, the background, the creation time of the service, the modification (or update) time of the service, the access entry provided by the service (ie the jump URL) and the type of access (eg whether login is required), service provider, etc.
  • the service identifier can uniquely identify a service; the service picture, background, operation picture, etc.
  • JSON Java Object Notation
  • the interface provided by the client mainly serves the service view under the service category + service category.
  • the format is displayed. Therefore, the server can configure one service packet data for each service category.
  • the server defines a class of associated services that can be flexibly controlled according to specific business scenarios.
  • the service packet data includes, but is not limited to, the following data: a name and an identifier (id) of the service packet, and a service identification list for storing an identifier of a service belonging to the service class corresponding to the service packet data.
  • a code example that defines service grouping data for the server as follows:
  • one way for the client to obtain the service update data required by the client to update the interface provided by the client for displaying the service information includes:
  • the client sends a synchronization request to the server, where the synchronization request includes: a timestamp of the last time the client obtains the service update data;
  • the server parses the data and locally from the locally stored service according to the timestamp in the synchronization request.
  • the data whose modification time is after the time stamp is obtained as the service update data, and is returned to the client;
  • the client receives the service update data returned by the server.
  • the server is required to record the detailed data of the service and the modification time of the service packet data in order to accurately provide the service update data to the client.
  • both the service specific data and the service packet data are synchronized in an incremental synchronization manner, that is, each time the synchronization service details data and the packet service data are only incremented, so that It saves traffic very well and ensures that the client can successfully receive service update data in case of unstable network.
  • the client may adopt a full-quantity synchronization manner, that is, each service packet data is acquired for each service packet data. It can be requested once at a certain time, and the service packet data is not required to be too frequent, which can reduce the processing load of the client and the server, save traffic, and the like.
  • the incremental synchronization mode that is, the client carries the timestamp of the last request service update data in the synchronization request, so that the server returns only the timestamp. The details of the service that changed later or the part of the data that changed in the detail data.
  • the service packet data corresponding to the service category displayed by the current interface may include, in addition to the identifier of the service belonging to the service category, a sequence of services between the services belonging to the service category.
  • the first order information of the order may include, in addition to the identifier of the service belonging to the service category, a sequence of services between the services belonging to the service category. The first order information of the order.
  • the first sequence information used to characterize the order between services may be explicit information, for example, the information may be similar to "identity (ID) according to service from large to small or small to large. An explicit description of the order or the order determined according to the online time of the service.
  • the first sequence information used to characterize the order between the services may also be an implicit information, for example, the order of the services may be represented by the order of the identifiers of the services in the service packet data.
  • the service update data includes at least one of the following:
  • First deletion flag information for characterizing service packet data deleted after the time stamp may include an identification and a deletion flag of the deleted service packet data
  • Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp
  • Second deletion flag information for characterizing the detailed data of the service deleted after the time stamp for example, the second deletion flag information may be an identifier of the deleted service
  • Third order information for characterizing the first order information that is updated after the time stamp is updated after the time stamp.
  • the updated first sequence information indicates: a sequence of adjustments between the services of the service class represented by the current interface and after the time stamp, that is, the third sequence information is actually used to represent the current interface.
  • the following takes several service update data as an example to describe in detail the process of updating the first service data used to form the current interface to obtain the second service data.
  • the service update data includes: service packet data added after the time stamp and detailed data of the service category service belonging to the added service packet data.
  • the client specifically adds the new service packet data and the specific data of the service belonging to the service category corresponding to the newly added service packet data to the first service data to obtain the second service data.
  • the second service data is compared with the first service data, and a service packet data is added, and the service identified by the identifier of each service in the service packet data is added (these services are also the service class corresponding to the service group). Detailed data of the service).
  • the new interface displays a service category and a service view displayed under the service category.
  • the client may delete the service packet data identified by the first deletion tag information and the service class service corresponding to the service packet data identified by the first deletion tag information from the first service data according to the first deletion tag information.
  • Detailed data to obtain second service data The service of the service category corresponding to the service packet data identified by the first deletion mark information, that is, the service identified by the identifier of each service in the service packet data indicated by the first deletion mark information.
  • the second service data is one less service packet data than the first service data, and the detailed data of the service identified by the identifier of each service in the service packet data.
  • the new interface shows a service category and a service view under the service category.
  • the service update data includes: the detailed data of the service added after the time stamp and the service packet data corresponding to the service category to which the added service belongs.
  • the client adds the specific data of the added service to the first service data, and replaces the original service packet data with the service packet data corresponding to the service category to which the added service belongs to obtain the second service data.
  • the second service data mainly adds the detailed data of one service, and the service packet data in which the added service is located changes, that is, the identifier of the added service is increased.
  • the new interface shows a service view compared to the current interface.
  • the client may delete the detailed data of the service identified by the second deletion tag information from the first service data according to the second deletion tag information, and delete the identifier of the deleted service from the service packet data to which the service belongs.
  • the second service data is less than the first service data, and the service packet data of the deleted service is changed, that is, the identifier of the deleted service is deleted.
  • the new interface shows less of a service view than the current interface.
  • the client can combine the above-mentioned update process for each data to obtain a complete update process. .
  • FIG. 4 is a schematic structural diagram of a client according to an embodiment of the present application. As shown in FIG. 4, the client includes an acquisition module 41, an update module 42, and an interface module 43.
  • the obtaining module 41 is configured to obtain, from the server, service update data required for updating an interface provided by the client for displaying service information.
  • the update module 42 is connected to the acquisition module 41 for updating the first service data used by the current interface according to the service update data acquired by the acquisition module 41 to obtain the second service data.
  • the first service data includes: service group data corresponding to the service category displayed by the current interface, and detailed data of the service corresponding to the service view displayed by the current interface in the service category; the service group data corresponding to the service category includes: The identifier of the service that belongs to the service category.
  • the interface module 43 is connected to the update module 42 for forming a new interface according to the second service data obtained by the update module 42.
  • the obtaining module 41 is specifically configured to: send a synchronization request to the server, and receive service update data returned by the server; and the synchronization request includes: a timestamp of the last time the service update data is acquired.
  • the service update data is data that is obtained by the server from the locally stored service packet data and the service detail data according to the timestamp, and the modification time is after the time stamp.
  • the foregoing service update data may include at least one of the following:
  • Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp
  • Second deletion flag information for characterizing the detailed data of the service deleted after the time stamp
  • Third order information for characterizing the first order information that is updated after the time stamp is updated after the time stamp.
  • the first sequence information is used to represent the sequence between services belonging to the service class represented by the current interface; the updated first sequence information indicates: between the services belonging to the service class represented by the current interface, at time
  • the order of adjustment after the stamping that is, the third sequence information is actually used to characterize the order of adjustment between the services of the service class belonging to the current interface and after the time stamp.
  • the detailed data of the service corresponding to the service view includes: access entry information of the service corresponding to the service view; and correspondingly, the service view includes an access entry that jumps to the service.
  • the access entry information of the service is different according to the service delivery manner. For example, if the service is provided in the form of a webpage, the access entry information may be a URL address that jumps to the service, if the service If the information is provided in the form of a local APP or a WEB APP, the access entry information may be the calling interface information of the corresponding APP.
  • the second service data includes service packet data corresponding to the service category that needs to be presented on the new interface, and detailed data of the service corresponding to the service view that needs to be presented under the service category that needs to be presented.
  • the interface module 43 is specifically configured to: display the service category to be presented in the new interface according to the service group data included in the second service data, and include the service packet data and the second service data included in the second service data.
  • the detailed data of the service showing the service view that needs to be presented under the service category that needs to be presented.
  • the client can use the trigger callback method to form a new interface.
  • the update module 42 is further configured to send a broadcast message to the interface module 43, where the broadcast message carries a callback function name for identifying a callback function pre-registered by the interface module 43.
  • the interface module 43 is specifically configured to receive the broadcast message sent by the update module 42 and obtain the second service data after the update module 42 obtains the second service data by using the callback function identified by the callback function name carried in the broadcast message.
  • the service category to be presented is displayed in the new interface according to the service packet data included in the second service data, and the service included in the second service data is included
  • the packet data and the detailed data of the service included in the second service data represent a service view that needs to be presented under the service category that needs to be presented.
  • the client provided in this embodiment may be any client that can provide an interface and needs to perform interface adjustment, and may be, for example, a browser or an application (APP) client.
  • APP application
  • the client provided by the embodiment obtains the service update data from the server to update the interface provided by the client for displaying the service information; and according to the acquired service update data, the first service data used to form the current interface is formed. An update is made to obtain second service data, and a new interface is formed according to the second service data. Therefore, the client provided in this embodiment can automatically complete the interface update, and does not require the user to manually download and install the upgrade package.
  • the interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
  • the client provided in this embodiment not only simplifies the interface update operation, but also improves the efficiency of updating the interface, and can customize the interface layout according to the upgrade and diversity of the service, and optimize the interface layout method, so that the embodiment is The ability of the client to follow the changes of the service is enhanced, which can provide users with a more personalized and customized interface layout, which is conducive to providing more abundant service information.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

The present application provides an interface update method and a client. The method comprises: a client acquires from a server service update data required for updating an interface that is provided by the client and used for presenting service information; the client updates, according to the service update data, first service data used for forming the current interface, so as to obtain second service data, the first service data comprising service grouping data corresponding to a service category presented on the current interface and detail data of a service corresponding to a service view presented in the service category on the current interface, and the service grouping data corresponding to the service category comprising an identifier of a service belonging to the service category; and the client forms a new interface according to the second service data. By means of the technical solution of the present application, the interface update operation can be simplified, and the interface update efficiency can be improved.

Description

界面更新方法及客户端Interface update method and client 【技术领域】[Technical Field]
本申请涉及互联网技术领域,尤其涉及一种界面更新方法及客户端。The present application relates to the field of Internet technologies, and in particular, to an interface update method and a client.
【背景技术】【Background technique】
用户可以在其终端上安装各种应用客户端,不同应用客户端具有不同风格的界面。应用客户端可以提供一界面,并通过界面向用户显示其所提供的服务。应用客户端的界面一般是固定的,可以通过预置于安装包中的布局配置文件来设置。Users can install various application clients on their terminals, and different application clients have different styles of interfaces. The application client can provide an interface and display the services it provides to the user through the interface. The interface of the application client is generally fixed and can be set by a layout configuration file preset in the installation package.
但是,随着应用客户端可以提供的服务的升级和多样性,固定不变的界面将无法满足服务多样性的需求。面对大规模服务数据的更新、排序、删除和替换等需求,服务端只能通过不断发布应用客户端的升级包,以供用户通过手动下载并安装升级包,进而通过升级包中的布局配置文件来改变应用客户端的界面。这种方式由于需要用户手动下载并安装升级包,操作不便,效率较低。However, with the upgrade and diversity of services that application clients can provide, a fixed interface will not be able to meet the needs of service diversity. Faced with the requirements of updating, sorting, deleting and replacing large-scale service data, the server can only continuously release the upgrade package of the application client, so that the user can manually download and install the upgrade package, and then through the layout configuration file in the upgrade package. To change the interface of the application client. This method is inconvenient and inefficient because it requires the user to manually download and install the upgrade package.
【发明内容】[Summary of the Invention]
本申请的多个方面提供一种界面更新方法及客户端,用以简化更新界面的操作,提高更新界面的效率。Aspects of the present application provide an interface update method and a client for simplifying the operation of updating an interface and improving the efficiency of updating the interface.
本申请的一方面,提供一种界面更新方法,包括:An aspect of the present application provides an interface update method, including:
客户端从服务端获取更新所述客户端提供的用于展示服务信息的界面所需的服务更新数据;The client obtains, from the server, service update data required to update an interface provided by the client for displaying service information;
所述客户端根据所述服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据;所述第一服务数据包括:所述当前界面展现的服务类目对应的服务分组数据,以及所述当前界面展现在所述服务类目下的服 务视图对应的服务的详情数据;所述服务类目对应的服务分组数据包括:属于所述服务类目的服务的标识;The client updates the first service data used to form the current interface according to the service update data, and obtains the second service data. The first service data includes: a service corresponding to the service category displayed by the current interface. Packet data, and the current interface is displayed in the service category The service data corresponding to the service view; the service packet data corresponding to the service category includes: an identifier of the service belonging to the service category;
所述客户端根据所述第二服务数据,形成所述新界面。The client forms the new interface according to the second service data.
本申请的另一方面,提供一种客户端,包括:In another aspect of the present application, a client is provided, including:
获取模块,用于从服务端获取更新所述客户端提供的用于展示服务信息的界面所需的服务更新数据;An obtaining module, configured to obtain, from a server, service update data required to update an interface provided by the client for displaying service information;
更新模块,用于根据所述服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据;所述第一服务数据包括:所述当前界面展现的服务类目对应的服务分组数据,以及所述当前界面展现在所述服务类目下的服务视图对应的服务的详情数据;所述服务类目对应的服务分组数据包括:属于所述服务类目的服务的标识;And an update module, configured to update, according to the service update data, the first service data used by the current interface to obtain the second service data, where the first service data includes: the service category corresponding to the current interface Service packet data, and the current interface presents detailed data of a service corresponding to the service view under the service category; the service packet data corresponding to the service category includes: an identifier of a service belonging to the service category;
界面模块,用于根据所述第二服务数据,形成所述新界面。And an interface module, configured to form the new interface according to the second service data.
在本申请中,客户端从服务端获取服务更新数据,以对客户端提供的用于展示服务信息的界面进行更新;其中,当前界面展示有至少一个服务类目,并在每个服务类目下展示有具体的服务视图,第一服务数据包括当前界面展示的服务类目对应的服务分组数据,以及当前界面展现在服务类目下的服务视图对应的服务的详情数据,根据所获取的服务更新数据,对形成当前界面使用的第一服务数据进行更新,以获得第二服务数据,根据第二服务数据形成新界面。由此可见,在本申请中,客户端可以自动完成界面更新,不需要用户手动下载并安装升级包,界面更新操作相对简单,有利于提高更新界面的效率。In the present application, the client obtains service update data from the server to update the interface provided by the client for displaying the service information; wherein the current interface displays at least one service category, and in each service category The specific service view is displayed. The first service data includes the service group data corresponding to the service category displayed by the current interface, and the detailed data of the service corresponding to the service view displayed by the current interface in the service category, according to the obtained service. Updating the data, updating the first service data used to form the current interface to obtain the second service data, and forming a new interface according to the second service data. Therefore, in the present application, the client can automatically complete the interface update, and the user does not need to manually download and install the upgrade package, and the interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
【附图说明】[Description of the Drawings]
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造 性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are the present application. Some embodiments, for those of ordinary skill in the art, do not pay for creation Other drawings can also be obtained from these drawings on the premise of sexual labor.
图1为本申请一实施例提供的界面更新方法的流程示意图;1 is a schematic flowchart of an interface update method according to an embodiment of the present application;
图2为本申请一实施例提供的客户端的当前界面的示意图;2 is a schematic diagram of a current interface of a client according to an embodiment of the present disclosure;
图3为本申请一实施例提供的客户端的新界面的示意图;FIG. 3 is a schematic diagram of a new interface of a client according to an embodiment of the present disclosure;
图4为本申请一实施例提供的客户端的结构示意图。FIG. 4 is a schematic structural diagram of a client according to an embodiment of the present application.
【具体实施方式】【detailed description】
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本申请一实施例提供的界面更新方法的流程示意图。如图1所示,该方法包括:FIG. 1 is a schematic flowchart diagram of an interface update method according to an embodiment of the present application. As shown in Figure 1, the method includes:
101、客户端从服务端获取更新客户端提供的用于展示服务信息的界面所需的服务更新数据。101. The client obtains, from the server, service update data required to update an interface provided by the client for displaying service information.
102、客户端根据服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据;其中,第一服务数据包括当前界面展现的服务类目对应的服务分组数据,以及当前界面展现在服务类目下的服务视图对应的服务的详情数据;服务类目对应的服务分组数据包括属于该服务类目的服务的标识。102. The client updates, according to the service update data, the first service data that is used by the current interface to obtain the second service data. The first service data includes the service group data corresponding to the service category displayed by the current interface, and the current The interface displays the detailed data of the service corresponding to the service view under the service category; the service packet data corresponding to the service category includes the identifier of the service belonging to the service category.
103、客户端根据第二服务数据,形成新界面。103. The client forms a new interface according to the second service data.
本实施例提供一种界面更新方法,本实施例提供的方法可以由客户端来执行,该客户端可以是任何可以提供界面且需要进行界面调整的客户端,例如可以是浏览器或应用(Application,APP)客户端。其中,本实施例提供的方法流程具体如下: The embodiment provides an interface update method. The method provided in this embodiment can be executed by a client. The client can be any client that can provide an interface and needs to be adjusted. For example, it can be a browser or an application. , APP) client. The process of the method provided in this embodiment is specifically as follows:
服务端存储有需要通过客户端提供的界面向用户展现的服务信息。需要向用户展现的服务信息,会随着服务提供商所提供的服务的变化而变化。例如,若有新的服务出现,则需要展现给用户的服务信息中需要增加新服务的信息;若有某个服务被取消,则需要展现给用户的服务信息中需要删除被取消的服务的信息;若有某个服务进行了升级,则需要展现给用户的服务信息中需要增加由于服务升级所增加的数据。The server stores service information that needs to be presented to the user through an interface provided by the client. The service information that needs to be presented to the user changes as the service provided by the service provider changes. For example, if a new service appears, information that needs to be added to the user's service information needs to be added; if a service is canceled, the information of the service information that needs to be deleted to the user needs to be deleted. If a service is upgraded, the service information that needs to be presented to the user needs to be increased due to the service upgrade.
举例说明,上述服务可以是搜美食服务、看电影服务、新闻服务、买彩票服务、阅读服务、品段子服务、美图服务、公交查询服务或天气查询服务等。For example, the above services may be search for food service, movie service, news service, lottery service, reading service, product sub-service, photo service, bus inquiry service or weather inquiry service.
客户端从服务端获取服务更新数据,服务更新数据是指更新客户端提供的用于向用户展现服务信息的界面所需的数据。其中,界面所展现的内容和展现方式等可以决定界面更新所需的数据,即服务更新数据的内容可由界面展现的内容和展现方式等决定。The client obtains service update data from the server, and the service update data refers to data required to update an interface provided by the client for presenting service information to the user. The content and the presentation manner of the interface may determine the data required for the interface update, that is, the content of the service update data may be determined by the content and presentation manner of the interface.
在本实施例中,为便于更加清晰的向用户展现服务信息,通过对服务进行分类,将相关联的服务归到同一服务类目下。本实施例对服务分类的标准不做限定,也就是说对服务类目的定义以及每个服务类目应该包括的服务均不做限定。In this embodiment, in order to facilitate clearer presentation of service information to the user, the service is classified into the same service category by classifying the service. This embodiment does not limit the standard of service classification, that is, the definition of the service category and the services that should be included in each service category are not limited.
基于对服务分类的思路,客户端提供的界面需要以服务类目+服务视图的方式展现服务信息。在本实施例中,客户端的当前页面展现有服务类目,并在该服务类目下展现有具体的服务视图。当前页面可以展现一个服务类目,也可以展现至少两个服务类目。服务类目下可以展现有一个服务视图,也可以展现有至少两个服务视图。在界面上,具体以服务视图的形式展现服务信息。服务视图上可以展现有服务的图片、运营图片、标题、副标题、背景色以及服务视图对应的服务的访问入口信息,其中,根据服务提供方式的不同,该服务的访问入口信息也有所不同,例如,若该服务时以网页形式提供的,则该访问入口信息可以是跳转至该服务的统一资源定位符(Uniform Resoure Locator,URL)地址,若该服务是以本地APP或WEB APP形式 提供的,则该访问入口信息可以是相应APP的调用接口信息等。如图2所示,为当前页面展现的一种服务类目以及该服务类目下的服务视图。该服务视图中可以包括跳转至相应服务的访问入口,在图2中,所展现的服务类目为娱乐,该娱乐类目下包括搜美食服务视图、看电影服务视图和买彩票服务视图。当用户点击服务视图时,则跳转至相应的服务,继续以图2为例,如果用户点击搜美食服务视图,则可以跳转至搜美食的服务,具体地,该服务可以以多种方式提供给用户,例如,可以是网页形式,本地APP形式、WEB APP形式等。值得说明的是,服务视图可以是彩色的,并不限于图2所示的灰色。Based on the idea of service classification, the interface provided by the client needs to display the service information in the service category + service view. In this embodiment, the current page of the client presents a service category, and a specific service view is displayed under the service category. The current page can display a service category or at least two service categories. The service category can display a service view or at least two service views. On the interface, the service information is specifically presented in the form of a service view. The access view information of the service corresponding to the service picture, the operation picture, the title, the subtitle, the background color, and the service view may be displayed on the service view, wherein the access entry information of the service is different according to the service providing manner, for example, If the service is provided in the form of a webpage, the access entry information may be a Uniform Resoure Locator (URL) address that is jumped to the service, if the service is in the form of a local APP or a WEB APP. Provided, the access entry information may be call interface information of the corresponding APP or the like. As shown in Figure 2, a service category for the current page and a service view for that service category. The service view may include an access portal that jumps to the corresponding service. In FIG. 2, the service category presented is entertainment, and the entertainment category includes a search food service view, a movie service view, and a lottery service view. When the user clicks on the service view, it jumps to the corresponding service, and continues to use FIG. 2 as an example. If the user clicks on the search for the gourmet service view, the user can jump to the service of searching for food. Specifically, the service can be in various ways. Provided to the user, for example, may be a web page form, a local APP form, a WEB APP form, or the like. It is worth noting that the service view can be colored and is not limited to the gray shown in Figure 2.
基于上述,形成当前界面所使用的第一服务数据包括:当前界面展现的服务类目对应的服务分组数据,以及当前界面展现在该服务类目下的服务视图对应的服务的详情数据。其中,服务类目对应的服务分组数据包括:属于该服务类目的服务的标识。服务的详情数据主要是指生成该服务对应的服务视图所需的一些配置数据,例如服务的图片、运营图片、标题、副标题、跳转URL等。Based on the foregoing, the first service data used to form the current interface includes: service packet data corresponding to the service category displayed by the current interface, and detailed data of the service corresponding to the service view displayed by the current interface in the service category. The service packet data corresponding to the service category includes: an identifier of a service belonging to the service category. The detailed data of the service mainly refers to some configuration data required for generating the service view corresponding to the service, such as a picture of the service, a running picture, a title, a subtitle, a jump URL, and the like.
基于上述第一服务数据,服务更新数据主要是与服务的详情数据和/或服务分组数据相关的更新数据。Based on the first service data described above, the service update data is mainly update data related to the detailed data of the service and/or the service packet data.
客户端在获取服务更新数据后,根据服务更新数据对形成当前界面使用的第一服务数据进行更新,获得第二服务数据。之后,根据第二服务数据形成新的界面。After obtaining the service update data, the client updates the first service data used by the current interface according to the service update data to obtain the second service data. Thereafter, a new interface is formed based on the second service data.
值得说明的是,第二服务数据也包括:服务分组数据和服务的详情数据,具体来说包括:需要在新界面上展现的服务类目对应的服务分组数据,以及需要在该需要展现的服务类目下展现的服务视图对应的服务的详情数据。It is worth noting that the second service data also includes: service packet data and service specific data, specifically: service packet data corresponding to the service category that needs to be displayed on the new interface, and services that need to be presented in the service. The detailed data of the service corresponding to the service view displayed under the category.
基于上述,客户端具体可以根据第二服务数据包括的服务分组数据,在新界面上展现所述需要展现的服务类目,并根据第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图,进而获得新界面。 Based on the foregoing, the client may specifically display the service category that needs to be presented on the new interface according to the service group data included in the second service data, and include the service packet data and the second service data included in the second service data. The detailed data of the service, under the service category that needs to be presented, presents a service view that needs to be presented, thereby obtaining a new interface.
进一步,客户端可以通过触发回调方式,以根据第二服务数据包括的服务分组数据,在新界面展现需要展现的服务类目,并根据第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,在需要展现的服务类目下展现需要展现的服务视图。Further, the client may trigger the callback manner to display the service category to be presented in the new interface according to the service group data included in the second service data, and include the service packet data and the second service data according to the second service data. The detailed data of the service, showing the service view that needs to be presented under the service category that needs to be presented.
具体的,客户端可以包括:数据模块和用户界面(User Interface,UI)模块。数据模块主要用于从服务端获取更新客户端提供的用于展示服务信息的界面所需的服务更新数据,并根据服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据。此处的数据模块相当于后续客户端装置实施例中的获取模块和更新模块,但不限于此。Specifically, the client may include: a data module and a user interface (UI) module. The data module is mainly used to obtain, from the server, the service update data required for updating the interface provided by the client for displaying the service information, and update the first service data used to form the current interface according to the service update data, and obtain the second Service data. The data module here is equivalent to the acquisition module and the update module in the subsequent client device embodiment, but is not limited thereto.
UI模块可以预先注册一回调函数,该回调函数可以通过回调函数名来标识。数据模块在获得第二服务数据后,可以发送一广播消息,并在广播消息中携带用于标识UI模块预先注册的回调函数的回调函数名;UI模块接收到广播消息后,从广播消息中获取回调函数名,通过该回调函数名所标识的回调函数,主动获取第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,之后根据第二服务数据包括的服务分组数据,在新界面展现需要展现的服务类目,并根据第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,在需要展现的服务类目下展现需要展现的服务视图。The UI module can pre-register a callback function, which can be identified by the callback function name. After obtaining the second service data, the data module may send a broadcast message, and carry a callback function name for identifying a callback function pre-registered by the UI module in the broadcast message; after receiving the broadcast message, the UI module obtains the broadcast message Callback function name, by using the callback function identified by the callback function name, actively acquiring the service packet data included in the second service data and the detailed data of the service included in the second service data, and then according to the service packet data included in the second service data, The new interface displays the service category to be presented, and according to the service packet data included in the second service data and the detailed data of the service included in the second service data, the service view that needs to be presented is presented under the service category that needs to be presented.
具体的,UI模块可以根据第二服务数据包括的服务分组数据,确定每个服务类目下的服务的详情数据,根据每个服务的详情数据生成服务视图,进一步还可以按照每个服务类目下服务之间的先后顺序来排列服务视图,最终按照排列好的顺序在新界面上展现各服务视图。在图2所示基础上,如图3所示,为新界面上展现一种服务类目以及该服务类目下的服务视图。图3所示服务视图中可以包括跳转到相应服务的访问入口,在图3中,所展现的服务类目为娱乐,该娱乐类目下包括买彩票服务视图、看电影服务视图、阅读服务视图、新闻服务视图、品段子服务视图和美图服务视图。当用户点击服务视图时,则跳转至相应的服务,继续以图3为例,如果用户点击买彩票服 务视图,则可以跳转至买彩票的服务,具体地,该服务可以以多种方式提供给用户,例如,可以是网页形式,本地APP形式、WEB APP形式等。与图2相比,图3所示新界面少展现原来一个服务视图,同时多展现了几个新的服务视图。值得说明的是,服务视图可以是彩色的,并不限于图3所示的灰色。Specifically, the UI module may determine the specific data of the service under each service category according to the service packet data included in the second service data, generate a service view according to the detailed data of each service, and further may follow each service category. The service views are arranged in the order of the services, and finally the service views are displayed on the new interface in the arranged order. On the basis of FIG. 2, as shown in FIG. 3, a service category and a service view under the service category are displayed on the new interface. The service view shown in FIG. 3 may include an access portal that jumps to the corresponding service. In FIG. 3, the service category displayed is entertainment, and the entertainment category includes a lottery service view, a movie service view, and a reading service. Views, news service views, segment subservice views, and beauty service views. When the user clicks on the service view, then jump to the corresponding service, continue to use Figure 3 as an example, if the user clicks to buy the lottery service The service view can be redirected to the service for purchasing the lottery ticket. Specifically, the service can be provided to the user in various ways, for example, it can be a web page form, a local APP form, a WEB APP form, or the like. Compared with Figure 2, the new interface shown in Figure 3 shows less of the original service view and several new service views. It is worth noting that the service view can be colored and is not limited to the gray shown in FIG.
在本实施例中,客户端从服务端获取服务更新数据,以对客户端提供的用于展示服务信息的界面进行更新;根据所获取的服务更新数据,对形成当前界面使用的第一服务数据进行更新,以获得第二服务数据,根据第二服务数据形成新界面。由此可见,在本实施例中,客户端可以自动完成界面更新,不需要用户手动下载并安装升级包,界面更新操作相对简单,有利于提高更新界面的效率。In this embodiment, the client obtains the service update data from the server to update the interface provided by the client for displaying the service information; and according to the acquired service update data, the first service data used to form the current interface is formed. An update is made to obtain second service data, and a new interface is formed according to the second service data. Therefore, in this embodiment, the client can automatically complete the interface update, and the user does not need to manually download and install the upgrade package, and the interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
另外,本实施例提供的方法不仅简化了界面更新操作,提高了更新界面的效率,而且可以根据服务的升级和多样性等,自定义调整界面布局,优化界面布局方法,增强了客户端跟随服务变化的应变能力,为用户提供更加个性化、定制化的界面布局,有利于提供更加丰富的服务信息。In addition, the method provided by the embodiment not only simplifies the interface update operation, but also improves the efficiency of updating the interface, and can customize the interface layout according to the upgrade and diversity of the service, optimize the interface layout method, and enhance the client following service. The adaptability of change provides users with a more personalized and customized interface layout, which is conducive to providing more abundant service information.
在实际应用中,服务端可以维护两种类型的数据:一种是服务的详情数据,一种是服务分组数据。In practical applications, the server can maintain two types of data: one is the detailed data of the service, and the other is the service packet data.
对于每个服务,服务端可以存储该服务的详情数据,这里的详情数据主要是指生成该服务对应的服务视图所需的一些配置数据,一般包括但不限于以下数据:服务的标识(service_id)、服务的图片、运营图片、背景、服务的创建时间、服务的修改(或更新)时间、服务提供的访问入口(即跳转URL)及访问类型(例如是否需要登录)、服务提供商等等。其中,服务的标识可以唯一标识一个服务;服务的图片、背景、运营图片等可以通过徽标(logo)字段进行设置,该徽标字段可以是个Java脚本对象标记(JavaScript Object Notation,JSON)值,若配置了关于服务的各种图片,这些图片字段可以是以content://、http://、或assets://等方式标识的图片地址。如下所示为服务端定义服务的详情数据的一种代码示例: For each service, the server can store the detailed data of the service. The detailed data here mainly refers to some configuration data required to generate the service view corresponding to the service, and generally includes but is not limited to the following data: service identifier (service_id) , the picture of the service, the operation picture, the background, the creation time of the service, the modification (or update) time of the service, the access entry provided by the service (ie the jump URL) and the type of access (eg whether login is required), service provider, etc. . The service identifier can uniquely identify a service; the service picture, background, operation picture, etc. can be set through a logo field, which can be a Java Object Notation (JSON) value, if configured Various pictures about the service, these picture fields may be picture addresses identified by content://, http://, or assets://. A code example of defining the details of a service for a server as follows:
Figure PCTCN2015089958-appb-000001
Figure PCTCN2015089958-appb-000001
本申请中,客户端提供的界面主要以服务类目+服务类目下的服务视图 的格式进行展示。因此,服务端可以对每个服务类目配置一个服务分组数据。对于服务分组数据,服务端定义了一类相关联的服务,这种关联关系是可以根据具体的业务场景灵活控制的。服务分组数据包括但不限于以下数据:服务分组的名称和标识(id)以及服务标识列表,该服务标识列表用于存储属于该服务分组数据对应的服务类目的服务的标识。如下所示为服务端定义服务分组数据的一种代码示例:In this application, the interface provided by the client mainly serves the service view under the service category + service category. The format is displayed. Therefore, the server can configure one service packet data for each service category. For service packet data, the server defines a class of associated services that can be flexibly controlled according to specific business scenarios. The service packet data includes, but is not limited to, the following data: a name and an identifier (id) of the service packet, and a service identification list for storing an identifier of a service belonging to the service class corresponding to the service packet data. A code example that defines service grouping data for the server as follows:
Figure PCTCN2015089958-appb-000002
Figure PCTCN2015089958-appb-000002
基于上述,客户端从服务端获取更新客户端提供的用于展示服务信息的界面所需的服务更新数据的一种方式包括:Based on the above, one way for the client to obtain the service update data required by the client to update the interface provided by the client for displaying the service information includes:
客户端向服务端发送同步请求,该同步请求包括:客户端上次获取服务更新数据的时间戳;The client sends a synchronization request to the server, where the synchronization request includes: a timestamp of the last time the client obtains the service update data;
服务端根据同步请求中的时间戳,从本地存储的服务分组数据和本地存 储的服务的详情数据中,获取修改时间在该时间戳之后的数据作为服务更新数据,并返回给客户端;The server parses the data and locally from the locally stored service according to the timestamp in the synchronization request. In the detailed data of the stored service, the data whose modification time is after the time stamp is obtained as the service update data, and is returned to the client;
客户端接收服务器返回的服务更新数据。The client receives the service update data returned by the server.
在该实施方式中,要求服务端能够记录服务的详情数据和服务分组数据的修改时间,以便于向客户端准确提供服务更新数据。In this embodiment, the server is required to record the detailed data of the service and the modification time of the service packet data in order to accurately provide the service update data to the client.
另外,在该实施方式中,无论是服务的详情数据还是服务分组数据,均是以增量同步方式进行同步的,即每次同步服务的详情数据和分组服务数据都只获取增量,这样可以很好的节省流量,而且可以确保客户端在网络不稳定的情况下能够成功接收到服务更新数据。In addition, in this embodiment, both the service specific data and the service packet data are synchronized in an incremental synchronization manner, that is, each time the synchronization service details data and the packet service data are only incremented, so that It saves traffic very well and ensures that the client can successfully receive service update data in case of unstable network.
在另一可选实施方式中,考虑到服务分组数据比较简单、数据量较少而且变化可能性较小,所以客户端可以采用全量同步方式,即每次同步服务分组数据获取全部服务分组数据,且可以间隔一定时间请求一次,不用太过频繁的请求服务分组数据,这样可以减轻客户端和服务端的处理负担,节约流量等。在该可选实施方式中,对于服务的详情数据,优选的仍采用增量同步方式,即客户端通过在同步请求中携带上次请求服务更新数据的时间戳,使得服务端返回仅在时间戳之后发生变化的服务的详情数据或详情数据中发生变化的那部分数据。In another optional implementation manner, considering that the service packet data is relatively simple, the amount of data is small, and the possibility of change is small, the client may adopt a full-quantity synchronization manner, that is, each service packet data is acquired for each service packet data. It can be requested once at a certain time, and the service packet data is not required to be too frequent, which can reduce the processing load of the client and the server, save traffic, and the like. In this optional implementation manner, for the detailed data of the service, it is preferred to adopt the incremental synchronization mode, that is, the client carries the timestamp of the last request service update data in the synchronization request, so that the server returns only the timestamp. The details of the service that changed later or the part of the data that changed in the detail data.
在一可选实施方式中,当前界面展现的服务类目对应的服务分组数据除了包括属于该服务类目的服务的标识之外,还可以包括:表征属于该服务类目的服务之间的先后顺序的第一顺序信息。In an optional implementation manner, the service packet data corresponding to the service category displayed by the current interface may include, in addition to the identifier of the service belonging to the service category, a sequence of services between the services belonging to the service category. The first order information of the order.
值得说明的是,上述用于表征服务之间的先后顺序的第一顺序信息可以是显式信息,例如该信息可以是类似“根据服务的标识(ID)由大到小或由小到大的顺序”或者“根据服务的上线时间确定的顺序”这样的显式描述。或者,上述用于表征服务之间的先后顺序的第一顺序信息也可以是一种隐式信息,例如可以通过服务分组数据中服务的标识的排列顺序来表征服务之间的先后顺序。It should be noted that the first sequence information used to characterize the order between services may be explicit information, for example, the information may be similar to "identity (ID) according to service from large to small or small to large. An explicit description of the order or the order determined according to the online time of the service. Alternatively, the first sequence information used to characterize the order between the services may also be an implicit information, for example, the order of the services may be represented by the order of the identifiers of the services in the service packet data.
基于上述,服务更新数据包括以下至少一种: Based on the above, the service update data includes at least one of the following:
在时间戳之后新增的服务分组数据和属于新增的服务分组数据对应的服务类目的服务的详情数据;The service packet data added after the time stamp and the detailed data of the service of the service category corresponding to the newly added service packet data;
用于表征在时间戳之后被删除的服务分组数据的第一删除标记信息,第一删除标记信息可以包括被删除的服务分组数据的标识和删除标记;First deletion flag information for characterizing service packet data deleted after the time stamp, the first deletion tag information may include an identification and a deletion flag of the deleted service packet data;
用于表征在时间戳之后被调整的服务分组数据之间的先后顺序的第二顺序信息;Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp;
在时间戳之后增加的服务的详情数据和增加的服务所属的服务类目对应的服务分组数据;The detailed data of the service added after the time stamp and the service group data corresponding to the service category to which the added service belongs;
用于表征在时间戳之后被删除的服务的详情数据的第二删除标记信息,例如第二删除标记信息可以是被删除的服务的标识;Second deletion flag information for characterizing the detailed data of the service deleted after the time stamp, for example, the second deletion flag information may be an identifier of the deleted service;
用于表征在时间戳之后被更新的第一顺序信息的第三顺序信息。Third order information for characterizing the first order information that is updated after the time stamp.
被更新的第一顺序信息表示:属于当前界面展现的服务类目的服务之间的、在时间戳之后经过调整的先后顺序,也就是说,这里的第三顺序信息实际用于表征属于当前界面展现的服务类目的服务之间的、在时间戳之后经过调整的先后顺序。The updated first sequence information indicates: a sequence of adjustments between the services of the service class represented by the current interface and after the time stamp, that is, the third sequence information is actually used to represent the current interface. The order in which the services of the service class are displayed and adjusted after the timestamp.
下面以几种服务更新数据为例,详细说明对形成当前界面使用的第一服务数据进行更新,获得第二服务数据的实施过程。The following takes several service update data as an example to describe in detail the process of updating the first service data used to form the current interface to obtain the second service data.
若服务更新数据包括:在时间戳之后新增的服务分组数据和属于新增的服务分组数据对应的服务类目的服务的详情数据。The service update data includes: service packet data added after the time stamp and detailed data of the service category service belonging to the added service packet data.
则客户端具体可以将上述新增的服务分组数据和属于上述新增的服务分组数据对应的服务类目下的服务的详情数据,添加到第一服务数据中,获得第二服务数据。第二服务数据与第一服务数据相比,增加了一个服务分组数据,并增加了该服务分组数据中各服务的标识所标识的服务(这些服务也就是属于该服务分组对应的服务类目的服务)的详情数据。新界面与当前界面相比,多展现一个服务类目以及在该服务类目下展现的服务视图。The client specifically adds the new service packet data and the specific data of the service belonging to the service category corresponding to the newly added service packet data to the first service data to obtain the second service data. The second service data is compared with the first service data, and a service packet data is added, and the service identified by the identifier of each service in the service packet data is added (these services are also the service class corresponding to the service group). Detailed data of the service). Compared with the current interface, the new interface displays a service category and a service view displayed under the service category.
若服务更新数据包括:用于表征在时间戳之后被删除的服务分组数据的第一删除标记信息。 If the service update data includes: first deletion flag information for characterizing the service packet data deleted after the time stamp.
则客户端可以根据第一删除标记信息,从第一服务数据中删除第一删除标记信息所标识的服务分组数据和属于第一删除标记信息所标识的服务分组数据对应的服务类目的服务的详情数据,以获得第二服务数据。其中,属于第一删除标记信息所标识的服务分组数据对应的服务类目的服务,也就是第一删除标记信息所表示的服务分组数据中各服务的标识所标识的服务。第二服务数据与第一服务数据相比,少了一个服务分组数据,以及该服务分组数据中各服务的标识所标识的服务的详情数据。新界面与当前界面相比,少展现了一个服务类目以及该服务类目下的服务视图。The client may delete the service packet data identified by the first deletion tag information and the service class service corresponding to the service packet data identified by the first deletion tag information from the first service data according to the first deletion tag information. Detailed data to obtain second service data. The service of the service category corresponding to the service packet data identified by the first deletion mark information, that is, the service identified by the identifier of each service in the service packet data indicated by the first deletion mark information. The second service data is one less service packet data than the first service data, and the detailed data of the service identified by the identifier of each service in the service packet data. Compared with the current interface, the new interface shows a service category and a service view under the service category.
若服务更新数据包括:时间戳之后增加的服务的详情数据和增加的服务所属的服务类目对应的服务分组数据。If the service update data includes: the detailed data of the service added after the time stamp and the service packet data corresponding to the service category to which the added service belongs.
则客户端将上述增加的服务的详情数据添加到第一服务数据中,并用上述增加的服务所属的服务类目对应的服务分组数据替换原来的服务分组数据,以获得第二服务数据。第二服务数据与第一服务数据相比,主要增加了一个服务的详情数据,并且该增加的服务所在的服务分组数据发生了变化,即增加了上述增加的服务的标识。新界面与当前界面相比,多展现了一个服务视图。Then, the client adds the specific data of the added service to the first service data, and replaces the original service packet data with the service packet data corresponding to the service category to which the added service belongs to obtain the second service data. Compared with the first service data, the second service data mainly adds the detailed data of one service, and the service packet data in which the added service is located changes, that is, the identifier of the added service is increased. The new interface shows a service view compared to the current interface.
若服务更新数据包括:用于表征在时间戳之后被删除的服务的详情数据的第二删除标记信息。If the service update data includes: second deletion flag information for characterizing the detail data of the service deleted after the time stamp.
则客户端可以根据第二删除标记信息,从第一服务数据中删除第二删除标记信息所标识的服务的详情数据,并将被删除的服务的标识从该服务所属的服务分组数据中删除,以获得第二服务数据。第二服务数据与第一服务数据相比,少了一个服务的详情数据,并且该被删除的服务所在的服务分组数据发生了变化,即删除了该被删除的服务的标识。新界面与当前界面相比,少展现了一个服务视图。The client may delete the detailed data of the service identified by the second deletion tag information from the first service data according to the second deletion tag information, and delete the identifier of the deleted service from the service packet data to which the service belongs. Obtain second service data. The second service data is less than the first service data, and the service packet data of the deleted service is changed, that is, the identifier of the deleted service is deleted. The new interface shows less of a service view than the current interface.
值得说明的是,若服务更新数据同时包括两种或两种以上的更新数据(详见前面列举几种),则客户端可以将上述对应每种数据的更新过程进行结合,得到完整的更新过程。It is worth noting that if the service update data includes two or more types of update data (see several of the above), the client can combine the above-mentioned update process for each data to obtain a complete update process. .
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表 述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, It is described as a series of combinations of actions, but those skilled in the art will appreciate that the present application is not limited by the sequence of actions described, as some steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图4为本申请一实施例提供的客户端的结构示意图。如图4所示,该客户端包括:获取模块41、更新模块42和界面模块43。FIG. 4 is a schematic structural diagram of a client according to an embodiment of the present application. As shown in FIG. 4, the client includes an acquisition module 41, an update module 42, and an interface module 43.
获取模块41,用于从服务端获取更新客户端提供的用于展示服务信息的界面所需的服务更新数据。The obtaining module 41 is configured to obtain, from the server, service update data required for updating an interface provided by the client for displaying service information.
更新模块42,与获取模块41连接,用于根据获取模块41获取的服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据。其中,第一服务数据包括:当前界面展现的服务类目对应的服务分组数据,以及当前界面展现在服务类目下的服务视图对应的服务的详情数据;服务类目对应的服务分组数据包括:属于服务类目的服务的标识。The update module 42 is connected to the acquisition module 41 for updating the first service data used by the current interface according to the service update data acquired by the acquisition module 41 to obtain the second service data. The first service data includes: service group data corresponding to the service category displayed by the current interface, and detailed data of the service corresponding to the service view displayed by the current interface in the service category; the service group data corresponding to the service category includes: The identifier of the service that belongs to the service category.
界面模块43,与更新模块42连接,用于根据更新模块42获得的第二服务数据,形成新界面。The interface module 43 is connected to the update module 42 for forming a new interface according to the second service data obtained by the update module 42.
在一可选实施方式中,获取模块41具体可用于:向服务端发送同步请求,并接收服务器返回的服务更新数据;同步请求包括:上次获取服务更新数据的时间戳。其中,服务更新数据是服务端根据时间戳,从本地存储的服务分组数据和服务的详情数据中获取的修改时间在时间戳之后的数据。In an optional implementation, the obtaining module 41 is specifically configured to: send a synchronization request to the server, and receive service update data returned by the server; and the synchronization request includes: a timestamp of the last time the service update data is acquired. The service update data is data that is obtained by the server from the locally stored service packet data and the service detail data according to the timestamp, and the modification time is after the time stamp.
在一可选实施方式中,上述服务更新数据可以包括以下至少一种:In an optional implementation manner, the foregoing service update data may include at least one of the following:
在时间戳之后新增的服务分组数据和属于新增的服务分组数据对应的服务类目的服务的详情数据;The service packet data added after the time stamp and the detailed data of the service of the service category corresponding to the newly added service packet data;
用于表征在时间戳之后被删除的服务分组数据的第一删除标记信息;First deletion flag information for characterizing service packet data deleted after the time stamp;
用于表征在时间戳之后被调整的服务分组数据之间的先后顺序的第二顺序信息; Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp;
在时间戳之后增加的服务的详情数据和增加的服务所属的服务类目对应的服务分组数据;The detailed data of the service added after the time stamp and the service group data corresponding to the service category to which the added service belongs;
用于表征在时间戳之后被删除的服务的详情数据的第二删除标记信息;Second deletion flag information for characterizing the detailed data of the service deleted after the time stamp;
用于表征在时间戳之后被更新的第一顺序信息的第三顺序信息。Third order information for characterizing the first order information that is updated after the time stamp.
这里的第一顺序信息用于表征属于当前界面展现的服务类目的服务之间的先后顺序;被更新的第一顺序信息表示:属于当前界面展现的服务类目的服务之间的、在时间戳之后经过调整的先后顺序,也就是说,第三顺序信息实际用于表征属于当前界面展现的服务类目的服务之间的、在时间戳之后经过调整的先后顺序。The first sequence information is used to represent the sequence between services belonging to the service class represented by the current interface; the updated first sequence information indicates: between the services belonging to the service class represented by the current interface, at time The order of adjustment after the stamping, that is, the third sequence information is actually used to characterize the order of adjustment between the services of the service class belonging to the current interface and after the time stamp.
在一可选实施方式中,上述服务视图对应的服务的详情数据包括:服务视图对应的服务的访问入口信息;相应的,服务视图包括跳转至所述服务的访问入口。其中,根据服务提供方式的不同,该服务的访问入口信息也有所不同,例如,若该服务时以网页形式提供的,则该访问入口信息可以是跳转至该服务的URL地址,若该服务是以本地APP或WEB APP形式提供的,则该访问入口信息可以是相应APP的调用接口信息等。In an optional implementation manner, the detailed data of the service corresponding to the service view includes: access entry information of the service corresponding to the service view; and correspondingly, the service view includes an access entry that jumps to the service. The access entry information of the service is different according to the service delivery manner. For example, if the service is provided in the form of a webpage, the access entry information may be a URL address that jumps to the service, if the service If the information is provided in the form of a local APP or a WEB APP, the access entry information may be the calling interface information of the corresponding APP.
基于上述各实施方式,第二服务数据包括:需要在新界面上展现的服务类目对应的服务分组数据,以及需要在需要展现的服务类目下展现的服务视图对应的服务的详情数据。Based on the foregoing embodiments, the second service data includes service packet data corresponding to the service category that needs to be presented on the new interface, and detailed data of the service corresponding to the service view that needs to be presented under the service category that needs to be presented.
相应的,界面模块43具体可用于:根据第二服务数据包括的服务分组数据,在新界面展现需要展现的服务类目,并根据第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,在需要展现的服务类目下展现需要展现的服务视图。Correspondingly, the interface module 43 is specifically configured to: display the service category to be presented in the new interface according to the service group data included in the second service data, and include the service packet data and the second service data included in the second service data. The detailed data of the service, showing the service view that needs to be presented under the service category that needs to be presented.
进一步,客户端可以采用触发回调方式形成新界面。具体的,更新模块42还用于向界面模块43发送广播消息,所述广播消息携带有用于标识界面模块43预先注册的回调函数的回调函数名。界面模块43具体可用于:接收更新模块42发送的广播消息,并通过广播消息携带的回调函数名所标识的所述回调函数,在更新模块42获得第二服务数据后,主动获取第二服务数 据包括的服务分组数据和第二服务数据包括的服务的详情数据,之后根据第二服务数据包括的服务分组数据,在新界面展现需要展现的服务类目,并根据第二服务数据包括的服务分组数据和第二服务数据包括的服务的详情数据,在需要展现的服务类目下展现需要展现的服务视图。Further, the client can use the trigger callback method to form a new interface. Specifically, the update module 42 is further configured to send a broadcast message to the interface module 43, where the broadcast message carries a callback function name for identifying a callback function pre-registered by the interface module 43. The interface module 43 is specifically configured to receive the broadcast message sent by the update module 42 and obtain the second service data after the update module 42 obtains the second service data by using the callback function identified by the callback function name carried in the broadcast message. According to the service packet data included in the service and the detailed data of the service included in the second service data, the service category to be presented is displayed in the new interface according to the service packet data included in the second service data, and the service included in the second service data is included The packet data and the detailed data of the service included in the second service data represent a service view that needs to be presented under the service category that needs to be presented.
本实施例提供的客户端,可以是任何可以提供界面且需要进行界面调整的客户端,例如可以是浏览器或应用(Application,APP)客户端。The client provided in this embodiment may be any client that can provide an interface and needs to perform interface adjustment, and may be, for example, a browser or an application (APP) client.
本实施例提供的客户端,从服务端获取服务更新数据,以对客户端提供的用于展示服务信息的界面进行更新;根据所获取的服务更新数据,对形成当前界面使用的第一服务数据进行更新,以获得第二服务数据,根据第二服务数据形成新界面。由此可见,本实施例提供的客户端可以自动完成界面更新,不需要用户手动下载并安装升级包,界面更新操作相对简单,有利于提高更新界面的效率。The client provided by the embodiment obtains the service update data from the server to update the interface provided by the client for displaying the service information; and according to the acquired service update data, the first service data used to form the current interface is formed. An update is made to obtain second service data, and a new interface is formed according to the second service data. Therefore, the client provided in this embodiment can automatically complete the interface update, and does not require the user to manually download and install the upgrade package. The interface update operation is relatively simple, which is beneficial to improving the efficiency of the update interface.
另外,本实施例提供的客户端不仅简化了界面更新操作,提高了更新界面的效率,而且可以根据服务的升级和多样性等,自定义调整界面布局,优化界面布局方法,使得本实施例的客户端跟随服务变化的应变能力增强了,可以为用户提供更加个性化、定制化的界面布局,有利于提供更加丰富的服务信息。In addition, the client provided in this embodiment not only simplifies the interface update operation, but also improves the efficiency of updating the interface, and can customize the interface layout according to the upgrade and diversity of the service, and optimize the interface layout method, so that the embodiment is The ability of the client to follow the changes of the service is enhanced, which can provide users with a more personalized and customized interface layout, which is conducive to providing more abundant service information.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods described in various embodiments of the present application. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (12)

  1. 一种界面更新方法,其特征在于,包括:An interface update method, comprising:
    客户端从服务端获取更新所述客户端提供的用于展示服务信息的界面所需的服务更新数据;The client obtains, from the server, service update data required to update an interface provided by the client for displaying service information;
    所述客户端根据所述服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据;所述第一服务数据包括:所述当前界面展现的服务类目对应的服务分组数据,以及所述当前界面展现在所述服务类目下的服务视图对应的服务的详情数据;所述服务类目对应的服务分组数据包括:属于所述服务类目的服务的标识;The client updates the first service data used to form the current interface according to the service update data, and obtains the second service data. The first service data includes: a service corresponding to the service category displayed by the current interface. Packet data, and the current interface presents detailed data of a service corresponding to the service view under the service category; the service packet data corresponding to the service category includes: an identifier of a service belonging to the service category;
    所述客户端根据所述第二服务数据,形成所述新界面。The client forms the new interface according to the second service data.
  2. 根据权利要求1所述的方法,其特征在于,所述客户端从服务端获取更新所述客户端提供的用于展示服务信息的界面所需的服务更新数据,包括:The method according to claim 1, wherein the client obtains, from the server, service update data required to update an interface provided by the client for displaying service information, including:
    所述客户端向所述服务端发送同步请求,所述同步请求包括:上次获取所述服务更新数据的时间戳;The client sends a synchronization request to the server, where the synchronization request includes: a timestamp of obtaining the service update data last time;
    所述服务端根据所述时间戳,从本地存储的服务分组数据和服务的详情数据中获取修改时间在所述时间戳之后的数据作为所述服务更新数据,并返回给所述客户端;And the server obtains, according to the timestamp, data that is modified after the time stamp from the locally stored service packet data and the service detail data as the service update data, and returns the data to the client;
    所述客户端接收所述服务器返回的所述服务更新数据。The client receives the service update data returned by the server.
  3. 根据权利要求2所述的方法,其特征在于,所述服务更新数据包括以下至少一种:The method of claim 2, wherein the service update data comprises at least one of the following:
    在所述时间戳之后新增的服务分组数据和属于所述新增的服务分组数据对应的服务类目的服务的详情数据;The service packet data added after the time stamp and the detailed data of the service of the service category corresponding to the newly added service packet data;
    用于表征在所述时间戳之后被删除的服务分组数据的第一删除标记信息;First deletion flag information for characterizing service packet data deleted after the time stamp;
    用于表征在所述时间戳之后被调整的服务分组数据之间的先后顺序的第二顺序信息;Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp;
    在所述时间戳之后增加的服务的详情数据和所述增加的服务所属的服务类 目对应的服务分组数据;The detailed data of the service added after the time stamp and the service class to which the added service belongs Service packet data corresponding to the destination;
    用于表征在所述时间戳之后被删除的服务的详情数据的第二删除标记信息;Second deletion flag information for characterizing the detail data of the service deleted after the time stamp;
    用于表征在所述时间戳之后被更新的第一顺序信息的第三顺序信息,所述第一顺序信息用于表征属于所述当前界面展现的服务类目的服务之间的先后顺序。And third order information for characterizing the first order information that is updated after the timestamp, the first order information being used to represent a sequence of priorities between services belonging to the service class represented by the current interface.
  4. 根据权利要求1所述的方法,其特征在于,所述服务视图对应的服务的详情数据包括:所述服务视图对应的服务的访问入口信息;所述服务视图包括跳转至所述服务的访问入口。The method according to claim 1, wherein the detailed data of the service corresponding to the service view comprises: access entry information of the service corresponding to the service view; the service view includes access to the service Entrance.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第二服务数据包括:需要在所述新界面上展现的服务类目对应的服务分组数据,以及需要在所述需要展现的服务类目下展现的服务视图对应的服务的详情数据;The method according to any one of claims 1 to 4, wherein the second service data comprises: service packet data corresponding to a service category that needs to be presented on the new interface, and needs in the need The detailed data of the service corresponding to the service view displayed under the service category;
    所述客户端根据所述第二服务数据,形成所述新界面,包括:Forming, by the client, the new interface according to the second service data, including:
    所述客户端根据所述第二服务数据包括的服务分组数据,在所述新界面展现所述需要展现的服务类目,并根据所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图。And the client, according to the service group data included in the second service data, displaying the service category that needs to be presented in the new interface, and according to the service packet data and the second information included in the second service data. The detailed data of the service included in the service data presents a service view that needs to be presented under the service category that needs to be presented.
  6. 根据权利要求5所述的方法,其特征在于,所述客户端根据所述第二服务数据包括的服务分组数据,在所述新界面展现所述需要展现的服务类目,并根据所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图,包括:The method according to claim 5, wherein the client presents the service category to be presented in the new interface according to the service group data included in the second service data, and according to the first The service packet data included in the service data and the detailed data of the service included in the second service data, and the service view that needs to be presented are displayed in the service category that needs to be presented, including:
    所述客户端采用触发回调方式,以根据所述第二服务数据包括的服务分组数据,在所述新界面展现所述需要展现的服务类目,并根据所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图。The client adopts a trigger callback manner to display the service category to be presented in the new interface according to the service group data included in the second service data, and according to the service group included in the second service data. The data and the detailed data of the service included in the second service data present a service view that needs to be presented under the service category that needs to be presented.
  7. 一种客户端,其特征在于,包括:A client, comprising:
    获取模块,用于从服务端获取更新所述客户端提供的用于展示服务信息的 界面所需的服务更新数据;An obtaining module, configured to obtain, from a server, an update provided by the client for displaying service information Service update data required by the interface;
    更新模块,用于根据所述服务更新数据,对形成当前界面使用的第一服务数据进行更新,获得第二服务数据;所述第一服务数据包括:所述当前界面展现的服务类目对应的服务分组数据,以及所述当前界面展现在所述服务类目下的服务视图对应的服务的详情数据;所述服务类目对应的服务分组数据包括:属于所述服务类目的服务的标识;And an update module, configured to update, according to the service update data, the first service data used by the current interface to obtain the second service data, where the first service data includes: the service category corresponding to the current interface Service packet data, and the current interface presents detailed data of a service corresponding to the service view under the service category; the service packet data corresponding to the service category includes: an identifier of a service belonging to the service category;
    界面模块,用于根据所述第二服务数据,形成所述新界面。And an interface module, configured to form the new interface according to the second service data.
  8. 根据权利要求7所述的客户端,其特征在于,所述获取模块具体用于:The client according to claim 7, wherein the obtaining module is specifically configured to:
    向所述服务端发送同步请求,并接收所述服务器返回的所述服务更新数据;所述同步请求包括:上次获取所述服务更新数据的时间戳;Sending a synchronization request to the server, and receiving the service update data returned by the server; the synchronization request includes: a timestamp of obtaining the service update data last time;
    其中,所述服务更新数据是所述服务端根据所述时间戳,从本地存储的服务分组数据和服务的详情数据中获取的修改时间在所述时间戳之后的数据。The service update data is data that is obtained by the server from the locally stored service packet data and the detailed data of the service after the time stamp according to the time stamp.
  9. 根据权利要求8所述的客户端,其特征在于,所述服务更新数据包括以下至少一种:The client according to claim 8, wherein the service update data comprises at least one of the following:
    在所述时间戳之后新增的服务分组数据和属于所述新增的服务分组数据对应的服务类目的服务的详情数据;The service packet data added after the time stamp and the detailed data of the service of the service category corresponding to the newly added service packet data;
    用于表征在所述时间戳之后被删除的服务分组数据的第一删除标记信息;First deletion flag information for characterizing service packet data deleted after the time stamp;
    用于表征在所述时间戳之后被调整的服务分组数据之间的先后顺序的第二顺序信息;Second order information for characterizing the order of precedence between service packet data adjusted after the timestamp;
    在所述时间戳之后增加的服务的详情数据和所述增加的服务所属的服务类目对应的服务分组数据;The detailed data of the service added after the time stamp and the service packet data corresponding to the service category to which the added service belongs;
    用于表征在所述时间戳之后被删除的服务的详情数据的第二删除标记信息;Second deletion flag information for characterizing the detail data of the service deleted after the time stamp;
    用于表征在所述时间戳之后被更新的第一顺序信息的第三顺序信息,所述第一顺序信息用于表征属于所述当前界面展现的服务类目的服务之间的先后顺序。And third order information for characterizing the first order information that is updated after the timestamp, the first order information being used to represent a sequence of priorities between services belonging to the service class represented by the current interface.
  10. 根据权利要求7所述的客户端,其特征在于,所述服务视图对应的服 务的详情数据包括:所述服务视图对应的服务的访问入口信息;所述服务视图包括跳转至所述服务的访问入口。The client according to claim 7, wherein the service view corresponds to the service The detailed data of the service includes: access entry information of the service corresponding to the service view; and the service view includes an access entry to the service.
  11. 根据权利要求7-10任一项所述的客户端,其特征在于,所述第二服务数据包括:需要在所述新界面上展现的服务类目对应的服务分组数据,以及需要在所述需要展现的服务类目下展现的服务视图对应的服务的详情数据;The client according to any one of claims 7 to 10, wherein the second service data comprises: service group data corresponding to a service category that needs to be presented on the new interface, and The detailed data of the service corresponding to the service view displayed under the service category to be displayed;
    所述界面模块具体用于:The interface module is specifically configured to:
    根据所述第二服务数据包括的服务分组数据,在所述新界面展现所述需要展现的服务类目,并根据所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图。And displaying, according to the service group data included in the second service data, the service category that needs to be presented in the new interface, and according to the service packet data included in the second service data and the second service data The detailed data of the service, showing the service view that needs to be presented under the service category that needs to be presented.
  12. 根据权利要求11所述的客户端,其特征在于,The client of claim 11 wherein:
    所述更新模块还用于:向所述界面模块发送广播消息,所述广播消息携带有用于标识所述界面模块预先注册的回调函数的回调函数名;The update module is further configured to: send a broadcast message to the interface module, where the broadcast message carries a callback function name for identifying a callback function pre-registered by the interface module;
    所述界面模块具体用于:The interface module is specifically configured to:
    接收所述更新模块发送的所述广播消息,并通过所述广播消息携带的回调函数名所标识的所述回调函数,在所述更新模块获得所述第二服务数据后,主动获取所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,并根据所述第二服务数据包括的服务分组数据,在所述新界面展现所述需要展现的服务类目,并根据所述第二服务数据包括的服务分组数据和所述第二服务数据包括的服务的详情数据,在所述需要展现的服务类目下展现需要展现的服务视图。 Receiving the broadcast message sent by the update module, and acquiring the second service data after the update module obtains the second service data by using the callback function identified by the callback function name carried by the broadcast message The service packet data included in the service data and the detailed data of the service included in the second service data, and the service category to be presented is presented in the new interface according to the service packet data included in the second service data, And displaying, according to the service packet data included in the second service data and the detailed data of the service included in the second service data, a service view that needs to be presented under the service category that needs to be presented.
PCT/CN2015/089958 2014-09-30 2015-09-18 Interface update method and client WO2016050144A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410520471.5A CN105450718A (en) 2014-09-30 2014-09-30 Interface updating method and client end
CN201410520471.5 2014-09-30

Publications (1)

Publication Number Publication Date
WO2016050144A1 true WO2016050144A1 (en) 2016-04-07

Family

ID=55560486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089958 WO2016050144A1 (en) 2014-09-30 2015-09-18 Interface update method and client

Country Status (3)

Country Link
CN (1) CN105450718A (en)
HK (1) HK1222267A1 (en)
WO (1) WO2016050144A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181508A (en) * 2019-06-17 2021-01-05 腾讯科技(深圳)有限公司 Automatic page refreshing method and device and computer equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827712B (en) * 2016-04-05 2019-07-23 成都西可科技有限公司 A kind of intelligent mobile phone platform exchange method based on commending contents
CN107562540B (en) * 2017-09-05 2021-03-12 武汉斗鱼网络科技有限公司 Method and device for delivering callback function to UI thread and client
CN110232091B (en) * 2017-09-19 2021-10-15 北京京东尚科信息技术有限公司 Method, system and apparatus for synchronizing data
CN112765275A (en) * 2021-01-26 2021-05-07 成都佳发安泰教育科技股份有限公司 Data synchronous exchange method, equipment and medium based on single time coordinate system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820350A (en) * 2009-02-27 2010-09-01 北京搜狗科技发展有限公司 Method, device and system for automatically replacing skin
CN102053851A (en) * 2010-12-23 2011-05-11 福建星网视易信息系统有限公司 Method for remotely editing interface for embedded terminal
CN102904960A (en) * 2012-10-19 2013-01-30 北京奇虎科技有限公司 Information synchronizing system and method based on really simple syndication (RSS)
US8745488B1 (en) * 2010-06-30 2014-06-03 Patrick Wong System and a method for web-based editing of documents online with an editing interface and concurrent display to webpages and print documents
CN103902692A (en) * 2014-03-27 2014-07-02 乐得科技有限公司 Application interface updating method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8510371B2 (en) * 2007-01-16 2013-08-13 Gizmox Ltd. Method and system for creating IT-oriented server-based web applications
CN103810012A (en) * 2008-10-24 2014-05-21 思杰系统有限公司 Methods And Systems For Providing A Modifiable Machine Base Image With A Personalized Desktop Environment In A Combined Computing Environment
CN102904947B (en) * 2012-09-29 2019-07-23 北京百度网讯科技有限公司 Applications client shows the method and system of pattern update and/or expansion of content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820350A (en) * 2009-02-27 2010-09-01 北京搜狗科技发展有限公司 Method, device and system for automatically replacing skin
US8745488B1 (en) * 2010-06-30 2014-06-03 Patrick Wong System and a method for web-based editing of documents online with an editing interface and concurrent display to webpages and print documents
CN102053851A (en) * 2010-12-23 2011-05-11 福建星网视易信息系统有限公司 Method for remotely editing interface for embedded terminal
CN102904960A (en) * 2012-10-19 2013-01-30 北京奇虎科技有限公司 Information synchronizing system and method based on really simple syndication (RSS)
CN103902692A (en) * 2014-03-27 2014-07-02 乐得科技有限公司 Application interface updating method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181508A (en) * 2019-06-17 2021-01-05 腾讯科技(深圳)有限公司 Automatic page refreshing method and device and computer equipment
CN112181508B (en) * 2019-06-17 2024-02-13 腾讯科技(深圳)有限公司 Page automatic refreshing method and device and computer equipment

Also Published As

Publication number Publication date
HK1222267A1 (en) 2017-06-23
CN105450718A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
WO2016050144A1 (en) Interface update method and client
US8224308B1 (en) Mobile device catalog registration based on user agents and customer snapshots of capabilities
US10326715B2 (en) System and method for updating information in an instant messaging application
US8656049B2 (en) Code injection system and method of operation
US10664871B2 (en) Advertisement system based on smart card, a method thereof, and smart card applied to the same
US10681111B2 (en) Method and system for providing internet application services
WO2011038564A1 (en) Adaptive method and system for screen display of mobile terminal in network application
US11151219B2 (en) Generating rich digital documents from limited instructional data
CN107918619B (en) Advertisement display method and device
CN111090533A (en) Notice information sending method and device, electronic equipment and storage medium
CN104932859A (en) System and method for synchronous release of mobile phone micro-websites and LED display screens
US20120268488A1 (en) Image generation device, image generation method, image generation program, and recording medium
CN101600164A (en) A kind of advertisement delivery method, Apparatus and system
WO2012109674A1 (en) Apparatus and method for providing personalized information to a user of a user device
US20140108619A1 (en) Information providing system and method for providing information
CN104980807A (en) Method and terminal for multimedia interaction
US20180300122A1 (en) Data processing method and system, and server
CN107656935B (en) Webpage display method and device
US20140229534A1 (en) Method and system for accessing micro-blog album and micro-blog client
US20130046837A1 (en) Method and Arrangement for Registering a User
CN103891253A (en) Showing method, system and device for social network carrier
WO2020253057A1 (en) Page data transmission controlling method and related device
AU2012261393A1 (en) Method and system for inputting information to mobile terminal as well as mobile terminal
CN112836201A (en) Method, device, equipment and computer readable medium for multi-platform information intercommunication
US9497251B2 (en) Serving of web pages according to web site launch times

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15846237

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15846237

Country of ref document: EP

Kind code of ref document: A1