Application program control method and device, application program development method and device
By obtaining the configuration file and resource package of the target application based on user identity information, determining the mapping relationship between functions and client components and calling the components, the problem of low application running efficiency under the Android native system is solved, and high efficiency, fluency and personality are achieved. display.
Patent Information
- Application Number
- CN202111132620.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-26
AI Technical Summary
The existing technology lacks a low-code development method based on the native system, resulting in low efficiency of applications running in the Android native system environment and the inability to achieve independent content management.
Obtain the configuration file and resource package of the target application by responding to the user identity information in the loading request, determine the mapping relationship between functions and client components, and call the corresponding components in sequence to achieve the target function, including obtaining local resource packages, updating resource packages, Use of permission verification and interception components.
It improves the running efficiency and fluency of applications under the Android native system and realizes personalized page display.
Smart Images

Figure CN113805973B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology and finance, and more specifically, to an application control method, an application control device, an application development method, an application development device, an electronic device, a readable storage medium, and a computer program product. Background Art
[0002] With the rapid development of mobile Internet, mobile application development technology has been iterated and updated at a high speed, resulting in a decrease in the effectiveness of technology reserves. Therefore, low-code development is needed to reduce the negative impact of technology updates on development work.
[0003] In the process of implementing the concepts disclosed herein, the inventors discovered that there are at least the following problems in the related art: the related art lacks a low-code development method based on the native system, so that the application obtained by the low-code development method of the related art cannot achieve autonomous content management, and has low operating efficiency in the native system environment. Summary of the invention
[0004] In view of this, the present disclosure provides an application control method, apparatus, device, storage medium, and program product.
[0005] A first aspect of the present disclosure provides an application control method, comprising:
[0006] In response to a loading request for requesting to load a target application, obtaining a configuration file and a target resource package of the target application based on the identity information of the user carried in the loading request, wherein the target resource package includes a plurality of client components;
[0007] Determining a mapping relationship between each function of the target application and the plurality of client components based on the configuration file; and
[0008] In response to an operation instruction for implementing a target function, a plurality of target client components corresponding to the target function are called in sequence to control the target application to implement the target function.
[0009] According to an embodiment of the present disclosure, the step of acquiring the configuration file and the target resource package of the target application based on the user identity information carried in the loading request includes:
[0010] Obtaining a local resource package of the target application;
[0011] Determining a customer group label of the user based on the identity information of the user;
[0012] Obtaining server resource version information corresponding to the customer group tag;
[0013] Use the server-side resource version information to update the local resource package to obtain the target resource package; and
[0014] Based on the server resource version information, the configuration file is obtained from the server.
[0015] According to an embodiment of the present disclosure, the customer group labels include ordinary customer groups and gray customer groups;
[0016] The acquiring of the server resource version information corresponding to the customer group tag includes:
[0017] Determining the type of the customer group label;
[0018] In the case where it is determined that the customer group label is a common customer group, using the version information of the default resource package in the server as the server resource version information; and
[0019] When it is determined that the customer group label is a grayscale customer group, the version information of the grayscale resource package corresponding to the grayscale customer group in the server is used as the server resource version information.
[0020] According to an embodiment of the present disclosure, the server resource version information includes a server resource version number, and the local resource package has a local resource version number;
[0021] Wherein, the using the server resource version information to update the local resource package to obtain the target resource package includes:
[0022] Based on the server resource version number and the local resource version number, obtaining a differential data packet from the server, wherein the differential data packet includes inconsistent data in the server resource packet corresponding to the server resource version number and the local resource packet; and
[0023] The local resource package is updated using the differential data package to obtain the target resource package.
[0024] According to an embodiment of the present disclosure, the target functions include a page jump function for jumping to a target page, a communication function for realizing information interaction, and a service calling function for calling a target service.
[0025] According to an embodiment of the present disclosure, the plurality of client components include an interception component;
[0026] Before sequentially calling a plurality of target client components corresponding to the target functions, the method further includes:
[0027] Based on the identity information of the user, verify the authority of the user;
[0028] When it is determined that the user has passed the authority verification, calling a plurality of target client components corresponding to the target functions in sequence;
[0029] If it is determined that the user has not passed the authority verification, calling the interception component to jump to the interception page; and
[0030] In response to the information input by the user on the interception page passing the authority verification, multiple target client components corresponding to the target functions are called in sequence.
[0031] A second aspect of the present disclosure provides an application development method for developing a target application controlled by the above control method, the method comprising:
[0032] Acquire an initial application framework, wherein the initial application framework includes a plurality of client components;
[0033] In response to a development user's dragging operation on the plurality of client components, generating a configuration file; and
[0034] The configuration file is loaded using the initial application framework to generate a resource package of the target application.
[0035] According to an embodiment of the present disclosure, the plurality of client components include a default component and a grayscale component, wherein the default component and the grayscale component are used to implement the same function;
[0036] The generating of the configuration file in response to the development user's dragging operation on the plurality of client components includes:
[0037] In response to a drag operation by the development user on the plurality of the default components or the plurality of the grayscale components, generating a default configuration file or a grayscale configuration file;
[0038] The step of using the initial program framework to load the configuration file to generate a resource package of the target application program includes:
[0039] Using the initial program framework to load the default configuration file to generate a default resource package for the target application; or
[0040] The grayscale configuration file is loaded using the initial program framework to generate a grayscale resource package for the target application.
[0041] A third aspect of the present disclosure provides an application control device, comprising:
[0042] A first acquisition module, configured to, in response to a loading request for requesting to load a target application, acquire a configuration file and a target resource package of the target application based on the identity information of a user carried in the loading request, wherein the target resource package includes a plurality of client components;
[0043] A first determining module, configured to determine a mapping relationship between each function of the target application and a plurality of the client components based on the configuration file; and
[0044] The first calling module is used to respond to the operation instruction for realizing the target function and sequentially call multiple target client components corresponding to the target function to control the target application to realize the target function.
[0045] A fourth aspect of the present disclosure provides an application development device for developing a target application controlled by the above control method, the device comprising:
[0046] A second acquisition module is used to acquire an initial application framework, wherein the initial application framework includes a plurality of client components;
[0047] A first generating module, configured to generate a configuration file in response to a development user's dragging operation on the plurality of client components; and
[0048] The second generating module is used to use the initial application framework to load the configuration file to generate a resource package of the target application program.
[0049] A fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method as described above.
[0050] A sixth aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, enable the processor to implement the method as described above.
[0051] A seventh aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and the instructions are used to implement the method as described above when executed.
[0052] According to the embodiments of the present disclosure, by obtaining the configuration file and target resource package of the target application based on the user's identity information, and determining the mapping relationship between the various functions of the target application and the client components in the target resource package based on the configuration file, when receiving the user's operation instruction to implement the target function, multiple target client components corresponding to the target function are called to implement the target function. This at least partially solves the technical problem of low operating efficiency of applications developed through low-code in the Android native system environment in the related technology, effectively improves the fluency of the application during operation, and realizes the personalized display of pages in the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0054] Figure 1 The application scenario diagram of the application control method and the application development method according to the embodiment of the present disclosure is schematically shown;
[0055] Figure 2 A flowchart of an application control method according to an embodiment of the present disclosure is schematically shown;
[0056] Figure 3 A flowchart schematically shows a method for a target application to obtain a configuration file according to an embodiment of the present disclosure;
[0057] Figure 4 A flowchart schematically shows a method for executing a page jump function in a target application according to an embodiment of the present disclosure;
[0058] Figure 5 A flowchart schematically shows a method for implementing a service call function between modules in a target application according to an embodiment of the present disclosure;
[0059] Figure 6 A framework diagram schematically showing a schematic diagram of a program framework of an application development device according to an embodiment of the present disclosure;
[0060] Figure 7 The structure block diagram of the application development device according to the embodiment of the present disclosure is schematically shown;
[0061] Figure 8 A flowchart of an application development method according to an embodiment of the present disclosure is schematically shown;
[0062] Fig. 9 A block diagram of an application control device according to an embodiment of the present disclosure is schematically shown;
[0063] Fig.10A block diagram of an application development device according to an embodiment of the present disclosure is schematically shown;
[0064] Fig.11 A block diagram of an electronic device suitable for implementing an application control method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0065] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0066] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0067] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0068] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0069] Low-code development is a development platform that can quickly generate applications without coding or with a small amount of code. It uses a visual application development method to enable developers with different experience levels to create web and mobile applications through a graphical user interface, using drag-and-drop components and model-driven logic.
[0070] At present, the rapid development of mobile Internet has brought about rapid iteration and update of mobile application development technology. Low-code development has been widely used in the development of mobile applications due to the above advantages.
[0071] In the process of implementing the concepts disclosed herein, the inventors discovered that there are at least the following problems in the related technology: the current low-code development is not based on the native system and there is a technical problem of low operating efficiency.
[0072] In view of this, the present invention aims at the above problems, is suitable for the current development status of mobile development platform, converges mobile application development technology, and standardizes the mobile application system architecture. Through the device, business experts can quickly develop an APP through this platform through a simple drag-and-drop method, realizing a development device for domain-driven design. At the same time, the configuration is issued by the platform, and the rendering is performed by Android native, so as to achieve the effect of personalized display while ensuring smoothness.
[0073] Specifically, an embodiment of the present disclosure provides an application control method, an application development method, an application control device, an application development device, an electronic device, a readable storage medium, and a computer program product. The application control method includes responding to a loading request for requesting to load a target application, obtaining a configuration file and a target resource package of the target application based on the identity information of the user carried in the loading request, wherein the target resource package includes multiple client components; determining a mapping relationship between each function of the target application and the multiple client components based on the configuration file; and responding to an operation instruction for realizing a target function, sequentially calling multiple target client components corresponding to the target function to control the target application to realize the target function.
[0074] It should be noted that the application control method and device and the application development method and device of the embodiments of the present disclosure can be used in the field of computer technology or the field of finance. The application control method and device and the application development method and device of the embodiments of the present disclosure can also be used in any field other than the field of computer technology and the field of finance. The application control method and device and the application development method and device of the embodiments of the present disclosure are not limited to any application field.
[0075] In the technical solution disclosed in the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.
[0076] Figure 1The following schematically shows an application scenario diagram of the application control method and the application development method according to an embodiment of the present disclosure. It should be noted that: Figure 1 What is shown are merely examples of application scenarios to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0077] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0078] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).
[0079] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0080] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0081] It should be noted that the method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the device provided in the embodiment of the present disclosure can generally be set in the server 105. The method provided in the embodiment of the present disclosure can also be performed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Accordingly, the device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Alternatively, the method provided in the embodiment of the present disclosure can also be performed by the terminal device 101, 102, or 103, or it can also be performed by other terminal devices different from the terminal device 101, 102, or 103. Accordingly, the device provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103, or it can be set in other terminal devices different from the terminal device 101, 102, or 103.
[0082] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0083] The following will be based on Figure 1 The scene described by Figure 2 to Figure 8 The application control method and application development method of the disclosed embodiment are described in detail.
[0084] Figure 2 The flowchart of the application control method according to the embodiment of the present disclosure is schematically shown.
[0085] like Figure 2 As shown, the method includes operations S201 to S203.
[0086] In operation S201 , in response to a loading request for requesting to load a target application, a configuration file and a target resource package of the target application are acquired based on the identity information of a user carried in the loading request, wherein the target resource package includes a plurality of client components.
[0087] According to an embodiment of the present disclosure, the target application may include, for example, any application installed on an electronic device, such as a smart phone, a tablet computer, a portable computer, or a desktop computer.
[0088] According to an embodiment of the present disclosure, the identity information of the user may be used to identify the information of the user, such as age, region, etc.
[0089] According to an embodiment of the present disclosure, the configuration file may include various files for configuring the application program. For example, in an Android system environment, the configuration file may include multiple json files for security configuration, navigation configuration, page configuration, and function configuration.
[0090] According to an embodiment of the present disclosure, the target resource package includes all data resources that support the operation of the target application.
[0091] According to an embodiment of the present disclosure, the client component can be encapsulated by a method of compiling any program language. The client component compiled by different program languages can have a data interface compatible with the operating system of the target application.
[0092] According to the embodiments of the present disclosure, different client components can implement different functions, including but not limited to message push, QR code generation, positioning, network request, screen adaptation, etc.
[0093] In operation S202, a mapping relationship between each function of the target application and a plurality of client components is determined based on the configuration file.
[0094] According to an embodiment of the present disclosure, various functions of the target application may include, for example, a page jump function, a communication function for information interaction, a service call function, and the like.
[0095] According to an embodiment of the present disclosure, the mapping relationship between the functions of the target application and the client components can be determined based on the information in the configuration file, and the mapping relationship can be stored in a collection. When executing the target function, the corresponding client component can be directly loaded from the collection to implement the target function.
[0096] For example, in the native Android system, the target application obtains the configuration file, which contains page information, routing information, etc. The client component is registered in the collection according to the page information and routing information, so that the various functions of the target application are stored with the client component. For example, when running the page jump function, click the page jump event, read the action in the configuration file, the action contains the routing information of the page jump, and load the client component corresponding to the page jump function in the corresponding collection according to the routing information, so as to complete the jump.
[0097] In operation S203, in response to the operation instruction for implementing the target function, a plurality of target client components corresponding to the target function are called in sequence to control the target application to implement the target function.
[0098] According to an embodiment of the present disclosure, the operation instruction may include, for example, a user clicking an icon in a target application on one of the pages to execute a function corresponding to the icon. For example, the icon may implement a navigation function of jumping to another page, and then a client component corresponding to the jump function and a client component corresponding to displaying another page are called to make the page jump to the page corresponding to the clicked icon.
[0099] According to the embodiments of the present disclosure, by obtaining the configuration file and target resource package of the target application based on the user's identity information, and determining the mapping relationship between the various functions of the target application and the client components in the target resource package based on the configuration file, when receiving the user's operation instruction to implement the target function, multiple target client components corresponding to the target function are called to implement the target function. This at least partially solves the technical problem of low operating efficiency of applications developed through low-code in the Android native system environment in the related technology, effectively improves the fluency of the application during operation, and realizes the personalized display of pages in the application.
[0100] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order of multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.
[0101] According to an embodiment of the present disclosure, obtaining a configuration file and a target resource package of a target application based on the identity information of a user carried in a loading request includes:
[0102] Get the local resource bundle of the target application;
[0103] Determine the user's customer group label based on the user's identity information;
[0104] Get the server resource version information corresponding to the customer group tag;
[0105] Use the server-side resource version information to update the local resource package to obtain the target resource package; and
[0106] Get the configuration file from the server based on the server resource version information.
[0107] According to an embodiment of the present disclosure, the local resource package may include, for example, basic files for implementing various functions of the target application.
[0108] According to an embodiment of the present disclosure, determining a user's customer group label based on the user's identity information may include, for example, determining the user's customer group label as people born in the 1980s or 1990s based on the user's age information. For another example, determining the user's customer group label as male or female based on the user's gender information. For another example, determining the user's customer group label as southerners or northerners based on the user's region information.
[0109] According to an embodiment of the present disclosure, customer group labels include ordinary customer groups and gray customer groups;
[0110] Among them, obtaining the server resource version information corresponding to the customer group tag includes:
[0111] Determine the type of customer group label;
[0112] When it is determined that the customer group label is a common customer group, the version information of the default resource package in the server is used as the server resource version information; and
[0113] When it is determined that the customer group label is a grayscale customer group, the version information of the grayscale resource package corresponding to the grayscale customer group in the server is used as the server resource version information.
[0114] According to an embodiment of the present disclosure, a user can be determined as a normal customer group or a gray customer group based on an association table representing the relationship between customer group labels and customer group types. Taking a customer group label identified by age information as an example, if the user's customer group label is over 50, based on the association table, it can be determined that the user is a gray customer group, and the specific gray customer group is the elderly group.
[0115] According to the embodiments of the present disclosure, the server is preset with version information of the default resource package and version information of the grayscale resource package corresponding to different grayscale customer groups, and different version information of the grayscale resource package is provided for different grayscale customer groups. For example, if the grayscale customer group corresponding to the user is the elderly group, then the corresponding server-side resource package is the grayscale resource package corresponding to the elderly group, and the application using the grayscale resource package will display a larger font when displaying its interface.
[0116] According to an embodiment of the present disclosure, users are divided into ordinary customers and grayscale customers through customer group labels, and the grayscale customer groups correspond to different version information of grayscale resource packages due to different customer group labels, thereby supporting personalized display. Different users see completely different pages when using the same target application.
[0117] According to an embodiment of the present disclosure, the server resource version information includes a server resource version number, and the local resource package has a local resource version number;
[0118] Among them, using the server-side resource version information to update the local resource package to obtain the target resource package includes:
[0119] Based on the server resource version number and the local resource version number, obtaining a differential data packet from the server, wherein the differential data packet includes inconsistent data in the server resource packet and the local resource packet corresponding to the server resource version number; and
[0120] Use the differential data package to update the local resource package to obtain the target resource package.
[0121] According to an embodiment of the present disclosure, for example, if the server resource version number is V1.03 and the local resource version number of the local resource package is V1.01, the local resource package is updated using the difference package between the resource package corresponding to version number V1.01 and the resource package corresponding to version number V1.03 to obtain the target resource package.
[0122] According to the embodiments of the present disclosure, a differential data packet is obtained from the server according to the server resource version number and the local resource version number, and the differential data packet is used to update the local resource package to obtain the target resource package. In the process of updating the local resource package, only the differential data packet needs to be obtained from the server, and only the inconsistent data in the server resource package and the local resource package needs to be updated, so that the update effect is faster and more convenient.
[0123] According to an embodiment of the present disclosure, the target functions include a page jump function for jumping to a target page, a communication function for realizing information interaction, and a service calling function for calling a target service.
[0124] According to an embodiment of the present disclosure, the plurality of client components include an interception component;
[0125] Before sequentially calling multiple target client components corresponding to the target functions, the method further includes:
[0126] Verify the user's permissions based on the user's identity information;
[0127] When it is determined that the user has passed the authority verification, multiple target client components corresponding to the target functions are called in sequence;
[0128] If it is determined that the user has not passed the authorization verification, calling the interception component to jump to the interception page; and
[0129] In response to the information input by the user on the interception page passing the authority verification, multiple target client components corresponding to the target functions are called in sequence.
[0130] According to an embodiment of the present disclosure, the interception component may include, for example, a login interceptor, a log interceptor, a model interceptor, and the like.
[0131] For example, when a user performs a page jump function, if the user has successfully logged in, the page jump will be performed directly. When a user performs a page jump function, if the user has not logged in, the page jump will be performed first to the login page, and then the page jump will be performed after the user successfully logs in.
[0132] Figure 3 The flowchart schematically shows a method for a target application to obtain a configuration file according to an embodiment of the present disclosure.
[0133] like Figure 3 As shown, the method includes operations S301 to S312.
[0134] In operation S301 , a user's customer group tag and a local resource package of a target application are obtained.
[0135] After completing the acquisition of relevant information of the target application, a resource package version detection request is initiated to the middle-office service of the back-end management platform.
[0136] In operation S302, it is determined whether to upload the customer group tag information. If it is determined that the customer group tag information is selected to be uploaded in the settings of the target application, operation S303 is performed; if it is determined that the customer group tag information is not selected to be uploaded in the settings of the target application, operation S305 is performed.
[0137] In operation S303, it is determined whether there is a grayscale resource package. If it is determined that there is a grayscale resource package, operation S304 is performed; if it is determined that there is no grayscale resource package, operation S305 is performed.
[0138] In operation S304, it is determined whether the customer group label corresponding to the grayscale resource package matches the customer group label of the user. If it is determined that the customer group label corresponding to the grayscale resource package matches the customer group label of the user, operation S306 is performed; if it is determined that the customer group label corresponding to the grayscale resource package does not match the customer group label of the user, operation S305 is performed.
[0139] In operation S305, version information of the default resource package is obtained as server-side resource version information.
[0140] In operation S306, the version information of the grayscale resource package is obtained as the server-side resource version information.
[0141] In operation S307, it is determined whether the server resource version information needs to be updated. If it is determined that the server resource version information needs to be updated, operation S308 is performed; if it is determined that the server resource version information does not need to be updated, operation S309 is performed.
[0142] In operation S308, the server-side resource version information is updated based on the resource server.
[0143] In operation S309, a configuration file is requested from a resource server based on the version information of the server-side resource package.
[0144] In operation S310, it is determined whether the local resource package needs to be updated. If it is determined according to the server resource package that the local resource package needs to be updated, operation S311 is performed; if it is determined according to the server resource package that the local resource package does not need to be updated, operation S312 is performed.
[0145] In operation S311, a differential data package is obtained from a resource server, and the differential data package is used to update the local resource package to obtain a target resource package.
[0146] In operation S312, the local resource bundle is used as the target resource bundle.
[0147] Figure 4 A flowchart of a method for executing a page jump function in a target application according to an embodiment of the present disclosure is schematically shown.
[0148] The method also includes a program loading process before execution.
[0149] During the program loading process, based on the obtained configuration file, the client components that need to be called when the M1, M2 and other modules in the target application generate pages are determined to obtain the mapping relationship between the page jump function implemented by each module and the client component; and through APT technology, each module can generate an information class based on the mapping relationship and add the information class to the routing collection.
[0150] APT, short for Annotation Processing Tool, means that annotations can be processed during code compilation and Java files can be generated to reduce manual code input. APT technology can also solve the dependency problem between modules and cooperate with the decoupling between modules.
[0151] like Figure 4 As shown, the method includes operations S401 to S405.
[0152] In operation S401, a click operation of a user on a first page of module M1 is received, and a page jump operation to jump to a second page is performed.
[0153] In operation S402, the information carried in the first page and the related information for jumping to the second page are transferred into the route.
[0154] In operation S403, according to the received information, a client component corresponding to the page jump function is obtained from the information class.
[0155] In operation S404, the interceptor is executed to perform permission verification.
[0156] In operation S405, after it is determined that the user has passed the authority verification, the client component is called to perform a page jump from the first page to the second page of the module M2.
[0157] Figure 5 A flowchart schematically illustrates a method for implementing a service calling function between modules in a target application according to an embodiment of the present disclosure.
[0158] The method also includes a program loading process before execution.
[0159] During the program loading process, based on the obtained configuration files, determine the client components that need to be called when the modules M1, M2, etc. in the target application generate pages, so as to obtain the mapping relationship between the service call functions implemented by each module and the client components; and through APT technology, each module can generate information classes based on the mapping relationship and add the information classes to the routing collection. When module M1 calls the service of module M2, the service interface of module M2 is sunk into the routing, and the service is exposed for module M1 to call, so that the interfaces of module M1 and module M2 are connected in the routing, and the service is registered in module M1.
[0160] like Figure 5 As shown, the method includes operations S501 to S508.
[0161] In operation S501, a click operation of a user on the first page of module M1 is received, and an operation of calling a target service in module M2 is executed.
[0162] In operation S502, information of the target service to be called is passed into the router.
[0163] In operation S503, according to the received information, a client component corresponding to the function of implementing the call target service is obtained from the information class.
[0164] In operation S504, the client component is called to implement the call to the target service in the module M2.
[0165] According to the embodiments of the present disclosure, since the modules in the target application are completely decoupled, the interface is sunk into the core library of the base during implementation, and then the interface is implemented in the service provider module M2. After that, the service caller M1 can call the service provided by the service provider M2 through routing.
[0166] According to the embodiments of the present disclosure, since the modules in the template application are completely decoupled, the subsequent maintenance cost is reduced and maintenance is facilitated.
[0167] Figure 6The structural block diagram of the application development device according to the embodiment of the present disclosure is schematically shown.
[0168] like Figure 6 The application development device includes two parts: a backend management platform 610 and a client operation platform 620.
[0169] The backend management platform 610 includes content management 611, customer group management 612, resource version management 613 and grayscale management 614, which allows development users to generate content configuration files by dragging and dropping, and define different page content for different customer groups.
[0170] The client operation platform 620 is an application generated by the application development device base of the present disclosure. The client operation platform 620 can pull the client components corresponding to each user from the back-end management platform 610 at runtime, and then initialize all pages through the configuration file, and then dynamically generate the elements of each page and the corresponding event information according to the client components of the page content when entering each page of the client operation platform 620, so as to generate an application that can be used by the user at runtime.
[0171] According to the embodiment of the present disclosure, by adopting the application development device provided by the present disclosure, a user can quickly develop an application through the development device by a simple drag and drop method, thereby realizing a development device for domain-driven design. At the same time, the configuration file is issued through the back-end management platform 610 in the development device, and the rendering is performed through the native Android, so as to achieve the effect of personalized display while ensuring smoothness.
[0172] Figure 7 A schematic diagram of an application framework according to an embodiment of the present disclosure is schematically shown.
[0173] like Figure 7 As shown, the development device 700 of this embodiment includes an APP Starter layer 701, a business module layer 702 and a component layer 703 from top to bottom.
[0174] The APP Starter layer 701 is an APP shell, which is used to provide a startup screen, initialization of each component life cycle, etc., and can start a specified module through configuration.
[0175] The business module layer 702 can be a Native module, or an H5 or RN Bundle. Any business module can exist independently as an application, has a complete application cycle, and has no dependencies between them. The jumps, communications, and service calls between business modules can be implemented using, but are not limited to, routing.
[0176] H5 refers to the fifth generation of HTML. HTML is the abbreviation of Hypertext Markup Language, which is an essential tool for web page production.
[0177] RN is the abbreviation of react native, which is a computer language.
[0178] Component layer 703, the output form of the component layer may include source code dependency, remote jar (computer file package format) package dependency or remote aar dependency.
[0179] The component layer 703 may include, for example, core components, functional components, and UI components.
[0180] Core components may include, for example, MVP Base, Network, Router, Autosize, Cache, Config, and other components.
[0181] Among them, the MVP Base function refers to the base class of MVP, which is the basis of computer programming.
[0182] Network is a network request function, which refers to requesting messages, services, etc. from the client to the server.
[0183] Router is a page routing function that is used to map page jump relationships, including jump-related URL jumps, value transfer, interceptors and other functions.
[0184] Autosize is a screen adaptation function, which means that a certain element has the same display effect on mobile phones of different sizes and resolutions.
[0185] Cache is a high-speed, small-capacity temporary memory that can be implemented with a high-speed static memory chip or integrated into the CPU chip to store the instructions or operation data that the CPU accesses most frequently.
[0186] Config is a configuration command used to store commonly used configuration information of the client.
[0187] Service is a service function, a piece of code running in the background. It can run in its own process or in the context of other application processes, depending on its own needs. Other components can bind to a service and call this method through remote procedure call (RPC). For example, the service of a media player, when the user exits the media selection user interface, still hopes that the music can continue to play. At this time, it is the service that ensures that the music continues to play when the user interface is closed.
[0188] Functional components may include, for example, Push, QR, Bridge, LBS, Share, ASR, IM and other components.
[0189] Push refers to the active message push by operators to users' mobile devices through their own products or third-party tools. Users can see Push message notifications on the lock screen and notification bar of their mobile devices. Clicking on the notification bar can wake up the application and go to the corresponding page.
[0190] QR refers to the function of scanning or generating a two-dimensional code.
[0191] Bridge means bridging, which refers to cross-language communication; for example, the communication between client-side Java and Web-side Js.
[0192] LBS is a location-based service that obtains the location information of mobile terminal users through the radio communication network of telecommunications mobile operators (such as GSM network, CDMA network) or external positioning methods (such as GPS).
[0193] ASR refers to automatic speech recognition, i.e. converting speech into text.
[0194] IM refers to instant messaging, which is a service that can send and receive Internet messages instantly.
[0195] OCR refers to the text recognition function, which uses the technology of automatically recognizing characters by computers and is an important field of pattern recognition application.
[0196] UI components may include common List, ViewPager, Menu, etc., and support custom component view styles.
[0197] List refers to a list, which uses a table as a container to hold text or charts.
[0198] ViewPager is a layout management function used to implement different views.
[0199] Menu is a menu function used to adjust display parameters and other functions.
[0200] Figure 8 The flowchart of the application development method according to the embodiment of the present disclosure is schematically shown.
[0201] like Figure 8 As shown, the application development method of this embodiment is used to develop a target application controlled by the above control method, and the method includes operations S801 to S803.
[0202] In operation S801, an initial application framework is obtained, where the initial application framework includes a plurality of client components.
[0203] According to an embodiment of the present disclosure, the initial application framework, such as the above Figure 7 The application framework shown in .
[0204] In operation S802 , in response to a development user's drag and drop operation on a plurality of client components, a configuration file is generated.
[0205] In operation S803, the configuration file is loaded using the initial application framework to generate a resource package of the target application.
[0206] According to an embodiment of the present disclosure, the plurality of client components include a default component and a grayscale component.
[0207] According to an embodiment of the present disclosure, the same functions can be achieved when the default component and the grayscale component are applied, but different pages can be displayed.
[0208] In response to the development user's drag and drop operation on multiple client components, a configuration file is generated, including:
[0209] In response to a development user's dragging operation on a plurality of default components or a plurality of grayscale components, generating a default configuration file or a grayscale configuration file;
[0210] According to an embodiment of the present disclosure, the configuration file is loaded using the initial program framework to generate a resource package of the target application, including:
[0211] Use the initialization framework to load the default configuration file to generate a default resource bundle for the target application; or
[0212] Use the initial program framework to load the grayscale configuration file to generate a grayscale resource package for the target application.
[0213] Fig. 9 A block diagram of an application control device according to an embodiment of the present disclosure is schematically shown.
[0214] like Fig. 9 As shown, the application control device 900 of this embodiment includes a first acquisition module 901 , a first determination module 902 and a first calling module 903 .
[0215] The first acquisition module 901 is used to respond to a loading request for requesting to load a target application and acquire a configuration file and a target resource package of the target application based on the user identity information carried in the loading request, wherein the target resource package includes multiple client components.
[0216] The first determination module 902 is used to determine the mapping relationship between each function of the target application and multiple client components based on the configuration file.
[0217] The first calling module 903 is used to call a plurality of target client components corresponding to the target function in sequence in response to an operation instruction for realizing the target function, so as to control the target application to realize the target function.
[0218] According to the embodiment of the present disclosure, the first acquisition module 901 acquires the configuration file and the target resource package of the target application based on the identity information of the user, and the first determination module 902 determines that there is a mapping relationship between each function of the target application and the client component in the target resource package according to the configuration file. When receiving the user's operation instruction to implement the target function, the first calling module 903 is used to call multiple target client components corresponding to the target function to implement the target function, and finally generate each page to be displayed. At least partially solves the technical problems of unsmooth operation and low operation efficiency in the related technology.
[0219] According to an embodiment of the present disclosure, the first acquisition module 901 includes a first acquisition unit, a first determination unit, a second acquisition unit, an update unit, and a third acquisition unit.
[0220] The first acquisition unit is used to acquire the local resource package of the target application.
[0221] The first determining unit is used to determine a customer group label of the user based on the identity information of the user.
[0222] The second acquisition unit is used to acquire server resource version information corresponding to the customer group tag.
[0223] The update unit is used to update the local resource package using the server resource version information to obtain the target resource package.
[0224] The third acquisition unit is used to acquire the configuration file from the server based on the server resource version information.
[0225] According to an embodiment of the present disclosure, customer group labels include ordinary customer groups and grayscale customer groups.
[0226] According to an embodiment of the present disclosure, the second acquiring unit includes a first determining subunit, a second determining subunit, and a third determining subunit.
[0227] The first determination subunit is used to determine the type of customer group label.
[0228] The second determining subunit is configured to use the version information of the default resource package in the server as the server resource version information when the customer group tag is determined to be a common customer group.
[0229] The third determining subunit is configured to use the version information of the grayscale resource package corresponding to the grayscale customer group in the server as the server resource version information when the customer group label is determined to be the grayscale customer group.
[0230] According to an embodiment of the present disclosure, the server resource version information includes a server resource version number, and the local resource package has a local resource version number.
[0231] According to an embodiment of the present disclosure, the updating unit includes a first acquiring subunit and an updating subunit.
[0232] The first acquisition subunit is used to acquire a differential data packet from the server based on the server resource version number and the local resource version number, wherein the differential data packet includes inconsistent data in the server resource packet and the local resource packet corresponding to the server resource version number.
[0233] The update subunit is used to update the local resource package using the differential data package to obtain the target resource package.
[0234] According to an embodiment of the present disclosure, the target functions include a page jump function for jumping to a target page, a communication function for realizing information interaction, and a service calling function for calling a target service.
[0235] According to an embodiment of the present disclosure, the plurality of client components include an interception component.
[0236] According to an embodiment of the present disclosure, the application control device further includes a verification module, a second determination module, a third determination module and a second calling module.
[0237] The verification module is used to verify the user's authority based on the user's identity information.
[0238] The second determination module is used to sequentially call multiple target client components corresponding to the target functions when it is determined that the user has passed the authority verification.
[0239] The third determination module is used to call the interception component to jump to the interception page when it is determined that the user has not passed the authority verification.
[0240] The second calling module is used to call multiple target client components corresponding to the target functions in sequence in response to the information input by the user on the interception page passing the authority verification.
[0241] Fig.10 A block diagram of an application development device according to an embodiment of the present disclosure is schematically shown.
[0242] like Fig.10 As shown, the application development device 1000 of this embodiment includes a second acquisition module 1001 , a first generation module 1002 and a second generation module 1003 .
[0243] The second acquisition module 1001 is used to acquire an initial application framework, wherein the initial application framework includes multiple client components.
[0244] The first generating module 1002 is used to generate a configuration file in response to a development user's dragging operation on multiple client components.
[0245] The second generating module 1003 is used to use the initial application framework to load the configuration file to generate a resource package of the target application program.
[0246] According to an embodiment of the present disclosure, a plurality of client components include a default component and a grayscale component, wherein the default component and the grayscale component are used to implement the same function.
[0247] According to an embodiment of the present disclosure, the first generating module 1002 includes a first generating unit.
[0248] The first generating unit is used to generate a default configuration file or a grayscale configuration file in response to a drag operation of a development user on a plurality of default components or a plurality of grayscale components.
[0249] According to an embodiment of the present disclosure, the second generating module 1003 includes a second generating unit or a third generating unit.
[0250] The second generating unit is used to load a default configuration file using an initial program framework to generate a default resource package of a target application.
[0251] Or a third generation unit, used to load the grayscale configuration file using the initial program framework to generate a grayscale resource package of the target application.
[0252] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0253] For example, any multiple of the first acquisition module 901, the first determination module 902, and the first call module 903 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more modules / units / sub-units in these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 901, the first determination module 902, and the first call module 903 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first acquisition module 901, the first determination module 902, and the first calling module 903 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be executed.
[0254] It should be noted that the application control device part in the embodiment of the present disclosure corresponds to the application control method part in the embodiment of the present disclosure. The description of the application control device part specifically refers to the application control method part, which will not be repeated here.
[0255] Fig.11 A block diagram of an electronic device suitable for implementing an application control method according to an embodiment of the present disclosure is schematically shown. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0256] like Fig.11 As shown, the computer electronic device 1100 according to an embodiment of the present disclosure includes a processor 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. The processor 1101 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1101 may also include an onboard memory for caching purposes. The processor 1101 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0257] In RAM 1103, various programs and data required for the operation of electronic device 1100 are stored. Processor 1101, ROM 1102 and RAM 1103 are connected to each other through bus 1104. Processor 1101 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1102 and / or RAM 1103. It should be noted that the program can also be stored in one or more memories other than ROM 1102 and RAM 1103. Processor 1101 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0258] According to an embodiment of the present disclosure, the electronic device 1100 may further include an input / output (I / O) interface 1105, which is also connected to the bus 1104. The electronic device 1100 may further include one or more of the following components connected to the I / O interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1108 including a hard disk, etc.; and a communication portion 1109 including a network interface card such as a LAN card, a modem, etc. The communication portion 1109 performs communication processing via a network such as the Internet. The drive 1110 is electrically connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1111 as needed, so that a computer program read therefrom is installed into the storage portion 1108 as needed.
[0259] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the processor 1101, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0260] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0261] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0262] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1102 and / or the RAM 1103 described above and / or one or more memories other than the ROM 1102 and the RAM 1103 .
[0263] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the application control method provided by the embodiment of the present disclosure.
[0264] When the computer program is executed by the processor 1101, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0265] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1109, and / or installed from a removable medium 1111. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0266] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0267] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and / or claims of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0268] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An application control method, comprising: In response to a load request for requesting to load a target application, obtaining a configuration file and a target resource package of the target application based on user identity information carried in the load request, wherein the target resource package includes multiple client components, different client components implement different functions, and the functions include at least one of message push, QR code generation, positioning, network request, and screen adaptation; and the configuration file includes page information and routing information; Registering the client component into a collection based on the page information and the routing information, and determining a mapping relationship between each function of the target application and the plurality of client components; and In response to an operation instruction for implementing a target function, a plurality of target client components corresponding to the target function are called in sequence to control the target application to implement the target function.
2. The method according to claim 1, wherein The acquiring of the configuration file and target resource package of the target application based on the user identity information carried in the loading request includes: Obtaining a local resource package of the target application; Determining a customer group label of the user based on the identity information of the user; Obtaining server resource version information corresponding to the customer group tag; Using the server-side resource version information to update the local resource package to obtain the target resource package; and Based on the server resource version information, the configuration file is obtained from the server.
3. The method according to claim 2, wherein: The customer group labels include ordinary customer groups and gray customer groups; The acquiring of the server resource version information corresponding to the customer group tag includes: Determining the type of the customer group label; In the case where it is determined that the customer group label is a common customer group, using the version information of the default resource package in the server as the server resource version information; and When it is determined that the customer group label is a grayscale customer group, the version information of the grayscale resource package corresponding to the grayscale customer group in the server is used as the server resource version information.
4. The method according to claim 2, wherein: The server resource version information includes a server resource version number, and the local resource package has a local resource version number; The step of using the server-side resource version information to update the local resource package to obtain the target resource package includes: Based on the server resource version number and the local resource version number, obtaining a differential data packet from the server, wherein the differential data packet includes inconsistent data in the server resource packet corresponding to the server resource version number and the local resource packet; and The local resource package is updated using the differential data package to obtain the target resource package.
5. The method according to claim 1, wherein The target functions include a page jump function for jumping to a target page, a communication function for realizing information interaction, and a service calling function for calling a target service.
6. The method according to claim 1, wherein The plurality of client components include an interception component; Before sequentially calling multiple target client components corresponding to the target functions, the method further includes: Performing authority verification on the user based on the user's identity information; When it is determined that the user has passed the authority verification, calling multiple target client components corresponding to the target functions in sequence; If it is determined that the user has not passed the authority verification, calling the interception component to jump to the interception page; and In response to the information input by the user on the interception page passing the authority verification, multiple target client components corresponding to the target functions are called in sequence.
7. An application development method for developing a target application controlled by the control method according to any one of claims 1 to 6, the method comprising: Acquire an initial application framework, wherein the initial application framework includes multiple client components; generating a configuration file in response to a development user's drag and drop operation on the plurality of client components; and The configuration file is loaded using the initial application framework to generate a resource package of the target application.
8. The method according to claim 7, wherein: The plurality of client components include a default component and a grayscale component, wherein the default component and the grayscale component are used to implement the same function; The generating of the configuration file in response to the developer user's dragging operation on the plurality of client components includes: In response to a drag operation by the development user on the plurality of the default components or the plurality of the grayscale components, generating a default configuration file or a grayscale configuration file; The step of using the initial application framework to load the configuration file to generate a resource package for the target application includes: Using the initial application framework to load the default configuration file to generate a default resource package for the target application; or The grayscale configuration file is loaded using the initial application framework to generate a grayscale resource package for the target application.
9. An application control device, comprising: a first acquisition module, configured to, in response to a load request for loading a target application, acquire a configuration file and a target resource package of the target application based on user identity information carried in the load request, wherein the target resource package includes multiple client components, different client components implement different functions, the functions including at least one of message push, QR code generation, positioning, network request, and screen adaptation, and the configuration file includes page information and routing information; A first determining module is configured to register the client component into a collection based on the page information and the routing information, and determine a mapping relationship between each function of the target application and a plurality of the client components; and The first calling module is used to call a plurality of target client components corresponding to the target function in sequence in response to an operation instruction for realizing the target function, so as to control the target application to realize the target function.
10. An application development device for developing a target application controlled by the control method according to any one of claims 1 to 6, the device comprising: A second acquisition module is configured to acquire an initial application framework, wherein the initial application framework includes a plurality of client components; A first generating module is configured to generate a configuration file in response to a development user's dragging operation on the plurality of client components; and The second generating module is configured to use the initial application framework to load the configuration file to generate a resource package of the target application.
11. An electronic device comprising: one or more processors; a memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 8. 12 . A computer-readable storage medium having executable instructions stored thereon, wherein when the executable instructions are executed by a processor, the processor is enabled to implement the method according to claim 1 .
13. A computer program product comprising computer executable instructions, wherein the computer executable instructions are used to implement the method according to any one of claims 1 to 8 when executed.
Citation Information
Patent Citations
Equipment system software updating method and equipment system software updating system
CN104133699A
Method and device for updating the display effect of a UI component, apparatus, and medium
CN109032722A
Method and terminal for starting component
CN110262842A
