Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
FIG. 1 is a flow chart illustrating a method of resource handling, as shown in FIG. 1, including the steps of:
s11, responding to the starting of the application program and/or the change of the display scene in the application program, acquiring a changed target scene identifier and sending the changed target scene identifier to a server.
The application program can be an application program with resource loading requirements, such as a game program, a scene display program, a model display program and the like, and can enter a new scene when the application program is started or the scenes in the application program are switched, resources which are not loaded possibly exist in the new scene, and the problem of poor use experience can be caused by resource loading when the scene is used.
Considering that the application version update may cause the content, the identifier, the calling mode, and the like of the resource to change, the version number and the target scene identifier may be sent to the server together, so that the server provides the resource content corresponding to the version number based on the target scene identifier.
S12, receiving target resource content sent by the server, wherein the target resource content is determined based on the target scene identification and historical resource information, and the historical resource information comprises a scene identification and a resource identification corresponding to the scene identification.
The historical resource information may be information recorded when the user loads the application resource, or information recorded when other users load the application resource.
In a possible implementation manner, historical resource information uploaded by other users or the user may be integrated by the server, and the resource content with the calling frequency greater than the preset frequency is determined as the target resource content.
In one possible embodiment, the target resource content is determined by: inputting the target scene identification into a resource list generation model to generate a resource list, wherein the resource list comprises a plurality of target resource identifications, and the resource content corresponding to each target resource identification is used as the target resource content, and the resource list generation model is obtained based on the scene identification in the historical resource information and the resource identification corresponding to each scene identification.
It should be noted that the target resource content may include any resource content in the target scene, and in consideration that there may be an uncommon area in the target scene, and the resource content in the uncommon area may not be used, resource information of other users may be collected as a sample to train a resource list generation model, so that the uncommon resource is screened out by the resource list generation model, and the load of the resource content is reduced.
In a possible implementation manner, the target resource content further includes resource content corresponding to a related scene identifier of the target scene identifier, where the related scene identifier is determined based on a scene determination model; the resource content corresponding to the association name is determined by the following method: inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
That is, when the application program enters a scenario, the scenario that the application program may jump may be determined based on the jump result of other users in the scenario, and the resource content that may be loaded in the scenario that may jump may also be loaded as the target resource content.
In a possible implementation manner, user behavior records, user characteristics and other contents of other users can be obtained to train the resource list generation model, and target resource contents are determined based on the resource list generation model, so that a resource list more conforming to user behavior habits can be generated, and space waste and time waste caused by loading redundant resources not conforming to the user habits are reduced.
For example, the age of the user corresponding to the user terminal is in the range from 15 to 25 years, and the behavior record of the user in the game is biased to walk from a far route, the resource list generation model may be trained based on the resource information of other users whose ages are in the range from 15 to 25 years and whose behavior record is biased to walk from a far route, so as to generate the resource list more suitable for the user corresponding to the user terminal.
In a possible implementation manner, the resource information further includes resource enabling time, the resource list further includes target resource content and target enabling time of each target resource content, the resource list generation model is obtained based on scene identifiers in the historical resource information, resource identifiers corresponding to each scene identifier, and resource enabling time training corresponding to each resource identifier, and the user side can obtain the target resource list arranged according to the target enabling time and sent by the server, and sequentially download the target resource content based on the resource list when the network is idle.
That is to say, when uploading resource information, other users can upload resource identifiers and the time that resources corresponding to the resource identifiers are used in an application program (the resource enabling time can be a difference value between the resource using time and the scene switching time), and when generating a resource list, the time that the resources are expected to be used can be used as a target enabling time, and the resources in the resource list are arranged according to the target enabling time, and when a user-side network is idle, the resources in the resource list can be sequentially downloaded according to the target enabling time, so that an effect of preferentially downloading the content of the resources to be used can be achieved, and the problem of long waiting time of the application program caused by downloading the resources again when in use is avoided.
And S13, when the resource content to be displayed by the application program is the target resource content, calling the acquired target resource content for displaying.
In a possible implementation manner, when resource content to be displayed by an application program is target resource content, whether an error value between display time and the target enabling time exceeds a preset threshold value or not may be determined, and error information is sent to the server under the condition that the error value exceeds the preset threshold value, so that the server updates the resource list generation model based on the error information.
That is, when the time when the user actually uses the resource does not coincide with the time predicted in the resource list, error information may be transmitted to the server, and the error information may include the time when the user actually enables the resource, so that the server may update the resource list generation model based on the error information.
In a possible implementation manner, when the resource content to be displayed by the application program is not the target resource content, the resource content to be displayed is downloaded from the server, and error information is sent to the server, so that the server updates the resource list generation model based on the error information.
That is to say, when the target resource list misses the resource content actually loaded by the user side, the error information may be reported, where the error information may include a resource identifier of the resource content actually loaded by the user, or the resource identifier and the actual loading time of the resource, so that the server updates the resource list generation model based on the error information.
In order to improve the accuracy of the resource list generation model, the user side can report the resource information of the user side at regular time, so that the server can update the resource list generation model in an iterative manner based on the resource information reported by the user side. For example, it may be configured to report the resource information every preset time, or configured to report the resource information every time the application is ended.
Based on the technical scheme, the following technical effects can be at least achieved:
the resource content downloaded from the server when the user side enters a new scene can be determined based on the resource content loaded in each scene in the historical resource calling information, so that the resource loading is carried out in advance, the problem that the waiting time of the application program is long due to the fact that the resource loading is not timely is solved, in addition, the resource content can be timely loaded when the scenes are switched, the volume of the resource content required by the application program downloading can be reduced, and the downloading speed of the application program is improved.
Fig. 2 is a flow chart illustrating a resource handling method applied to a server according to an exemplary disclosed embodiment, the method including the steps of, as shown in fig. 2:
and S21, acquiring a target scene identifier sent by the user side.
The application program can be an application program with resource loading requirements such as a game program, a scene display program, a model display program and the like, when the application program is started or the scenes in the application program are switched, the application program can enter a new scene, resources which are not loaded possibly exist in the new scene, and the problem of poor use experience can be caused by resource loading when the scene is used.
Considering that the application version update may cause the content, the identifier, the calling mode, and the like of the resource to change, the user side may send the version number and the target scene identifier to the server together, and the server provides the resource content corresponding to the version number based on the target scene identifier.
S22, determining target resource content based on the target scene identification and historical resource information, wherein the resource information comprises scene identifications and resource identifications corresponding to the scene identifications.
In a possible implementation manner, the historical resource information may be integrated, and the resource content with the calling frequency greater than the preset frequency may be determined as the target resource content.
In a possible implementation, the target scene identifier may be input into a resource list generation model to generate a resource list, where the resource list includes a plurality of target resource identifiers, and a resource content corresponding to each target resource identifier is used as the target resource content, where the resource list generation model is obtained based on the scene identifier in the historical resource information and the resource identifier corresponding to each scene identifier.
It should be noted that the target resource content may include any resource content in the target scene, and in consideration that there may be an uncommon area in the target scene, and the resource content in the uncommon area may not be used, resource information of other users may be collected as a sample to train a resource list generation model, so that the uncommon resource is screened out by the resource list generation model, and the load of the resource content is reduced.
In a possible implementation manner, the target resource content further includes resource content corresponding to a related scene identifier of the target scene identifier, where the related scene identifier is determined based on a scene determination model; the server can input the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
That is, when the application program enters a scene, the scene that the application program is likely to jump to can be determined based on the jumping result of other users in the scene, and the resource content that is likely to be loaded in the scene that is likely to jump to can also be loaded as the target resource content.
S23, the target resource content is sent to the user side, so that the user side calls the target resource content sent by the server to display when the resource content to be displayed of the application program is the target resource content.
In a possible implementation manner, the resource information further includes resource enabling time, the resource list further includes target resource content and target enabling time of each target resource content, and the resource list generation model is obtained by training based on scene identifiers in the historical resource information, resource identifiers corresponding to each scene identifier, and resource enabling time corresponding to each resource identifier. The server can send the target resource list arranged according to the target starting time to the user side, so that the user side can download the target resource contents in sequence based on the resource list when the network is idle.
After the resource content is sent to the user side, error information fed back by the user side can be obtained, and the resource list generation model is updated according to the error information. The error information may be generated because an error value between a target resource content display time and the target enabling time exceeds a preset threshold value, and the error information includes that the error information may include a time when a user actually enables a resource; the error information may also be generated by complementing the target resource content with the resource content to be displayed by the application program, that is, when the target resource list does not hit the resource content actually loaded by the user side, the user side may report the error information, where the error information may include a resource identifier of the resource content actually loaded by the user, or the resource identifier and the actual loading time of the resource, and the server may update the resource list generation model based on the error information.
Based on the technical scheme, the following technical effects can be at least achieved:
the resource content downloaded from the server when the user side enters a new scene can be determined based on the resource content loaded in each scene in the historical resource information, so that the resource loading is carried out in advance, the problem that the waiting time of the application program is long due to the fact that the resource loading is not timely is solved, in addition, the resource content can be timely loaded when the scenes are switched, the volume of the resource content required by the application program downloading can be reduced, and the downloading speed of the application program is improved.
Fig. 3 is a block diagram illustrating a resource processing apparatus 300 according to an exemplary disclosed embodiment, the apparatus 300, as shown in fig. 3, including:
the name sending module 310 is used for responding to the starting of an application program and/or the change of a display scene in the application program, acquiring a changed target scene identifier and sending the changed target scene identifier to a server;
a resource obtaining module 320, configured to receive target resource content sent by the server, where the target resource content is determined based on the target scene identifier and historical resource information, and the historical resource information includes a scene identifier and a resource identifier corresponding to the scene identifier;
the resource display module 330 is configured to, when the resource content to be displayed by the application program is the target resource content, call the acquired target resource content to display.
In one possible embodiment, the target resource content is determined by: inputting the target scene identification into a resource list generation model to generate a resource list, wherein the resource list comprises a plurality of target resource identifications; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in historical resource information and resource identifications corresponding to the scene identifications.
In a possible implementation manner, the resource information further includes resource enabling time, the resource list further includes target resource content and target enabling time of each target resource content, and the resource list generation model is trained based on scene identifiers in the historical resource information, resource identifiers corresponding to each scene identifier, and resource enabling time corresponding to each resource identifier; the resource obtaining module 320 is configured to obtain a target resource list sent by the server, where the target resource list is arranged according to a target starting time; and when the network is idle, sequentially downloading target resource contents based on the resource list.
In a possible implementation manner, the apparatus further includes a first reporting module, configured to determine, when resource content to be displayed by an application is target resource content, whether an error value between display time and the target enabling time exceeds a preset threshold, and send error information to the server when the error value exceeds the preset threshold, so that the server updates the resource list generation model based on the error information.
In a possible implementation manner, the apparatus further includes a second reporting module, configured to, when the resource content to be displayed by the application is different from the target resource content, download the resource content to be displayed from the server, and send error information to the server, so that the server updates the resource list generation model based on the error information.
In a possible implementation manner, the target resource content further includes resource content corresponding to a related scene identifier of the target scene identifier, where the related scene identifier is determined based on a scene determination model; the resource content corresponding to the associated name is determined by the following method: inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises scene identification before switching and scene identification after switching, which are recorded at multiple scene switching moments.
Based on the technical scheme, the following technical effects can be at least achieved:
the resource content downloaded from the server when the user side enters a new scene can be determined based on the resource content loaded by other users in each scene, so that the resource loading is carried out in advance, the problem of long waiting time of the application program caused by untimely resource loading is solved, in addition, the resource content can be loaded in time when the scenes are switched, the volume of the resource content required by the application program downloading can be reduced, and the downloading speed of the application program is improved.
Fig. 4 is a block diagram illustrating a resource processing apparatus 400 according to an exemplary disclosed embodiment, where the apparatus 400 is applied to a server, and as shown in fig. 4, the apparatus 400 includes:
an identifier obtaining module 410, configured to obtain a target scene identifier sent by a user end;
a resource determining module 420, configured to determine target resource content based on the target scene identifier and historical resource information, where the resource information includes scene identifiers and resource identifiers corresponding to the scene identifiers;
the resource sending module 430 is configured to send the target resource content to the user side, so that the user side calls the target resource content sent by the server to display when the resource content to be displayed by the application program is the target resource content.
In a possible implementation, the resource determining module 420 is configured to input the target scene identifier into the resource list generating model, and generate a resource list, where the resource list includes a plurality of target resource identifiers; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in historical resource information and resource identifications corresponding to the scene identifications.
In a possible implementation manner, the resource information further includes resource enabling time, the resource list further includes target resource content and target enabling time of each target resource content, and the resource list generation model is obtained based on scene identifiers in the historical resource information, resource identifiers corresponding to each scene identifier, and resource enabling time training corresponding to each resource identifier; the resource sending module is configured to sort the target resource list according to target enabling time, and send the sorted target resource list to the user side, so that the user side downloads the target resource content according to the sequence of the target enabling time.
In a possible implementation manner, the apparatus further includes a scene association module, configured to determine an associated scene identifier of the target scene identifier based on a scene determination model; inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the resource determining module is used for taking the resource content corresponding to each target resource identifier and the resource content corresponding to each associated resource identifier as the target resource content; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
Based on the technical scheme, the following technical effects can be at least achieved:
the resource content downloaded from the server when the user side enters a new scene can be determined based on the resource content loaded in each scene in the historical resource information, so that the resource loading is carried out in advance, the problem that the waiting time of the application program is long due to untimely resource loading is solved, in addition, the resource content can be timely loaded when the scenes are switched, the volume of the resource content required by the application program downloading can be reduced, and the downloading speed of the application program is improved.
Referring now to fig. 5, a schematic diagram of an electronic device (e.g., a client device or server as referred to in this disclosure) 500 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides, in accordance with one or more embodiments of the present disclosure, a resource processing method, the method including: responding to the starting of an application program and/or the change of a display scene in the application program, acquiring a changed target scene identifier and sending the changed target scene identifier to a server; receiving target resource content sent by the server, wherein the target resource content is determined based on the target scene identifier and historical resource information, and the historical resource information comprises a scene identifier and a resource identifier corresponding to the scene identifier; and when the resource content to be displayed of the application program is the target resource content, calling the acquired target resource content for displaying.
Example 2 provides the method of example 1, the target resource content determined by: inputting the target scene identification into a resource list generation model to generate a resource list, wherein the resource list comprises a plurality of target resource identifications; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in the historical resource information and resource identifications corresponding to the scene identifications.
Example 3 provides the method of example 2, the resource information further includes resource enabling time, the resource list further includes target resource content and target enabling time of each target resource content, and the resource list generation model is trained based on scene identifiers in the historical resource information, resource identifiers corresponding to each scene identifier, and resource enabling time corresponding to each resource identifier; the acquiring the target resource content sent by the server includes: acquiring a target resource list sent by the server, wherein the target resource list is arranged according to target starting time; and when the network is idle, sequentially downloading target resource contents based on the resource list.
Example 4 provides the method of example 3, further comprising, in accordance with one or more embodiments of the present disclosure: when the resource content to be displayed of the application program is the target resource content, determining whether an error value between the display time and the target starting time exceeds a preset threshold value, and sending error information to the server under the condition that the error value exceeds the preset threshold value, so that the server updates the resource list generation model based on the error information.
Example 5 provides the method of example 1, further comprising, in accordance with one or more embodiments of the present disclosure: and when the resource content to be displayed of the application program is different from the target resource content, downloading the resource content to be displayed from the server, and sending error information to the server so that the server can update the resource list generation model based on the error information.
Example 6 provides the method of example 2, the target resource content further including resource content corresponding to an associated scene identity of the target scene identity, the associated scene identity determined based on a scene determination model; the resource content corresponding to the associated name is determined by the following method: inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the scene determining model is obtained by training based on scene switching information in the historical resource information, wherein the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
Example 7 provides a resource processing method applied to a server, according to one or more embodiments of the present disclosure, the method including: acquiring a target scene identifier sent by a user side; determining target resource content based on the target scene identification and historical resource information, wherein the resource information comprises scene identifications and resource identifications corresponding to the scene identifications; and sending the target resource content to the user side so that the user side calls the target resource content sent by the server to display when the resource content to be displayed of the application program is the target resource content.
Example 8 provides the method of example 7, the determining target resource content based on the target scene identification and historical resource information, comprising: inputting the target scene identification into the resource list generation model to generate a resource list, wherein the resource list comprises a plurality of target resource identifications; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in historical resource information and resource identifications corresponding to the scene identifications.
In accordance with one or more embodiments of the present disclosure, example 9 provides the method of example 8, the resource information further includes resource enabling times, the resource list further includes target resource contents and target enabling times of the target resource contents, and the resource list generation model is trained based on scene identifiers in the historical resource information, resource identifiers corresponding to the scene identifiers, and the resource enabling times corresponding to the resource identifiers; the sending the target resource content to the user side includes: and sequencing the target resource list according to the target starting time, and sending the sequenced target resource list to the user side so that the user side can download the target resource content according to the sequence of the target starting time.
Example 10 provides the method of example 8, further comprising, in accordance with one or more embodiments of the present disclosure: determining a related scene identification of the target scene identification based on a scene determination model; inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the taking the resource content corresponding to each target resource identifier as the target resource content includes: taking the resource content corresponding to each target resource identifier and the resource content corresponding to each associated resource identifier as the target resource content; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
Example 11 provides, according to one or more embodiments of the present disclosure, a resource processing apparatus, the apparatus being applied to a user side, the apparatus including: the name sending module is used for sending the current target scene identification to the server when the application program is started or the scene in the application program is switched; a resource obtaining module, configured to obtain target resource content sent by the server, where the resource content is determined based on the target scene identifier and historical resource information, and the resource information includes scene identifiers and resource identifiers corresponding to the scene identifiers; and the resource display module is used for calling the acquired target resource content to display when the resource content to be displayed of the application program is the target resource content.
Example 12 provides the apparatus of example 11, the target resource content determined by: inputting the target scene identification into a resource list generation model to generate a resource list, wherein the resource list comprises a plurality of target resource identifications; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in historical resource information and resource identifications corresponding to the scene identifications.
In accordance with one or more embodiments of the present disclosure, example 13 provides the apparatus of example 12, the resource information further includes resource enabling times, the resource list further includes target resource contents and target enabling times of the respective target resource contents, and the resource list generation model is trained based on scene identifiers in the historical resource information, resource identifiers corresponding to the respective scene identifiers, and the resource enabling times corresponding to the respective resource identifiers; the resource acquisition module is used for acquiring a target resource list sent by the server, and the target resource list is arranged according to target starting time; and when the network is idle, sequentially downloading target resource contents based on the resource list.
Example 14 provides the apparatus of example 13, which further includes a first reporting module, configured to determine whether an error value between a presentation time and the target enabling time exceeds a preset threshold when resource content to be presented by an application is target resource content, and send error information to the server when the error value exceeds the preset threshold, so that the server updates the resource list generation model based on the error information.
Example 15 provides the apparatus of example 11, which further includes a second reporting module, configured to, when resource content to be presented by an application is not target resource content, download the resource content to be presented from the server, and send error information to the server, so that the server updates the resource list generation model based on the error information.
Example 16 provides the apparatus of example 12, the target resource content further including resource content corresponding to an associated scene identity of the target scene identity, the associated scene identity determined based on a scene determination model; the resource content corresponding to the associated name is determined by the following method: inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
Example 17 provides, in accordance with one or more embodiments of the present disclosure, a resource processing apparatus, the apparatus being applied to a server, the apparatus comprising: the identification acquisition module is used for acquiring a target scene identification sent by a user side; the resource determining module is used for determining target resource content based on the target scene identification and historical resource information, wherein the resource information comprises scene identifications and resource identifications corresponding to the scene identifications; and the resource sending module is used for sending the target resource content to the user side so that the user side calls the target resource content sent by the server to display when the resource content to be displayed of the application program is the target resource content.
Example 18 provides the apparatus of example 17, the resource determination module to input the target scene identification into the resource list generation model to generate a resource list, the resource list including a plurality of target resource identifications; taking the resource content corresponding to each target resource identifier as the target resource content; the resource list generation model is obtained by training based on scene identifications in historical resource information and resource identifications corresponding to the scene identifications.
Example 19 provides the apparatus of example 18, the resource information further includes resource enabling times, the resource list further includes target resource contents and target enabling times of the target resource contents, and the resource list generation model is trained based on scene identifiers in the historical resource information, resource identifiers corresponding to the scene identifiers, and the resource enabling times corresponding to the resource identifiers; the resource sending module is configured to sort the target resource list according to target enabling time, and send the sorted target resource list to the user side, so that the user side downloads the target resource content according to the sequence of the target enabling time.
Example 20 provides the apparatus of example 18, further comprising a scene association module to determine an associated scene identity of the target scene identity based on a scene determination model, in accordance with one or more embodiments of the present disclosure; inputting the associated scene identifier into the resource list generation model to generate an associated resource list, wherein the associated resource list comprises a plurality of associated resource identifiers; the resource determining module is used for taking the resource content corresponding to each target resource identifier and the resource content corresponding to each associated resource identifier as the target resource content; the scene determining model is obtained by training based on scene switching information in historical resource information, and the scene switching information comprises a scene identifier before switching and a scene identifier after switching which are recorded at multiple scene switching moments.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.