Data processing method and apparatus, computer device, and readable storage medium

By pre-downloading business application resources in advance and directly migrating and filtering matching resources when the application is updated, the problem of long update time in the existing technology is solved, and the efficiency of application update and user experience are improved.

WO2024193352A1PCT designated stage expired Publication Date: 2024-09-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080336
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-06
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing application update methods require users to wait before the download of all update resources is completed, resulting in a long update time for business applications and reducing update efficiency, especially when the file size is large.

Method used

By pre-downloading the pre-downloaded business resources of the business application in advance, and when the business application triggers the operation, the matching resources are determined and filtered according to the resource configuration information in the resource list, and the application is directly updated from the terminal directory to the application directory, thus avoiding additional steps. Download time.

Benefits of technology

It improves the efficiency of business application updates and reduces the update time. Regardless of the file size, it will not take too long to modify the file path, which improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080336_26092024_PF_FP
    Figure CN2024080336_26092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present application provide a data processing method and apparatus, a computer device, and a readable storage medium, appliable to scenarios such as cloud technology, smart transportation, assisted driving, and games. The method comprises: acquiring pre-downloaded service resources corresponding to a service application, and storing the pre-downloaded service resources to a terminal directory corresponding to a terminal device, wherein the service application comprises an optimization component and a service component; in response to a trigger operation for the service application, acquiring, by means of the service component, a resource list matching a download mode and an object service feature, and sending the resource list to the optimization component, wherein the resource list comprises resource configuration information; according to the resource configuration information in the resource list, determining a screened matched resource from the pre-downloaded service resources, and migrating the screened matched resource from the terminal directory to an application directory corresponding to the service application; and performing application update on the service application on the basis of the screened matched resource in the application directory. By using the present application, the efficiency of performing application update on the service application can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device, computer equipment and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 17, 2023, with application number 2023102915381 and application name “A data processing method, device, computer equipment and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer device, and readable storage medium. Background Art

[0003] The existing application update method can respond to a trigger operation on the business application (e.g., a game client) after the full update resource (e.g., a game resource) corresponding to the business application is updated, thereby starting to download the full update resource, and then performing an application update on the business application based on the full update resource after the download of the full update resource is completed. However, the existing application update method requires staying in the resource download interface of the business application to wait for the download of the full update resource to be completed. When the file size of the full update resource is large, it is necessary to stay in the resource download interface of the business application for a long time (e.g., 1 hour), which increases the time for updating the business application, thereby reducing the efficiency of updating the business application.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a data processing method, apparatus, computer device, and readable storage medium, which can improve the efficiency of application updates for business applications.

[0006] On the one hand, an embodiment of the present application provides a data processing method, including: obtaining pre-downloaded business resources corresponding to a business application, and storing the pre-downloaded business resources in a terminal directory corresponding to a terminal device; the business application includes an optimization component and a business component; the pre-downloaded business resources are obtained based on full-update resources in a server; in response to a trigger operation for the business application, a resource list matching a download mode and an object business feature is obtained through the business component, and the resource list is sent to the optimization component; the object business feature is a business feature of a business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resources indicated by the resource configuration information belong to full-update resources; according to the resource configuration information in the resource list, a screening matching resource is determined in the pre-downloaded business resource, and the screening matching resource is migrated from the terminal directory to the application directory corresponding to the business application; and the business application is updated based on the screening matching resource in the application directory.

[0007] On the one hand, an embodiment of the present application provides a data processing device, including: a resource acquisition module, which is used to obtain pre-downloaded business resources corresponding to a business application, and store the pre-downloaded business resources in a terminal directory corresponding to a terminal device; the business application includes an optimization component and a business component; the pre-downloaded business resources are obtained based on the full update resources in the server; a list sending module, which is used to respond to a trigger operation for the business application, obtain a resource list matching the download mode and the object business characteristics through the business component, and send the resource list to the optimization component; the object business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resources indicated by the resource configuration information belong to the full update resources; a resource migration module, which is used to determine the filtered matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and migrate the filtered matching resources from the terminal directory to the application directory corresponding to the business application; and an application update module, which is used to update the business application based on the filtered matching resources in the application directory.

[0008] Among them, the business components include business core components and business update components; the list sending module is specifically used to respond to trigger operations for business applications, send migration query requests to the optimization component through the business core component, and instruct the optimization component to generate migration pass information based on the pre-downloaded business resources in the terminal directory through the migration query request; the list sending module is specifically used to receive the migration pass information returned by the optimization component through the business core component, and call the business update component according to the migration pass information; the list sending module is specifically used to obtain a resource list that matches the download mode and object business characteristics through the business update component, and return the resource list to the business core component; the list sending module is specifically used to send the resource list to the optimization component through the business core component.

[0009] Among them, the business components include a business update component; a list sending module, which is specifically used to respond to trigger operations for business applications, generate migration pass information based on pre-downloaded business resources in the terminal directory through the optimization component, and call the business update component according to the migration pass information; the list sending module, which is specifically used to obtain a resource list that matches the download mode and object business characteristics through the business update component, and send the resource list to the optimization component.

[0010] Among them, the resource acquisition module includes: a first return unit, which is used to call the optimization component through the service application, and obtain a full resource list including full resource configuration information corresponding to the full update resources through the optimization component; the service application and the business application are both applications running in the terminal device; a first download unit, which is used to return the full resource list to the service application through the optimization component, and instruct the service application to download the full update resources in the server through the full resource list, and obtain the pre-downloaded business resources corresponding to the business application.

[0011] Among them, the business component includes a business update component; the list sending module includes: a first determination unit, which is used to perform mode detection on the download mode of the business application through the business update component. If the download mode is a full download mode, the full resource list is determined as a resource list that matches the download mode and the object business characteristics; a second determination unit, which is used to filter the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device if the download mode is a differential download mode, and obtain differential resource configuration information that matches the object business characteristics, and determine the resource list that matches the download mode and the object business characteristics based on the differential resource configuration information.

[0012] Among them, the business application includes at least two application functions; the second determination unit is specifically used to obtain the usage quantity of the business object corresponding to the terminal device for at least two application functions, and determine the application function whose usage quantity among the at least two application functions is greater than the quantity threshold as the target application function; the second determination unit is specifically used to determine the target application function as the object business feature of the business object, and obtain the resource configuration information mapped by the object business feature from the full resource configuration information; the second determination unit is specifically used to determine the obtained resource configuration information as differential resource configuration information that matches the object business feature.

[0013] Among them, the business component includes a business update component; the resource acquisition module includes: a second return unit, which is used to call the optimization component through the service application, and call the business update component through the optimization component; the service application and the business application are both applications running in the terminal device; the second return unit is used to obtain a difference resource list including difference resource configuration information through the business update component, and return the difference resource list to the optimization component; the difference resource configuration information is the resource configuration information obtained by information screening the full resource configuration information corresponding to the full update resource; the second download unit is used to return the difference resource list to the service application through the optimization component, and instruct the service application to select the full update resources in the server through the difference resource list to obtain the difference update resource; the second download unit is used to download the difference update resource through the service application to obtain the pre-downloaded business resource corresponding to the business application.

[0014] Among them, the full resource configuration information includes resource specifications and resource addresses; the first download unit is specifically used to determine the full resource specifications corresponding to the full update resources in the server according to the resource specifications; the first download unit is specifically used to obtain the full update resources corresponding to the resource address through the service application if the full resource specifications are smaller than the remaining storage space of the terminal device; the first download unit is specifically used to download the full update resources to obtain the pre-downloaded business resources corresponding to the business application.

[0015] Among them, the resource configuration information in the resource list includes resource name and resource summary information; the resource migration module includes: a first verification unit, which is used to, if the resource configuration information in the resource list is full resource configuration information, perform resource verification on the pre-download business resource according to the resource summary information to obtain a first resource verification result; if the first resource verification result indicates that the pre-download business resource verification is passed, the pre-download business resource is determined as a screening matching resource; a second verification unit, which is used to, if the resource configuration information in the resource list is differential resource configuration information, perform resource screening on the pre-download business resource according to the resource name to obtain a pre-download screening resource, perform resource verification on the pre-download screening resource according to the resource summary information to obtain a second resource verification result; if the second resource verification result indicates that the pre-download screening resource verification is passed, the pre-download screening resource is determined as a screening matching resource.

[0016] Among them, the first verification unit is specifically used to perform hash calculation on the pre-download business resources, obtain the download summary information corresponding to the pre-download business resources, and match the download summary information and the resource summary information; the first verification unit is specifically used to generate a first resource verification result indicating that the pre-download business resource verification has passed if the download summary information and the resource summary information are the same; the first verification unit is specifically used to generate a first resource verification result indicating that the pre-download business resource verification has failed if the download summary information and the resource summary information are different.

[0017] Among them, the application update module is specifically used to set the application directory as the pre-download directory and read the screening matching resources in the pre-download directory; the application update module is specifically used to update the business application according to the screening matching resources.

[0018] In one aspect, an embodiment of the present application provides a computer device, including: a processor and a memory;

[0019] The processor is connected to a memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.

[0020] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.

[0021] In one aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in the embodiment of the present application.

[0022] In an embodiment of the present application, after the full update resource corresponding to the business application is released and updated, the pre-downloaded business resource corresponding to the business application can be pre-downloaded based on the full update resource in advance, and then when responding to the trigger operation for the business application, the filter matching resource is determined in the pre-downloaded business resource according to the resource configuration information in the resource list, and the business application is updated based on the filter matching resource. At this time, the computer device does not need to download the filter matching resource after responding to the trigger operation for the business application, but directly modifies the file path of the filter matching resource in the computer device (that is, migrates the filter matching resource from the terminal directory to the application directory). Regardless of the file size of the filter matching resource, the operation of modifying the file path will not take a long time, which can reduce the time for updating the business application, thereby improving the efficiency of updating the business application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0024] FIG2 is a schematic diagram of a data interaction scenario provided by an embodiment of the present application;

[0025] FIG3 is a flow chart of a data processing method provided in an embodiment of the present application;

[0026] FIG4a is a schematic diagram of a scenario for component interaction provided by an embodiment of the present application;

[0027] FIG4b is a schematic diagram of a component interaction scenario provided by an embodiment of the present application;

[0028] FIG5 is a flow chart of a data processing method provided in an embodiment of the present application;

[0029] FIG6 is a flow chart of a data processing method provided in an embodiment of the present application;

[0030] FIG7 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;

[0031] FIG8 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0033] Specifically, please refer to Figure 1, which is a structural diagram of a network architecture provided by an embodiment of the present application. As shown in Figure 1, the network architecture may include a server 2000 and a terminal device cluster. Among them, the terminal device cluster may specifically include one or more terminal devices, and the number of terminal devices in the terminal device cluster will not be limited here. As shown in Figure 1, multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n can be directly or indirectly connected to the server 2000 through wired or wireless communication, so that each terminal device can exchange data with the server 2000 through the network connection.

