CN110519250B - Method and equipment for providing information flow - Google Patents

Method and equipment for providing information flow Download PDF

Info

Publication number
CN110519250B
CN110519250B CN201910768400.XA CN201910768400A CN110519250B CN 110519250 B CN110519250 B CN 110519250B CN 201910768400 A CN201910768400 A CN 201910768400A CN 110519250 B CN110519250 B CN 110519250B
Authority
CN
China
Prior art keywords
information flow
information
template
target information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910768400.XA
Other languages
Chinese (zh)
Other versions
CN110519250A (en
Inventor
李铁擎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Shangwang Network Technology Co ltd
Original Assignee
Nanjing Shangwang Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Shangwang Network Technology Co ltd filed Critical Nanjing Shangwang Network Technology Co ltd
Priority to CN201910768400.XA priority Critical patent/CN110519250B/en
Publication of CN110519250A publication Critical patent/CN110519250A/en
Application granted granted Critical
Publication of CN110519250B publication Critical patent/CN110519250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

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

Abstract

An object of the present application is to provide a method of providing an information flow, the method comprising: sending an information flow acquisition request to a first server in response to detecting an information flow updating operation of a user; receiving a target information stream returned by the first server based on the information stream acquisition request; and rendering and processing the target information stream according to rendering style information of a target information stream template of the target information stream, and displaying the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template. The method and the device improve the realization efficiency of the information flow templates of various styles.

Description

Method and equipment for providing information flow
Technical Field
The present application relates to the field of communications, and more particularly, to a technique for providing information flow.
Background
With the informatization and the mass emergence of information of the society and the sharp increase of information requirements of people, the information flow forms an intricate and complex and instantaneous and variable form. The information moves to the same direction according to the same typesetting format, and the information is called an information stream. For example, the news of browsing friend circles, browsing microblogs, browsing fox search phoenix and the like from top to bottom are all information flows. With the increase of information demand of people, the application of information flow is more and more extensive, and the form of information flow presentation is more and more diversified.
Disclosure of Invention
An object of the present application is to provide a method and apparatus for providing information flow.
According to an aspect of the present application, there is provided a method for providing an information stream at a user equipment, the method comprising:
sending an information flow acquisition request to a first server in response to detecting an information flow updating operation of a user;
receiving a target information stream returned by the first server based on the information stream acquisition request;
and rendering and processing the target information stream according to rendering style information of a target information stream template of the target information stream, and displaying the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template.
According to another aspect of the present application, there is provided a method for providing an information stream at a first server, the method comprising:
receiving an information flow acquisition request sent by user equipment, wherein the information flow acquisition request carries a template list containing one or more information flow templates and data acquisition mode information of each information flow template in the template list;
responding to the information flow acquisition request, and acquiring a corresponding target information flow according to the template list and the data acquisition mode information;
and returning the target information flow to the user equipment.
According to another aspect of the present application, there is provided a method for providing an information stream at a second server, the method comprising:
acquiring and storing at least one information flow template, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template;
and sending one or more information flow templates to the user equipment, wherein the one or more information flow templates are part or all of the at least one information flow template.
According to an aspect of the present application, there is provided a method of providing an information stream, the method comprising:
the second server acquires and stores at least one information flow template, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template, and sends one or more information flow templates to the user equipment, and the one or more information flow templates are part or all of the at least one information flow template;
the user equipment receives one or more information flow templates sent by the second server and stores the one or more information flow templates in a local cache;
in response to detecting an information flow updating operation of a user, the user equipment sends an information flow obtaining request to a first server, wherein the information flow obtaining request carries a template list containing the one or more information flow templates and data obtaining mode information of each information flow template in the template list;
the first server receives an information flow acquisition request sent by the user equipment and acquires a corresponding target information flow according to the template list and the data acquisition mode information;
the first server returns the target information flow to the user equipment;
and the user equipment receives the target information stream returned by the first server, renders and processes the target information stream according to the rendering style information of a target information stream template of the target information stream, and displays the target information stream, wherein the target information stream template is selected from the one or more information stream templates.
According to an aspect of the present application, there is provided a user equipment for providing an information stream, the apparatus comprising:
a one-to-one module, configured to send an information stream acquisition request to a first server in response to detecting an information stream refresh operation of a user;
a second module, configured to receive a target information stream returned by the first server based on the information stream acquisition request;
and a third module, configured to render and process the target information stream according to rendering style information of a target information stream template of the target information stream, and display the target information stream, where the target information stream template is selected from one or more information stream templates, the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes rendering style information of the information stream template.
According to another aspect of the present application, there is provided a first server apparatus for providing an information stream, the apparatus comprising:
a module, configured to receive an information flow acquisition request sent by user equipment, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list;
a second module, configured to respond to the information flow obtaining request, and obtain a corresponding target information flow according to the template list and the data obtaining manner information;
and a second and third module for returning the target information stream to the user equipment.
According to yet another aspect of the present application, there is provided a second server apparatus for providing an information stream, the apparatus comprising:
the system comprises a first module, a second module and a third module, wherein the first module is used for acquiring and storing at least one information flow template, and each information flow template comprises rendering style information and data acquisition mode information of the information flow template;
and a third-second module, configured to send one or more information flow templates to a user equipment, where the one or more information flow templates are part or all of the at least one information flow template.
According to an aspect of the present application, there is provided a user equipment for providing an information flow, wherein the user equipment comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
sending an information flow acquisition request to a first server in response to detecting an information flow updating operation of a user;
receiving a target information stream returned by the first server based on the information stream acquisition request;
and rendering and processing the target information stream according to rendering style information of a target information stream template of the target information stream, and displaying the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template.
According to another aspect of the present application, there is provided a first server apparatus for providing an information stream, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
receiving an information flow acquisition request sent by user equipment, wherein the information flow acquisition request carries a template list containing one or more information flow templates and data acquisition mode information of each information flow template in the template list;
responding to the information flow acquisition request, and acquiring a corresponding target information flow according to the template list and the data acquisition mode information;
and returning the target information flow to the user equipment.
According to yet another aspect of the present application, there is provided a second server apparatus for providing an information stream, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform:
acquiring and storing at least one information flow template, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template;
and sending one or more information flow templates to the user equipment, wherein the one or more information flow templates are part or all of the at least one information flow template.
According to one aspect of the application, there is provided a computer-readable medium storing instructions that, when executed, cause a system to:
sending an information flow acquisition request to a first server in response to detecting an information flow updating operation of a user;
receiving a target information stream returned by the first server based on the information stream acquisition request;
and rendering and processing the target information stream according to rendering style information of a target information stream template of the target information stream, and displaying the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template.
According to another aspect of the application, there is provided a computer readable medium storing instructions that, when executed, cause a system to:
receiving an information flow acquisition request sent by user equipment, wherein the information flow acquisition request carries a template list containing one or more information flow templates and data acquisition mode information of each information flow template in the template list;
responding to the information flow acquisition request, and acquiring a corresponding target information flow according to the template list and the data acquisition mode information;
and returning the target information flow to the user equipment.
According to yet another aspect of the application, there is provided a computer readable medium storing instructions that, when executed, cause a system to:
acquiring and storing at least one information flow template, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template;
and sending one or more information flow templates to the user equipment, wherein the one or more information flow templates are part or all of the at least one information flow template.
Compared with the prior art, in the application, the user equipment responds to the detected information flow refreshing operation of the user, receives the target information flow returned by the first server after sending the information flow acquisition request to the first server, then renders and processes the target information flow according to the rendering style information of the target information flow template of the target information flow, and displays the target information flow, wherein the target information flow template is selected from one or more information flow templates which are acquired from the second server and stored in the local cache. Different from the prior art that corresponding codes are integrated at a client side, and then a new information flow pattern can be expanded through long version upgrading coverage, the method stores a new information flow template in a second server, wherein the information flow template comprises various information flow rendering patterns, and a user equipment side can directly use the information flow template stored in the second server.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a system topology according to the present application;
FIG. 2 illustrates a flow diagram for obtaining an information flow template according to one embodiment of the present application;
FIG. 3 illustrates a flow diagram for obtaining information flow according to one embodiment of the present application;
FIG. 4 illustrates a flow diagram of a system for providing information flow according to one embodiment of the present application;
fig. 5 shows a flow chart of a method for providing information flow at a user equipment according to yet another embodiment of the present application;
fig. 6 shows a flow diagram of a method of providing an information flow at a first server side according to another embodiment of the present application;
FIG. 7 is a flow diagram illustrating a method for providing information flow at a second server according to yet another embodiment of the present application;
FIG. 8 illustrates an apparatus diagram of a user equipment providing information flow according to one embodiment of the present application;
FIG. 9 is a schematic diagram of an apparatus for providing a first server for information flow according to yet another embodiment of the present application;
FIG. 10 is a diagram illustrating an apparatus of a second server providing information flow according to another embodiment of the present application;
FIG. 11 illustrates an apparatus diagram of a system apparatus for providing information flow according to yet another embodiment of the present application;
FIG. 12 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include forms of volatile Memory, Random Access Memory (RAM), and/or non-volatile Memory in a computer-readable medium, such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The device referred to in this application includes, but is not limited to, a user device, a network device, or a device formed by integrating a user device and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Fig. 1 shows an exemplary scenario of the present application, where a user holds a user equipment, the user equipment sends an information flow template acquisition request to a second server, wherein the second server pre-acquires and stores one or more information flow templates, each information flow template comprises rendering style information and data acquisition mode information of the information flow template, in response to the detected information flow refresh operation of the user in the user equipment, the user equipment sends an information flow acquisition request to the first server (for example, the first server comprises at least any one of a distribution server, a content server or an integrated server of the distribution server and the content server), the information flow obtaining request carries a template list containing one or more information flow templates and data obtaining mode information of each information flow template in the template list. The first server receives an information flow obtaining request sent by user equipment, responds to the information flow obtaining request, obtains a corresponding target information flow according to the template list and the data obtaining mode information, and then returns the target information flow to the user equipment, wherein the data obtaining mode comprises that data in each information flow template is appointed to come from the first server. For example, the first server determines, according to the information flow acquisition request, an information flow corresponding to each information flow template in the template list, specifies a target information flow template in the one or more information flow templates, determines a corresponding target information flow according to the target information flow template, and then returns the target information flow to the user equipment. And the user equipment renders and processes the target information stream according to the rendering style information of the target information stream template of the target information stream, and displays the target information stream. Fig. 2 shows a flowchart of obtaining an information flow template by a user device in an embodiment of the present application, where a developer sets a display style of one or more information flow templates in advance, and uploads the display style to a server (a second server) for subsequent use by the user device (step S1), a mobile device (the user device) periodically sends an information flow template obtaining request to the server (step S106), the server receives the information flow template obtaining request and sends at least one new information flow template to the mobile device (step S302), and the mobile device updates a local information flow template library after receiving the new information flow template (step S2). Fig. 3 shows a flowchart of a user device obtaining an information flow in an embodiment of the present application, in response to a user refreshing operation on a current information flow, a mobile device (user device) obtains a presentation template list (information flow template list) supported by the current information flow (step S3), and the user device sends an information flow data request to a content server (first server) according to the presentation template list (step S101), where each information flow template in the presentation template list includes rendering style information and data obtaining manner information of the information flow template. The content server requests to return information stream data supporting the display template to the mobile device according to the information stream data (step S203), renders and processes the information stream data according to the rendering style information (step S103), and displays the information stream data by the corresponding display template.
In conjunction with the system diagram of fig. 1, fig. 4 illustrates a method of providing information flow, wherein the method comprises:
the second server acquires and stores one or more information flow templates, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template, and sends at least one information flow template to the user equipment.
In response to detecting an information flow updating operation of a user, user equipment sends an information flow obtaining request to a first server;
the first server receives an information flow obtaining request sent by the user equipment, wherein the information flow obtaining request carries a template list containing one or more information flow templates and data obtaining mode information of each information flow template in the template list, and in response to the information flow obtaining request, a corresponding target information flow is obtained according to the template list and the data obtaining mode information;
the first server returns the target information flow to the user equipment;
and the user equipment receives the target information stream returned by the first server, renders and processes the target information stream according to the rendering style information of a target information stream template of the target information stream, and displays the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template.
Fig. 5 shows a method for providing information flow at a user equipment according to an embodiment of the present application, the method comprising step S101, step S102 and step S103. In step S101, in response to detecting an information flow refresh operation of a user, a user device sends an information flow acquisition request to a first server; in step S102, the ue receives a target information stream returned by the first server based on the information stream obtaining request; in step S103, the user equipment renders and processes the target information stream according to rendering style information of a target information stream template of the target information stream, and displays the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes the rendering style information of the information stream template.
Specifically, in step S101, the user equipment sends an information stream acquisition request to the first server in response to detecting an information stream refresh operation of the user. Wherein the first server comprises at least any one of:
1) a content server;
2) a distribution server;
3) a content server and a distribution server. The refresh operation includes a predetermined operation (e.g., sliding, dragging, etc. to various orientations) in the current information flow interface of the user device.
In step S102, the user equipment receives a target information stream returned by the first server based on the information stream obtaining request. For example, a first server receives an information flow acquisition request sent by user equipment, acquires a corresponding target information flow according to the template list and the data acquisition mode information in response to the information flow acquisition request, and sends the target information flow to the user equipment, wherein the target information flow returned by the first server includes data information in a json format. In some embodiments, the target information flow satisfies at least any one of:
1) the target information stream returned to the user equipment contains data;
for example, the target information stream received by the user equipment is not null data.
2) The target information stream is capable of being parsed by the user equipment; for example, the target information stream received by the user device includes a specified html5 or xml file.
3) The target information stream is checked to find no errors or omissions; for example, the file specification of Html5 corresponding to the target information stream received by the user equipment does not generate abnormal errors during operation. In case the target information stream fulfils these conditions, a basis is provided for a good use of the subsequent target information stream data.
In some embodiments, each information flow template further includes data acquisition mode information of the information flow template, and the information flow acquisition request carries a template list including the one or more information flow templates and the data acquisition mode information of each information flow template in the template list; the receiving of the target information flow returned by the first server based on the information flow obtaining request includes: and receiving a target information flow returned by the first server based on the template list and the data acquisition mode information of each information flow template in the template list. The data acquisition mode comprises that data in the information flow template is appointed to be originated from a first server. For example, the user equipment sends an information flow acquisition request including a template list of one or more information flow templates to a first server, and the first server determines all corresponding information flows based on the template list and data acquisition mode information of each information flow template in the template list, and determines the information flows as target information flows. And on the premise of determining the target information flow, providing a basis for subsequently determining a target information flow template based on the target information flow.
In step S103, the user equipment renders and processes the target information stream according to rendering style information of a target information stream template of the target information stream, and displays the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes the rendering style information of the information stream template. For example, the user device obtains one or more information flow templates from the second server in advance and stores the information flow templates in the local cache, where each information flow template includes rendering style information of the information flow template (for example, the rendering style information is used to render the target information flow and then display the target information flow in a different style), in some embodiments, the method further includes, before step S103, step S104 (not shown), and in step S104, the user device determines, according to the target information flow, a target information flow template suitable for the target information flow from the one or more information flow templates. On the premise of determining a target information flow template according to a target information flow, a basis is provided for rendering and processing the target information flow according to rendering style information of the target information flow template of the target information flow. In some embodiments, in step S104, the user equipment determines an information flow type of the target information flow, and determines a target information flow template suitable for the target information flow from the one or more information flow templates according to the information flow type of the target information flow, wherein the one or more information flow templates are obtained from the second server and stored in the local cache, and each information flow template includes rendering style information of the information flow template. For example, the user equipment first determines the type of information stream of the current target information stream, wherein the type of information stream includes, but is not limited to, video class, news class, and picture class. Taking the news information stream type as an example, the user equipment determines a target information stream template suitable for displaying the news information stream from the one or more information stream templates. And selecting a proper target information flow template for the target information flow, and providing a basis for presenting the target information flow with a better presentation effect. In some embodiments, in step S104, the user equipment determines a presentation type of the target information stream, and determines a target information stream template suitable for the target information stream from the one or more information stream templates according to the presentation type of the target information stream, wherein the one or more information stream templates are obtained from the second server and stored in the local cache, and each information stream template includes rendering style information of the information stream template. For example, the user device first determines the presentation type of the current target information stream (e.g., the current target information stream needs to be presented in an information stream template including buttons or the like), and the user device determines the target information stream template including buttons from the one or more information stream templates. And selecting a proper target information flow template for the target information flow, and providing a basis for presenting the target information flow with a better presentation effect. And after the user equipment determines a proper target information flow template according to the target information flow, rendering and presenting the target information flow according to the rendering style in the target information flow template. The presentation mode of the target information flow is more flexible.
For example, a user holds a user device, and in response to a detected refresh operation of the user on a current information stream, the user device sends an information stream acquisition request to a first server, where the information stream acquisition request carries a template list including one or more information stream templates (for example, each information stream template has a different ID) and data acquisition mode information of each information stream template in the template list (for example, an information stream template with two pictures and a title is stored in the user device, the information stream template specifies that a picture source is a value in an images field in JSON provided from the first server, and the title source is a value in a title field of JSON data provided by the first server). The first service receives the information flow obtaining request and returns the target information flow to the user equipment. Then, the user device determines a target information flow template suitable for the target information flow from the one or more information flow templates according to the target information flow (for example, the target information flow template is determined according to the information flow type of the target information flow), wherein the rendering style of the target information flow template is designed based on html5, the structure of the rendering style can be realized and rendered through html, css and javascript (referring to the realization logic of the web page), and after receiving the target information flow returned by the first server, the user device assigns values in some specific fields in json data in the target information flow into the reserved positions of html5 according to a specified rule, so as to realize the final presentation style.
In some embodiments, before sending the information flow obtaining request to the first server in response to detecting the information flow refreshing operation of the user, the method further includes step S105 (not shown), in which step S105, the user equipment receives and stores the one or more information flow templates sent by the second server. For example, the second server periodically issues one or more information flow templates to the user equipment, and provides a basis for requesting information flow data based on the information flow templates on the premise that the user equipment stores the one or more information flow templates in advance. In some embodiments, before receiving and storing the one or more information flow templates sent by the second server, the method further includes step S106 (not shown), in which step S106, the user equipment sends an information flow template acquisition request to the second server. Under the condition that the user equipment actively requests the information flow template from the second server, the second server can send the appropriate information flow template to the user equipment according to the request of the user equipment, and the effective utilization rate of subsequent local storage of the user equipment is improved.
In some embodiments, each information flow template further includes data acquisition mode information of the information flow template, and the information flow acquisition request carries a template list including the one or more information flow templates and the data acquisition mode information of each information flow template in the template list; the receiving of the target information flow returned by the first server based on the information flow obtaining request includes: and receiving the target information flow returned by the first server based on the data acquisition mode information of the target information flow template in the template list. The data acquisition mode comprises that data in the information flow template is appointed to be originated from a first server. For example, the user equipment sends an information flow acquisition request including a template list of one or more information flow templates to a first server, and the first server determines all or part of information flows corresponding to the one or more information flow templates based on the template list and data acquisition mode information of each information flow template in the template list (for example, information flow templates corresponding to different IDs, and the first server determines information flows corresponding to the information flow templates of each ID). Then, the first server designates a predetermined information flow template as a target information flow template, and returns a target information flow corresponding to the target information flow template to the user equipment. Under the condition that the first server determines the target information flow template, a basis is provided for subsequent determination of the target information flow and rendering operation, and the efficiency of the whole process is improved.
Fig. 6 shows a method for providing an information stream at a first server according to an embodiment of the present application, the method comprising step S201, step S202 and step S203. In step S201, a first server receives an information flow acquisition request sent by a user equipment, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list; in step S202, the first server responds to the information flow obtaining request, and obtains a corresponding target information flow according to the template list and the data obtaining mode information; in step S203, the first server returns the target information stream to the user equipment.
Specifically, in step S201, a first server receives an information flow acquisition request sent by a user equipment, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list. For example, in response to detecting an information flow refresh operation of a user, a user device sends an information flow acquisition request to a first server, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list.
In step S202, the first server responds to the information flow obtaining request, and obtains a corresponding target information flow according to the template list and the data obtaining manner information. In some embodiments, the acquiring the corresponding target information stream according to the template list and the data acquisition mode information includes: acquiring the target information flow based on the template list and the data acquisition mode information of each information flow template in the template list; or, the target information flow is acquired based on the data acquisition mode information of the target information flow template in the template list. The data acquisition mode comprises that data in the information flow template is appointed to be originated from a first server. For example, the first server receives an information flow acquisition request including the template list, acquires data of a corresponding information flow according to data acquisition mode information of each information flow template in the template list, and determines that the information flow data is a target information flow. Or, in some embodiments, the acquiring the target information stream based on the data acquisition mode information of the target information stream template in the template list includes: determining an information flow template from the template list as a target information flow template corresponding to a target information flow according to the information flow acquisition request; and acquiring the target information flow according to the data acquisition mode information of the target information flow template. For example, the user equipment sends an information flow acquisition request including a template list of one or more information flow templates to a first server, and the first server determines all or part of information flows corresponding to the one or more information flow templates based on the template list and data acquisition mode information of each information flow template in the template list (for example, information flow templates corresponding to different IDs, and the first server determines information flows corresponding to the information flow templates of each ID). Subsequently, the first server designates a predetermined one of the information flow templates (e.g., the information flow template with ID name of 1) as a target information flow template, and returns a target information flow corresponding to the target information flow template to the user equipment. Under the condition that the first server determines the target information flow template, a basis is provided for subsequent determination of the target information flow and rendering operation, and the efficiency of the whole process is improved.
In step S203, the first server returns the target information stream to the user equipment. In case the first server returns the target information stream to the user device, a basis is provided for subsequent rendering of the target information stream.
For example, a user holds a user device, and in response to a detected refresh operation of the user on a current information stream, the user device sends an information stream acquisition request to a first server, where the information stream acquisition request carries a template list including one or more information stream templates (for example, each information stream template has a different ID) and data acquisition mode information of each information stream template in the template list (for example, an information stream template with two pictures and a title is stored in the user device, the information stream template specifies that a picture source is a value in an images field in JSON provided from the first server, and the title source is a value in a title field of JSON data provided by the first server). The first service receives the information flow obtaining request and returns the target information flow to the user equipment. Then, the user device determines a target information flow template suitable for the target information flow from the one or more information flow templates according to the target information flow (for example, the target information flow template is determined according to the information flow type of the target information flow), wherein the rendering style of the target information flow template is designed based on html5, the structure of the rendering style can be realized and rendered through html, css and javascript (referring to the realization logic of the web page), and after receiving the target information flow returned by the first server, the user device assigns values in some specific fields in json data in the target information flow into the reserved positions of html5 according to a specified rule, so as to realize the final presentation style.
Fig. 7 shows a method for providing an information stream at a second server according to an embodiment of the present application, the method comprising step S301 and step S302. In step S301, the second server acquires and stores at least one information flow template, where each information flow template includes rendering style information and data acquisition mode information of the information flow template; in step S302, the second server sends one or more information flow templates to the user equipment, where the one or more information flow templates are part or all of the at least one information flow template.
Specifically, in step S301, the second server acquires and stores at least one information flow template, wherein each information flow template includes rendering style information and data acquisition mode information of the information flow template. For example, a background person (e.g., a developer) presets a presentation style of one or more information flow templates, and uploads the presentation style to the second server for storage for subsequent use by the user equipment, wherein each information flow template includes rendering style information (e.g., implemented and rendered by html, css, and javascript) of the information flow template and data acquisition manner information (e.g., the data acquisition manner includes data in json format, which specifies that data in the information flow template is derived from data provided by the first server).
In step S302, the second server sends one or more information flow templates to the user equipment, where the one or more information flow templates are part or all of the at least one information flow template. In some embodiments, the method further includes step S303 (not shown), and in step S303, the second server receives an information flow template acquisition request sent by the user equipment. For example, the user equipment sends an information flow template acquisition request to the second server, and the second server receives the request and sends one or more information flow templates to the user equipment. In this case, the user equipment may update and store the configured one or more information flow templates, which are different from the original presentation logic, for example, the information flow templates are fixed in the client by means of codes, each new presentation style needs to undergo a long process of modifying codes, getting online, covering, taking effect, and the like.
For example, a background person (e.g., a developer, an operator) designs an information flow template with two pictures and a title, and customizes a presentation style of the information flow template at a second server, and specifies that a picture source is a value in an images field in JSON provided from a first server, and a title source is a value in a title field of JSON data provided from the first server. And then, the second server receives the information flow template acquisition request sent by the user equipment and issues the information flow template to the user equipment.
Fig. 8 shows a user equipment for providing information flow according to an embodiment of the present application, which includes a one-module 101, a two-module 102, and a three-module 103. A one-to-one module 101, configured to send an information stream acquisition request to a first server in response to detecting an information stream refresh operation of a user; a second module 102, configured to receive a target information stream returned by the first server based on the information stream obtaining request; a third module 103, configured to render and process the target information stream according to rendering style information of a target information stream template of the target information stream, and display the target information stream, where the target information stream template is selected from one or more information stream templates, the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes the rendering style information of the information stream template.
Specifically, the one-to-one module 101 is configured to send an information stream obtaining request to the first server in response to detecting an information stream refreshing operation of the user. Wherein the first server comprises at least any one of:
1) a content server;
2) a distribution server;
3) a content server and a distribution server. The refresh operation includes a predetermined operation (e.g., sliding, dragging, etc. to various orientations) in the current information flow interface of the user device.
A second module 102, configured to receive a target information stream returned by the first server based on the information stream obtaining request. For example, a first server receives an information flow acquisition request sent by user equipment, acquires a corresponding target information flow according to the template list and the data acquisition mode information in response to the information flow acquisition request, and sends the target information flow to the user equipment, wherein the target information flow returned by the first server includes data information in a json format. In some embodiments, the target information flow satisfies at least any one of:
1) the target information stream returned to the user equipment contains data;
2) the target information stream is capable of being parsed by the user equipment;
3) the target information stream is checked to find no errors or omissions; here, the operation of the related target information flow is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description thereof is omitted, and the description thereof is incorporated herein by reference.
In some embodiments, each information flow template further includes data acquisition mode information of the information flow template, and the information flow acquisition request carries a template list including the one or more information flow templates and the data acquisition mode information of each information flow template in the template list; the receiving of the target information flow returned by the first server based on the information flow obtaining request includes: and receiving a target information flow returned by the first server based on the template list and the data acquisition mode information of each information flow template in the template list. The data acquisition mode comprises that data in the information flow template is appointed to be originated from a first server. Here, the operation of the related data obtaining method information is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description thereof is omitted, and the related data obtaining method information is incorporated herein by reference.
A third module 103, configured to render and process the target information stream according to rendering style information of a target information stream template of the target information stream, and display the target information stream, where the target information stream template is selected from one or more information stream templates, the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes the rendering style information of the information stream template. For example, the user device obtains one or more information flow templates from the second server in advance and stores the information flow templates in the local cache, wherein each information flow template includes rendering style information of the information flow template (for example, the rendering style information is used for rendering the target information flow and then displaying the target information flow in a different style), in some embodiments, the user device further includes a fourth module 104 (not shown) before the third module 103, and the fourth module 104 is used for determining a target information flow template suitable for the target information flow from the one or more information flow templates according to the target information flow. Here, the operation of determining the target information flow template suitable for the target information flow is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description is omitted, and the description is incorporated herein by reference. In some embodiments, a fourth module 104 is configured to determine an information flow type of the target information flow, and determine a target information flow template suitable for the target information flow from the one or more information flow templates according to the information flow type of the target information flow, where the one or more information flow templates are obtained from a second server and stored in a local cache, and each information flow template includes rendering style information of the information flow template. Here, the operation of determining the information stream type of the target information stream is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description is omitted, and the description is incorporated herein by reference. In some embodiments, a fourth module 104 is configured to determine a presentation type of the target information stream, and determine a target information stream template suitable for the target information stream from the one or more information stream templates according to the presentation type of the target information stream, where the one or more information stream templates are obtained from a second server and stored in a local cache, and each information stream template includes rendering style information of the information stream template. Here, the operation of determining the display type of the target information stream is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description is omitted, and the operation is incorporated herein by reference.
Here, the specific implementation of the above-mentioned one-to-one module 101, the two-to-two module 102 and the one-to-three module 103 is the same as or similar to the embodiment related to steps S101, S102 and S103 in fig. 5, and therefore, the description thereof is omitted, and the detailed description thereof is incorporated herein by reference.
In some embodiments, before sending the information flow obtaining request to the first server in response to detecting the information flow refreshing operation of the user, the user equipment further includes a fifth module 105 (not shown), and the fifth module 105 is configured to receive and store the one or more information flow templates sent by the second server. The specific implementation manner of the fifth module 105 is the same as or similar to the embodiment of the step S105, and therefore, the detailed description is omitted, and the detailed implementation manner is included herein by reference. In some embodiments, before receiving and storing the one or more information flow templates sent by the second server, the user equipment further includes a sixth module 106 (not shown), and the sixth module 106 is configured to send an information flow template obtaining request to the second server. The specific implementation manner of the sixth module 106 is the same as or similar to the embodiment of the step S106, and therefore, the detailed description is omitted, and the detailed implementation manner is included herein by reference.
In some embodiments, each information flow template further includes data acquisition mode information of the information flow template, and the information flow acquisition request carries a template list including the one or more information flow templates and the data acquisition mode information of each information flow template in the template list; the receiving of the target information flow returned by the first server based on the information flow obtaining request includes: and receiving the target information flow returned by the first server based on the data acquisition mode information of the target information flow template in the template list. Here, the operation of the related data obtaining method information is the same as or similar to that of the embodiment shown in fig. 5, and therefore, the description thereof is omitted, and the related data obtaining method information is incorporated herein by reference.
Fig. 9 illustrates a first server providing an information flow according to an embodiment of the present application, the first server comprising a two-to-one module 201, a two-to-two module 202, and a two-to-three module 203. A first module 201, configured to receive an information flow acquisition request sent by a user equipment, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list; a second module 202, configured to respond to the information flow obtaining request, and obtain a corresponding target information flow according to the template list and the data obtaining manner information; a second and third module 203, configured to return the target information stream to the user equipment.
Specifically, the first-second module 201 is configured to receive an information flow acquisition request sent by a user equipment, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list. For example, in response to detecting an information flow refresh operation of a user, a user device sends an information flow acquisition request to a first server, where the information flow acquisition request carries a template list including one or more information flow templates and data acquisition mode information of each information flow template in the template list.
A second module 202, configured to respond to the information flow obtaining request, and obtain a corresponding target information flow according to the template list and the data obtaining manner information. In some embodiments, the acquiring the corresponding target information stream according to the template list and the data acquisition mode information includes: acquiring the target information flow based on the template list and the data acquisition mode information of each information flow template in the template list; or, the target information flow is acquired based on the data acquisition mode information of the target information flow template in the template list. The data acquisition mode comprises that data in the information flow template is appointed to be originated from a first server. Here, the operation of obtaining the corresponding target information stream according to the template list and the data obtaining manner information is the same as or similar to that of the embodiment shown in fig. 6, and thus is not repeated herein, and is included herein by reference. In some embodiments, the obtaining the target information stream based on the data obtaining manner information of the target information stream template in the template list includes: determining an information flow template from the template list as a target information flow template corresponding to a target information flow according to the information flow acquisition request; and acquiring the target information flow according to the data acquisition mode information of the target information flow template. Here, the operation of obtaining the target information stream based on the data obtaining method information of the target information stream template in the template list is the same as or similar to that of the embodiment shown in fig. 6, and thus is not repeated herein, and is included herein by reference.
A second and third module 203, configured to return the target information stream to the user equipment. In case the first server returns the target information stream to the user device, a basis is provided for subsequent rendering of the target information stream.
Here, the examples of the specific implementation manners of the two-in-one module 201, the two-in-two module 202, and the two-in-three module 203 are the same as or similar to the embodiments of steps S201, S202, and S203 in fig. 6, and therefore, the detailed description is omitted, and the detailed description is incorporated herein by reference.
Fig. 10 shows a second server providing information flow according to an embodiment of the present application, the second server comprising a three-in-one module 301 and a three-in-two module 302. A third module 301, configured to acquire and store at least one information flow template, where each information flow template includes rendering style information and data acquisition mode information of the information flow template; a third-second module 302, configured to send one or more information flow templates to a user equipment, where the one or more information flow templates are part or all of the at least one information flow template.
Specifically, the three-in-one module 301 is configured to acquire and store at least one information flow template, where each information flow template includes rendering style information and data acquisition mode information of the information flow template. For example, a background person (e.g., a developer) presets a presentation style of one or more information flow templates, and uploads the presentation style to the second server for storage for subsequent use by the user equipment, wherein each information flow template includes rendering style information (e.g., implemented and rendered by html, css, and javascript) of the information flow template and data acquisition manner information (e.g., the data acquisition manner includes data in json format, which specifies that data in the information flow template is derived from data provided by the first server).
The thirty-two module 302 sends one or more information flow templates, which are part or all of the at least one information flow template, to the user equipment. In some embodiments, the second server further includes a triple module 303 (not shown), and the triple module 303 is configured to receive an information flow template obtaining request sent by the user equipment. The specific implementation manner of the three modules 303 is the same as or similar to the embodiment of the step S303, and therefore, the detailed description is omitted, and the detailed implementation manner is included herein by reference.
Here, the example of the specific implementation manner of the three-in-one module 301 and the three-in-two module 302 is the same as or similar to the embodiment of the steps S301 and S302 in fig. 7, and therefore, the detailed description is omitted, and the detailed description is incorporated herein by reference. Fig. 11 shows a system apparatus for providing information flow, wherein the apparatus comprises:
the second server acquires and stores one or more information flow templates, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template, and sends at least one information flow template to the user equipment.
In response to detecting an information flow updating operation of a user, user equipment sends an information flow obtaining request to a first server;
the first server receives an information flow obtaining request sent by the user equipment, wherein the information flow obtaining request carries a template list containing one or more information flow templates and data obtaining mode information of each information flow template in the template list, and in response to the information flow obtaining request, a corresponding target information flow is obtained according to the template list and the data obtaining mode information;
the first server returns the target information flow to the user equipment;
and the user equipment receives the target information stream returned by the first server, renders and processes the target information stream according to the rendering style information of a target information stream template of the target information stream, and displays the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises the rendering style information of the information stream template.
In addition to the methods and apparatus described in the embodiments above, the present application also provides a computer readable storage medium storing computer code that, when executed, performs the method as described in any of the preceding claims.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
FIG. 12 illustrates an exemplary system that can be used to implement the various embodiments described herein;
in some embodiments, as shown in FIG. 12, the system 300 can be implemented as any of the devices in the various embodiments described. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (15)

