CN110798501B - Data processing method and device and readable storage medium - Google Patents

Data processing method and device and readable storage medium Download PDF

Info

Publication number
CN110798501B
CN110798501B CN201910774665.0A CN201910774665A CN110798501B CN 110798501 B CN110798501 B CN 110798501B CN 201910774665 A CN201910774665 A CN 201910774665A CN 110798501 B CN110798501 B CN 110798501B
Authority
CN
China
Prior art keywords
data
resource
target
page
user information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910774665.0A
Other languages
Chinese (zh)
Other versions
CN110798501A (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.)
Guangzhou Tencent Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910774665.0A priority Critical patent/CN110798501B/en
Publication of CN110798501A publication Critical patent/CN110798501A/en
Application granted granted Critical
Publication of CN110798501B publication Critical patent/CN110798501B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment; receiving a data access request sent by terminal equipment; the data access request carries target user information corresponding to the terminal equipment; acquiring request data associated with target user information according to the data access request; the request data comprises a target resource positioning identifier and first resource data; and sending the request data to the terminal equipment so that the terminal equipment acquires second resource data based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data. By adopting the embodiment of the application, the data transmission quantity of the server can be reduced, and the data processing efficiency is further improved.

Description

Data processing method and device and readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method and apparatus, and a readable storage medium.
Background
With the development of network technology, the types of clients are more and more abundant, the functions are more and more perfect, and the frequency of using the clients by users is increasingly increased.
In the prior art, when a client needs to acquire data, a data access request is sent to a server, and after receiving the data access request of the client, the server returns data requested by the data access request to the client, so as to complete processing of the data access request of the client. However, when the clients corresponding to the multiple users send data access requests to the server at the same time, the server needs to transmit the requested data to each client that sends the data access requests, which causes an excessive data transmission amount of the server, and further reduces the data processing efficiency of the server.
Disclosure of Invention
Embodiments of the present application provide a data processing method, an apparatus, and a readable storage medium, which can reduce a transmission data amount of a server, thereby improving data processing efficiency.
An embodiment of the present application provides a data processing method, which is applied to a server, and includes:
splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
receiving a data access request sent by terminal equipment; the data access request carries target user information corresponding to the terminal equipment;
acquiring request data associated with the target user information according to the data access request; the request data comprises a target resource positioning identifier and first resource data;
and sending the request data to the terminal equipment so that the terminal equipment acquires second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
Wherein the obtaining of the request data associated with the target user information according to the data access request includes:
determining the type of data requested by the terminal equipment according to the data access request;
acquiring first resource data associated with the target user information from a data list according to the data type, and acquiring a target resource positioning identifier associated with the data type; the data list is used for storing first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
and determining the target resource positioning identifier and the first resource data as request data.
The obtaining of the first resource data associated with the target user information from the data list according to the data type and the obtaining of the target resource location identifier associated with the data type include:
if the data type is a page template type, acquiring user attribute data associated with the target user information from a data list, and determining the user attribute data as first resource data;
acquiring a target resource positioning identifier associated with the user attribute data; the target resource location identification is associated with page template data for presenting the user attribute data.
The obtaining of the first resource data associated with the target user information from the data list according to the data type and the obtaining of the target resource location identifier associated with the data type include:
if the data type is a book type, acquiring text data associated with the target user information from a data list, and determining the text data as first resource data;
acquiring a target resource positioning identifier associated with the text data; the target resource location identification is associated with image data that matches the text data.
Wherein the obtaining of the target resource positioning identifier associated with the text data includes:
and determining a plurality of image data matched with the text data, and determining the resource positioning identifier corresponding to each image data as a target resource positioning identifier.
An aspect of the present application provides a data processing method, which is applied to a terminal device, and includes:
sending a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
receiving request data associated with the target user information returned by the server; the request data comprises a target resource positioning identifier and first resource data;
and acquiring second resource data from content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
The acquiring, from a content delivery device, second resource data based on the target resource location identifier, and synthesizing the first resource data and the second resource data to obtain page display data includes:
acquiring second resource data matched with the target resource positioning identification from the content distribution equipment; the content distribution equipment is used for storing second resource data corresponding to a plurality of resource positioning identifications; the plurality of resource location identifiers comprises the target resource location identifier;
and synthesizing the first resource data and the second resource data into page display data, and displaying the page display data in a display page.
The first resource data comprise user attribute data, and the second resource data comprise page template data;
the obtaining, from the content distribution device, second resource data that matches the target resource location identity includes:
responding to page jump operation aiming at an application main page, and acquiring page template data matched with the target resource positioning identification from the content distribution equipment;
the synthesizing the first resource data and the second resource data into page display data includes:
loading and analyzing the page template data to obtain page typesetting information;
and synthesizing the user attribute data and the page layout information based on a programming interface and the logic rule of the page layout information to obtain page display data.
Wherein the first resource data comprises text data and the second resource data comprises image data;
the obtaining, from the content distribution device, second resource data that matches the target resource location identity includes:
responding to a trigger operation aiming at a recommended book in an information stream, and acquiring image data matched with the target resource positioning identification from the content distribution equipment; the recommended book is associated with the target resource positioning identification;
the synthesizing the first resource data and the second resource data into page display data includes:
acquiring a book display template corresponding to the recommended book, and typesetting the text data based on the book display template to obtain initial page display data; the book display template is used for standardizing the display form of the text data;
and adding the image data to the initial page display data to obtain page display data.
An aspect of the present application provides a data processing apparatus, which is applied to a server, and includes:
the data splitting module is used for splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
the request receiving module is used for receiving a data access request sent by the terminal equipment; the data access request carries target user information corresponding to the terminal equipment;
the data acquisition module is used for acquiring request data associated with the target user information according to the data access request; the request data comprises a target resource positioning identifier and first resource data;
and the data sending module is used for sending the request data to the terminal equipment so as to enable the terminal equipment to acquire second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesize the first resource data and the second resource data to obtain page display data.
Wherein the data acquisition module comprises:
a first determining unit, configured to determine, according to the data access request, a data type requested by the terminal device;
a first obtaining unit, configured to obtain, according to the data type, first resource data associated with the target user information from a data list, and obtain a target resource location identifier associated with the data type; the data list is used for storing first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
a second determining unit, configured to determine the target resource location identifier and the first resource data as request data.
Wherein the first acquisition unit includes:
the attribute data acquisition subunit is configured to, if the data type is a page template type, acquire user attribute data associated with the target user information from a data list, and determine the user attribute data as first resource data;
a first identifier obtaining subunit, configured to obtain a target resource location identifier associated with the user attribute data; the target resource location identification is associated with page template data for presenting the user attribute data.
Wherein the first acquisition unit includes:
a text data obtaining subunit, configured to, if the data type is a book type, obtain text data associated with the target user information from a data list, and determine the text data as first resource data;
the second identification acquisition subunit is used for acquiring a target resource positioning identification associated with the text data; the target resource location identification is associated with image data that matches the text data.
Wherein the second identifier obtaining subunit is specifically configured to:
and determining a plurality of image data matched with the text data, and determining the resource positioning identifier corresponding to each image data as a target resource positioning identifier.
An aspect of the present application provides a data processing apparatus, which is applied to a terminal device, and includes:
the request sending module is used for sending a data access request to the server; the data access request carries target user information corresponding to the terminal equipment;
the data receiving module is used for receiving request data which is returned by the server and is associated with the target user information; the request data comprises a target resource positioning identifier and first resource data;
and the data synthesis module is used for acquiring second resource data from content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
Wherein the data synthesis module comprises:
a second obtaining unit, configured to obtain, from the content distribution apparatus, second resource data that matches the target resource location identifier; the content distribution equipment is used for storing second resource data corresponding to a plurality of resource positioning identifications; the plurality of resource location identifiers comprises the target resource location identifier;
and the display unit is used for synthesizing the first resource data and the second resource data into page display data and displaying the page display data in a display page.
The first resource data comprise user attribute data, and the second resource data comprise page template data;
the second obtaining unit is specifically configured to:
responding to page jump operation aiming at an application main page, and acquiring page template data matched with the target resource positioning identification from the content distribution equipment;
the display unit includes:
the loading subunit is used for loading and analyzing the page template data to obtain page typesetting information;
and the synthesis subunit is used for synthesizing the user attribute data and the page layout information based on a program programming interface and the logic rule of the page layout information to obtain page display data.
Wherein the first resource data comprises text data and the second resource data comprises image data;
the second obtaining unit is specifically configured to:
responding to a trigger operation aiming at a recommended book in an information stream, and acquiring image data matched with the target resource positioning identification from the content distribution equipment; the recommended book is associated with the target resource positioning identification;
the display unit includes:
a typesetting subunit, configured to obtain a book display template corresponding to the recommended book, and typeset the text data based on the book display template to obtain initial page display data; the book display template is used for standardizing the display form of the text data;
and the adding subunit is used for adding the image data to the initial page display data to obtain page display data.
An embodiment of the present application provides a data processing apparatus, including: a processor and a memory;
the processor is connected with the memory, wherein the memory is used for storing a computer program, and the processor is used for calling the computer program to execute the method in one aspect of the embodiment of the application.
An aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, perform a method as in an aspect of the embodiments of the present application.
According to the embodiment of the application, the multimedia data can be split to obtain the first resource data and the second resource data, the target resource positioning identification associated with the content distribution equipment is distributed to the second resource data, and the second resource data is sent to the content distribution equipment; when receiving a data access request sent by a terminal device, according to the data access request, first resource data and a target resource positioning identifier associated with target user information in the data access request may be obtained, and the first resource data and the target resource positioning identifier are returned to the terminal device, so that the terminal device obtains second resource data based on the target resource positioning identifier, and the first resource data and the second resource data are combined into page display data. Therefore, the data requested by the terminal equipment is split into the first resource data and the second resource data, when the server receives the data access request sent by the terminal equipment, the server returns the target resource positioning identification corresponding to the first resource data and the second resource data to the terminal equipment, the data transmission quantity of the server can be reduced, the data transmission pressure of the server is further reduced, and the data processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture provided in an embodiment of the present application;
fig. 2 is a schematic view of a data processing method provided in an embodiment of the present application;
FIG. 3 is a timing diagram illustrating a data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data processing flow provided by an embodiment of the present application;
fig. 6 is an interface schematic diagram of a data processing method according to an embodiment of the present application;
FIGS. 7a and 7b are schematic interface diagrams of another data processing method provided in the embodiments of the present application;
fig. 8 is a schematic block diagram of a data processing method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 10 is a schematic diagram of another data processing apparatus according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of another data processing apparatus provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which is a schematic diagram of a network architecture according to an embodiment of the present application. The network architecture may include a server 200 and a plurality of terminal devices (as shown in fig. 1, specifically, including a terminal device 100a, a terminal device 100b, and a terminal device 100c), where the server 200 may perform data transmission with each terminal device through a network, each terminal device may install a reading application (such as a WeChat reading book), and the server 200 may be a background server corresponding to the reading application, so that each terminal device may perform data transmission with the server 200 through a client corresponding to the reading application, for example, each terminal device may send a data access request to the server 200, and after receiving the data access request sent by each terminal device, the server 200 may return the requested data information to each terminal device. The terminal devices 100a, 100b, and 100c may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device (e.g., a smart watch, a smart band, etc.).
Please refer to fig. 2, which is a schematic view of a data processing method according to an embodiment of the present application. Taking the terminal device 100a in the embodiment corresponding to fig. 1 as an example, specifically describing a process of data processing, as shown in fig. 2, after the terminal device 100a opens the reading-class application, the terminal device first enters the default main page 20a of the reading-class application, and at this time, the display area 20b in the main page 20a does not display any information yet, so that when the terminal device 100a opens the reading-class application, a data access request may be generated and sent to the server 200 to obtain the display data in the display area 20 b. In the main page 20a, at least four function buttons, which are a "find" button, a "bookshelf" button, a "story" button, and an "me" button, may be displayed, and each button has a corresponding presentation page, and the main page 20a is a presentation page corresponding to the "find" button, for example. When the reading application is in the starting state and the display page corresponding to a certain button is displayed in the terminal interface, the user may select the other buttons to realize the jump of the display page to generate the data access request, for example, when the display page corresponding to the "bookshelf" button is displayed in the terminal interface of the terminal device 100a, the user may select the "discovery" button 20c to realize that the terminal device 100a jumps from the display page corresponding to the "bookshelf" button to the home page 20a corresponding to the "discovery" button 20 c. When the terminal device 100a detects a user's selection operation of the "find" button, the terminal device 100a may jump to the home page 20a, and at the same time may transmit a data access request to the server 200 to request acquisition of display data in the display area 20 b.
After receiving the data access request sent by the terminal device 100a, the server 200 may determine, based on the data access request, target user information corresponding to the terminal device 100a, where the target user information may be understood as user account information registered in the reading-type application of the terminal device 100 a. The server 200 may obtain the requested request data 20d based on target user information carried in the data access request, where the request data 20d may include first Resource data and a target Resource location identifier, where the first Resource data may be understood as personalized data corresponding to the target user information, such as electronic readings recommended for the target user based on historical behavior data of the target user or a user portrait, and the target Resource location identifier may be represented by a Uniform Resource Locator (URL), and is mainly used to indicate a location where conventional data is located in a reading-type application and an access mode, and may be understood as website information. The server 200 may return the acquired request data 20d to the terminal device 100 a.
The historical behavior data can be expressed as operations of clicking, reading time, downloading and the like in the client corresponding to the reading application before the current moment; the user portrait can be expressed as a tagged user model abstracted according to the user attribute, user preference, living habits, user behaviors and other information; the URL is a compact representation of the location and access method of a resource available from the internet, and provides an abstract identification method for the location of the internet resource and uses this method to locate the resource, and the general syntax format of the URL is: protocol:// host name [: port number ]/path/[; parameter ] [? Query ] # fragment. Wherein [ ] is expressed as a selectable item, the Protocol can be expressed as a network Protocol, and commonly used protocols include http (Hyper Text Transfer Protocol), ftp (File Transfer Protocol), and the like; the host name can be a host address, a domain name or an IP (Internet protocol) address; the port number may be a default port of the network protocol; a path may refer to a designated path of a network resource in a server; the parameters are used for inputting the parameters to the server; the query is used for editing character strings and querying the content from the server; the fragment means that when the webpage is divided into different fragments, the fragments can be set in the URL so as to directly reach the specified position.
After the terminal device 100a receives the request data 20d returned by the server 200, the terminal device 100a may download, according to the target resource location identifier in the request data 20d, second resource data matched with the target resource location identifier from a Content Delivery Network 20e (CDN, which may also be referred to as a Content Delivery device), where the second resource data may be regular data in a reading-type application, such as reading activities launched for all users, novice tasks launched for all newly registered users, and the like. The terminal device 100a loads and runs the acquired second resource data to obtain page layout information 20f, and adds the first resource data (which may refer to a book recommended for the user based on the history of the user, such as data 20g, which may include information such as the number, name, and cover image of the book) to the page layout information 20f through a programming interface in the client corresponding to the reading application to obtain final display data, and displays the display data in the display area 20b of the main page 20a, so that the user can click the book displayed in the display area 20b and view and read the book. The purpose of the content distribution network is to enable a user to obtain required data nearby, solve the problem of network congestion, and improve the response speed of the user to access a website.
Please refer to fig. 3, which is a timing diagram of a data processing method according to an embodiment of the present application. As shown in fig. 3, the data processing method may include the steps of:
step S101, splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
specifically, for multimedia data in the reading application, the server (i.e., a background server corresponding to the reading application, corresponding to the server 200 in the embodiment corresponding to fig. 2) may split the multimedia data into first resource data and second resource data in advance, allocate a target resource positioning identifier associated with the content distribution device to the second resource data, and after the target resource positioning identifier corresponding to the second resource data is allocated, may send the second resource data to the content distribution device for storage.
The multimedia data may include text, pictures, animations, sounds, tables, links, and other data. In a main page scene of a reading application, the multimedia data is specifically page display data of a main page, the server may split the page display data in the main page into page template data and user attribute data, determine the user attribute data as first resource data, determine the page template data as second resource data, and the server may allocate a target resource location identifier (i.e., a URL) to the page template data and send the page template data to the content distribution device for storage.
In the information flow page scene of the reading application, the multimedia data is specifically chapter data of the electronic reading, the server can split the chapter data in the electronic reading into text data and image data, the text data is determined as first resource data, the image data is determined as second resource data, and the server can allocate a target resource positioning identifier for the image data and send the image data to the content distribution equipment for storage. Of course, if the chapter data in the electronic reading has a plurality of image data, the server may allocate a resource location identifier to the plurality of image data, that is, allocate a URL, or allocate a resource location identifier to each image data, that is, allocate a URL to each image data.
It can be understood that the splitting process of the multimedia is a preprocessing process of the data by the background server, and in the preprocessing process, the server needs to split all the multimedia data, allocate a corresponding URL to the second resource data, and send all the second resource data to the content distribution device for storage.
Step S102, sending a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
specifically, the terminal device (corresponding to the terminal device 100a in the embodiment corresponding to fig. 2) generates the data access request by monitoring the behavior of the target user. For example, when the target user opens the client corresponding to the reading-class application, or selects the "find" button (corresponding to the "find" button 20c in the embodiment corresponding to fig. 2) in the reading-class application by clicking, long-pressing, or the target user selects the "story" button in the reading-class application by clicking, long-pressing, or the like, the terminal Device may generate a data access request, where the data access request may carry target user information corresponding to the terminal Device, such as account information used by the target user to register the reading-class application, and of course, the data access request may also carry a Device identifier (UDID) of the terminal Device. After generating the data access request, the terminal device may send the data access request to the server.
Step S103, acquiring request data associated with the target user information; the request data comprises a target resource positioning identifier and first resource data;
specifically, after receiving a data access request of the terminal device, the server may determine a requested data type based on the data access request, further obtain first resource data associated with the target user information from the data list according to the data type, obtain a target resource location identifier associated with the data type, and determine the target resource location identifier and the first resource data as the request data. The data list may be used to store first resource data corresponding to a plurality of user information, where the plurality of user information may include target user information. The first resource data included in the data list may refer to user personalized data determined by the server based on the historical reading behavior of the user, for example, the first resource data of each user may refer to an electronic reading read by the user, or an electronic reading recommended to the user based on user preferences, and the like.
For different data types, that is, for different application scenarios, the specific process of the server obtaining the request data may include: if the data type is a page template type, acquiring user attribute data associated with target user information from the data list, determining the user attribute data as first resource data, and acquiring a target resource positioning identifier associated with the user attribute data, wherein the target positioning identifier is associated with page template data used for presenting the user attribute data; and if the data type is the book type, acquiring text data associated with the target user information from the data type table, determining the text data as first resource data, and acquiring a target resource positioning identifier associated with the text data, wherein the target resource positioning identifier is associated with the image data matched with the text data.
In a scene that the terminal device opens the reading application and enters a main page of the reading application, the data requested by the data access request received by the server is display data related to the main page, namely the data type requested by the data access request is a page template type. The server can acquire user attribute data matched with the target user information from the data list, determine page template data matched with the user attribute data, and further acquire a target resource positioning identifier corresponding to the page template data. The data list may include user attribute data corresponding to all users in the reading application, that is, the data list stores user history data and user recommendation data corresponding to each user, and the like, and because there is a difference in reading preference of each user, there may also be a difference in the user history data and the user recommendation data of each user, that is, the user attribute data stored in each data list may also be different; the page template data refers to a page template for presenting user attribute data, and is the same for all users of the reading application. It can be understood that the server may pre-store the resource location identifiers corresponding to the multiple page templates in the reading application, and therefore, the server may obtain the target resource location identifier matching the user attribute data from the multiple resource location identifiers based on the data access request. The server may use the acquired user attribute data and the target resource location identifier as request data.
Optionally, in a scenario that the terminal device opens the reading application and enters an information flow page of the reading application, the data requested by the data access request received by the server is recommended book data related to the information flow, that is, the data type requested by the data access request is a book type. The server may obtain text data matched with the information of the target user from the data list, that is, book chapter data (which may include text information such as chapter names, chapter specific contents, and highlighted sentences) recommended for the target user in the information stream, determine image data matched with the text data, and further obtain a target resource location identifier corresponding to the image data. Book chapter data recommended for each user can be included in the data list (the book chapter data is determined based on the user portrait of each user or the historical reading behavior of each user, so that the book chapter data corresponding to each user can be different); the image data refers to a book picture matching the text data, and may refer to a cover image of the book or a chapter inset in the book. It can be understood that the server may pre-store the resource location identifiers corresponding to the image data included in all the book data in the reading application, and therefore, the server may determine, as the target resource location identifier, the resource location identifier matched with the text data in the resource location identifiers corresponding to the multiple images based on the data access request. The server may use the acquired text data and the target resource location identifier as request data.
For the resource location identifiers stored in the server, one resource location identifier may be used to represent all image data included in each book chapter data, and may also be used to represent each image data in the book chapter data, for example, when 20 pieces of picture data are included in chapter data of a certain book, the 20 pieces of picture data may correspond to the same resource location identifier, and may also correspond to 20 different resource location identifiers. Under the situation that one image data corresponds to one resource positioning identifier, after the server acquires the text data matched with the data access request, a plurality of image data matched with the text data are determined, and then the resource positioning identifier corresponding to each image data can be determined as the target resource positioning identifier.
Step S104, sending the request data to the terminal equipment;
specifically, after the server acquires the request data based on the data access request, the server may return the request data to the terminal device based on the device identifier carried in the data access request.
Step S105, acquiring second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
Specifically, after receiving the request data returned by the server, the terminal device may obtain second resource data matched with the target resource location identifier from the content distribution device, merge the first resource data and the second resource data based on a data rendering function in the reading application to obtain final page display data, and display the page display data in a display page of the terminal device. The content distribution device is configured to store second resource data corresponding to a plurality of resource location identifiers, where the plurality of resource location identifiers may include a target resource location identifier.
In a scene of a main page of a reading application, first resource data received by a terminal device is user attribute data, acquired second resource data is page template data matched with a target resource positioning identifier, page display data in the main page can be obtained by combining the user attribute data and the page template data, and the page display data is displayed in the main page.
In a scene of an information flow page of a reading application, first resource data received by a terminal device are text data, second resource data obtained are image data matched with a target resource positioning identifier, recommended information data in the information flow page can be obtained by combining the text data and the image data, and the recommended information data is displayed in the information flow page.
According to the data access request sent by the terminal equipment, the first resource data and the target resource positioning identification which are associated with the target user information in the data access request are obtained according to the data access request, and the first resource data and the target resource positioning identification are returned to the terminal equipment, so that the terminal equipment obtains the second resource data based on the target resource positioning identification, and the first resource data and the second resource data are combined into the page display data. Therefore, the data requested by the terminal equipment is split into the first resource data and the second resource data, when the server receives the data access request sent by the terminal equipment, the server returns the target resource positioning identification corresponding to the first resource data and the second resource data to the terminal equipment, the data transmission quantity of the server can be reduced, the data transmission pressure of the server is further reduced, and the data processing efficiency is improved.
Please refer to fig. 4, which is a flowchart illustrating a data processing method according to an embodiment of the present application. As shown in fig. 4, the data processing method may include the steps of:
step S201, sending a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
step S202, receiving request data associated with the target user information returned by the server; the request data comprises a target resource positioning identifier and first resource data;
the specific implementation process of steps S201 to S202 may refer to steps S102 to S104 in the embodiment corresponding to fig. 3, which is not described herein again.
Step S203, when the first resource data comprises user attribute data and the second resource data comprises page template data, responding to page jump operation aiming at an application main page, and acquiring page template data matched with the target resource positioning identification from content distribution equipment;
specifically, in a scenario of a main page of the reading application, the first resource data may be user attribute data, and the second resource data may be page template data. In reading application, a user can realize jump between display pages by selecting different function buttons, and when the terminal device detects that the user selects a function button (such as a 'discovery' button) corresponding to an application main page, the terminal device can respond to page jump operation aiming at the application main page and acquire page template data matched with a target resource positioning identifier from content distribution equipment. In other words, the terminal device can locate the position of the page template data from the content distribution device based on the target resource location identification, and download the page template data. The content distribution device can cache a plurality of page template data, and each page template data has a unique corresponding resource positioning identifier.
Step S204, the page template data is loaded and analyzed to obtain page typesetting information;
specifically, the terminal device may perform loading operation on the acquired page template data, and may obtain page layout information after the page template data is loaded and operated. The page template data may be an HTML (hypertext Markup Language) template, which may be used to mark various parts in the page, i.e., may be understood as telling the terminal how to display the content in the page (including how the words are processed, how the pictures are arranged, how the pictures are displayed, etc.).
Step S205, based on the programming interface and the logic rule of the page layout information, synthesizing the user attribute data and the page layout information to obtain page display data, and displaying the page display data in a display page.
Specifically, after the terminal device loads and runs the page template data, the user attribute data is merged with the page layout information according to the logic rule by executing a program programming interface (such as jsapi, a functional interface encapsulated in a client corresponding to the reading application) in the reading application, so as to obtain page display data, and the page display data is displayed in the application main page.
Referring to fig. 5, which is a schematic diagram of a data processing flow provided in an embodiment of the present application, as shown in fig. 5, taking a terminal side as an example, in a main page scene of a reading application, the data processing flow may specifically include:
s301, sending a data access request;
specifically, after the user opens the reading application, the terminal device may enter the main page corresponding to the reading application, may generate a data access request for the main page, and sends the generated data access request to the background server corresponding to the reading application. The data access request is used to request page display data, which may also be referred to as HTML data, of the main page from the backend server.
S302, receiving user attribute data and a Uniform Resource Locator (URL);
specifically, after receiving a data access request sent by a terminal device, the background server may return, to the client, user attribute data requested by the data access request and a URL corresponding to an HTML template stored in a content distribution network (i.e., the content distribution device).
Among them, the HTML template stored in the content distribution network may be preset. By splitting the main page display information in the reading-class application into an HTML template part and a user attribute data part, and storing the HTML template part in the content distribution network, each HTML template can match a URL, which can be used to identify the storage location and access mode of the HTML. An HTML template is descriptive information consisting of HTML commands that can specify text, graphics, animation, sound, tables, links, etc. The HTML template may include some conventional information in the display information of the main page, and may also be used to specify the display position of the user attribute data in the main page, such as an area 1 for displaying the user name, an area 2 for displaying the user account, an area 3 for displaying the recommended book data corresponding to the user, and so on.
S303, acquiring page template data from the content distribution network based on the URL;
specifically, the terminal device may find an HTML template (i.e., page template data) matching the URL from the content distribution network based on the URL returned by the background server, and download the HTML template.
S304, loading and operating the page template data, and adding the user attribute data to the page through the programming interface according to the logic rule.
Specifically, after downloading an HTML template from a content distribution network, the terminal device may load and run the HTML template, and after the HTML template is loaded and run, add user data to a page according to js (scripting language) logic by executing jsapi in a client corresponding to the reading-type application, and display the user data in a display page.
Please refer to fig. 6, which is an interface diagram of a data processing method according to an embodiment of the present application. Taking the main page scene of the reading application as an example, after the terminal device 100a opens the reading application, a data access request may be generated, and after the data access request is sent to the server, the user attribute data and the target resource positioning identifier returned by the server may be received. As shown in fig. 6, the display page 30a of the terminal device 100a is a display page corresponding to a "bookshelf" button, and a book that is being read by the user corresponding to the terminal device 100a may be displayed in the area 30b of the display page 30 a. When the terminal device 100a detects the selection operation of the user on the "find" button, the terminal device 100a may respond to the selection trigger operation of the user, jump from the display page 30a corresponding to the "bookshelf" button to the display page 30c corresponding to the "find" button, and obtain page template data from the content distribution network based on the target resource positioning identifier.
The terminal device 100a may perform operation loading on the acquired page template data, and analyze the page template data into page layout information 30m, where the page layout information 30m may be used to specify display forms and display positions of all information in the display page 30c, for example, the region 30e and the region 30i may be used to display image data, the region 30f, the region 30g, the region 30h, and the region 30j may be used to display text data, and of course, the page layout information 30m may also display conventional data in the display page 30c, for example, a "next page" icon in the region 30 k. After obtaining the page layout information 30m, the terminal device 100a may add the user attribute data to the page template data 30m based on jsapi in the reading application to obtain page display data in the area 30d, where the page display data may be book information recommended by the user, for example, the area 30e may display a cover image of a book, the area 30f may display a name of the book, the area 30g may display an author of the book, the area 30h may display all friend users of the user, how many friend users are reading the book, the area 30i may display information such as user names corresponding to the head images among the friend users of the user, who are reading the head images of the book, and the area 30j may display information such as user names corresponding to the head images in the friend area 30 i. In the presentation page 30c, the user may trigger the terminal device 100a to switch display data for displaying the next page by clicking on the "next page" icon in the area 30 k.
The above-mentioned steps S203 to S205 are specific processes for obtaining page display data in the context of the main page of the reading-type application. When the information flow page scene of the reading application is in progress, the first resource data may be text data, and the second resource data may be image data. The terminal device can respond to triggering operation aiming at a recommended book in the information flow, acquire image data matched with the target resource positioning identification from the content distribution device, acquire a book display template corresponding to the recommended data, typeset the received text data based on the book display template, obtain initial page display data corresponding to the recommended book, add the image data to the initial page display data, and obtain page display data related to the recommended book. The recommended book is associated with the target resource positioning identifier, and the book display template can be used for standardizing the display form of the text data. The terminal device can locate the position of the image data associated with the text data from the content distribution device based on the target resource locating identification, and download the image data from the content distribution device, wherein the text data can be chapter data of a recommended book in the information flow, and the image data can be illustrations matched with the chapter data. The content distribution device may cache image data associated with all books, and each image data may uniquely correspond to one resource location identifier, or all image data in each book correspond to the same resource location identifier, or image data in each chapter corresponds to the same resource location identifier.
The terminal equipment can obtain a book display template corresponding to a recommended book in the information flow, initial page display data is obtained by rendering the obtained text data, the obtained image data is added to an image display area of the initial page data, page display data is obtained, and the page display data is displayed in a display page.
Please refer to fig. 7 a-7 b together, which are schematic interface diagrams of another data processing method according to an embodiment of the present application. Taking the information flow page scene of the reading application as an example, after the terminal device 100a opens the reading application and enters the information flow page, a data access request may be generated, and after the data access request is sent to the server, text data and a target resource location identifier returned by the server may be received. As shown in fig. 7a, when a user selects a "story" button by clicking, long-pressing, or the like, the terminal device 100a may respond to the selection operation of the user, display an information flow page 60a corresponding to the "story" button, render the acquired text data by acquiring a book display template of an information flow in the reading application and based on the book display template, obtain initial page display data 60b, where an area 60c in the initial page display data 60b may be used to display image data, and add the image data to the initial page display data 60b, so as to obtain final page display data and display the page display data in the information flow page 60a of the terminal device 100 a. Of course, if the text data returned by the server is chapter data corresponding to a plurality of recommended books, the terminal device 100a may render the text data corresponding to each recommended book, acquire image data corresponding to each recommended book based on the target resource location identifier, generate page display data corresponding to each recommended book, and display a plurality of page display data in the information flow page 60 a.
Optionally, in an information flow page scenario of the reading application, as shown in fig. 7b, after the terminal device 100a opens the reading application and enters the information flow page, a data access request may be generated, and when the user selects any one of a plurality of recommended books in the information flow, the terminal device 100a may respond to a selection trigger operation for the recommended book, and acquire image data based on the target resource location identifier. When the display information of the plurality of recommended books is displayed in the information flow page of the reading application, the user may select the recommended book 60d from the plurality of recommended books, after the terminal device 100a detects the selection operation of the user, the terminal device 100a may render text data corresponding to the recommended book 60d based on the obtained book page template to obtain initial data 60c, may display the text data corresponding to the recommended book 60d in the initial data 60c, and mark the display position of the image data (e.g., the area 60f, the area 60g, and the like). After the terminal device 100a acquires the image data from the content distribution network based on the target resource location identifier, the image data may be added to the initial data 60c, that is, the image data 60h may be displayed in the area 60f, and the image data 60i may be displayed in the area 60 g. It is assumed that the image data included in the recommended book 60d includes two image data, which are the image data 60h and the image data 60i, respectively, and the image data 60h and the image data 60i may correspond to the same target resource location identifier in the content distribution network, or the image data 60h and the image data 60i may correspond to one target resource location identifier, respectively, and this is not particularly limited herein.
Please refer to fig. 8, which is a block diagram of a data processing method according to an embodiment of the present application. As shown in fig. 8, the framework may include a reading-class client 70a, a client backend server 70b, and a content distribution network 70 c. The client 70a may be installed on any terminal device in the embodiment corresponding to fig. 1, and may be configured to generate a data access request 70d, a data merge 70h, and a data display 70 i; the client background server corresponds to the server 200 in the embodiment corresponding to fig. 1, and may be configured to store the resource location identifier 70e and the first resource data 70 f; the content distribution network 70c may be used to store the second resource data.
Further, the data access request 70d refers to a data access request generated by the client 70a corresponding to the reading application based on the user operation, and the data access request may be sent to the background server 70b corresponding to the reading application. The user operation may refer to clicking to open a reading application to trigger the terminal device to enter an application home page and generate a data access request 70 d; or clicking a function button in the reading application to trigger the terminal device to jump to a display page corresponding to the function button, and generating a data access request 70d, for example, clicking a 'discovery' button to trigger the terminal device to enter a main page of the reading application, and generating the data access request 70d for the main page; click on the "story" button to trigger the terminal device to enter the information flow page of the reading-like application and generate a data access request 70d for information flow, etc.
The resource location identifier 70e refers to a URL stored by the client backend server 70b, and the backend server 70b may store a URL corresponding to second resource data stored in the content delivery network 70c (cdn), and based on the URL, may access the content delivery network 70c and obtain the required second resource data from the content delivery network 70 c.
The first resource data 70f is used to represent a first portion of data requested by the client 70a (the data requested by the client may be split into two portions of data). In the main page scenario of the reading application, the first resource data 70f may refer to user attribute data corresponding to each user in the client 70a (the user attribute data corresponding to each user is different and may also be referred to as personalized data), where the user attribute data may include basic information of the user, a reading history of the user, friend reading record information associated with the user, recommendation information pushed to the user, and the like; in the context of an information flow page of a reading-class application, the first resource data may refer to text data (i.e., chapter text content) in a recommended book. The first resource data may be stored in the background server 70 b.
The second resource data 70g is used to represent another portion of data requested by the client 70 a. In the main page scene of the reading application, the second resource data 70g may refer to an HTML template corresponding to regular display data in the main page, where the regular display data may be understood as data that needs to be displayed by a client corresponding to each user in the reading application, such as new hand activity information set for a new registered user, lottery activity information set for all users, and the like. The HTML template also comprises a typesetting style corresponding to the main page. All the regular display data in the main page may be set as one HTML template, or the main page may be divided into a plurality of sub-pages, and the regular display data in each sub-page is set as one HTML template, and the HTML template may be stored in the content distribution network 70c, and one URL may be assigned to each HTNL template.
In the context of the information flow page of the reading-class application, the second resource data 70g may refer to chapter image data in a recommended book, the chapter image data is stored in the content distribution network 70c, and a URL may be assigned to each image data in the chapter. Of course, in order to reduce the number of accesses to the content distribution network 70c, one URL may be assigned to all image data in each chapter. For example, when chapter 1 of a recommended book includes 20 pictures, the 20 pictures may be set to the same URL, or one URL may be provided for each of the 20 pictures.
The data merge 70h may be configured to merge the first resource data 70h and the second resource data 70g to obtain the page display data requested by the client 70a, where the second resource data 70g is data downloaded from the content distribution network 70c based on the URL returned by the server by the client.
The data display 70i may be used to display the synthesized page display data in the presentation page of the client 70 a.
According to the data access request sent by the terminal equipment, the first resource data and the target resource positioning identification which are associated with the target user information in the data access request are obtained according to the data access request, and the first resource data and the target resource positioning identification are returned to the terminal equipment, so that the terminal equipment obtains the second resource data based on the target resource positioning identification, and the first resource data and the second resource data are combined into the page display data. Therefore, the data requested by the terminal equipment is split into the first resource data and the second resource data, when the server receives the data access request sent by the terminal equipment, the server returns the target resource positioning identification corresponding to the first resource data and the second resource data to the terminal equipment, the data transmission quantity of the server can be reduced, the data transmission pressure of the server is further reduced, and the data processing efficiency is improved.
Fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 9, the data processing apparatus 1 may be applied to the server 200 in the embodiment corresponding to fig. 2, and the data processing apparatus 1 may include: the system comprises a data splitting module 11, a request receiving module 12, a data acquiring module 13 and a data sending module 14;
the data splitting module 11 is configured to split multimedia data to obtain first resource data and second resource data, allocate a target resource positioning identifier associated with a content distribution device to the second resource data, and send the second resource data to the content distribution device;
a request receiving module 12, configured to receive a data access request sent by a terminal device; the data access request carries target user information corresponding to the terminal equipment;
a data obtaining module 13, configured to obtain, according to the data access request, request data associated with the target user information; the request data comprises a target resource positioning identifier and first resource data;
a data sending module 14, configured to send the request data to the terminal device, so that the terminal device obtains second resource data from the content distribution device based on the target resource location identifier, and synthesizes the first resource data and the second resource data to obtain page display data.
For specific functional implementation manners of the data splitting module 11, the request receiving module 12, the data obtaining module 13, and the data sending module 14, reference may be made to steps S101 to S104 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 9, the data obtaining module 13 may include: a first determining unit 131, a first acquiring unit 132, a second determining unit 133;
a first determining unit 131, configured to determine, according to the data access request, a data type requested by the terminal device;
a first obtaining unit 132, configured to obtain, according to the data type, first resource data associated with the target user information from a data list, and obtain a target resource location identifier associated with the data type; the data list is used for storing first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
a second determining unit 133, configured to determine the target resource location identifier and the first resource data as request data.
For specific functional implementation manners of the first determining unit 131, the first obtaining unit 132, and the second determining unit 133, reference may be made to step S103 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 9, the first obtaining unit 132 may include: an attribute data acquisition subunit 1321, a first identifier acquisition subunit 1322, a text data acquisition subunit 1323, and a second identifier acquisition subunit 1324;
an attribute data obtaining subunit 1321, configured to, if the data type is a page template type, obtain user attribute data associated with the target user information from a data list, and determine the user attribute data as first resource data;
a first identifier obtaining subunit 1322, configured to obtain a target resource location identifier associated with the user attribute data; the target resource location identification is associated with page template data for presenting the user attribute data;
a text data obtaining subunit 1323, configured to, if the data type is a book type, obtain text data associated with the target user information from a data list, and determine the text data as first resource data;
a second identifier obtaining subunit 1324, configured to obtain a target resource location identifier associated with the text data; the target resource positioning identification is associated with the image data matched with the text data;
the second identifier obtaining subunit 1324 is specifically configured to:
and determining a plurality of image data matched with the text data, and determining the resource positioning identifier corresponding to each image data as a target resource positioning identifier.
Wherein, the first obtaining unit 132 may include: the specific functional implementation manners of the attribute data obtaining subunit 1321, the first identifier obtaining subunit 1322, the text data obtaining subunit 1323, and the second identifier obtaining subunit 1324 may refer to step S103 in the embodiment corresponding to fig. 3, which is not described herein again. When the attribute data acquiring subunit 1321 and the first identifier acquiring subunit 1322 perform corresponding operations, the text data acquiring subunit 1323 and the second identifier acquiring subunit 1324 both suspend performing operations; when the text data obtaining sub-unit 1323 and the second identifier obtaining sub-unit 1324 perform the corresponding operations, the attribute data obtaining sub-unit 1321 and the first identifier obtaining sub-unit 1322 each suspend the performance of the operations.
According to the data access request sent by the terminal equipment, the first resource data and the target resource positioning identification which are associated with the target user information in the data access request are obtained according to the data access request, and the first resource data and the target resource positioning identification are returned to the terminal equipment, so that the terminal equipment obtains the second resource data based on the target resource positioning identification, and the first resource data and the second resource data are combined into the page display data. Therefore, the data requested by the terminal equipment is split into the first resource data and the second resource data, when the server receives the data access request sent by the terminal equipment, the server returns the target resource positioning identification corresponding to the first resource data and the second resource data to the terminal equipment, the data transmission quantity of the server can be reduced, the data transmission pressure of the server is further reduced, and the data processing efficiency is improved.
Fig. 10 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application. As shown in fig. 10, the data processing apparatus 2 may be applied to the terminal device 100a in the embodiment corresponding to fig. 2, and the data processing apparatus 2 may include: a request sending module 21, a data receiving module 22 and a data synthesizing module 23;
a request sending module 21, configured to send a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
a data receiving module 22, configured to receive request data associated with the target user information returned by the server; the request data comprises a target resource positioning identifier and first resource data;
and the data synthesis module 23 is configured to obtain second resource data from the content distribution device based on the target resource location identifier, and synthesize the first resource data and the second resource data to obtain page display data.
For specific functional implementation manners of the request sending module 21, the data receiving module 22, and the data synthesizing module 23, reference may be made to step S102, step S104 to step S105 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 10, the data synthesis module 23 may include: a second acquisition unit 231, a display unit 232;
a second obtaining unit 231, configured to obtain, from the content distribution apparatus, second resource data that matches the target resource location identifier; the content distribution equipment is used for storing second resource data corresponding to a plurality of resource positioning identifications; the plurality of resource location identifiers comprises the target resource location identifier;
the display unit 232 is configured to combine the first resource data and the second resource data into page display data, and display the page display data in a display page.
The specific functional implementation manners of the second obtaining unit 231 and the display unit 232 may refer to step S203 to step S205 in the embodiment corresponding to fig. 4, which is not described herein again.
Referring to fig. 10, the first resource data includes user attribute data, and the second resource data includes page template data;
the second obtaining unit 231 is specifically configured to:
responding to page jump operation aiming at an application main page, and acquiring page template data matched with the target resource positioning identification from the content distribution equipment;
the display unit 232 may include: loading sub-unit 2321, synthesizing sub-unit 2322;
a loading subunit 2321, configured to perform loading analysis on the page template data to obtain page layout information;
a synthesizing subunit 2322, configured to synthesize the user attribute data and the page layout information based on a programming interface and a logic rule of the page layout information, so as to obtain page display data.
The specific functional implementation manners of the loading subunit 2321 and the synthesizing subunit 2322 may refer to step S203 to step S205 in the embodiment corresponding to fig. 4, which is not described herein again.
Referring to fig. 10 together, the first resource data includes text data, and the second resource data includes image data;
the second obtaining unit 231 is specifically configured to:
responding to a trigger operation aiming at a recommended book in an information stream, and acquiring image data matched with the target resource positioning identification from the content distribution equipment; the recommended book is associated with the target resource positioning identification;
the display unit 232 includes: typesetting the sub-unit 2323, and adding the sub-unit 2324;
a layout subunit 2323, configured to obtain a book display template corresponding to the recommended book, and perform layout on the text data based on the book display template to obtain initial page display data; the book display template is used for standardizing the display form of the text data;
an adding subunit 2324, configured to add the image data to the initial page display data, so as to obtain page display data.
The specific implementation manner of the typesetting sub-unit 2323 and the adding sub-unit 2324 may refer to steps S203 to S205 in the embodiment corresponding to fig. 4, which is not described herein again.
According to the data access request sent by the terminal equipment, the first resource data and the target resource positioning identification which are associated with the target user information in the data access request are obtained according to the data access request, and the first resource data and the target resource positioning identification are returned to the terminal equipment, so that the terminal equipment obtains the second resource data based on the target resource positioning identification, and the first resource data and the second resource data are combined into the page display data. Therefore, the data requested by the terminal equipment is split into the first resource data and the second resource data, when the server receives the data access request sent by the terminal equipment, the server returns the target resource positioning identification corresponding to the first resource data and the second resource data to the terminal equipment, the data transmission quantity of the server can be reduced, the data transmission pressure of the server is further reduced, and the data processing efficiency is improved.
Please refer to fig. 11, which is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application. As shown in fig. 11, the data processing apparatus 1000 may correspond to the server 200 in the embodiment corresponding to fig. 2, and the data processing apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the data processing apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the data processing apparatus 1000 shown in fig. 11, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
receiving a data access request sent by terminal equipment; the data access request carries target user information corresponding to the terminal equipment;
acquiring request data associated with the target user information according to the data access request; the request data comprises a target resource positioning identifier and first resource data;
and sending the request data to the terminal equipment so that the terminal equipment acquires second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
It should be understood that the data processing apparatus 1000 described in this embodiment may perform the description of the data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the data processing apparatus 1 in the embodiment corresponding to fig. 9, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where the computer program executed by the aforementioned data processing apparatus 1 is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in the embodiment corresponding to fig. 3 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
Please refer to fig. 12, which is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application. As shown in fig. 12, the data processing apparatus 2000 may correspond to the terminal device 100a in the embodiment corresponding to fig. 2, and the data processing apparatus 2000 may include: the processor 2001, the network interface 2004 and the memory 2005, the data processing apparatus 2000 may further include: a user interface 2003, and at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Memory 2005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 12, the memory 2005, which is a type of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the data processing apparatus 2000 shown in fig. 12, the network interface 2004 may provide a network communication function; and the user interface 2003 is primarily used to provide an interface for user input; and the processor 2001 may be used to invoke the device control application stored in the memory 1005 to implement:
sending a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
receiving request data associated with the target user information returned by the server; the request data comprises a target resource positioning identifier and first resource data;
and acquiring second resource data from content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
It should be understood that the data processing apparatus 2000 described in this embodiment may perform the description of the data processing method in the embodiment corresponding to any one of fig. 3 and fig. 4, and may also perform the description of the data processing apparatus 2 in the embodiment corresponding to fig. 10, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where the computer program executed by the data processing apparatus 2 mentioned above is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in any one of the embodiments corresponding to fig. 3 and fig. 4 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (13)