[0034] Among them, each terminal device in the terminal device cluster can include: smart phones, tablet computers, laptops, desktop computers, intelligent voice interaction devices, smart home appliances (for example, smart TVs), wearable devices, vehicle terminals, aircraft and other smart terminals with data processing functions. It should be understood that each terminal device in the terminal device cluster shown in Figure 1 can be installed with an application client with data processing functions. When the application client runs in each terminal device, it can interact with the server 2000 shown in Figure 1 above. Among them, the application client can specifically include: a vehicle client, a smart home client, an entertainment client (for example, a game client), a multimedia client (for example, a video client), a social client and an information client (for example, a news client). Among them, the application client in the embodiment of the present application can be integrated in a client (for example, a social client), and the application client can also be an independent client (for example, a news client). The embodiment of the present application does not limit the type of the application client.

[0035] For ease of understanding, in this embodiment of the present application, one terminal device may be selected from the multiple terminal devices shown in FIG1 as the target terminal device. For example, in this embodiment of the present application, the terminal device 3000a shown in FIG1 may be selected as the target terminal device. The target terminal device may be installed with an application client having data processing capabilities. In this case, the target terminal device can exchange data with the server 2000 via the application client.

[0036] For ease of understanding, the embodiments of this application are described using an example in which the application client in the target terminal device includes a business application and a service application. The business application can be an application client to be updated (for example, a business application can be a game client to be updated), and the service application can be the manufacturer node of the target terminal device (i.e., the terminal manufacturer's application store). The server 2000 can be a server corresponding to a business application or a server corresponding to a service application. For ease of understanding, the embodiments of this application are described using the example in which the server 2000 is a server corresponding to a service application.

[0037] Among them, server 2000 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0038] It should be understood that the above network framework can be applied to application update scenarios (for example, game client update scenarios). In application update scenarios, the computer device in the embodiment of the present application can obtain pre-downloaded business resources corresponding to the business application, and when responding to the trigger operation for the business application, obtain a resource list that matches the download mode and the object business characteristics, and determine the screening matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and then perform application updates on the business application based on the screening matching resources. Therefore, the embodiment of the present application can save the time of the user corresponding to the target terminal device (for ease of understanding, the embodiment of the present application can refer to the user corresponding to the terminal device as a business object) by pre-downloading the pre-downloaded business resources, so that the business object can quickly use the updated business application after the business application is updated, thereby improving the efficiency of application updates for the business application (for example, improving the efficiency of application updates for the game client). In addition, the embodiment of the present application can reduce the CDN peak caused by the concentrated online download of a large number of business objects after the official release of the update by pre-downloading, thereby saving CDN costs.

[0039] Among them, pre-download means that before the update resources (i.e., full update resources) of the business application are officially updated and released, pre-download business resources (e.g., game resources) that take a long time to download are downloaded in advance for the business object. At the time node when the pre-download business resources are officially used, the pre-download business resources downloaded in advance can be directly processed to perform application updates (e.g., game updates), and there is no need to enter the business application (e.g., game client) before starting the pre-download business resource download task. Among them, pre-download business resources refer to application installation packages or application resource packages. The number of application resource packages can be one or more. Pre-download business resources can be one or more of application installation packages, one or more application resource packages, for example, game resources can be one or more of game installation packages (e.g., APK (Android application package) files), one or more game resource packages (e.g., PAK (a compressed file format) files), that is, game resources can be one or more of game installation packages and game resource packages. Optionally, pre-download business resources can also be animation resources, interactive resources, UI (User Interface) resources, etc. in business applications.

[0040] For easier understanding, please refer to Figure 2, which is a schematic diagram of a data interaction scenario provided in an embodiment of the present application. Server 20a shown in Figure 2 can be server 2000 in the embodiment corresponding to Figure 1 above, terminal device 20b shown in Figure 2 can be the target terminal device in the embodiment corresponding to Figure 1 above, and the user corresponding to terminal device 20b can be business object 20c. For easier understanding, this embodiment of the present application uses the example of a data processing method executed by terminal device 20b.

[0041] As shown in FIG2 , application database 21a may store fully updated resources for application clients in terminal device 20b. Application clients in terminal device 20b may include business applications, and application database 21a may store fully updated resources for business applications. Application database 21a may be independently configured or integrated with server 20a, or integrated with other devices or the cloud, without limitation.

[0042] As shown in Figure 2, server 20a can obtain pre-downloaded business resources corresponding to the business application from application database 21a and send the pre-downloaded business resources to terminal device 20b. The pre-downloaded business resources are obtained based on the full update resources in server 20a. The pre-downloaded business resources can be the full update resources corresponding to the business application or the differential update resources within the full update resources (i.e., the update resources for the business object 20c within the full update resources). This application does not limit this.

[0043] Application database 21a may include multiple databases, specifically databases 21b, ..., and database 21c. Databases 21b, ..., and 21c may be used to store fully updated resources corresponding to application clients of different application types. For example, database 21b may be used to store fully updated resources corresponding to social application clients, while database 21c may be used to store fully updated resources corresponding to game application clients. Therefore, if the business application is a game application client, server 20a may obtain pre-downloaded business resources corresponding to the game application from database 21b.

[0044] As shown in Figure 2, terminal device 20b can receive pre-downloaded business resources sent by server 20a and store the pre-downloaded business resources in a terminal directory 22a corresponding to terminal device 20b. Thus, when business object 20c performs a trigger operation on a business application in terminal device 20b, terminal device 20b can respond to the trigger operation on the business application, determine the object business characteristics of business object 20c in the business application and the download mode of the business application through the business application, and obtain a resource list 23b that matches the download mode and the object business characteristics. The business application can include an optimization component and a business component. Terminal device 20b can determine the object business characteristics of business object 20c in the business application and the download mode of the business application through the business component, obtain a resource list 23b that matches the download mode and the object business characteristics, and send the resource list 23b to the optimization component.

[0045] It is understandable that the resource list 23b may include resource configuration information, and the service resources indicated by the resource configuration information are fully updated resources. The resource configuration information may be full resource configuration information or differential resource configuration information. The service resources indicated by the full resource configuration information are fully updated resources, and the service resources indicated by the differential resource configuration information are differential updated resources.

[0046] Furthermore, as shown in FIG2 , terminal device 20b may determine, based on the resource configuration information in resource list 23b, a filter-matched resource in the pre-downloaded service resource, and migrate the filter-matched resource from terminal directory 22a to application directory 22b corresponding to the service application. Specifically, when the pre-downloaded service resource is a fully updated resource, the filter-matched resource may be a fully updated resource determined in the fully updated resource based on the full resource configuration information, or a differentially updated resource determined in the fully updated resource based on the differential resource configuration information. Alternatively, when the pre-downloaded service resource is a differentially updated resource, the filter-matched resource may be a differentially updated resource determined in the differentially updated resource based on the differential resource configuration information.

[0047] Furthermore, as shown in FIG2 , the terminal device 20b may update the business application based on the screening matching resources in the application directory 22b to obtain an updated business application, so that the business object 20c may quickly use the updated business application through the terminal device 20b.

[0048] It can be seen from this that the embodiment of the present application can pre-download the screening matching resources (screening matching resources belong to pre-downloaded business resources) used when updating business applications (for example, game applications) to the terminal directory. In this way, when the terminal device responds to the trigger operation for the business application, it can migrate the screening matching resources in the pre-downloaded business resources through the resource list that matches the download mode and the object business characteristics, and realize the application update of the business application through the migrated screening matching resources, thereby reducing the time for obtaining the screening matching resources used for the application update, that is, reducing the time for applying the business application to update the application, and improving the efficiency of applying the business application to update the application. In addition, when the business object does not use the business application for a long time, the possibility and enthusiasm of the business object returning can be increased through the application update method of the embodiment of the present application.

[0049] Further, please refer to Figure 3, which is a flow chart of a data processing method provided in an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 20a in the embodiment corresponding to Figure 2 above, and the terminal device can be the terminal device 20b in the embodiment corresponding to Figure 2 above. For ease of understanding, the embodiment of the present application is described by taking the method executed by a terminal device as an example. Among them, the data processing method can include the following steps S101-S104:

[0050] Step S101: obtaining pre-downloaded service resources corresponding to the service application, and storing the pre-downloaded service resources in a terminal directory corresponding to the terminal device;

[0051] Among them, business applications can include optimization components and business components, and business components can include business core components and business update components. In other words, business applications can include optimization components, business applications (i.e., business core components can be understood as business applications that do not include optimization components and business update components), and business update components (for example, game update components).

[0052] When the business application is a game client, the optimization component can refer to the TGPA component (Tencent Game Performance Amelioration, the official game performance technology solution). The TGPA component connects the game and the terminal operating system, building a bridge between game and mobile phone manufacturers. Through in-depth analysis of game scenarios, the upper layer connects with various games and the lower layer connects with different manufacturers, thus realizing a unified game performance solution. In this case, the game client can include the TGPA component, the game (game, game application), and the game update component.

[0053] The pre-downloaded service resources are obtained based on the full update resources in the server. The full update resources may include differential update resources. The pre-downloaded service resources may be obtained by downloading the full update resources or the differential update resources. The specific process of the terminal device downloading the full update resources to obtain the pre-downloaded service resources corresponding to the service application can be found in the description of steps S201-S202 in the embodiment corresponding to FIG5 below. The specific process of the terminal device downloading the differential update resources to obtain the pre-downloaded service resources corresponding to the service application can be found in the description of steps S301-S304 in the embodiment corresponding to FIG6 below.

[0054] It is understandable that after the full update resource is released, the terminal device can detect the idle time of the terminal device through the service application (i.e., the game service side), launch the pre-download service during the idle time of the terminal device, and obtain the pre-download business resources corresponding to the business application through the pre-download service at a time that does not affect the normal use of the terminal device. Among them, the service application can pre-download before the time node of the official release of the full update resource, or pre-download after the time node of the official release of the full update resource.

[0055] Step S102, in response to a trigger operation for a business application, obtaining a resource list that matches the download mode and target business characteristics through the business component, and sending the resource list to the optimization component;

[0056] Specifically, the terminal device can respond to the trigger operation for the business application, send a migration query request to the optimization component through the business core component, and instruct the optimization component through the migration query request to generate migration pass information based on the pre-downloaded business resources in the terminal directory. Furthermore, the terminal device can receive the migration pass information returned by the optimization component through the business core component, and call the business update component according to the migration pass information. Furthermore, the terminal device can obtain a list of resources that matches the download mode and the object business characteristics through the business update component, and return the resource list to the business core component. Among them, the object business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information, and the business resources indicated by the resource configuration information belong to the full update resources. Furthermore, the terminal device can send the resource list to the optimization component through the business core component.