1. A method for providing information flow at a user equipment, wherein the method comprises:
sending an information flow acquisition request to a first server in response to detecting an information flow updating operation of a user, wherein the information flow acquisition request carries a template list containing one or more information flow templates and data acquisition mode information of each information flow template in the template list, and the data acquisition mode information is used for specifying a mode of acquiring data required by the information flow template from a target information flow returned by the first server based on the information flow acquisition request;
receiving a target information stream returned by the first server based on the information stream acquisition request;
rendering the target information stream according to rendering style information of a target information stream template of the target information stream, and displaying the target information stream, wherein the target information stream template is selected from one or more information stream templates, the one or more information stream templates are acquired from a second server and stored in a local cache, and each information stream template comprises rendering style information and data acquisition mode information of the information stream template;
wherein the receiving of the target information stream returned by the first server based on the information stream obtaining request includes:
and receiving a target information flow returned by the first server based on the template list and the data acquisition mode information of each information flow template in the template list.
2. The method according to claim 1, wherein the method further comprises, before the rendering the target information stream according to the rendering style information of the target information stream template of the target information stream and presenting the target information stream:
and according to the target information flow, determining a target information flow template suitable for the target information flow from the one or more information flow templates.
3. The method of claim 2, wherein said determining a target information flow template from the one or more information flow templates that is appropriate for the target information flow based on the target information flow comprises:
and determining an information flow type of the target information flow, and determining a target information flow template suitable for the target information flow from the one or more information flow templates according to the information flow type of the target information flow, wherein the one or more information flow templates are acquired from a second server and stored in a local cache, and each information flow template comprises rendering style information of the information flow template.
4. The method of claim 2, wherein said determining a target information flow template from the one or more information flow templates that is appropriate for the target information flow based on the target information flow comprises:
determining a display type of the target information flow, and determining a target information flow template suitable for the target information flow from the one or more information flow templates according to the display type of the target information flow, wherein the one or more information flow templates are acquired from a second server and stored in a local cache, and each information flow template comprises rendering style information of the information flow template.
5. The method according to claim 1, wherein each information flow template further includes data acquisition mode information of the information flow template, and the information flow acquisition request carries a template list including the one or more information flow templates and the data acquisition mode information of each information flow template in the template list;
the receiving of the target information flow returned by the first server based on the information flow obtaining request includes:
and receiving the target information flow returned by the first server based on the data acquisition mode information of the target information flow template in the template list.
6. The method according to any one of claims 1 to 5, wherein before sending the information flow acquisition request to the first server in response to detecting the information flow refresh operation of the user, the method further comprises:
and receiving and storing the one or more information flow templates sent by the second server.
7. The method of claim 6, wherein prior to said receiving and storing said one or more information flow templates sent by said second server, said method further comprises:
and sending an information flow template acquisition request to the second server.
8. The method of any of claims 1-5, wherein the target information flow satisfies at least any one of:
the target information stream returned to the user equipment contains data;
the target information stream is capable of being parsed by the user equipment;
the target information stream is checked for errors or omissions.
9. A method for providing an information flow at a first server, wherein the method comprises:
receiving an information flow acquisition request sent by user equipment, wherein the information flow acquisition request carries a template list containing one or more information flow templates and data acquisition mode information of each information flow template in the template list, and the data acquisition mode information is used for specifying a mode for acquiring data required by the information flow template from a target information flow returned by the first server based on the information flow acquisition request;
responding to the information flow obtaining request, and obtaining the target information flow according to the template list and the data obtaining mode information;
returning the target information stream to the user equipment;
wherein the acquiring the target information stream according to the template list and the data acquisition mode information includes:
and acquiring the target information flow based on the template list and the data acquisition mode information of each information flow template in the template list.
10. The method of claim 9, wherein the obtaining the target information stream based on the data obtaining manner information of the target information stream template in the template list comprises:
determining an information flow template from the template list as a target information flow template corresponding to a target information flow according to the information flow acquisition request;
and acquiring the target information flow according to the data acquisition mode information of the target information flow template.
11. A method for providing information flow at a second server, wherein the method comprises:
acquiring and storing at least one information flow template, wherein each information flow template comprises rendering style information of the information flow template and data acquisition mode information, and the data acquisition mode information is used for specifying a mode for acquiring data required by the information flow template from a target information flow returned by a first server based on an information flow acquisition request;
and sending one or more information flow templates to the user equipment, wherein the one or more information flow templates are part or all of the at least one information flow template.
12. The method of claim 11, wherein the method further comprises:
and receiving an information flow template acquisition request sent by the user equipment.
13. A method of providing an information flow, wherein the method comprises:
the method comprises the steps that a second server acquires and stores at least one information flow template, wherein each information flow template comprises rendering style information and data acquisition mode information of the information flow template, and one or more information flow templates are sent to user equipment, the one or more information flow templates are part or all of the at least one information flow template, and the data acquisition mode information is used for specifying a mode for acquiring data required by the information flow template from a target information flow returned by the first server based on an information flow acquisition request;
the user equipment receives one or more information flow templates sent by the second server and stores the one or more information flow templates in a local cache;
in response to detecting an information flow updating operation of a user, the user equipment sends an information flow obtaining request to a first server, wherein the information flow obtaining request carries a template list containing the one or more information flow templates and data obtaining mode information of each information flow template in the template list;
the first server receives an information flow obtaining request sent by the user equipment and obtains the target information flow according to the template list and the data obtaining mode information;
the first server returns the target information flow to the user equipment;
the user equipment receives the target information flow returned by the first server, renders and processes the target information flow according to rendering style information of a target information flow template of the target information flow, and displays the target information flow, wherein the target information flow template is selected from the one or more information flow templates;
wherein the acquiring the target information stream according to the template list and the data acquisition mode information includes:
and acquiring the target information flow based on the template list and the data acquisition mode information of each information flow template in the template list.
14. An apparatus for providing a stream of information, the apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1 to 12.
15. A computer-readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods of claims 1-12.
CN201910768400.XA 2019-08-20 2019-08-20 Method and equipment for providing information flow Active CN110519250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910768400.XA CN110519250B (en) 2019-08-20 2019-08-20 Method and equipment for providing information flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910768400.XA CN110519250B (en) 2019-08-20 2019-08-20 Method and equipment for providing information flow