1. A data processing method is applied to a server and is characterized by comprising the following steps:
splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
receiving a data access request sent by terminal equipment; the data access request carries target user information corresponding to the terminal equipment;
determining a data type requested by the terminal equipment according to the data access request, acquiring first resource data associated with the target user information from a data list according to the data type, acquiring a target resource positioning identifier associated with the data type, and determining the target resource positioning identifier and the first resource data as request data; the data list is used for storing first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
and sending the request data to the terminal equipment so that the terminal equipment acquires second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
2. The method according to claim 1, wherein the obtaining first resource data associated with the target user information from a data list according to the data type, and obtaining a target resource location identifier associated with the data type, comprises:
if the data type is a page template type, acquiring user attribute data associated with the target user information from a data list, and determining the user attribute data as first resource data;
acquiring a target resource positioning identifier associated with the user attribute data; the target resource location identification is associated with page template data for presenting the user attribute data.
3. The method according to claim 1, wherein the obtaining first resource data associated with the target user information from a data list according to the data type, and obtaining a target resource location identifier associated with the data type, comprises:
if the data type is a book type, acquiring text data associated with the target user information from a data list, and determining the text data as first resource data;
acquiring a target resource positioning identifier associated with the text data; the target resource location identification is associated with image data that matches the text data.
4. The method of claim 3, wherein obtaining the target resource location identifier associated with the text data comprises:
and determining a plurality of image data matched with the text data, and determining the resource positioning identifier corresponding to each image data as a target resource positioning identifier.
5. A data processing method is applied to terminal equipment and is characterized by comprising the following steps:
sending a data access request to a server; the data access request carries target user information corresponding to the terminal equipment;
receiving request data associated with the target user information returned by the server; the request data comprises a target resource positioning identifier and first resource data, the first resource data refers to resource data which is acquired from a data list and is associated with the target user information based on the type of data requested by the terminal equipment, the target resource positioning identifier is associated with the type of data, the data list is used for storing the first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
and acquiring second resource data from content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
6. The method of claim 5, wherein the obtaining second resource data from a content distribution device based on the target resource location identifier, and combining the first resource data and the second resource data to obtain page display data comprises:
acquiring second resource data matched with the target resource positioning identification from the content distribution equipment; the content distribution equipment is used for storing second resource data corresponding to a plurality of resource positioning identifications; the plurality of resource location identifiers comprises the target resource location identifier;
and synthesizing the first resource data and the second resource data into page display data, and displaying the page display data in a display page.
7. The method of claim 6, wherein the first resource data comprises user attribute data and the second resource data comprises page template data;
the obtaining, from the content distribution device, second resource data that matches the target resource location identity includes:
responding to page jump operation aiming at an application main page, and acquiring page template data matched with the target resource positioning identification from the content distribution equipment;
the synthesizing the first resource data and the second resource data into page display data includes:
loading and analyzing the page template data to obtain page typesetting information;
and synthesizing the user attribute data and the page layout information based on a programming interface and the logic rule of the page layout information to obtain page display data.
8. The method of claim 6, wherein the first resource data comprises text data and the second resource data comprises image data;
the obtaining, from the content distribution device, second resource data that matches the target resource location identity includes:
responding to a trigger operation aiming at a recommended book in an information stream, and acquiring image data matched with the target resource positioning identification from the content distribution equipment; the recommended book is associated with the target resource positioning identification;
the synthesizing the first resource data and the second resource data into page display data includes:
acquiring a book display template corresponding to the recommended book, and typesetting the text data based on the book display template to obtain initial page display data; the book display template is used for standardizing the display form of the text data;
and adding the image data to the initial page display data to obtain page display data.
9. A data processing device applied to a server is characterized by comprising:
the data splitting module is used for splitting multimedia data to obtain first resource data and second resource data, distributing a target resource positioning identifier associated with content distribution equipment to the second resource data, and sending the second resource data to the content distribution equipment;
the request receiving module is used for receiving a data access request sent by the terminal equipment; the data access request carries target user information corresponding to the terminal equipment;
a data obtaining module, configured to determine a data type requested by the terminal device according to the data access request, obtain, from a data list, first resource data associated with the target user information according to the data type, obtain a target resource location identifier associated with the data type, and determine the target resource location identifier and the first resource data as request data; the data list is used for storing first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
and the data sending module is used for sending the request data to the terminal equipment so as to enable the terminal equipment to acquire second resource data from the content distribution equipment based on the target resource positioning identifier, and synthesize the first resource data and the second resource data to obtain page display data.
10. A data processing device applied to a terminal device is characterized by comprising:
the request sending module is used for sending a data access request to the server; the data access request carries target user information corresponding to the terminal equipment;
the data receiving module is used for receiving request data which is returned by the server and is associated with the target user information; the request data comprises a target resource positioning identifier and first resource data, the first resource data refers to resource data which is acquired from a data list and is associated with the target user information based on the type of data requested by the terminal equipment, the target resource positioning identifier is associated with the type of data, the data list is used for storing the first resource data corresponding to a plurality of user information, and the plurality of user information comprises the target user information;
and the data synthesis module is used for acquiring second resource data from content distribution equipment based on the target resource positioning identifier, and synthesizing the first resource data and the second resource data to obtain page display data.
11. The apparatus of claim 10, wherein the data synthesis module comprises:
a second obtaining unit, configured to obtain, from the content distribution apparatus, second resource data that matches the target resource location identifier; the content distribution equipment is used for storing second resource data corresponding to a plurality of resource positioning identifications; the plurality of resource location identifiers comprises the target resource location identifier;
and the display unit is used for synthesizing the first resource data and the second resource data into page display data and displaying the page display data in a display page.
12. A data processing apparatus, comprising: a processor and a memory;
the processor is connected to a memory, wherein the memory is used for storing a computer program, and the processor is used for calling the computer program to execute the method according to any one of claims 1-8.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-8.
CN201910774665.0A 2019-08-21 2019-08-21 Data processing method and device and readable storage medium Active CN110798501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910774665.0A CN110798501B (en) 2019-08-21 2019-08-21 Data processing method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910774665.0A CN110798501B (en) 2019-08-21 2019-08-21 Data processing method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110798501A CN110798501A (en) 2020-02-14
CN110798501B true CN110798501B (en) 2021-11-26