[0057] Among them, the specific process of interaction between the optimization component, the business core component and the business update component can be seen in Figure 4a, which is a schematic diagram of a scenario for component interaction provided by an embodiment of the present application. As shown in Figure 4a, the business application 40a may include an optimization component and a business component 40b, and the business component 40b may include a business core component and a business update component. The optimization component, the business core component and the business update component can execute steps S41-S45. Among them, the business core component can act as an intermediate information transmitter to achieve full download (or differential download) and full relocation (or differential relocation).

[0058] As shown in Figure 4a, when a terminal device responds to a trigger operation for a business application, it can execute step S41. In step S41, the terminal device can send a migration query request to the optimization component via the business core component. In this way, the terminal device can receive the migration query request sent by the business core component via the optimization component and generate migration success information based on the pre-downloaded business resources in the terminal directory. Further, the terminal device can execute step S42. In step S42, the terminal device can return the migration success information to the business core component via the optimization component. In this way, the terminal device can receive the migration success information returned by the optimization component via the business core component.

[0059] Furthermore, as shown in FIG4a , the terminal device may execute step S43 . In step S43 , the terminal device may call the service update component through the service core component. In this way, the terminal device may obtain a resource list that matches the download mode and the target service characteristics through the service update component. Further, the terminal device may execute step S44 . In step S44 , the terminal device may return the resource list to the service core component through the service update component. In this way, the terminal device may receive the resource list returned by the service update component through the service core component.

[0060] Further, as shown in FIG4a , the terminal device may execute step S45 , in which the terminal device may send the resource list to the optimization component via the service core component, so that the terminal device may receive the resource list sent by the service core component via the optimization component.

[0061] It can be understood that when there are pre-downloaded resources in the terminal directory, the terminal device can generate migration pass information based on the pre-downloaded business resources in the terminal directory, and then receive the migration pass information returned by the optimization component through the business core component, and call the business update component according to the migration pass information; optionally, when there are no pre-downloaded resources in the terminal directory, the terminal device can generate migration fail information (i.e., migration failure information) based on the absence of pre-downloaded resources in the terminal directory, and then receive the migration fail information returned by the optimization component through the business core component, thereby eliminating the need to call the business update component.

[0062] Optionally, the terminal device can respond to a trigger operation targeting a business application by generating migration success information based on pre-downloaded business resources in the terminal directory through the optimization component, and then invoking the business update component based on the migration success information. Furthermore, the terminal device can obtain a list of resources matching the download mode and target business characteristics through the business update component, and send this list of resources to the optimization component. The target business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information, and the business resources indicated by the resource configuration information are fully updated resources.

[0063] The specific process of interaction between the optimization component and the business update component can be seen in Figure 4b, which is a schematic diagram of a scenario for component interaction provided by an embodiment of the present application. As shown in Figure 4b, the business application 41a may include an optimization component and a business component 41b, and the business component 41b may include a business core component and a business update component. The optimization component and the business update component may execute steps S51-S52. The optimization component always interacts with the business update component to achieve full download (or differential download) and full migration (or differential migration).

[0064] As shown in Figure 4b, when the terminal device responds to a trigger operation for a business application, it can execute step S51. In step S51, the terminal device can generate migration pass information based on the pre-downloaded business resources in the terminal directory through the optimization component, and call the business update component according to the migration pass information. In this way, the terminal device can obtain a list of resources that matches the download mode and object business characteristics through the business update component.

[0065] Further, as shown in FIG4b , the terminal device may execute step S52 , in which the terminal device may send the resource list to the optimization component via the service update component, so that the terminal device may receive the resource list sent by the service update component via the optimization component.

[0066] It can be understood that when there are pre-downloaded resources in the terminal directory, the terminal device can generate migration pass information based on the pre-downloaded business resources in the terminal directory, and then call the business update component according to the migration pass information; optionally, when there are no pre-downloaded resources in the terminal directory, the terminal device can generate migration fail information (i.e., migration failure information) based on the absence of pre-downloaded resources in the terminal directory, without calling the business update component.

[0067] It should be understood that the resource configuration information in the resource list may include the resource name and resource summary information. The resource configuration information may be the full resource configuration information in the full resource list or the differential resource configuration information in the differential resource list. In other words, the full resource configuration information may include the resource name and resource summary information, and the differential resource configuration information may include the resource name and resource summary information. The resource name and resource summary information may be used to perform the following step S103, namely, the terminal device may determine, based on the resource name and resource summary information, a filter-matching resource in the pre-downloaded service resources, and migrate the filter-matching resource from the terminal directory to the application directory corresponding to the service application.

[0068] Step S103: determining a screening matching resource in the pre-downloaded service resources according to the resource configuration information in the resource list, and migrating the screening matching resource from the terminal directory to the application directory corresponding to the service application;

[0069] Specifically, if the resource configuration information in the resource list is full resource configuration information, the terminal device can perform resource verification on the pre-downloaded business resource based on the resource summary information to obtain a first resource verification result. If the first resource verification result indicates that the pre-downloaded business resource verification is passed, the pre-downloaded business resource is determined to be a screened matching resource. Furthermore, the terminal device can migrate the screened matching resource from the terminal directory to the application directory corresponding to the business application. Optionally, if the first resource verification result indicates that the pre-downloaded business resource verification fails (i.e., the verification fails), the terminal device cannot determine the screened matching resource, and thus cannot execute the step of migrating the screened matching resource, and the step of updating the business application in the following step S104.

[0070] If the resource configuration information in the resource list is full resource configuration information and the first resource verification result indicates that the pre-download service resource verification has passed, then the pre-download service resource is the resource obtained by downloading the full update resource, and the pre-download service resource and the full update resource are the same. Alternatively, if the resource configuration information in the resource list is full resource configuration information and the first resource verification result indicates that the pre-download service resource verification has failed, then the pre-download service resource is the resource obtained by downloading the full update resource, and the pre-download service resource and the full update resource are different.

[0071] Optionally, if the resource configuration information in the resource list is differential resource configuration information, the terminal device can perform resource screening on the pre-downloaded business resources according to the resource name to obtain pre-downloaded screened resources, perform resource verification on the pre-downloaded screened resources according to the resource summary information to obtain a second resource verification result. If the second resource verification result indicates that the pre-downloaded screened resource verification is passed, the pre-downloaded screened resource is determined as a screened matching resource. Furthermore, the terminal device can migrate the screened matching resource from the terminal directory to the application directory corresponding to the business application. Optionally, if the second resource verification result indicates that the pre-downloaded screened resource verification fails (i.e., the verification fails), the terminal device cannot determine the screened matching resource, and thus cannot execute the step of migrating the screened matching resource, and the step of updating the business application in the following step S104.

[0072] Among them, if the resource configuration information in the resource list is differential resource configuration information, and the second resource verification result indicates that the pre-download screening resource verification is passed, then the pre-download business resource is the resource obtained by downloading the full update resource, and the pre-download business resource and the full update resource are the same; or, the pre-download business resource is the resource obtained by downloading the differential update resource, and the pre-download business resource and the differential update resource are the same. Optionally, if the resource configuration information in the resource list is differential resource configuration information, and the second resource verification result indicates that the pre-download screening resource verification is not passed, then the pre-download business resource is the resource obtained by downloading the full update resource, and the pre-download business resource and the full update resource are different; or, the pre-download business resource is the resource obtained by downloading the differential update resource, and the pre-download business resource and the differential update resource are different. It can be understood that if the pre-download business resource is obtained by downloading the full update resource, the terminal device can obtain the pre-download screening resource that matches the difference resource configuration information from the full update resource according to the resource name; optionally, if the pre-download business resource is obtained by downloading the difference update resource, the terminal device can determine the pre-download business resource as the pre-download screening resource that matches the difference resource configuration information.

[0073] Therefore, when the resource configuration information in the resource list is differential resource configuration information, since the object business characteristics corresponding to different business objects are different, the terminal device can generate different resource lists for different business objects, and then can determine different screening and matching resources in the pre-downloaded business resources based on different resource lists, thereby achieving application updates that are tailored to each user (i.e., user-differentiated). For example, when the business application is a game client, "differentiation" means that when downloading resources within the game client, the game client can customize and update game resources (i.e., screen and match resources) for each business object based on the object business characteristics (e.g., user play). At this time, business objects with different object business characteristics will actually have different updated game resources in a single game client update.

[0074] It should be understood that the specific process of the terminal device performing resource verification on the pre-download service resource based on the resource summary information and obtaining the first resource verification result can be described as follows: the terminal device can perform hash calculation on the pre-download service resource to obtain the download summary information corresponding to the pre-download service resource, and match the download summary information (i.e., the download summary information corresponding to the pre-download service resource) with the resource summary information. Furthermore, if the download summary information (i.e., the download summary information corresponding to the pre-download service resource) and the resource summary information are the same, the terminal device can generate a first resource verification result indicating that the pre-download service resource verification has passed; optionally, if the download summary information (i.e., the download summary information corresponding to the pre-download service resource) and the resource summary information are different, the terminal device can generate a first resource verification result indicating that the pre-download service resource verification has failed.

[0075] It should be understood that the embodiments of the present application do not limit the specific algorithm used for hash calculation. For example, the download summary information and resource summary information can be hash values ​​generated by the MD5 message-digest algorithm to ensure the integrity and consistency of information transmission. In other words, the terminal device can perform hash calculation using the MD5 message-digest algorithm.

[0076] Similarly, the terminal device performs resource verification on the pre-download screening resource based on the resource summary information, and the specific process of obtaining the second resource verification result can be described as follows: the terminal device can perform hash calculation on the pre-download screening resource to obtain the download summary information corresponding to the pre-download screening resource, and match the download summary information (i.e., the download summary information corresponding to the pre-download screening resource) with the resource summary information. Furthermore, if the download summary information (i.e., the download summary information corresponding to the pre-download screening resource) and the resource summary information are the same, the terminal device can generate a second resource verification result indicating that the pre-download screening resource verification has passed; optionally, if the download summary information (i.e., the download summary information corresponding to the pre-download screening resource) and the resource summary information are different, the terminal device can generate a second resource verification result indicating that the pre-download screening resource verification has failed.

