Data processing method, device, computer equipment and readable storage medium
By pre-downloading business resources and filtering and matching resources based on configuration information, the problem of low application update efficiency in the existing technology is solved, and fast and efficient application updates are achieved.
Patent Information
- Application Number
- CN202310291538.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2043-03-17
AI Technical Summary
Existing application update methods require a long time to download large files, resulting in inefficient application updates.
By pre-downloading business resources and filtering matching resources based on the configuration information in the resource list, migrating them to the application directory, and directly performing application updates, avoiding the step of waiting for download.
Improve the efficiency of application updates, reduce update time, reduce user waiting time, and improve user experience.
Smart Images

Figure CN116351070B_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] 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. Summary of the Invention
[0003] 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.
[0004] On the one hand, an embodiment of the present application provides a data processing method, including:
[0005] 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;
[0006] 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;
[0007] 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;
[0008] Update business applications based on filtered matching resources in the application catalog.
[0009] In one aspect, an embodiment of the present application provides a data processing device, including:
[0010] The resource acquisition module is used to obtain the 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 the optimization component and the business component; the pre-downloaded business resources are obtained based on the full update resources in the server;
[0011] The list sending module is used to respond to trigger operations for business applications, obtain a resource list that matches the download mode and 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 are fully updated resources;
[0012] A resource migration module is used to determine the screening matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and migrate the screening matching resources from the terminal directory to the application directory corresponding to the business application;
[0013] The application update module is used to update business applications based on the filtered matching resources in the application catalog.
[0014] Among them, business components include business core components and business update components;
[0015] The list sending module 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;
[0016] 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;
[0017] The list sending module is specifically used to obtain a resource list that matches the download mode and the target service characteristics through the service update component, and return the resource list to the service core component;
[0018] The list sending module is specifically used to send the resource list to the optimization component through the business core component.
[0019] Among them, the business components include business update components;
[0020] The list sending module 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;
[0021] The list sending module is specifically used to obtain a resource list that matches the download mode and the object service characteristics through the service update component, and send the resource list to the optimization component.
[0022] The resource acquisition module includes:
[0023] The first return unit is configured to call the optimization component through the service application, and obtain, through the optimization component, a full resource list including full resource configuration information corresponding to the full update resource; the service application and the business application are both applications running on the terminal device;
[0024] The first downloading unit 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 updated resources in the server through the full resource list to obtain the pre-downloaded business resources corresponding to the business application.
[0025] Among them, the business components include business update components;
[0026] The list sending module includes:
[0027] a first determining unit configured to perform a mode detection on a download mode of a service application through a service update component, and if the download mode is a full download mode, determine the full resource list as a resource list that matches the download mode and target service characteristics;
[0028] The second determination unit 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 a resource list that matches the download mode and the object business characteristics based on the differential resource configuration information.
[0029] Wherein, the business application includes at least two application functions;
[0030] The second determining unit is specifically configured to obtain usage counts of at least two application functions of the service object corresponding to the terminal device, and determine an application function whose usage count of the at least two application functions is greater than a threshold as a target application function;
[0031] The second determining unit is specifically configured to determine the target application function as an object business feature of the business object, and obtain resource configuration information mapped to the object business feature from the full resource configuration information;
[0032] The second determining unit is specifically configured to determine the acquired resource configuration information as differential resource configuration information that matches the target service characteristics.
[0033] Among them, the business components include business update components;
[0034] The resource acquisition module includes:
[0035] The second return unit is configured 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 on the terminal device;
[0036] The second returning unit is configured to obtain a differential resource list including differential resource configuration information through the service update component, and return 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;
[0037] The second downloading unit is configured 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 resources;
[0038] The second downloading unit is configured to download the difference update resource through the service application to obtain the pre-downloaded service resource corresponding to the service application.
[0039] Among them, the full resource configuration information includes resource specifications and resource addresses;
[0040] The first downloading unit is specifically configured to determine the full resource specification corresponding to the full update resource in the server according to the resource specification;
[0041] The first downloading unit is specifically configured to obtain the full update resource corresponding to the resource address through the service application if the full resource specification is smaller than the remaining storage space of the terminal device;
[0042] The first downloading unit is specifically configured to download the full update resource and obtain the pre-downloaded service resource corresponding to the service application.
[0043] The resource configuration information in the resource list includes resource name and resource summary information;
[0044] The resource migration module includes:
[0045] a first verification unit 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; and if the first resource verification result indicates that the pre-download service resource has passed verification, determine the pre-download service resource as a screened matching resource;
[0046] The second verification unit is used to perform resource screening on the pre-download business resources according to the resource name if the resource configuration information in the resource list is differential resource configuration information to obtain pre-download screening resources, perform resource verification on the pre-download screening resources 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 screening resource verification has passed, determine the pre-download screening resource as a screening matching resource.
[0047] The first verification unit is specifically configured to perform 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;
[0048] a first verification unit, 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 identical;
[0049] The first verification unit 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.
[0050] 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;
[0051] The application update module is specifically used to update business applications based on filtered matching resources.
[0052] In one aspect, an embodiment of the present application provides a computer device, including: a processor and a memory;
[0053] 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.
[0054] 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.
[0055] 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.
[0056] In an embodiment of the present application, a computer device can obtain pre-downloaded business resources corresponding to a business application, store the pre-downloaded business resources in a terminal directory corresponding to a terminal device, and then respond to a trigger operation for the business application, obtain a resource list that matches the download mode and the object business characteristics through the business component of the business application, and send the resource list to the optimization component of the business application. Among them, the pre-downloaded business resources are obtained based on the full update resources in the server, and 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, and the business resources indicated by the resource configuration information belong to the full update resources. Furthermore, the computer device can determine the filter matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, migrate the filter matching resources from the terminal directory to the application directory corresponding to the business application, and then perform an application update on the business application based on the filter matching resources in the application directory. 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0058] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0059] Figure 2 This is a schematic diagram of a data interaction scenario provided by an embodiment of the present application;
[0060] Figure 3 This is a flow chart of a data processing method provided in an embodiment of the present application;
[0061] Figure 4a This is a schematic diagram of a component interaction scenario provided by an embodiment of the present application;
[0062] Figure 4b This is a schematic diagram of a component interaction scenario provided by an embodiment of the present application;
[0063] Figure 5 This is a flow chart of a data processing method provided in an embodiment of the present application;
[0064] Figure 6 This is a flow chart of a data processing method provided in an embodiment of the present application;
[0065] Figure 7 is a structural diagram of a data processing device provided in an embodiment of the present application;
[0066] Figure 8 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] 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.
[0068] For details, see Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a server 2000 and a terminal device cluster. Specifically, the terminal device cluster may include one or more terminal devices, and the number of terminal devices in the terminal device cluster is not limited here. Figure 1 As shown, the 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 respectively 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.
[0069] Each terminal device in the terminal device cluster may include: smart phones, tablet computers, laptop computers, desktop computers, intelligent voice interaction devices, smart home appliances (e.g., smart TVs), wearable devices, vehicle terminals, aircraft, and other intelligent terminals with data processing capabilities. Figure 1 Each terminal device in the terminal device cluster shown can be installed with an application client with data processing function. When the application client runs in each terminal device, it can communicate with the above-mentioned Figure 1 Data is exchanged between the servers 2000 shown in the figure. Among them, the application client may specifically include: a car 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 into a client (for example, a social client), or the application client can be an independent client (for example, a news client). The embodiment of the present application does not limit the type of the application client.
[0070] For ease of understanding, the embodiments of the present application can be Figure 1 Select one terminal device from the multiple terminal devices shown as the target terminal device. For example, the embodiment of the present application can Figure 1 The terminal device 3000a shown is used as the target terminal device, and an application client with data processing function can be installed in the target terminal device. At this time, the target terminal device can realize data interaction with the server 2000 through the application client.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] For further understanding, please refer to Figure 2 , Figure 2 This is a schematic diagram of a data interaction scenario provided by an embodiment of the present application. Figure 2 The server 20a shown may be the above Figure 1 The server 2000 in the corresponding embodiment is as follows: Figure 2 The terminal device 20b shown can be the above Figure 1 In the corresponding embodiment, the target terminal device, the user corresponding to the terminal device 20b can be the business object 20c. For ease of understanding, the embodiment of the present application is described by taking the data processing method executed by the terminal device 20b as an example.
[0076] like Figure 2 The application database 21a shown may store fully updated resources for the application client in the terminal device 20b. The application client in the terminal device 20b may include a business application, and the application database 21a may store fully updated resources for the business application. The application database 21a may be provided separately or integrated with the server 20a, or integrated with other devices or the cloud, without limitation.
[0077] like Figure 2 As shown, 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 in the full update resources (i.e., the update resources for the business object 20c in the full update resources). This application does not limit this.
[0078] 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.
[0079] like Figure 2As shown, 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 triggering operation on a business application in terminal device 20b, terminal device 20b can respond to the triggering 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.
[0080] 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.
[0081] Furthermore, if Figure 2 As shown, terminal device 20b can determine the screening matching resources in the pre-downloaded service resources based on the resource configuration information in resource list 23b, and migrate the screening matching resources from terminal directory 22a to application directory 22b corresponding to the service application. Specifically, when the pre-downloaded service resources are full update resources, the screening matching resources can be full update resources determined in the full update resources based on the full resource configuration information, or can be differential update resources determined in the full update resources based on the differential resource configuration information. Optionally, when the pre-downloaded service resources are differential update resources, the screening matching resources can be differential update resources determined in the differential update resources based on the differential resource configuration information.
[0082] Furthermore, if Figure 2 As shown, the terminal device 20b can update the business application based on the screening matching resources in the application directory 22b to obtain the updated business application, so that the business object 20c can quickly use the updated business application through the terminal device 20b.
[0083] 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.
[0084] Further, see Figure 3 , Figure 3 This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, a terminal device, or a server and a terminal device together. The server can be the above-mentioned Figure 2 The server 20a in the corresponding embodiment, the terminal device can be the above Figure 2 The terminal device 20b of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the terminal device as an example for explanation. Among them, the data processing method may include the following steps S101-step S104:
[0085] 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;
[0086] 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).
[0087] When the business application is a game client, the optimization component can refer to the TGPA component (Tencent GamePerformance 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.
[0088] Among them, the pre-downloaded business resources are obtained based on the full update resources in the server. The full update resources may include differential update resources. The pre-downloaded business resources can be obtained by downloading the full update resources or by downloading the differential update resources. The specific process of the terminal device downloading the full update resources and obtaining the pre-downloaded business resources corresponding to the business application can be referred to below. Figure 5 The description of step S201-step S202 in the corresponding embodiment. The specific process of the terminal device downloading the difference update resource and obtaining the pre-downloaded service resource corresponding to the service application can be referred to below. Figure 6 The description of steps S301 to S304 in the corresponding embodiment.
[0089] 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.
[0090] 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;
[0091] 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.
[0092] The specific process of interaction between optimization components, business core components and business update components can be found in Figure 4a , Figure 4aThis is a schematic diagram of a scenario for component interaction provided by an embodiment of the present application. Figure 4a As shown, business application 40a may include an optimization component and a business component 40b, and 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 may execute steps S41 to S45. The business core component may serve as an intermediate information transmitter to implement full download (or differential download) and full migration (or differential migration).
[0093] like Figure 4a As shown, 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.
[0094] Furthermore, if Figure 4a As shown, 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.
[0095] Furthermore, if Figure 4a As shown, the terminal device can execute step S45. In step S45, the terminal device can send the resource list to the optimization component through the business core component. In this way, the terminal device can receive the resource list sent by the business core component through the optimization component.
[0096] 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.
[0097] 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.
[0098] The specific process of interaction between the optimization component and the business update component can be found in Figure 4b , Figure 4b This is a schematic diagram of a scenario for component interaction provided by an embodiment of the present application. Figure 4b As shown, business application 41a may include an optimization component and a business component 41b. 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 and S52. The optimization component always interacts with the business update component to implement full download (or differential download) and full migration (or differential migration).
[0099] like Figure 4b As shown, 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.
[0100] Furthermore, if Figure 4b As shown, the terminal device may execute step S51. In step S51, the terminal device may send the resource list to the optimization component via the service update component. In this way, the terminal device may receive the resource list sent by the service update component via the optimization component.
[0101] 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.
[0102] 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.
[0103] 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;
[0104] 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.
[0105] 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 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 obtained by downloading the full update resource, and the pre-download service resource and the full update resource are different.
[0106] 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.
[0107] 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 has passed, then the pre-download service resource is obtained by downloading the full update resource, and the pre-download service resource and the full update resource are the same; alternatively, the pre-download service resource is obtained by downloading the differential update resource, and the pre-download service 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 has failed, then the pre-download service resource is obtained by downloading the full update resource, and the pre-download service resource and the full update resource are different; alternatively, the pre-download service resource is obtained by downloading the differential update resource, and the pre-download service resource and the differential update resource are different. It is understood that if the pre-download service resource is obtained by downloading the full update resource, the terminal device can obtain the pre-download screening resource that matches the differential resource configuration information from the full update resource based on the resource name; alternatively, if the pre-download service resource is obtained by downloading the differential update resource, the terminal device can determine the pre-download service resource as the pre-download screening resource that matches the differential resource configuration information.
[0108] 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.
[0109] 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.
[0110] 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 (MD5 Message-Digest Algorithm) to ensure the integrity and consistency of information transmission. That is, the terminal device can perform hash calculation using the MD5 message digest algorithm.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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).
[0115] Step S104: updating the business application based on the filtered matching resources in the application catalog.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] Further, see Figure 5 , Figure 5This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, a terminal device, or a server and a terminal device together. The server can be the above-mentioned Figure 2 The server 20a in the corresponding embodiment, the terminal device can be the above Figure 2 The terminal device 20b of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the terminal device as an example for explanation. Among them, the data processing method may include the following steps S201-S204:
[0120] 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;
[0121] 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.
[0122] 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;
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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.
[0127] 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;
[0128] 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).
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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 with a usage quantity greater than the quantity threshold among the at least two application functions 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. Further, the terminal device can determine the obtained resource configuration information as differential resource configuration information that matches the object business characteristic.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] The specific process of the terminal device verifying the pre-downloaded service resources according to the resource summary information can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.
[0141] 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.
[0142] The specific process of the terminal device screening the pre-download service resources according to the resource name and verifying the pre-download screening resources according to the resource summary information can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] 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).
[0147] 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).
[0148] 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.
[0149] Further, see Figure 6 , Figure 6 This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, a terminal device, or a server and a terminal device together. The server can be the above-mentioned Figure 2 The server 20a in the corresponding embodiment, the terminal device can be the above Figure 2 The terminal device 20b of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the terminal device as an example for explanation. Among them, the data processing method may include the following steps S301-step S306:
[0150] Step S301: calling the optimization component through the service application, and calling the business update component through the optimization component;
[0151] Among them, service applications and business applications are applications running on terminal devices.
[0152] 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;
[0153] The differential resource configuration information is the resource configuration information obtained by filtering the full resource configuration information corresponding to the full update resource. The specific process of the terminal device filtering the full resource configuration information corresponding to the full update resource to obtain the differential resource configuration information can be found in the above. Figure 5 The description of step S203 in the corresponding embodiment will not be repeated here.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] Step S304: Download the difference update resources through the service application to obtain the pre-downloaded service resources corresponding to the service application;
[0158] 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.
[0159] The specific process of the terminal device determining the difference resource specifications corresponding to the difference update resources can be found in the above Figure 5 The description of determining the full resource specifications corresponding to the full update resources in the corresponding embodiment will not be repeated here. Among them, 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.
[0160] 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;
[0161] 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).
[0162] 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.
[0163] 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.
[0164] The terminal device verifies the pre-downloaded service resources according to the resource summary information (ie, the resource summary information in the difference resource configuration information) and obtains the specific process of the third resource verification result. Figure 3 In the corresponding embodiment, resource verification is performed on the pre-download service resource according to the resource summary information (ie, the resource summary information in the full resource configuration information) to obtain a description of the first resource verification result, which will not be repeated here.
[0165] 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 found in the above Figure 3 In the corresponding embodiment, the pre-downloaded business resources are verified according to 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), and a description of the first resource verification result is obtained, which will not be repeated here.
[0166] 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.
[0167] 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.
[0168] 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.
[0169] 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.
[0170] Further, see Figure 7 , Figure 7 1 is a 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;
[0171] 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;
[0172] The resource acquisition module 11 includes: a first returning unit 111, a first downloading unit 112;
[0173] The first return unit 111 is configured 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 resource through the optimization component; the service application and the business application are both applications running on the terminal device;
[0174] The first downloading 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 updated resources in the server through the full resource list to obtain the pre-downloaded business resources corresponding to the business application.
[0175] Among them, the full resource configuration information includes resource specifications and resource addresses;
[0176] The first downloading unit 112 is specifically configured to determine the full resource specification corresponding to the full update resource in the server according to the resource specification;
[0177] The first downloading unit 112 is specifically configured to obtain the full update resource corresponding to the resource address through the service application if the full resource specification is smaller than the remaining storage space of the terminal device;
[0178] The first downloading unit 112 is specifically configured to download the full update resource and obtain the pre-downloaded service resource corresponding to the service application.
[0179] The specific implementation of the first return unit 111 and the first download unit 112 can be found in the above Figure 5 The description of step S201-step S202 in the corresponding embodiment will not be repeated here.
[0180] Among them, the business components include business update components;
[0181] The resource acquisition module 11 includes: a second returning unit 113, a second downloading unit 114;
[0182] The second return unit 113 is configured 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;
[0183] The second returning unit 113 is configured to obtain a differential resource list including differential resource configuration information through the service update component, and return 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;
[0184] The second downloading unit 114 is configured 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 resources;
[0185] The second downloading unit 114 is configured to download the difference update resource through the service application to obtain the pre-downloaded service resource corresponding to the service application.
[0186] The specific implementation of the second return unit 113 and the second download unit 114 can be found in the above Figure 6 The description of steps S301 to S304 in the corresponding embodiment will not be repeated here.
[0187] 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;
[0188] Among them, the business components include business update components;
[0189] The list sending module 12 includes: a first determining unit 121, a second determining unit 122;
[0190] The first determining unit 121 is configured to perform a mode detection on the download mode of the service application through the service update component, and if the download mode is a full download mode, determine the full resource list as a resource list that matches the download mode and the target service characteristics;
[0191] 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 a resource list that matches the download mode and the object business characteristics based on the differential resource configuration information.
[0192] Wherein, the business application includes at least two application functions;
[0193] The second determining unit 122 is specifically configured to obtain usage counts of at least two application functions of the service object corresponding to the terminal device, and determine an application function whose usage count of the at least two application functions is greater than a threshold as a target application function;
[0194] The second determining unit 122 is specifically configured to 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;
[0195] The second determining unit 122 is specifically configured to determine the acquired resource configuration information as differential resource configuration information that matches the target service characteristics.
[0196] The specific implementation of the first determining unit 121 and the second determining unit 122 can be found in the above Figure 5 The description of step S203 in the corresponding embodiment will not be repeated here.
[0197] Among them, business components include business core components and business update components;
[0198] The list sending module 12 is specifically configured to respond to a trigger operation for a 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 pre-downloaded business resources in the terminal directory through the migration query request;
[0199] The list sending module 12 is specifically configured 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;
[0200] The list sending module 12 is specifically used to obtain a resource list that matches the download mode and the target service characteristics through the service update component, and return the resource list to the service core component;
[0201] The list sending module 12 is specifically configured to send the resource list to the optimization component via the business core component.
[0202] Among them, the business components include business update components;
[0203] The list sending module 12 is specifically used to respond to the trigger operation for the 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;
[0204] The list sending module 12 is specifically configured to obtain a resource list that matches the download mode and target service characteristics through the service update component, and send the resource list to the optimization component.
[0205] The resource migration module 13 is used to determine the screening matching resources in the pre-downloaded business resources according to the resource configuration information in the resource list, and migrate the screening matching resources from the terminal directory to the application directory corresponding to the business application;
[0206] The resource configuration information in the resource list includes resource name and resource summary information;
[0207] The resource migration module 13 includes: a first verification unit 131, a second verification unit 132;
[0208] A 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 passes, determine the pre-download service resource as a screened matching resource;
[0209] 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;
[0210] 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;
[0211] 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.
[0212] The second verification unit 132 is used to perform resource screening on the pre-download business resources according to the resource name if the resource configuration information in the resource list is differential resource configuration information to obtain pre-download screening resources, perform resource verification on the pre-download screening resources 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 screening resource verification has passed, determine the pre-download screening resource as a screening matching resource.
[0213] The specific implementation of the first verification unit 131 and the second verification unit 132 can be found in the above Figure 3 In the corresponding embodiment, step S103 and Figure 5 The description of step S204 in the corresponding embodiment will not be repeated here.
[0214] The application update module 14 is configured to update the business application based on the screening and matching resources in the application catalog.
[0215] The application update module 14 is specifically used to set the application directory as a pre-download directory and read the screening matching resources in the pre-download directory;
[0216] The application update module 14 is specifically configured to update the business application according to the screened matching resources.
[0217] The specific implementation 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 above Figure 3 In the corresponding embodiment, steps S101 to S104, Figure 5 In the corresponding embodiment, steps S201 to S204, and Figure 6 The description of steps S301 to S306 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0218] Further, see Figure 8 , Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a terminal device or a server. Figure 8As shown, 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. The communication bus 1002 is used to realize the connection and communication between these components. 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 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 Figure 8 As shown, 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.
[0219] In such Figure 8 In the computer device 1000 shown, 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:
[0220] 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;
[0221] 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;
[0222] 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;
[0223] Update business applications based on filtered matching resources in the application catalog.
[0224] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3、 Figure 5 or Figure 6 The description of the data processing method in the corresponding embodiment can also be performed as described above. Figure 7 The description of the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0225] In addition, it should be noted that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores the computer program executed by the data processing device 1 mentioned above. When the processor executes the computer program, it can execute the above-mentioned Figure 3 、 Figure 5 or Figure 6 Therefore, the description of the data processing method in the corresponding embodiment 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-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0226] 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 may execute the computer program, so that the computer device performs the above Figure 3 、 Figure 5 or Figure 6 Therefore, the description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here. For technical details not disclosed in the computer program product embodiments involved in this application, please refer to the description of the method embodiments of this application.
[0227] 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).
[0228] 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: Before the time point of officially releasing the full update resources of the updated business application, obtaining, by the service application during the idle time of the terminal device, the pre-downloaded business resources corresponding to the business application from the server corresponding to the service application, the service application including an application store, the pre-downloaded business resources in the server corresponding to the service application are from an application database, and the application database stores the full update resources of the business application to be officially released; storing the pre-downloaded service resources in a terminal directory corresponding to the terminal device through the service application; the service application includes an optimization component and a service component; the service application belongs to an application type installed in the terminal device; If the trigger operation for responding to the business application occurs after the time node of the official release of the full update resource for updating the business application, a resource list matching the download mode and the target business characteristics is obtained through the business component, and the resource list is sent 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 from the full update resources; Determine, according to the resource configuration information in the resource list, a screening matching resource in the pre-downloaded service resources, 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 business core components and business 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, 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, through the business core component, the migration success information returned by the optimization component, and calling the business update component according to the migration success information; Obtaining a resource list that matches the download mode and the target service characteristics through the service update component, and returning 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 business components include 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, generating migration pass information based on the pre-downloaded service resources in the terminal directory through the optimization component, and calling 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, wherein The obtaining of pre-downloaded service resources corresponding to the service application includes: Calling the optimization component through a service application, and obtaining a full resource list including full resource configuration information corresponding to the full update resource through the optimization component; the service application and the business application are both applications running on the terminal device; The optimization component returns the full resource list to the service application, and the full resource list instructs the service application to download the full update resources in the server to obtain the pre-downloaded business resources corresponding to the business application.
5. The method according to claim 4, characterized in that The business components include a business update component; The obtaining of a resource list matching the download mode and the object service characteristics through the service component 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 that matches the object business characteristics, and a resource list that matches 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 differential resource configuration information matching the object service characteristics includes: Obtaining usage counts of at least two of the application functions by the service object corresponding to the terminal device, and determining an application function whose usage count of the at least two application functions is greater than a threshold as a target application function; Determining the target application function as the object business feature of the business object, and acquiring 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 business components include a business update component; The obtaining of 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 instructs the service application to select the full update resources in the server through the difference resource list 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 from the server through the full resource list to obtain the pre-downloaded service resources corresponding to the service application includes: Determine the full resource specifications corresponding to the full update resources in the server according to the resource specifications; 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, performing 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 has passed verification, determining the pre-download service resource as a screening matching resource; If the resource configuration information in the resource list is differential resource configuration information, the pre-download business resource is screened according to the resource name to obtain a pre-download screened resource, and the pre-download screened resource is 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 a 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 result is generated to indicate that the pre-download service resource verification fails.
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, configured to acquire, through a service application during idle time of a terminal device, pre-downloaded business resources corresponding to the business application from a server corresponding to the service application before the time point at which the full update resources of the updated business application are officially released, wherein the service application includes an application store, and the pre-downloaded business resources in the server corresponding to the service application are from an application database, which stores the full update resources of the business application to be officially released and updated; The resource acquisition module is further configured to store the pre-downloaded service resources in a terminal directory corresponding to the terminal device through the service application; the service application includes an optimization component and a service component; and the service application belongs to an application type installed in the terminal device; a list sending module configured to obtain, through the business component, a resource list that matches the download mode and the object service characteristics, and send the resource list to the optimization component if a response to a trigger operation for the business application occurs after the time node of the official release of the full update resource for updating the business application; the object service characteristics are the service 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 from 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 includes a computer program, which is stored in a computer-readable storage medium and is suitable for being read and executed by a processor, so as to enable a computer device having the processor to perform the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Intelligent game resource configuration method and system, computer storage medium and equipment
CN111375200A
Application program starting method and device, medium and electronic equipment
CN112379933A