Family

ID=69427504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910774665.0A Active CN110798501B (en) 2019-08-21 2019-08-21 Data processing method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110798501B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691438B (en) * 2020-05-19 2023-05-19 腾讯科技(深圳)有限公司 Instant message processing method, device, equipment and storage medium
CN113760557A (en) * 2020-05-29 2021-12-07 北京沃东天骏信息技术有限公司 Page data sending method and device, electronic equipment and storage medium
CN114070576B (en) * 2020-08-07 2024-03-08 腾讯科技(深圳)有限公司 A content display method a content generation method a device(s) apparatus and storage medium
CN113569110B (en) * 2021-07-23 2022-09-27 用友汽车信息科技(上海)股份有限公司 Data processing method, data processing system, computer device, and storage medium
CN114139072B (en) * 2021-10-29 2024-06-21 北京达佳互联信息技术有限公司 Page data processing method and device, electronic equipment and storage medium
CN114443290A (en) * 2022-01-12 2022-05-06 北京达佳互联信息技术有限公司 Resource data processing method and device, storage medium and electronic equipment
CN114595023B (en) * 2022-04-28 2022-08-05 北京天维信通科技有限公司 Method and system for running personalized interface based on third-party service and intelligent terminal
CN115190174A (en) * 2022-07-07 2022-10-14 深圳证券通信有限公司 Data processing method and device, computer equipment and storage medium
CN115314271B (en) * 2022-07-29 2023-11-24 云盾智慧安全科技有限公司 Access request detection method, system and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591954A (en) * 2011-12-29 2012-07-18 深圳Tcl新技术有限公司 Method, device and terminal for loading data for browser
CN104426863A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 Page request method, page request device, transit server and terminal
CN108062336A (en) * 2016-11-09 2018-05-22 腾讯科技(北京)有限公司 Media information processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653909B (en) * 2016-01-26 2018-09-25 腾讯科技(深圳)有限公司 Information processing method, first terminal, second terminal, server and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591954A (en) * 2011-12-29 2012-07-18 深圳Tcl新技术有限公司 Method, device and terminal for loading data for browser
CN104426863A (en) * 2013-08-27 2015-03-18 腾讯科技(深圳)有限公司 Page request method, page request device, transit server and terminal
CN108062336A (en) * 2016-11-09 2018-05-22 腾讯科技(北京)有限公司 Media information processing method and device