[0077] Optionally, if the resource configuration information in the resource list is full resource configuration information, the terminal device can perform resource verification on the pre-download service resource based on the resource summary information and the resource name to obtain a first resource verification result. Among them, the terminal device can perform a hash calculation on the pre-download service resource to obtain the download summary information corresponding to the pre-download service resource, and match the download summary information (i.e., the download summary information corresponding to the pre-download service resource) with the resource summary information. Further, if the download summary information (i.e., the download summary information corresponding to the pre-download service resource) and the resource summary information are the same, the terminal device can generate a first candidate resource verification result indicating that the pre-download service resource verification has passed; optionally, if the download summary information (i.e., the download summary information corresponding to the pre-download service resource) and the resource summary information are different, the terminal device can generate a first candidate resource verification result indicating that the pre-download service resource verification has failed. Furthermore, the terminal device may match the resource name with the name of the pre-download business resource. If the resource name matches the name of the pre-download business resource, the terminal device may generate a second candidate resource verification result indicating that the pre-download business resource verification has passed. Optionally, if the resource name does not match the name of the pre-download business resource, the terminal device may generate a second candidate resource verification result indicating that the pre-download business resource verification has failed. Further, if both the first candidate resource verification result and the second candidate resource verification result indicate that the pre-download business resource verification has passed, the terminal device may generate a first resource verification result indicating that the pre-download business resource verification has passed. Optionally, if the first candidate resource verification result or the second candidate resource verification result indicates that the pre-download business resource verification has failed, the terminal device may generate a first resource verification result indicating that the pre-download business resource verification has failed.

[0078] For ease of understanding, the embodiment of the present application is described by taking the existence of a business resource in the pre-downloaded business resources whose name matches the resource name as an example. At this time, the terminal device performs resource screening on the pre-downloaded business resources based on the resource name. The specific process of obtaining the pre-downloaded screened resources can be described as follows: the terminal device can obtain a business resource whose name matches the resource name from the pre-downloaded business resources, and determine the business resource whose name matches the resource name as the pre-downloaded screened resource. Optionally, if there is no business resource in the pre-downloaded business resources whose name matches the resource name, the terminal device cannot determine the pre-downloaded screened resource, and thus cannot determine the screened matching resource, and thus cannot execute the step of updating the business application in the following step S104.

[0079] It is understood that migrating the filtered matching resources from the terminal directory to the application directory means relocating the files of the filtered matching resources. File relocation means cutting and pasting a series of files from one directory to another. For example, file relocation means that the terminal device can cut and paste game resources from the terminal device's public download directory (i.e., the terminal directory) to the game's private directory (i.e., the application directory).

[0080] Step S104: updating the business application based on the filtered matching resources in the application catalog.

[0081] Specifically, the terminal device can set the application directory as a pre-download directory and read the filter-matching resources in the pre-download directory. In other words, the terminal device can enable the service application to use the pre-download directory and use the filter-matching resources within the pre-download directory. In this case, the directory containing the filter-matching resources serves as both the application directory and the pre-download directory. Furthermore, the terminal device can update the service application based on the filter-matching resources. Specifically, the terminal device can install and update the service application based on the filter-matching resources, or update the service application based on the filter-matching resources.

[0082] It is understandable that if the terminal device responds to the trigger operation for the business application after the time node for the official release of the updated full update resources, it will directly load and use the downloaded filtered matching resources, thereby saving the time cost of the business object and optimizing the user experience; optionally, if the terminal device responds to the trigger operation for the business application before the time node for the official release of the updated full update resources, the terminal device cannot directly load and use the downloaded filtered matching resources.

[0083] It can be seen from this that the embodiment of the present application can obtain the pre-downloaded business resources corresponding to the business application based on the full update resources in advance after the full update resources corresponding to the business application are released and updated, and then when responding to the trigger operation for the business application, the filter matching resources are determined in the pre-downloaded business resources according to the resource configuration information in the resource list, and the business application is updated based on the filter matching resources. At this time, the computer device does not need to download the filter matching resources after responding to the trigger operation for the business application, but directly modifies the file path of the filter matching resources in the computer device (that is, migrates the filter matching resources from the terminal directory to the application directory). Regardless of the file size of the filter matching resources, the operation of modifying the file path will not take a long time, which can reduce the time for updating the business application, thereby improving the efficiency of updating the business application.

[0084] Further, please refer to Figure 5, which is a flow chart of a data processing method provided in an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 20a in the embodiment corresponding to Figure 2 above, and the terminal device can be the terminal device 20b in the embodiment corresponding to Figure 2 above. For ease of understanding, the embodiment of the present application is described using the method executed by a terminal device as an example. The data processing method can include the following steps S201-S204:

[0085] Step S201: calling the optimization component through the service application, and obtaining a full resource list including full resource configuration information corresponding to the full update resource through the optimization component;

[0086] Both service applications and business applications are applications running on terminal devices. The terminal devices can obtain a full resource list including full resource configuration information corresponding to fully updated resources from the server through the optimization component. For example, the server may include a TGPA backend, and the TGPA component can obtain a full resource list including full resource configuration information corresponding to fully updated resources from the TGPA backend.

[0087] Step S202: Return the full resource list to the service application through the optimization component, and instruct the service application to download the full updated resources from the server through the full resource list to obtain the pre-downloaded business resources corresponding to the business application;

[0088] Specifically, the terminal device can return the full resource list to the service application through the optimization component. Among them, the full resource configuration information includes resource specifications and resource addresses. Further, the terminal device can determine the full resource specifications corresponding to the full update resources in the server based on the resource specifications. Furthermore, if the full resource specifications are smaller than the remaining storage space of the terminal device, the terminal device can obtain the full update resources corresponding to the resource address (i.e. the resource address in the full resource configuration information) through the service application. Furthermore, the terminal device can download the full update resources to obtain the pre-downloaded business resources corresponding to the business application. Optionally, if the full resource specifications are greater than or equal to the remaining storage space of the terminal device, the terminal device may not need to download the full update resources.

[0089] Optionally, if the full resource size is greater than or equal to the remaining storage space of the terminal device, the terminal device may obtain the full update resource corresponding to the resource address through the service application, obtain the download update resource from the full update resource, and then download the download update resource without downloading update resources other than the download update resource in the full update resource. If the download resource size corresponding to the download update resource is less than the remaining storage space of the terminal device, the specific process for the terminal device to determine the download resource size corresponding to the download update resource can be found in the description of determining the full resource size corresponding to the full update resource below.

[0090] The number of full resource configuration information may be F, and the number of resource specifications may be F, where F may be a positive integer. It should be understood that the terminal device determines the full resource specifications corresponding to the fully updated resource in the server based on the resource specifications, indicating that the terminal device can perform an addition operation on the F resource specifications to obtain the full resource specifications corresponding to the fully updated resource.

[0091] The remaining storage space of the terminal device may represent the entire remaining space of the terminal device or a portion of the remaining space of the terminal device, where the portion of the remaining space is less than the entire remaining space. The portion of the remaining space indicates that a portion of the storage space needs to be reserved for the terminal device, and the entire remaining space will not be used for pre-downloading. For example, the entire remaining space of the terminal device may be 5G (Gigabyte, GB, abbreviated as G, gigabyte), and the portion of the remaining space of the terminal device may be 4G.

[0092] Step S203, in response to a trigger operation for a business application, the business component obtains a resource list that matches the download mode and target business characteristics, and sends the resource list to the optimization component;

[0093] Specifically, the terminal device can respond to the trigger operation for the business application, and perform mode detection on the download mode of the business application through the business update component in the business component. If the download mode is a full download mode, the full resource list is determined to be a resource list that matches the download mode and the object business characteristics, and the resource list is sent to the optimization component. The full resource configuration information in the resource list may include resource names and resource summary information. Optionally, if the download mode is a differential download mode, the terminal device can filter the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device, obtain differential resource configuration information that matches the object business characteristics, determine the resource list that matches the download mode and the object business characteristics based on the differential resource configuration information (that is, the differential resource configuration information constitutes a resource list that matches the download mode and the object business characteristics), and send the resource list to the optimization component. The differential resource configuration information in the resource list may include resource names and resource summary information. Among them, the object business characteristics are the business characteristics of the business objects corresponding to the terminal device in the business application; the resource list includes resource configuration information (i.e., full resource configuration information or differential resource configuration information), and the business resources indicated by the resource configuration information belong to full update resources (i.e., the business resources indicated by the full resource configuration information are full update resources, and the business resources indicated by the differential resource configuration information are differential update resources. The differential update resources belong to the full update resources, which can be part of the full update resources).

[0094] The terminal device can obtain the full resource list from the server through the service update component, and then determine the full resource list as the resource list that matches the download mode and target service characteristics, or determine the difference resource list as the resource list that matches the download mode and target service characteristics. In this case, the optimization component and the service update component can each obtain the full resource list.

[0095] It should be understood that the terminal device can respond to a trigger operation for a business application and send a migration query request to the optimization component through the business core component, and instruct the optimization component through the migration query request to generate migration pass information based on the pre-downloaded business resources in the terminal directory. Further, the terminal device can receive the migration pass information returned by the optimization component through the business core component and call the business update component based on the migration pass information. Further, the terminal device can perform mode detection on the download mode of the business application through the business update component. If the download mode is a full download mode, the full resource list is determined as a resource list that matches the download mode and the object business characteristics, and the resource list is returned to the business core component. Optionally, if the download mode is a differential download mode, the terminal device can filter the full resource configuration information based on the object business characteristics of the business object corresponding to the terminal device, obtain differential resource configuration information that matches the object business characteristics, determine a resource list that matches the download mode and the object business characteristics based on the differential resource configuration information, and return the resource list to the business core component. Further, the terminal device can send the resource list to the optimization component through the business core component.

[0096] Optionally, it should be understood that the terminal device can respond to a trigger operation for a business application by sending a migration query request to the optimization component via the business core component. The migration query request instructs the optimization component to perform a pattern detection on the download mode of the business application, obtain a pattern detection result, and then generate a migration pass message based on the pre-downloaded business resources in the terminal directory and the pattern detection result. Furthermore, the terminal device can receive the migration pass message returned by the optimization component via the business core component and call the business update component based on the migration pass message. Furthermore, the terminal device can determine the pattern detection result in the migration pass message via the business update component. If the pattern detection result indicates that the download mode is a full download mode, the full resource list is determined to be a resource list that matches the download mode and the target business characteristics, and the resource list is returned to the business core component. Optionally, if the pattern detection result indicates that the download mode is a differential download mode, the terminal device can filter the full resource configuration information based on the object business characteristics of the business object corresponding to the terminal device, obtain differential resource configuration information that matches the object business characteristics, determine a resource list that matches the download mode and the target business characteristics based on the differential resource configuration information, and return the resource list to the business core component. Furthermore, the terminal device may send the resource list to the optimization component through the service core component.

