Method, apparatus, electronic device, and storage medium for data processing
By obtaining the function mapping table and matching the update mode with the available parameters on the server, the problem of micro-applications being unable to update when the server is unavailable is solved. Multiple update modes are implemented as a fallback, ensuring that micro-applications can still run normally when the server is unavailable.
Patent Information
- Application Number
- CN202410434236.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2044-04-11
AI Technical Summary
When the server is unavailable, the micro-application cannot complete resource downloads, resulting in the micro-application being inaccessible and business processes being unable to be processed.
By receiving the operation of the micro-application, the function mapping table is obtained to determine the update instruction, and the update mode is matched according to the available parameters of the first and second servers, thereby obtaining update resources from different servers or clients and realizing multiple update modes as a backup.
Ensure that micro-applications can still download updated resources when the server is unavailable, thus avoiding issues where micro-applications become inaccessible and business processes cannot be processed.
Smart Images

Figure CN118283028B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular, to a data processing method and device, electronic equipment and storage medium. BACKGROUND
[0002] In the version update scene of micro applications and the like, resources are usually downloaded from a server when it is monitored that a micro application needs to be updated, so as to run after the update operation is completed through the downloaded resources. In the related art, resource downloading depends on resources in the server, such as resources required for micro application update obtained from the server. However, when the server is unavailable, resource downloading cannot be completed, which easily leads to that the micro application cannot be accessed, and further leads to that the business cannot be processed. SUMMARY
[0003] Therefore, the embodiments of the present application provide a data processing method and device, electronic equipment and storage medium, which can solve the problem that when the server is unavailable, resource downloading cannot be completed, leading to that the micro application cannot be accessed and the business cannot be processed.
[0004] To achieve the above object, according to an aspect of the embodiments of the present application, a data processing method is provided.
[0005] The data processing method of the embodiments of the present application comprises: receiving a running operation of a micro application, obtaining a corresponding function mapping table to determine whether an update instruction of the micro application is triggered;
[0006] In response to the update instruction being triggered, obtaining available parameters of the micro application corresponding to a first server and a second server respectively to match an update mode of the micro application;
[0007] In response to the update mode being a first mode, obtaining resource information and address information of update resources from the first server to obtain the update resources from the second server based on the address information; in response to the update mode being a second mode, obtaining address information of update resources from the second server to obtain the update resources based on the address information; and in response to the update mode being a third mode, obtaining the update resources from a client depended on the micro application based on an expression of the micro application;
[0008] Updating the micro application based on the update resources, and running the updated micro application.
[0009] In one embodiment, obtaining the update resources from the client depended on the micro application based on the expression of the micro application comprises:
[0010] Obtaining attribute parameters of the micro application to call a preset generation model to generate the expression of the micro application;
[0011] obtaining an application update policy of the client relied by the micro application, matching the expression, determining the update policy corresponding to the micro application;
[0012] obtaining the update resource of the micro application based on the update policy.
[0013] In yet another embodiment, the obtaining the update resource of the micro application based on the update policy comprises:
[0014] obtaining the version information of the micro application from the server corresponding to the client;
[0015] in response to the version information being higher than the current version of the micro application, obtaining the update resource of the micro application from the server, and in response to the version information not being higher than the current version of the micro application, determining to stop the update operation.
[0016] In yet another embodiment, after the determining to stop the update operation, further comprising:
[0017] obtaining the pre-embedded version information of the micro application, comparing the pre-embedded version information with the current version, determining a target version higher than the current version, and running the application resource corresponding to the target version.
[0018] In yet another embodiment, the obtaining the corresponding function mapping table to determine whether to trigger the update instruction of the micro application comprises:
[0019] obtaining the current time of the function mapping table corresponding to the micro application, and reading the target time of the function mapping table corresponding to the micro application from the first server and / or the second server;
[0020] comparing the current time with the target time to determine whether to trigger the update instruction of the micro application.
[0021] In yet another embodiment, the obtaining the available parameters of the first server and the second server corresponding to the micro application respectively to match the update mode of the micro application comprises:
[0022] in response to the available parameter of the first server being a first value, determining that the update mode is a first mode, in response to the available parameter of the first server not being the first value and the available parameter of the second server being a second value, determining that the update mode is a second mode, and in response to the available parameter of the first server not being the first value and the available parameter of the second server not being the second value, determining that the update mode is a third mode.
[0023] To achieve the above object, according to another aspect of the embodiment of the present application, a data processing device is provided.
[0024] The data processing apparatus of the embodiment comprises: a receiving unit configured to receive a running operation of a micro application, acquire a corresponding function mapping table, and determine whether to trigger an update instruction of the micro application;
[0025] A matching unit is configured to, in response to the update instruction being triggered, acquire available parameters of the micro application corresponding to a first server and a second server respectively, and match an update mode of the micro application;
[0026] An acquiring unit is configured to, in response to the update mode being a first mode, acquire resource information and address information of an update resource from the first server, acquire the update resource from the second server based on the address information, in response to the update mode being a second mode, acquire address information of an update resource from the second server, acquire the update resource based on the address information, and in response to the update mode being a third mode, acquire the update resource from a client depended by the micro application based on an expression of the micro application.
[0027] An updating unit is configured to update the micro application based on the update resource, and run the updated micro application.
[0028] In one embodiment, the acquiring unit is specifically configured to:
[0029] Acquire an attribute parameter of the micro application, and call a preset generation model to generate an expression of the micro application;
[0030] Acquire an application update strategy of the client depended by the micro application, match the update strategy with the expression, and determine an update strategy corresponding to the micro application;
[0031] Acquire an update resource of the micro application based on the update strategy.
[0032] In another embodiment, the acquiring unit is specifically configured to:
[0033] Acquire version information of the micro application from a server corresponding to the client;
[0034] In response to the version information being higher than a current version of the micro application, acquire an update resource of the micro application from the server, and in response to the version information not being higher than the current version of the micro application, determine to stop an update operation.
[0035] In another embodiment, the apparatus further comprises:
[0036] An executing unit is configured to acquire pre-embedded version information of the micro application, compare the pre-embedded version information with the current version, determine a target version higher than the current version, and run an application resource corresponding to the target version.
[0037] In still another embodiment, the receiving unit is specifically configured to:
[0038] acquire a current time of the function mapping table corresponding to the micro application, read a target time of the function mapping table corresponding to the micro application from the first server and / or the second server;
[0039] compare the current time and the target time to determine whether to trigger an update instruction of the micro application.
[0040] In still another embodiment, the matching unit is specifically configured to:
[0041] in response to the available parameter of the first server being the first value, determine that the update mode is the first mode; in response to the available parameter of the first server not being the first value and the available parameter of the second server being the second value, determine that the update mode is the second mode; and in response to the available parameter of the first server not being the first value and the available parameter of the second server not being the second value, determine that the update mode is the third mode.
[0042] To achieve the above object, according to a further aspect of embodiments of the present application, there is provided an electronic device.
[0043] The electronic device of an embodiment of the present application comprises one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the embodiments of the present application.
[0044] To achieve the above object, according to a further aspect of embodiments of the present application, there is provided a computer readable medium.
[0045] The computer readable medium of an embodiment of the present application has a computer program stored thereon, and the program is executed by a processor to implement the data processing method provided by the embodiments of the present application.
[0046] To achieve the above object, according to a further aspect of embodiments of the present application, there is provided a computer program product.
[0047] The computer program product of an embodiment of the present application comprises a computer program, and the program is executed by a processor to implement the data processing method provided by the embodiments of the present application.
[0048] An embodiment of the above application has the following advantages or beneficial effects: in the embodiment of the application, the micro application runtime can determine whether it needs to be updated according to the function mapping table first, and after determining that it needs to be updated, the micro application can be updated according to the available parameters of the first server and the second server corresponding to the micro application respectively to match the update mode of the micro application, and then the micro application can be updated according to the different update modes of the micro application to download the update resources of the micro application, so as to facilitate the micro application update and operation. In this way, the embodiment of the application sets multiple update modes for the micro application, and determines the use of different update modes through the available parameters corresponding to different servers, so that the micro application realizes the bottom of multiple version updates, avoids the problem that when the server of the micro application is unavailable, the resource download cannot be completed, the micro application cannot be accessed, and the business cannot be processed.
[0049] The further effects of the above-mentioned non-conventional optional mode will be described in the following combined with the specific embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0050] The accompanying drawings are used to better understand the application and do not constitute undue limitations on the application. Among them:
[0051] Figure 1 is a schematic diagram of one of the main flows of the data processing method according to the embodiment of the application;
[0052] Figure 2 is a schematic diagram of another main flow of the data processing method according to the embodiment of the application;
[0053] Figure 3 is a schematic diagram of the main unit of the data processing device according to the embodiment of the application;
[0054] Figure 4 is an exemplary system architecture diagram to which the embodiment of the application can be applied;
[0055] Figure 5 is a structural schematic diagram of a computer system suitable for implementing the embodiment of the application. DETAILED DESCRIPTION
[0056] The exemplary embodiments of the application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the application to help understanding, and should be considered only as exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. Also, in order to be clear and concise, the description in the following description omits the description of well-known functions and structures.
[0057] It should be noted that, unless otherwise specified, the embodiments and features described in this invention can be combined with each other. The acquisition, transmission, storage, use, and processing of data in this application comply with relevant national laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0058] This invention provides a data processing system that can be used for scenarios involving data processing of micro-applications, specifically for scenarios involving updating micro-applications.
[0059] This invention provides a data processing method, which can be executed by a data processing system, such as... Figure 1 As shown, the method includes:
[0060] S101: Receive the micro-application's running operation, obtain the corresponding function mapping table, and determine whether to trigger the micro-application's update instruction.
[0061] When a user runs a micro-application, they can input a preset operation. This step receives the user's input and identifies whether it is a running operation. If so, the micro-application can be run. During micro-application runtime, an update check can be performed first, specifically based on the corresponding function mapping table to determine whether to trigger an update command for the micro-application.
[0062] Specifically, in this step, the current time of the function mapping table stored locally in the micro-application can be obtained, as well as the target time of the corresponding function mapping table of the micro-application can be read from the first server and / or the second server; then the current time and the target time are compared. If the target time is later than the current time, it means that the function of the micro-application has been updated. Therefore, when it is determined that the target time is later than the current time, the update instruction of the micro-application can be triggered.
[0063] It should be noted that in this embodiment of the invention, different servers are set up to provide update services for the micro-applications. Therefore, a function mapping table for the micro-applications can be set in the first and second servers. When a version update occurs in the micro-application, the function mapping table is updated, thus allowing the determination of whether the micro-application version needs to be updated based on the time information in the function mapping table. In this step, the time can specifically be a timestamp; as the content in the function mapping table changes, the corresponding timestamp will also be updated.
[0064] In the embodiment of the present application, the first server can be specifically a service server of the micro application, and the second server can be specifically a content delivery network (CDN).
[0065] S102: In response to the update instruction being triggered, available parameters of the micro application corresponding to the first server and the second server are obtained to match the update mode of the micro application.
[0066] In the embodiment of the present application, the available parameters of the first server and the second server are set to indicate whether the corresponding server is currently available, i.e., can provide update services for the micro application, for determining the update mode of the micro application.
[0067] Specifically, in the embodiment of the present application, the available parameters can be set to corresponding preset values, for example, the available parameter of the first server is a first value, indicating that the first server is available, and the available parameter of the second server is a second value, indicating that the second server is available. In the embodiment of the present application, the priority of the first server is higher than that of the second server, i.e., the first server is preferentially selected for the update service of the micro application, so the update mode of the micro application can be determined according to the available parameters of the first server and the second server.
[0068] Specifically, in the embodiment of the present application, multiple update modes can be set, for example, the first mode, the second mode and the third mode. The first mode indicates that the micro application is updated through the first server, the second mode indicates that the micro application is updated through the second server, and the third mode indicates that the micro application is updated through other ways except the first server and the second server, for example, the micro application can be updated based on the client on which the micro application depends. Therefore, this step can be specifically executed as: in response to the available parameter of the first server being the first value, it is determined that the update mode is the first mode; in response to the available parameter of the first server not being the first value and the available parameter of the second server being the second value, it is determined that the update mode is the second mode; and in response to the available parameter of the first server not being the first value and the available parameter of the second server not being the second value, it is determined that the update mode is the third mode.
[0069] S103: In response to the update mode being the first mode, resource information and address information of the update resource are obtained from the first server to obtain the update resource from the second server based on the address information; in response to the update mode being the second mode, address information of the update resource is obtained from the second server to obtain the update resource based on the address information; and in response to the update mode being the third mode, the update resource is obtained from the client on which the micro application depends based on the expression of the micro application.
[0070] For the first mode, the function mapping table of the micro application is stored in the first server, the resource required by the micro application update, i.e., the update resource, is determined through the function mapping table, the address information required when the update resource is downloaded can be generated, and therefore the resource download can be performed based on the address information. Generally, the storage of the resource package can be performed by the second server instead of the first server, and therefore the address information generated by the first server is the address information for downloading the resource from the second server, so that the update resource can be obtained from the second server. In this step, in the first mode, the resource information and the address information of the update resource can be obtained from the first server, and then the update resource can be obtained from the second server according to the address information.
[0071] It should be noted that in the embodiment of the present application, the address information can be a theft-proof address link. The resource to be downloaded obtained from the address information can include a resource package for micro application update, verification information for verification, and a resource package for decompression. The resource information can include information of the update resource, such as a resource identifier, a size, and the like.
[0072] For the second mode, the function mapping table can also be pre-stored in the second server, and in the case that the available parameter of the first server is not the first value, i.e., the first server is not available, the update resource can be obtained from the second server, i.e., if the available parameter of the second server is the second value, the update resource is obtained from the second server. Since the function mapping table is pre-stored in the second server, the update resource required by the micro application update can be determined, and since the resource for micro application update is also stored in the second server, the address information can be generated so that the update resource can be directly obtained from the second server. Meanwhile, the second server can also return the resource information of the update resource so as to facilitate the processing of the update resource.
[0073] For the third mode, in the case that the first server and the second server are not available, the third mode can be used for micro application update. The third mode means that the update is performed through the client depended by the micro application, i.e., the update resource is obtained from the client depended by the micro application based on the expression of the micro application.
[0074] Specifically, the third mode can be executed as follows: an attribute parameter of the micro application is obtained to call a preset generation model to generate an expression of the micro application; an application update strategy of the client depended by the micro application is obtained to match the expression, so as to determine the update strategy corresponding to the micro application; and the update resource of the micro application is obtained based on the update strategy.
[0075] In the embodiment of the application, the application resource of the micro application can be stored in the server corresponding to the client on which the micro application depends, and the client can be marked, that is, the update strategy of the micro application can be stored in the client to mark whether the application resource of the micro application is stored in the server through the update strategy. Therefore, in this step, the expression of the micro application can be generated according to the attribute parameter of the micro application, and then matched with the preset update strategy of the client. If the matching is successful, it indicates that the application resource of the micro application is stored in the server, that is, the update resource of the micro application can be obtained based on the update strategy; if the matching is unsuccessful, it indicates that the application resource of the micro application is not stored in the server, so that the micro application update cannot be performed through the third mode, that is, the update operation of the application can be stopped.
[0076] It should be noted that the expression generation mode can not be limited, and the specific generation model can be implemented based on a hash algorithm. When it is determined that the update resource of the micro application can be obtained through the update strategy, the version information of the micro application can be obtained from the server corresponding to the client, and compared with the current version of the micro application. If the version information in the server is higher than the current version of the micro application, the update resource of the micro application can be obtained from the server; if the version information in the server is not higher than the current version of the micro application, it can be determined to stop the update operation, that is, the version update is not performed.
[0077] In the embodiment of the application, the function mapping table and the micro application resource are stored in the second server, so that the micro application update can be implemented through the second server, and more modes are provided for the micro application update. In the case that the first server and the second server are both unavailable, the micro application update can be performed through the micro application so that the client. In the embodiment of the application, the update of the micro application is processed through multiple micro application update modes, and the comprehensive backup of the micro application update operation is implemented.
[0078] It should be noted that in the embodiment of the application, the application resource of the micro application can be pre-embedded. In the case that the micro application update cannot be implemented through the above-mentioned update modes, the pre-embedded version information of the micro application can be obtained to compare with the current version, and then the higher target version is determined to run the application resource corresponding to the target version, so that the micro application can be normally run in the case that the update operation is not completed.
[0079] S104: updating the micro application based on the update resource, and running the updated micro application.
[0080] After obtaining the update resource of the micro application, the update of the micro application can be implemented, and then the updated micro application can be run to facilitate business processing.
[0081] It should be noted that in order to adapt to the execution of the embodiments of the present application, the first server or the data care system in the embodiments of the present application can push or update the function mapping table at regular intervals, and can also support functions such as checking micro application version updates and downloading updated resources.
[0082] In the embodiments of the present application, the micro application runtime can first determine whether it needs to be updated according to the function mapping table. After determining that it needs to be updated, the micro application can match the update mode of the micro application according to the available parameters of the first server and the second server corresponding to the micro application, and then download the update resource of the micro application according to the different update modes of the micro application, so as to update and run the micro application. In this way, the embodiments of the present application set multiple update modes for the micro application, and determine the use of different update modes through the available parameters corresponding to different servers, so that the micro application realizes the bottom of multiple version updates, avoids the problem that when the server of the micro application is unavailable, the resource download cannot be completed, the micro application cannot be accessed, and the business cannot be processed.
[0083] The method for processing data in the embodiments of the present application will be described in detail below in combination with the embodiments shown in Figure 1 As shown in the figure, the method comprises the following steps. Figure 2
[0084] S201: Receive the running operation of the micro application, obtain the corresponding function mapping table, and determine whether to trigger the update instruction of the micro application.
[0085] S202: In response to the update instruction being triggered, obtain the available parameters of the first server and the second server corresponding to the micro application.
[0086] S203: In response to the available parameter of the first server being a first value, determine that the update mode is a first mode, obtain the resource information and address information of the update resource from the first server, and obtain the update resource from the second server based on the address information.
[0087] S204: In response to the available parameter of the first server not being the first value and the available parameter of the second server being a second value, obtain the address information of the update resource from the second server, and obtain the update resource based on the address information.
[0088] S205: In response to the available parameter of the first server not being the first value and the available parameter of the second server not being the second value, obtain the update resource from the client relied on by the micro application based on the expression of the micro application.
[0089] S206: Update the micro application based on the update resource, and run the updated micro application.
[0090] It should be noted that the data processing principle in the embodiments of the present application is the same as that in the embodiments of the present application. Figure 1 The corresponding data processing principles of the embodiments shown are the same, and will not be described here again.
[0091] To solve the problems in the prior art, embodiments of the present application provide a data processing apparatus 300, as shown in the figure, which comprises: Figure 3
[0092] A receiving unit 301 is configured to receive a running operation of a micro application, acquire a corresponding function mapping table, and determine whether to trigger an update instruction of the micro application;
[0093] A matching unit 302 is configured to, in response to the update instruction being triggered, acquire available parameters of the micro application corresponding to a first server and a second server respectively, and match an update mode of the micro application;
[0094] An acquiring unit 303 is configured to, in response to the update mode being a first mode, acquire resource information and address information of an update resource from the first server, acquire the update resource from the second server based on the address information, in response to the update mode being a second mode, acquire address information of an update resource from the second server, acquire the update resource based on the address information, and in response to the update mode being a third mode, acquire the update resource from a client relied on by the micro application based on an expression of the micro application;
[0095] An updating unit 304 is configured to update the micro application based on the update resource, and run the updated micro application.
[0096] It should be understood that the manner of implementing the embodiments of the present application is the same as the manner of implementing the embodiments shown, and will not be described here again. Figure 1
[0097] In one embodiment, the acquiring unit is specifically configured to:
[0098] Acquire an attribute parameter of the micro application, so as to call a preset generation model to generate an expression of the micro application;
[0099] Acquire an application update strategy of a client relied on by the micro application, so as to match the expression and determine an update strategy corresponding to the micro application;
[0100] Acquire an update resource of the micro application based on the update strategy.
[0101] In another embodiment, the acquiring unit is specifically configured to:
[0102] Acquire version information of the micro application from a server corresponding to the client;
[0103] In response to the version information being higher than the current version of the micro application, obtaining an updated resource of the micro application from the server; and in response to the version information not being higher than the current version of the micro application, determining to stop the updating operation.
[0104] In yet another embodiment, the apparatus further includes:
[0105] The running unit is configured to obtain pre-embedded version information of the micro application, compare the pre-embedded version information with the current version, determine a target version that is higher, and run an application resource corresponding to the target version.
[0106] In yet another embodiment, the receiving unit is specifically configured to:
[0107] The receiving unit is configured to obtain a current time of a function mapping table corresponding to the micro application, and read a target time of the function mapping table corresponding to the micro application from the first server and / or the second server.
[0108] The receiving unit is configured to compare the current time with the target time to determine whether to trigger an updating instruction of the micro application.
[0109] In yet another embodiment, the matching unit is specifically configured to:
[0110] In response to the available parameter of the first server being a first value, the matching unit is configured to determine that the updating mode is a first mode; in response to the available parameter of the first server not being the first value and the available parameter of the second server being a second value, the matching unit is configured to determine that the updating mode is a second mode; and in response to the available parameter of the first server not being the first value and the available parameter of the second server not being the second value, the matching unit is configured to determine that the updating mode is a third mode.
[0111] It should be understood that the manner of implementing the embodiments of the present application is the same as the manner of implementing the embodiments of the present application shown in the foregoing Figure 1 、 2 and will not be described here.
[0112] In the embodiments of the present application, the micro application runtime can determine whether to need to be updated according to the function mapping table, and after determining that the micro application needs to be updated, the micro application can be matched with an updating mode according to available parameters of the first server and the second server corresponding to the micro application, and then the micro application can be updated according to different updating modes of the micro application to download the updating resource of the micro application, so as to facilitate the updating and running of the micro application. In this way, in the embodiments of the present application, multiple updating modes are set for the micro application, and the use of different updating modes is determined according to available parameters of different servers, so that the micro application can be updated in multiple versions, and the problem that the resource download cannot be completed when the server of the micro application is unavailable, the micro application cannot be accessed, and the business cannot be processed can be avoided.
[0113] According to an embodiment of the present application, the embodiment of the present application further provides an electronic device and a readable storage medium.
[0114] The electronic device of the embodiment of the present application comprises at least one processor and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor to make the at least one processor execute the method for data processing provided by the embodiment of the present application.
[0115] Figure 4 An exemplary system architecture 400 to which the method for data processing or the apparatus for data processing of the embodiment of the present application can be applied is shown.
[0116] As shown in Figure 4 The system architecture 400 can comprise terminal devices 401, 402, 403, a network 404 and a server 405. The network 404 is a medium for providing a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 can comprise various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0117] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various client applications can be installed on the terminal devices 401, 402, 403.
[0118] The terminal devices 401, 402, 403 can be, but are not limited to, smart phones, tablet computers, laptop computers and desktop computers, etc.
[0119] The server 405 can be a server providing various services, which can analyze and process the received product information query request and other data, and feed back the processing result (such as product information - only as an example) to the terminal device.
[0120] It should be noted that the method for data processing provided by the embodiment of the present application is generally executed by the server 405, and correspondingly, the apparatus for data processing is generally arranged in the server 405.
[0121] It should be understood that Figure 4 the number of terminal devices, networks and servers in
[0122] Reference is made to Figure 5 which shows a structural schematic diagram of a computer system 500 suitable for implementing the embodiment of the present application. Figure 5The computer system shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0123] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0124] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.
[0125] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.
[0126] It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component. In the present application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0127] The flow diagrams and block diagrams in the drawings are schematic representations for purposes of illustration and are not necessarily drawn to scale, nor are the diagrams necessarily precise representations of the processes, systems and / or apparatuses they depict. Specifically, the flow diagrams and block diagrams illustrate the possible architectures, functional and operational processes and steps that can be taken by a system, method or computer program product according to various embodiments of the present application. In this regard, each block in the flow diagrams and block diagrams can represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions ("instructions"). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
[0128] The units described in the embodiments of the present application can be implemented by software, or by hardware. The units described can also be implemented in a processor, for example, a processor can be described as including a receiving unit, a matching unit, an obtaining unit and an updating unit. In some cases, the names of the units do not constitute a limitation on the units themselves, for example, the receiving unit can also be described as a "unit for receiving functions".
[0129] As another aspect, the present application also provides a computer readable medium, which can be included in the device described in the above embodiments, or can exist separately and not be assembled into the device. The computer readable medium carries one or more programs, which, when executed by the device, enable the device to perform the data processing method provided by the present application.
[0130] As another aspect, the present application also provides a computer program product, which includes a computer program, and the program, when executed by a processor, implements the data processing method provided by the embodiments of the present application.
[0131] The specific embodiments described above do not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made depending on design requirements and other factors. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method of data processing, characterized by, The method comprises the following steps: receiving a running operation of a micro application, obtaining a corresponding function mapping table to determine whether to trigger an update instruction of the micro application; in response to the update instruction being triggered, obtaining available parameters of the micro application corresponding to a first server and a second server respectively to match an update mode of the micro application; in response to the update mode being a first mode, obtaining resource information and address information of an update resource from the first server to obtain the update resource from the second server based on the address information; in response to the update mode being a second mode, obtaining address information of an update resource from the second server to obtain the update resource based on the address information; in response to the update mode being a third mode, obtaining the update resource from a client relied on by the micro application based on an expression of the micro application; updating the micro application based on the update resource and running the updated micro application; obtaining the update resource from the client relied on by the micro application based on the expression of the micro application, comprising: obtaining attribute parameters of the micro application to call a preset generation model to generate the expression of the micro application; obtaining an application update strategy of the client relied on by the micro application to match the expression to determine an update strategy corresponding to the micro application; obtaining an update resource of the micro application based on the update strategy.
2. The method of claim 1, wherein, obtaining an update resource of the micro application based on the update strategy, comprising: obtaining version information of the micro application from a server corresponding to the client; in response to the version information being higher than a current version of the micro application, obtaining an update resource of the micro application from the server; in response to the version information not being higher than the current version of the micro application, determining to stop an update operation.
3. The method of claim 2, wherein, after the determination to stop the update operation, further comprising: obtaining pre-buried version information of the micro application to compare with the current version to determine a target version higher than the current version to run an application resource corresponding to the target version.
4. The method of claim 1, wherein, the obtaining of the corresponding function mapping table to determine whether to trigger the update instruction of the micro application, comprising: obtaining a current time of the function mapping table corresponding to the micro application, reading a target time of the function mapping table corresponding to the micro application from the first server and / or the second server; comparing the current time with the target time to determine whether to trigger the update instruction of the micro application.
5. The method of claim 1, wherein, obtaining available parameters of the micro application corresponding to the first server and the second server respectively to match the update mode of the micro application, comprising: in response to the available parameters of the first server being a first value, determining that the update mode is the first mode; in response to the available parameters of the first server not being the first value and the available parameters of the second server being a second value, determining that the update mode is the second mode; in response to the available parameters of the first server not being the first value and the available parameters of the second server not being the second value, determining that the update mode is the third mode.
6. An apparatus for data processing, characterized by The method comprises the following steps: a receiving unit is configured to receive a running operation of a micro application, obtain a corresponding function mapping table, and determine whether to trigger an update instruction of the micro application; A matching unit is configured to, in response to the update instruction being triggered, acquire available parameters of the micro application corresponding to a first server and a second server respectively, to match an update mode of the micro application; An acquiring unit is configured to, in response to the update mode being a first mode, acquire resource information and address information of an update resource from the first server, to acquire the update resource from the second server based on the address information; in response to the update mode being a second mode, acquire address information of an update resource from the second server, to acquire the update resource based on the address information; in response to the update mode being a third mode, acquire the update resource from a client depended by the micro application based on an expression of the micro application; An updating unit is configured to update the micro application based on the update resource, and run the updated micro application. The acquiring unit is specifically configured to: acquire attribute parameters of the micro application, to call a preset generation model to generate an expression of the micro application; acquire an application update strategy of the client depended by the micro application, to match the expression, to determine an update strategy corresponding to the micro application; acquire an update resource of the micro application based on the update strategy.
7. The apparatus of claim 6, wherein, The acquiring unit is specifically configured to: acquire version information of the micro application from a server corresponding to the client; in response to the version information being higher than a current version of the micro application, acquire an update resource of the micro application from the server; in response to the version information not being higher than the current version of the micro application, determine to stop an update operation.
8. An electronic device, comprising: comprise: one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-5.
9. A computer readable medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the method of any one of claims 1-5.
10. A computer program product comprising a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-5.
Citation Information
Patent Citations
Module downloading method and device
CN113347218A
Configuration data updating method and device, electronic equipment and computer readable medium
CN115361279A