Also Published As

Publication number Publication date
CN110798501A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN110798501B (en) Data processing method and device and readable storage medium
US10271104B2 (en) Video play-based information processing method and system, client terminal and server
CN107294838B (en) Animation generation method, device and system for social application and terminal
CN113225572B (en) Page element display method, device and system of live broadcasting room
US10121263B2 (en) Methods and devices for image loading and methods and devices for video playback
KR102199735B1 (en) Method and system for sharing effects for video
CN112016023B (en) Service processing method, device, terminal and storage medium
CN106469183A (en) Page rendering method and device, page data processing method and client
WO2007132677A1 (en) Service providing device
CN109067816B (en) Game resource pushing method, server and client
CN108319474B (en) Page information generation method, device and equipment
CN106055671B (en) Multimedia data processing method and equipment thereof
CN111371605A (en) Network service scoring method and device
CN114691926A (en) Information display method and electronic equipment
EP3627313B1 (en) Method and system for operating a software application on a processor of a mobile device
JP7075513B2 (en) Computer programs, information processing equipment and information processing methods
CN115269090A (en) Marketing page generation method and device, terminal and storage medium
CN115061785A (en) Information issuing method and device, storage medium and server
JP2000040115A (en) Firm banking service method
CN115687816A (en) Resource processing method and device
CN111045674A (en) Interactive method and device of player
CN112199090A (en) Information flow processing method, device and computer readable storage medium
CN111885139A (en) Content sharing method, device and system, mobile terminal and server
CN105468611A (en) Webpage toolbar insertion method and apparatus
JP6900436B2 (en) program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40020201

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220214

Address after: 510310 No. 1, brand area, No. 397, Xingang Middle Road, Haizhu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU TENCENT TECHNOLOGY Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right