[0097] Optionally, it should be understood that the terminal device can respond to a trigger operation for a business application, generate migration pass information based on the pre-downloaded business resources in the terminal directory through the optimization component, and call the business update component according to the migration pass information. Furthermore, the terminal device can perform mode detection on the download mode of the business application through the business update component. If the download mode is a full download mode, the full resource list is determined as a resource list that matches the download mode and the object business characteristics, and the resource list is sent to the optimization component. Optionally, if the download mode is a differential download mode, the terminal device can filter the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device, obtain differential resource configuration information that matches the object business characteristics, determine the resource list that matches the download mode and the object business characteristics based on the differential resource configuration information, and send the resource list to the optimization component.

[0098] Optionally, it should be understood that the terminal device can respond to a trigger operation for a business application, perform a pattern detection on the download mode of the business application through the optimization component, obtain a pattern detection result, and then generate migration pass information based on the pre-downloaded business resources in the terminal directory and the pattern detection result, and call the business update component according to the migration pass information. Furthermore, the terminal device can judge the pattern detection result in the migration pass information through the business update component. If the pattern detection result indicates that the download mode is a full download mode, the full resource list is determined as a resource list that matches the download mode and the object business characteristics, and the resource list is sent to the optimization component. Optionally, if the pattern detection result indicates that the download mode is a differential download mode, the terminal device can filter the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device, obtain differential resource configuration information that matches the object business characteristics, determine the resource list that matches the download mode and the object business characteristics based on the differential resource configuration information, and send the resource list to the optimization component.

[0099] Optionally, the terminal device may not need to detect the download mode of the business application through the business update component or the optimization component, but instead directly determine the download mode of the business application through the service application, and then directly obtain the download mode determined by the service application through the business update component, and obtain a list of resources that match the download mode and the object business characteristics based on the download mode.

[0100] Among them, the business application includes at least two application functions. It should be understood that the specific process of the terminal device filtering the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device can be described as: the terminal device can obtain the usage quantity of the business object corresponding to the terminal device for at least two application functions respectively, and determine the application function whose usage quantity in at least two application functions is greater than the quantity threshold as the target application function. Further, the terminal device can determine the target application function as the object business characteristic of the business object, and obtain the resource configuration information mapped by the object business characteristic from the full resource configuration information, that is, the updated resources corresponding to the target application function will be obtained from the full resource configuration information, while the resources other than the target application function may not be updated temporarily according to specific needs. Further, the terminal device can determine the obtained resource configuration information as differential resource configuration information that matches the object business characteristic.

[0101] It should be understood that in this application, when data such as usage quantity is involved, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and national standards of the country.

[0102] The number of object service features can be one or more, that is, the number of target application functions can be one or more, and this application does not limit the number of object service features; similarly, the number of differential resource configuration information can be one or more, and this embodiment of the application does not limit the number of differential resource configuration information. It is understood that one object service feature can be used to map one differential resource configuration information; or, multiple object service features can be used to map one differential resource configuration information; or, one object service feature can be used to map multiple differential resource configuration information; or, multiple object service features can be used to map multiple differential resource configuration information.

[0103] Step S204 : determining screening matching resources in the pre-downloaded service resources according to the resource configuration information in the resource list, and migrating the screening matching resources from the terminal directory to the application directory corresponding to the service application.

[0104] Specifically, if the resource configuration information in the resource list is full resource configuration information (i.e., the terminal device determines the full resource list as a resource list that matches the download mode and the target service characteristics in step S203), the terminal device can perform resource verification on the pre-download service resource based on the resource summary information (i.e., the resource summary information in the full resource configuration information) to obtain a first resource verification result. If the first resource verification result indicates that the pre-download service resource verification is passed, the pre-download service resource is determined as a screened matching resource. Further, the screened matching resource is migrated from the terminal directory to the application directory corresponding to the service application. Optionally, if the first resource verification result indicates that the pre-download service resource verification fails, the terminal device does not need to determine the pre-download service resource as a screened matching resource.

[0105] The specific process of the terminal device verifying the pre-downloaded service resources according to the resource summary information can be found in the description of step S103 in the embodiment corresponding to FIG. 3 , and will not be repeated here.

[0106] Optionally, if the resource configuration information in the resource list is differential resource configuration information (i.e., the terminal device determines a resource list that matches the download mode and the object business characteristics based on the differential resource configuration information in step S203), the terminal device can perform resource screening on the pre-download business resources based on the resource name to obtain pre-download screening resources, and perform resource verification on the pre-download screening resources based on the resource summary information (i.e., the resource summary information in the differential resource configuration information) to obtain a second resource verification result. If the second resource verification result indicates that the pre-download screening resource verification passes, the pre-download screening resource is determined as a screening matching resource. Further, the screening matching resource is migrated from the terminal directory to the application directory corresponding to the business application. Optionally, if the second resource verification result indicates that the pre-download screening resource verification fails, the terminal device does not need to determine the pre-download screening resource as a screening matching resource.

[0107] Among them, the specific process of the terminal device screening the pre-download service resources according to the resource name and verifying the pre-download screened resources according to the resource summary information can be found in the description of step S103 in the embodiment corresponding to Figure 3 above, and will not be repeated here.

[0108] In this embodiment of the present application, resources other than the screening-matching resources in the pre-downloaded service resources can be identified as auxiliary service resources. It is understood that after the terminal device migrates the screening-matching resources from the terminal directory to the application directory, it can delete the auxiliary service resources from the terminal directory to save storage space on the terminal device. Optionally, after the terminal device migrates the screening-matching resources from the terminal directory to the application directory, it is not necessary to delete the auxiliary service resources from the terminal directory.

[0109] Therefore, the user-differentiated pre-download method based on the game service channel provided in the embodiment of the present application can perform resource screening on the pre-downloaded business resources according to the resource name, determine different screening matching resources for different business objects, and then update different screening matching resources for different business objects to achieve user-differentiated updates (at this time, the update resources stored in the terminal device are full update resources, and the update resources loaded into the business application are differential update resources). If some business objects use certain modes (or modules) in the business application for a long time (for example, the business object only plays certain gameplays in the game client), there is no need to update the update resources that are not used for this type of business object (that is, there is no need to update the update resources of all modes (or modules) for this type of business object (that is, full update resources)), and the business object is updated with the update resources corresponding to the mode (or module) used by the business object (that is, screening matching resources) (for example, the game resources of certain modes (or modules) that the business object frequently plays are updated for the business object). At this time, the old resources of certain modes (or modules) in the business application that the business object has not used for a long time are never used.

[0110] It is understandable that other modes (or modules) that are not used (or not frequently used) by business objects do not need to be kept up to date every time they are updated. When a business object wants to use another mode (or module), the latest resources of the other mode (or module) are loaded for it. At this time, the business application only needs to load the resources of a corresponding module, which takes less time. Among them, if the latest resources of other modes (or modules) exist in the terminal directory, the terminal device can migrate the latest resources of other modes (or modules) from the terminal directory to the application directory; optionally, if the latest resources of other modes (or modules) do not exist in the terminal directory, the terminal device can download the latest resources of other modes (or modules) to the terminal directory, and then migrate the latest resources of other modes (or modules) from the terminal directory to the application directory, or the terminal device can download the latest resources of other modes (or modules) to the application directory.

[0111] For ease of understanding, here we take the business application as the game client as an example. The process of the game client performing an application update can include scheme 1 and scheme 2. In scheme 1: (1) The game service side (i.e., the service application) can download the pre-downloaded game resources (i.e., pre-downloaded business resources) uploaded by the TGPA administrator to the game service side in advance for the business object before the time node of the game official release update (i.e., the time node of the official release update full update resources) (i.e., the terminal device can download the pre-downloaded game resources through the game service side). At this time, the game resources downloaded by the game service side for all business objects are the same, and they are all the full game resources (i.e., full update resources) used for this game update. (2) The business object starts the game (i.e., the business object performs a trigger operation on the business application), and the game initializes the TGPA component and the game update component. (3) After the TGPA component is initialized, the game queries the TGPA component whether there are pre-downloaded files that need to be relocated (i.e., determine whether there are pre-downloaded business resources in the terminal directory), and whether the file relocation task requires differential relocation (the full download mode indicates that differential relocation is not required, and the differential download mode indicates that differential relocation is required). (4) Case 1: If the TGPA component returns to the game: there are pre-downloaded files that need to be relocated (i.e., there are pre-downloaded resources in the terminal directory), and the file relocation task requires differential relocation (i.e., the download mode is differential download mode), then the game can call the API (Application Programming Interface) provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., differential resource list) of the user characteristics based on the user's playing method (i.e., the object business characteristics), and returns the differential resource list to the game. The game then returns the differential resource list to the TGPA component. The TGPA component relocates the specified game resources (i.e., the filtered matching resources) to the local game private directory (i.e., the application directory) based on the differential resource list. Case 2: If the TGPA component returns to the game: there are pre-downloaded files that need to be relocated (i.e., there are pre-downloaded resources in the terminal directory), and the file relocation task does not require differentiated relocation (i.e., the download mode is full download mode), then the game can call the API provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., the full resource list) and returns the full resource list to the game. The game then returns the full resource list to the TGPA component. The TGPA component relocates all game resources (i.e., filtered matching resources) to the local game private directory (i.e., the application directory) based on the full resource list. Case 3: If the TGPA component returns to the game: there are no pre-downloaded files that need to be relocated (i.e., there are no pre-downloaded resources in the terminal directory), then after the game receives this information (i.e., the migration failed information), it does not trigger the subsequent process of file relocation and update using pre-downloaded files.(5) If there are pre-downloaded files that need to be relocated, and the subsequent pre-downloaded game resources are relocated to the local game private directory, the game sets the local game private directory as the pre-download file directory (i.e., the pre-download directory), and the game update component will read the pre-downloaded game resources (i.e., the filtered matching resources) in the directory to update the game (if the pre-downloaded file relocated to the local game private directory is a differentiated pre-downloaded update file (i.e., the filtered matching resources are differential update resources), a customized update will be performed for the business object; if the pre-downloaded file relocated to the local game private directory is a full game update file (i.e., the filtered matching resources are full update resources), a full update of the game update content will be performed for the business object).

[0112] In the second solution: (1) the game service side (i.e., service application) can download the pre-downloaded game resources (i.e., pre-downloaded business resources) uploaded by the TGPA administrator to the game service side in advance for the business objects before the official release of the game update (i.e., the official release of the full update resource). At this time, the game resources downloaded by the game service side for all business objects are the same, and they are all the full game resources (i.e., full update resources) used for this game update. (2) The business object starts the game (i.e., the business object performs a trigger operation on the business application), and the game initializes the TGPA component and the game update component. (3) After the TGPA component is initialized, the TGPA component side determines whether there are pre-downloaded files that need to be relocated (i.e., whether there are pre-downloaded business resources in the terminal directory), and whether the file relocation task requires differential relocation (the full download mode indicates that differential relocation is not required, and the differential download mode indicates that differential relocation is required). (4) Case 1: If the TGPA component determines that there are pre-downloaded files that need to be relocated (i.e., there are pre-downloaded resources in the terminal directory), and the file relocation task requires differential relocation (i.e., the download mode is differential download mode), then the TGPA component can call the API provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., differential resource list) of the user characteristics based on the user's play method (i.e., the target business characteristics), and returns the differential resource list to the TGPA component. The TGPA component relocates the specified game resources (i.e., the filtered matching resources) to the local game private directory (i.e., the application directory) based on the differential resource list. Case 2: If the TGPA component determines that there are pre-downloaded files that need to be relocated (i.e., there are pre-downloaded resources in the terminal directory), and the file relocation task does not require differential relocation (i.e., the download mode is full download mode), then the TGPA component can call the API provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., the full resource list), and returns the full resource list to the TGPA component. The TGPA component relocates all game update resources (i.e., the filtered matching resources) to the local game private directory (i.e., the application directory) based on the full resource list. Case 3: If the TGPA component determines that there are no pre-downloaded files that need to be relocated (ie, there are no pre-downloaded resources in the terminal directory), the TGPA component does not trigger the subsequent process of file relocation and update using pre-downloaded files.(5) If there are pre-downloaded files that need to be relocated, and the subsequent pre-downloaded game resources are relocated to the local game private directory, the game sets the local game private directory as the pre-download file directory (i.e., the pre-download directory), and the game update component will read the pre-downloaded game resources (i.e., the filtered matching resources) in the directory to update the game (if the pre-downloaded file relocated to the local game private directory is a differentiated pre-downloaded update file (i.e., the filtered matching resources are differential update resources), a customized update will be performed for the business object; if the pre-downloaded file relocated to the local game private directory is a full game update file (i.e., the filtered matching resources are full update resources), a full update of the game update content will be performed for the business object).

[0113] It can be seen from this that the embodiment of the present application can obtain a full resource list including full resource configuration information corresponding to the full update resource, download the full update resource based on the full resource configuration information in the full resource list, obtain the pre-downloaded business resource corresponding to the business application, and store the pre-downloaded business resource in the terminal directory corresponding to the terminal device. Further, when responding to a trigger operation for a business application, the terminal device can obtain a resource list that matches the download mode and the object business characteristics, determine the screening matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and then migrate the screening matching resources from the terminal directory to the application directory corresponding to the business application. Therefore, the embodiment of the present application can pre-download the full update resource before responding to the trigger operation for the business application to obtain the pre-downloaded business resource, and then after responding to the trigger operation for the business application, perform an application update on the business application based on the screening matching resources in the pre-downloaded business resource, thereby improving the efficiency of application update for the business application.

[0114] Further, please refer to Figure 6, which is a flow chart of a data processing method provided in an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the server 20a in the embodiment corresponding to Figure 2 above, and the terminal device can be the terminal device 20b in the embodiment corresponding to Figure 2 above. For ease of understanding, the embodiment of the present application is described by taking the method executed by a terminal device as an example. Among them, the data processing method can include the following steps S301-S306:

[0115] Step S301: calling the optimization component through the service application, and calling the business update component through the optimization component;

[0116] Among them, service applications and business applications are applications running on terminal devices.

[0117] Step S302: obtaining a differential resource list including differential resource configuration information through the service update component, and returning the differential resource list to the optimization component;

[0118] Among them, the differential resource configuration information is the resource configuration information obtained by screening the full resource configuration information corresponding to the fully updated resources. The terminal device screens the full resource configuration information corresponding to the fully updated resources to obtain the differential resource configuration information. For the specific process, please refer to the description of step S203 in the embodiment corresponding to Figure 5 above, which will not be repeated here.

[0119] It is understandable that the terminal device can obtain a full resource list including full resource configuration information corresponding to the fully updated resources from the server through the optimization component, and then send the full resource list to the service update component, and then use the service update component to filter the full resource configuration information in the full resource list to obtain differential resource configuration information. For example, the server may include a TGPA backend, and the TGPA component can obtain a full resource list including full resource configuration information corresponding to the fully updated resources from the TGPA backend. Optionally, the terminal device can obtain a full resource list from the server through the service update component, and then filter the full resource configuration information in the full resource list to obtain differential resource configuration information.

[0120] Step S303: The optimization component returns the difference resource list to the service application, and the difference resource list instructs the service application to select resources from the full update resources in the server to obtain difference update resources.

[0121] A resource configuration information may correspond to an updated resource, a full resource configuration information may correspond to a full updated resource, and a differential resource configuration information may correspond to a differential updated resource. The differential resource list may instruct the service application to obtain the updated resource (i.e., differential updated resource) corresponding to the differential resource configuration information from the full updated resource. The differential resource configuration information includes resource specifications and resource addresses.

[0122] Step S304: Download the difference update resources through the service application to obtain the pre-downloaded service resources corresponding to the service application;

[0123] Specifically, the terminal device can determine the differential resource specifications corresponding to the differential update resources in the server based on the resource specifications. Furthermore, if the differential resource specifications are smaller than the remaining storage space of the terminal device, the terminal device can obtain the differential update resources corresponding to the resource address (i.e., the resource address in the differential resource configuration information) through the service application. Furthermore, the terminal device can download the differential update resources to obtain the pre-downloaded service resources corresponding to the service application. Optionally, if the differential resource specifications are greater than or equal to the remaining storage space of the terminal device, the terminal device may not need to download the differential update resources.

[0124] The specific process of the terminal device determining the differential resource specifications corresponding to the differential update resources can be found in the description of determining the full resource specifications corresponding to the full update resources in the embodiment corresponding to FIG5 above, and will not be repeated here. The number of differential resource configuration information is less than or equal to the number of full resource configuration information. When the number of differential resource configuration information is equal to the number of full resource configuration information, the full resource list is equal to the differential resource list.

[0125] Step S305 , in response to a trigger operation for a business application, the business component obtains a resource list that matches the download mode and target business characteristics, and sends the resource list to the optimization component;

[0126] Specifically, the terminal device can respond to a trigger operation for a business application, determine the differential resource list as a resource list that matches the download mode and the object business characteristics through the business component, and send the resource list to the optimization component. The differential resource configuration information in the resource list may include resource names and resource summary information. The object business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information, and the business resources indicated by the resource configuration information are fully updated resources (i.e., the business resources indicated by the differential resource configuration information are differential update resources).

[0127] Step S306 : determining the screening matching resources in the pre-downloaded service resources according to the resource configuration information in the resource list, and migrating the screening matching resources from the terminal directory to the application directory corresponding to the service application.

[0128] Specifically, the terminal device can perform resource verification on the pre-download service resource based on the resource summary information (i.e., the resource summary information in the differential resource configuration information) to obtain a third resource verification result. If the third resource verification result indicates that the pre-download service resource verification has passed, the pre-download service resource is determined as a screening matching resource. Further, the screening matching resource is migrated from the terminal directory to the application directory corresponding to the service application. Optionally, if the third resource verification result indicates that the pre-download service resource verification has failed, there is no need to determine the pre-download service resource as a screening matching resource.

[0129] Among them, the terminal device performs resource verification on the pre-downloaded business resources according to the resource summary information (i.e., the resource summary information in the differential resource configuration information) to obtain the specific process of the third resource verification result. Please refer to the description of the first resource verification result obtained by performing resource verification on the pre-downloaded business resources according to the resource summary information (i.e., the resource summary information in the full resource configuration information) in the embodiment corresponding to Figure 3 above, which will not be repeated here.

[0130] Optionally, the terminal device may perform resource verification on the pre-downloaded service resource based on the resource summary information (i.e., the resource summary information in the differential resource configuration information) and the resource name (i.e., the resource name in the differential resource configuration information) to obtain a third resource verification result. The specific process of the terminal device performing resource verification on the pre-downloaded service resource based on the resource summary information (i.e., the resource summary information in the differential resource configuration information) and the resource name (i.e., the resource name in the differential resource configuration information) to obtain the third resource verification result can be referred to the description of the first resource verification result obtained by performing resource verification on the pre-downloaded service resource based on the resource summary information (i.e., the resource summary information in the full resource configuration information) and the resource name (the resource name in the full resource configuration information) in the embodiment corresponding to FIG3 above, which will not be repeated here.

[0131] Therefore, the user-differentiated pre-download method based on the game service channel provided in the embodiment of the present application can download different pre-downloaded business resources for different business objects, and then update different screening and matching resources for different business objects, thereby realizing user-differentiated download and update (at this time, the update resources stored in the terminal device are differential update resources, and the update resources loaded into the business application are differential update resources). If some business objects use certain modes (or modules) in the business application for a long time (for example, the business objects only play certain gameplays in the game client), there is no need to download and update the update resources that they do not use for such business objects (that is, there is no need to download and update the update resources of all modes (or modules) for such business objects (that is, full update resources)). Instead, the update resources corresponding to the modes (or modules) used by the business objects are downloaded and updated (that is, screening and matching resources) (for example, the game resources of certain modes (or modules) that the business objects frequently play are updated for the business objects in a targeted manner), thereby saving traffic for the business objects during the download process (that is, saving the traffic consumed during the download of other update resources not used by the business objects) and storage space of the terminal device (that is, saving storage space for other update resources not used by the business objects). At this time, old resources of certain patterns (or modules) in the business application that have not been used by business objects for a long time are never used.

[0132] For ease of understanding, the business application is taken as an example for explanation. The process of the game client performing an application update can include Solution 1 and Solution 2. In Solution 1: (1) The game service side (i.e., the service application) can download the pre-downloaded game resources (i.e., pre-downloaded business resources) uploaded by the TGPA administrator to the game service side in advance according to the user characteristics (i.e., the target business characteristics) before the time node of the game official update (i.e., the time node of the official release of the update full resources) (i.e., the terminal device can download the pre-downloaded game resources according to the target business characteristics through the game service side). Before downloading, the game service side starts the service (i.e., starts the service) and launches a sub-process (i.e., a sub-task in the terminal device). In this sub-process, the game service side can call the code of the TGPA component, and the TGPA component can call the code of the game update component. The game update component determines which game update resource files (i.e., differential update resources) should be differentially downloaded for the business object based on the user's play method (i.e., the object business characteristics), and returns the differential resource list to the TGPA component. The TGPA component then returns the differential resource list to the game service side. The game service side differentially downloads the pre-downloaded files (i.e., differential update resources) for the business object based on the file download list (i.e., differential resource list). (2) The business object starts the game (i.e., the business object performs a trigger operation on the business application), and the game initializes the TGPA component and the game update component. (3) After the TGPA component is initialized, the game queries the TGPA component to see if there are any pre-downloaded files that need to be moved (i.e., to determine whether there are pre-downloaded business resources in the terminal directory). (4) Case 1: If the TGPA component returns to the game: there are pre-downloaded files that need to be relocated (i.e., pre-downloaded resources exist in the terminal directory), and the file relocation task does not require differential relocation (because the game resource files (i.e., differential update resources) have been downloaded for differential relocation during the download phase, so if files are to be relocated here, all the downloaded files will be relocated, and differential relocation will not be performed again, but the differential update resources will be fully relocated). Then the game can call the API provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., differential resource list) of the user characteristics based on the user's play method (i.e., the object business characteristics), and returns the differential resource list to the game. The game then returns the differential resource list to the TGPA component. The TGPA component relocates all game resources (i.e., filtered matching resources) to the local game private directory (i.e., the application directory) based on the differential resource list. Case 2: If the TGPA component returns to the game: there are no pre-downloaded files that need to be relocated (i.e., pre-downloaded resources do not exist in the terminal directory), then after receiving this information (i.e., migration failure information), the game does not trigger the subsequent process of file relocation and update using pre-downloaded files.(5) If there are pre-downloaded files that need to be moved, and the subsequent pre-downloaded game resources are moved to the local game private directory, the game sets the local game private directory as the pre-download file directory (i.e., the pre-download directory), and the game update component will read the pre-downloaded game resources in the directory (i.e., filter matching resources) to customize the game for the user.

[0133] In the second solution: (1) the game service side (i.e., service application) can download the pre-downloaded game resources (i.e., pre-downloaded business resources) uploaded by the TGPA administrator to the game service side in advance according to the user characteristics (i.e., the target business characteristics) before the game is officially released (i.e., the time node of the official release of the update of the full update resources) (i.e., the terminal device can download the pre-downloaded game resources according to the target business characteristics through the game service side). Before downloading, the game service side starts the service (i.e., starts the service) and pulls up a sub-process (i.e., the sub-task in the terminal device). In this sub-process, the game service side can call the code of the TGPA component, and the TGPA component can call the code of the game update component. The game update component determines which game update resource files (i.e., differential update resources) should be differentially downloaded for the business object based on the user's play (i.e., the target business characteristics), and returns the differential resource list to the TGPA component. The TGPA component then returns the differential resource list to the game service side. The game service side downloads the pre-downloaded files (i.e., differential update resources) for the business object based on the file download list (i.e., differential resource list). (2) The business object starts the game (i.e., the business object performs a trigger operation on the business application), and the game initializes the TGPA component and the game update component. (3) After the TGPA component is initialized, the TGPA component determines whether there are pre-downloaded files that need to be relocated (i.e., whether there are pre-downloaded business resources in the terminal directory). (4) Case 1: If the TGPA component determines that there are pre-downloaded files that need to be relocated (i.e., pre-downloaded resources exist in the terminal directory), and the file relocation task does not require differential relocation (because the game resource files (i.e., differential update resources) have been downloaded for differential relocation during the download phase, so if files are to be relocated here, all the downloaded files will be relocated, and differential relocation will not be performed again, but the differential update resources will be fully relocated), then the TGPA component can call the API provided by the game update component. The game update component obtains the pre-downloaded file list (i.e., differential resource list) of the user's characteristics based on the user's play method (i.e., the object business characteristics), and returns the differential resource list to the TGPA component. The TGPA component relocates all game update resources (i.e., filtered matching resources) to the local game private directory (i.e., the application directory) based on the differential resource list. Case 2: If the TGPA component determines that there are no pre-downloaded files that need to be relocated (i.e., there are no pre-downloaded resources in the terminal directory), the TGPA component will not trigger the file relocation and subsequent processes of using pre-downloaded files for updating. (5) If there are pre-downloaded files that need to be relocated, and the subsequent relocation of pre-downloaded game resources to the local game private directory is completed, the game will set the local game private directory as the pre-downloaded file directory (i.e., the pre-download directory), and the game update component will read the pre-downloaded game resources in the directory (i.e., filter matching resources) to update the game and provide customized updates for users.

[0134] It can be seen from this that the embodiment of the present application can obtain a differential resource list including differential resource configuration information corresponding to differential update resources, download the differential update resources in the full update resources based on the differential resource configuration information in the differential resource list, obtain pre-downloaded business resources corresponding to the business application, and store the pre-downloaded business resources in the terminal directory corresponding to the terminal device. Further, when responding to a trigger operation for a business application, the terminal device can obtain a resource list that matches the download mode and the object business characteristics, determine the filter matching resources in the pre-downloaded business resources based on the resource configuration information in the resource list, and then migrate the filter matching resources from the terminal directory to the application directory corresponding to the business application. Therefore, the embodiment of the present application can pre-download the differential update resources before responding to the trigger operation for the business application to obtain the pre-downloaded business resources, and then after responding to the trigger operation for the business application, perform application updates on the business application based on the filter matching resources in the pre-downloaded business resources, thereby improving the efficiency of application updates for the business application.

[0135] Further, referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a data processing device provided in an embodiment of the present application. The data processing device 1 may include: a resource acquisition module 11 , a list sending module 12 , a resource migration module 13 , and an application update module 14 ;

[0136] Resource acquisition module 11, used to obtain pre-downloaded business resources corresponding to business applications and store the pre-downloaded business resources in the terminal directory corresponding to the terminal device; business applications include optimization components and business components; pre-downloaded business resources are obtained based on the full update resources in the server;

[0137] Among them, the resource acquisition module 11 includes: a first return unit 111, a first download unit 112; the first return unit 111 is used to call the optimization component through the service application, and obtain a full resource list including full resource configuration information corresponding to the full update resources through the optimization component; the service application and the business application are both applications running in the terminal device; the first download unit 112 is used to return the full resource list to the service application through the optimization component, and instruct the service application to download the full update resources in the server through the full resource list to obtain the pre-downloaded business resources corresponding to the business application.

[0138] Among them, the full resource configuration information includes resource specifications and resource addresses; the first download unit 112 is specifically used to determine the full resource specifications corresponding to the full update resources in the server according to the resource specifications; the first download unit 112 is specifically used to obtain the full update resources corresponding to the resource address through the service application if the full resource specifications are smaller than the remaining storage space of the terminal device; the first download unit 112 is specifically used to download the full update resources to obtain the pre-downloaded business resources corresponding to the business application.

[0139] The specific implementation of the first returning unit 111 and the first downloading unit 112 can refer to the description of steps S201 to S202 in the embodiment corresponding to FIG5 , which will not be described again here.

[0140] Among them, the business component includes a business update component; the resource acquisition module 11 includes: a second return unit 113, a second download unit 114; the second return unit 113 is used to call the optimization component through the service application, and call the business update component through the optimization component; the service application and the business application are both applications running in the terminal device; the second return unit 113 is used to obtain a difference resource list including difference resource configuration information through the business update component, and return the difference resource list to the optimization component; the difference resource configuration information is the resource configuration information obtained by information screening the full resource configuration information corresponding to the full update resource; the second download unit 114 is used to return the difference resource list to the service application through the optimization component, and instruct the service application to select the full update resource in the server through the difference resource list to obtain the difference update resource; the second download unit 114 is used to download the difference update resource through the service application to obtain the pre-downloaded business resource corresponding to the business application.

[0141] The specific implementation of the second returning unit 113 and the second downloading unit 114 can refer to the description of steps S301 to S304 in the embodiment corresponding to FIG6 , which will not be described in detail here.

[0142] The list sending module 12 is used to respond to a trigger operation for a business application, obtain a resource list that matches the download mode and the target business characteristics through the business component, and send the resource list to the optimization component; the target business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resources indicated by the resource configuration information are fully updated resources;

[0143] Among them, the business component includes a business update component; the list sending module 12 includes: a first determination unit 121, a second determination unit 122; the first determination unit 121 is used to perform mode detection on the download mode of the business application through the business update component. If the download mode is a full download mode, the full resource list is determined as a resource list that matches the download mode and the object business characteristics; the second determination unit 122 is used to filter the full resource configuration information according to the object business characteristics of the business object corresponding to the terminal device if the download mode is a differential download mode, obtain differential resource configuration information that matches the object business characteristics, and determine the resource list that matches the download mode and the object business characteristics based on the differential resource configuration information.

[0144] Among them, the business application includes at least two application functions; the second determination unit 122 is specifically used to obtain the usage quantity of the business object corresponding to the terminal device for at least two application functions, and determine the application function whose usage quantity among the at least two application functions is greater than the quantity threshold as the target application function; the second determination unit 122 is specifically used to determine the target application function as the object business feature of the business object, and obtain the resource configuration information mapped by the object business feature from the full resource configuration information; the second determination unit 122 is specifically used to determine the obtained resource configuration information as differential resource configuration information that matches the object business feature.

[0145] The specific implementation of the first determining unit 121 and the second determining unit 122 can refer to the description of step S203 in the embodiment corresponding to FIG5 , and will not be repeated here.

[0146] Among them, the business components include a business core component and a business update component; the list sending module 12 is specifically used to respond to the trigger operation for the business application, send a migration query request to the optimization component through the business core component, and instruct the optimization component to generate migration pass information based on the pre-downloaded business resources in the terminal directory through the migration query request; the list sending module 12 is specifically used to receive the migration pass information returned by the optimization component through the business core component, and call the business update component according to the migration pass information; the list sending module 12 is specifically used to obtain a resource list that matches the download mode and object business characteristics through the business update component, and return the resource list to the business core component; the list sending module 12 is specifically used to send the resource list to the optimization component through the business core component.

[0147] The business components include a business update component; a list sending module 12, specifically configured to respond to trigger operations for business applications, generate migration pass information based on pre-downloaded business resources in the terminal directory through the optimization component, and call the business update component based on the migration pass information; the list sending module 12, specifically configured to obtain a list of resources that match the download mode and target business characteristics through the business update component, and send the resource list to the optimization component. A resource migration module 13, configured to determine and filter matching resources in the pre-downloaded business resources based on the resource configuration information in the resource list, and migrate the filtered matching resources from the terminal directory to the application directory corresponding to the business application;

[0148] The resource configuration information in the resource list includes a resource name and resource summary information; the resource migration module 13 includes: a first verification unit 131 and a second verification unit 132; the first verification unit 131 is configured to, if the resource configuration information in the resource list is full resource configuration information, perform resource verification on the pre-download service resource according to the resource summary information to obtain a first resource verification result; if the first resource verification result indicates that the pre-download service resource verification has passed, determine the pre-download service resource as a screened matching resource;