Publications (2)

Publication Number Publication Date
CN110519250A CN110519250A (en) 2019-11-29
CN110519250B true CN110519250B (en) 2022-04-15

Family

ID=68625865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910768400.XA Active CN110519250B (en) 2019-08-20 2019-08-20 Method and equipment for providing information flow

Country Status (1)

Country Link
CN (1) CN110519250B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324808B (en) * 2020-01-19 2023-09-15 南京尚网网络科技有限公司 Method and equipment for providing information flow
CN112256992A (en) * 2020-09-17 2021-01-22 上海连尚网络科技有限公司 Native rendering method and device for information stream fusing multi-link addresses
CN113360806A (en) * 2021-06-08 2021-09-07 上海哔哩哔哩科技有限公司 Live broadcast page display method and device
CN115514995A (en) * 2021-06-23 2022-12-23 武汉斗鱼鱼乐网络科技有限公司 Method, device and equipment for displaying recommendation information of live broadcast room

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166916A (en) * 2011-12-12 2013-06-19 深圳市金蝶中间件有限公司 Method and system for updating page
WO2016053130A1 (en) * 2014-10-01 2016-04-07 Obschestvo S Ogranichennoy Otvetstvennostyu "Slickjump" Method for rendering relevant context-based information
CN106708930A (en) * 2016-11-17 2017-05-24 北京小米移动软件有限公司 Application page refreshing method and application page refreshing device
CN107786631A (en) * 2017-09-15 2018-03-09 北京奇艺世纪科技有限公司 A kind of content delivery method, device and electronic equipment
CN107808010A (en) * 2017-11-17 2018-03-16 北京锐安科技有限公司 A kind of pop-up page generation method, device, browser and storage medium
CN110046312A (en) * 2018-12-27 2019-07-23 阿里巴巴集团控股有限公司 A kind of webpage method for refreshing and device
CN107423070B (en) * 2017-08-03 2021-02-23 北京奇艺世纪科技有限公司 Page generation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9536009B2 (en) * 2007-08-08 2017-01-03 Microsoft Technology Licensing, Llc Embedding a representation of an item in a host
JP4815459B2 (en) * 2008-03-06 2011-11-16 株式会社日立製作所 Load balancing control server, load balancing control method, and computer program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166916A (en) * 2011-12-12 2013-06-19 深圳市金蝶中间件有限公司 Method and system for updating page
WO2016053130A1 (en) * 2014-10-01 2016-04-07 Obschestvo S Ogranichennoy Otvetstvennostyu "Slickjump" Method for rendering relevant context-based information
CN106708930A (en) * 2016-11-17 2017-05-24 北京小米移动软件有限公司 Application page refreshing method and application page refreshing device
CN107423070B (en) * 2017-08-03 2021-02-23 北京奇艺世纪科技有限公司 Page generation method and device
CN107786631A (en) * 2017-09-15 2018-03-09 北京奇艺世纪科技有限公司 A kind of content delivery method, device and electronic equipment
CN107808010A (en) * 2017-11-17 2018-03-16 北京锐安科技有限公司 A kind of pop-up page generation method, device, browser and storage medium
CN110046312A (en) * 2018-12-27 2019-07-23 阿里巴巴集团控股有限公司 A kind of webpage method for refreshing and device