[0149] The first verification unit 131 is specifically configured to perform a hash calculation on the pre-download service resource to obtain download summary information corresponding to the pre-download service resource, and match the download summary information with the resource summary information. The first verification unit 131 is specifically configured to generate a first resource verification result indicating that the pre-download service resource verification has passed if the download summary information and the resource summary information are the same. The first verification unit 131 is specifically configured to generate a first resource verification result indicating that the pre-download service resource verification has failed if the download summary information and the resource summary information are different. The second verification unit 132 is configured to filter the pre-download service resource according to the resource name to obtain a pre-download filtered resource if the resource configuration information in the resource list is differential resource configuration information, perform resource verification on the pre-download filtered resource according to the resource summary information to obtain a second resource verification result, and if the second resource verification result indicates that the pre-download filtered resource verification has passed, determine the pre-download filtered resource as a filtered matching resource.

[0150] The specific implementation of the first verification unit 131 and the second verification unit 132 can refer to the description of step S103 in the embodiment corresponding to FIG3 and the description of step S204 in the embodiment corresponding to FIG5 , which will not be repeated here.

[0151] The application update module 14 is configured to update the business application based on the screening and matching resources in the application catalog.

[0152] The application update module 14 is specifically used to set the application directory as the pre-download directory and read the screening matching resources in the pre-download directory; the application update module 14 is specifically used to update the business application according to the screening matching resources.

[0153] The specific implementations of the resource acquisition module 11, the list sending module 12, the resource migration module 13, and the application update module 14 can be found in the descriptions of steps S101 to S104 in the embodiment corresponding to FIG3 , steps S201 to S204 in the embodiment corresponding to FIG5 , and steps S301 to S306 in the embodiment corresponding to FIG6 , and will not be repeated here. Furthermore, the beneficial effects of employing the same method will not be repeated here either.

[0154] Further, please refer to Figure 8, which is a structural diagram of a computer device provided in an embodiment of the present application. The computer device can be a terminal device or a server. As shown in Figure 8, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, in some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG8 , the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0155] In the computer device 1000 shown in FIG8 , the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0156] Obtain pre-downloaded business resources corresponding to the business application and store the pre-downloaded business resources in the terminal directory corresponding to the terminal device; the business application includes optimization components and business components; the pre-downloaded business resources are obtained based on the full update resources in the server;

[0157] In response to a trigger operation for a business application, the business component obtains a list of resources that match the download mode and the target business characteristics, and sends the resource list to the optimization component; the target business characteristics are the business characteristics of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resources indicated by the resource configuration information are fully updated resources;

[0158] Determine the filter matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and migrate the filter matching resources from the terminal directory to the application directory corresponding to the business application;

[0159] Update business applications based on filtered matching resources in the application catalog.

[0160] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the data processing method described in the embodiments corresponding to FIG. 3 , FIG. 5 , or FIG. 6 , or can execute the data processing device 1 described in the embodiment corresponding to FIG. 7 , and thus, these descriptions are omitted. Furthermore, the descriptions of the beneficial effects of employing the same methods are omitted.

[0161] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above. When the processor executes the computer program, it can execute the description of the data processing method in the embodiment corresponding to Figure 3, Figure 5 or Figure 6 above. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiment of the computer-readable storage medium involved in this application, please refer to the description of the method embodiment of this application.

[0162] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor can execute the computer program, so that the computer device performs the description of the data processing method in the embodiment corresponding to Figure 3, Figure 5 or Figure 6 above, and therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0163] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0164] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, characterized in that: include: Obtaining a pre-downloaded service resource corresponding to a service application, and storing the pre-downloaded service resource in a terminal directory corresponding to a terminal device; the service application includes an optimization component and a service component; the pre-downloaded service resource is obtained based on a full update resource in a server; In response to a trigger operation for the business application, a resource list matching the download mode and the object business feature is obtained through the business component, and the resource list is sent to the optimization component; the object business feature is the business feature of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resource indicated by the resource configuration information belongs to the full update resource; Determine, according to the resource configuration information in the resource list, a screening matching resource in the pre-downloaded service resource, and migrate the screening matching resource from the terminal directory to the application directory corresponding to the service application; The business application is updated based on the screening matching resources in the application catalog.

2. The method according to claim 1, characterized in that: The business components include a business core component and a business update component; The responding to the triggering operation of the business application, obtaining a resource list matching the download mode and the target business characteristics through the business component, and sending the resource list to the optimization component, includes: In response to a trigger operation for the service application, sending a migration query request to the optimization component through the service core component, and instructing the optimization component to generate migration pass information based on the pre-downloaded service resources in the terminal directory through the migration query request; Receiving the migration success information returned by the optimization component through the business core component, and calling the business update component according to the migration success information; Acquire a resource list matching the download mode and the target service characteristics through the service update component, and return the resource list to the service core component; The resource list is sent to the optimization component through the business core component.

3. The method according to claim 1, characterized in that The service components include service update components; The responding to the triggering operation of the business application, obtaining a resource list matching the download mode and the target business characteristics through the business component, and sending the resource list to the optimization component, includes: In response to a trigger operation for the service application, the optimization component generates migration pass information based on the pre-downloaded service resources in the terminal directory, and calls the service update component according to the migration pass information; The service update component obtains a resource list that matches the download mode and the target service characteristics, and sends the resource list to the optimization component.

4. The method according to claim 1, characterized in that: The obtaining of the pre-downloaded service resources corresponding to the service application includes: The optimization component is called by the service application, and a full resource list including full resource configuration information corresponding to the full update resource is obtained by the optimization component; the service application and the business application are both applications running in the terminal device; The full resource list is returned to the service application through the optimization component, and the service application is instructed to download the full update resources in the server through the full resource list to obtain the pre-downloaded business resources corresponding to the business application.

5. The method according to claim 4, characterized in that The service components include service update components; The obtaining, through the service component, a resource list matching the download mode and the object service characteristics includes: Performing mode detection on the download mode of the service application by the service update component, and if the download mode is a full download mode, determining the full resource list as a resource list that matches the download mode and target service characteristics; If the download mode is a differential download mode, the full resource configuration information is screened according to the object business characteristics of the business object corresponding to the terminal device to obtain differential resource configuration information matching the object business characteristics, and a resource list matching the download mode and the object business characteristics is determined based on the differential resource configuration information.

6. The method according to claim 5, characterized in that The business application includes at least two application functions; The filtering of the full resource configuration information according to the object service characteristics of the service object corresponding to the terminal device to obtain the difference resource configuration information matching the object service characteristics includes: Obtaining usage quantities of at least two of the application functions respectively by the service object corresponding to the terminal device, and determining an application function whose usage quantity of the at least two application functions is greater than a quantity threshold as a target application function; Determine the target application function as the object business feature of the business object, and obtain resource configuration information mapped to the object business feature from the full resource configuration information; The acquired resource configuration information is determined as differential resource configuration information that matches the service characteristics of the object.

7. The method according to claim 1, characterized in that The service components include service update components; The obtaining of the pre-downloaded service resources corresponding to the service application includes: Calling the optimization component through the service application, and calling the business update component through the optimization component; the service application and the business application are both applications running in the terminal device; Obtaining a differential resource list including differential resource configuration information through the service update component, and returning the differential resource list to the optimization component; the differential resource configuration information is resource configuration information obtained by filtering the full resource configuration information corresponding to the full update resource; The optimization component returns the difference resource list to the service application, and the difference resource list instructs the service application to select resources from the full update resources in the server to obtain the difference update resources; The difference update resource is downloaded through the service application to obtain the pre-downloaded service resource corresponding to the service application.

8. The method according to claim 4, characterized in that The full resource configuration information includes resource specifications and resource addresses; The step of instructing the service application to download the full update resources in the server through the full resource list to obtain the pre-downloaded service resources corresponding to the service application includes: Determine the full resource specification corresponding to the full update resource in the server according to the resource specification; If the full resource specification is smaller than the remaining storage space of the terminal device, obtaining the full update resource corresponding to the resource address through the service application; The full update resource is downloaded to obtain the pre-downloaded service resource corresponding to the service application.

9. The method according to claim 5, characterized in that The resource configuration information in the resource list includes resource name and resource summary information; The determining and filtering matching resources in the pre-download service resources according to the resource configuration information in the resource list includes: If the resource configuration information in the resource list is full resource configuration information, resource verification is performed on the pre-download service resource according to the resource summary information to obtain a first resource verification result; if the first resource verification result indicates that the pre-download service resource verification passes, the pre-download service resource is determined as a screening matching resource; If the resource configuration information in the resource list is differential resource configuration information, the pre-download business resources are screened according to the resource name to obtain pre-download screened resources, and the pre-download screened resources are verified according to the resource summary information to obtain a second resource verification result. If the second resource verification result indicates that the pre-download screened resource verification has passed, the pre-download screened resource is determined as a screened matching resource.

10. The method according to claim 9, characterized in that The performing resource verification on the pre-download service resource according to the resource summary information to obtain a first resource verification result includes: Performing hash calculation on the pre-download service resource to obtain download summary information corresponding to the pre-download service resource, and matching the download summary information with the resource summary information; If the download summary information and the resource summary information are the same, generating a first resource verification result indicating that the pre-download service resource verification has passed; If the download summary information and the resource summary information are different, a first Resource verification results.

11. The method according to any one of claims 1 to 10, characterized in that: The updating of the business application based on the screening matching resources in the application catalog includes: Setting the application directory as a pre-download directory, and reading the screening matching resources in the pre-download directory; The business application is updated according to the screening matching resources.

12. A data processing device, characterized in that: include: A resource acquisition module, used to acquire pre-downloaded business resources corresponding to a business application, and store the pre-downloaded business resources in a terminal directory corresponding to a terminal device; the business application includes an optimization component and a business component; the pre-downloaded business resources are acquired based on the full update resources in the server; a list sending module, configured to respond to a trigger operation for the business application, obtain a resource list matching the download mode and the object business feature through the business component, and send the resource list to the optimization component; the object business feature is the business feature of the business object corresponding to the terminal device in the business application; the resource list includes resource configuration information; the business resource indicated by the resource configuration information belongs to the full update resource; A resource migration module, configured to determine, according to the resource configuration information in the resource list, screening matching resources in the pre-downloaded service resources, and migrate the screening matching resources from the terminal directory to the application directory corresponding to the service application; An application update module is used to update the business application based on the screening matching resources in the application catalog.

13. A computer device, characterized in that: include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium and is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Resource downloading method and device, electronic equipment and storage medium

    CN111698281A

  • Update file pre-downloading method, loading method, device, equipment and medium

    CN112764772A

  • Resource downloading method and device, electronic equipment and storage medium

    CN113055451A

  • Game resource field-division loading method and device, equipment and storage medium

    CN114159796A

  • Data processing method and device, computer equipment and readable storage medium

    CN116351070A