Also Published As

Publication number Publication date
CN110519250A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110519250B (en) Method and equipment for providing information flow
CN108958780B (en) Method and equipment for presenting update information of hosted program
CN109669657B (en) Method and equipment for conducting remote document collaboration
CN110290557B (en) Method and equipment for loading page tags in application
CN111046164A (en) Method and equipment for updating book to be read
CN110321189B (en) Method and equipment for presenting hosted program in hosted program
CN112822431B (en) Method and equipment for private audio and video call
CN110413179B (en) Method and equipment for presenting session message
CN111258470B (en) Method and equipment for presenting social messages
CN111125562B (en) Method and equipment for switching display tag pages
CN111427650A (en) Method and equipment for providing presence information
CN111382386A (en) Method and equipment for generating webpage screenshot
CN110430253B (en) Method and equipment for providing novel update notification information
CN111325574B (en) Method and device for providing presentation information
CN110750482A (en) Method and equipment for providing novel reading information
CN113157162B (en) Method, apparatus, medium and program product for revoking session messages
CN109254781B (en) Method and equipment for installing application on user equipment
CN110765258B (en) Method and equipment for providing electronic books
CN111177062B (en) Method and device for providing reading presentation information
CN110618811B (en) Information presentation method and device
CN108966122B (en) Method and equipment for determining height information of wireless access point
CN110941437A (en) Method and equipment for installing application
CN115309657A (en) Method, device, medium and program product for providing test case
US20210117129A1 (en) Method and Apparatus for Writing Data
CN110413800B (en) Method and equipment for providing novel information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200707

Address after: Room 909, No. 12, Huangshan Road, Jianye District, Nanjing City, Jiangsu Province

Applicant after: Nanjing Shangwang Network Technology Co.,Ltd.

Address before: 201806, room 5358, 140 Shanghai Yi Road, Shanghai, Jiading District

Applicant before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant