CN113805973A - Application program control method and device and application program development method and device - Google Patents

Application program control method and device and application program development method and device Download PDF

Info

Publication number
CN113805973A
CN113805973A CN202111132620.7A CN202111132620A CN113805973A CN 113805973 A CN113805973 A CN 113805973A CN 202111132620 A CN202111132620 A CN 202111132620A CN 113805973 A CN113805973 A CN 113805973A
Authority
CN
China
Prior art keywords
target
resource
configuration file
user
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111132620.7A
Other languages
Chinese (zh)
Inventor
顾正之
王震
豆风雷
杨新财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202111132620.7A priority Critical patent/CN113805973A/en
Publication of CN113805973A publication Critical patent/CN113805973A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides an application control method, which can be used in the computer field, the financial field or other fields. The method comprises the following steps: responding to a loading request for requesting to load a target application program, and acquiring a configuration file and a target resource package of the target application program based on identity information of a user carried in the loading request, wherein the target resource package comprises a plurality of client components; determining mapping relationships between functions of the target application and the plurality of client components based on the configuration file; and responding to an operation instruction for realizing the target function, and sequentially calling a plurality of target client components corresponding to the target function so as to control the target application program to realize the target function. In addition, the present disclosure also provides an application control apparatus, an application development method, an application development apparatus, an electronic device, a readable storage medium, and a computer program product.

Description

Application program control method and device and application program development method and device
Technical Field
The present disclosure relates to the field of computer technology and the field of finance, and more particularly, to an application control method, an application control apparatus, an application development method, an application development apparatus, an electronic device, a readable storage medium, and a computer program product.
Background
With the high-speed development of the mobile internet, high-speed iterative updating of mobile application development technology is brought, so that the utility of the technology reserve is reduced, and low-code development is needed to reduce the negative influence of the technology updating on development work.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: the related art lacks a low-code development method realized based on a native system, so that the application program obtained by the low-code development method of the related art cannot realize autonomous content management, and the running efficiency is low in the native system environment.
Disclosure of Invention
In view of the above, the present disclosure provides an application control method, apparatus, device, storage medium, and program product.
A first aspect of the present disclosure provides an application control method, including:
responding to a loading request for requesting to load a target application program, and acquiring a configuration file and a target resource package of the target application program based on identity information of a user carried in the loading request, wherein the target resource package comprises a plurality of client components;
determining a mapping relationship between functions of the target application and a plurality of the client components based on the configuration file; and
and responding to an operation instruction for realizing a target function, and sequentially calling a plurality of target client side components corresponding to the target function so as to control the target application program to realize the target function.
According to an embodiment of the present disclosure, the 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 includes:
acquiring a local resource package of the target application program;
determining a guest group tag of the user based on the identity information of the user;
acquiring server resource version information corresponding to the guest group label;
updating the local resource package by using the server resource version information to obtain the target resource package; and
and acquiring the configuration file from the server based on the server resource version information.
According to an embodiment of the present disclosure, the guest group tag includes a general guest group and a gray guest group;
the obtaining of the server resource version information corresponding to the guest group tag includes:
determining a category of the guest group tag;
under the condition that the guest group label is determined to be a common guest group, taking the version information of a default resource packet in the server as the resource version information of the server; and
and under the condition that the client group label is determined to be a gray client group, taking the version information of a gray resource packet corresponding to the gray client group in the server as the version information of the server resource.
According to an embodiment of the present disclosure, the server resource version information includes a server resource version number, and the local resource packet has a local resource version number;
wherein the updating the local resource package by using the server resource version information to obtain the target resource package includes:
acquiring 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 comprises inconsistent data in the server resource packet and the local resource packet corresponding to the server resource version number; and
and updating the local resource packet by using the differential data packet to obtain the target resource packet.
According to the embodiment of the disclosure, the target function includes a page jump function of jumping to a target page, a communication function of implementing information interaction, and a service call function of calling a target service.
According to the embodiment of the disclosure, an interception component is included in the plurality of client components;
before the sequentially calling the plurality of target client side components corresponding to the target functions, the method further comprises the following steps:
performing authority verification on the user based on the identity information of the user;
under the condition that the user passes the authority verification, sequentially calling a plurality of target client components corresponding to the target functions;
calling the interception component to jump to an interception page under the condition that the user is determined not to pass the permission verification; and
and responding to the fact that the information input by the user on the interception page passes the authority verification, and sequentially calling a plurality of target client components corresponding to the target functions.
A second aspect of the present disclosure provides an application development method for developing a target application controlled by the control method described above, the method including:
obtaining an initial application framework, wherein the initial application framework comprises a plurality of client components;
generating a configuration file in response to a drag operation of a development user for a plurality of client components; and
and loading the configuration file by using the initial application framework to generate a resource package of the target application program.
According to the embodiment of the disclosure, a plurality of client components comprise a default component and a gray component, wherein the default component and the gray component are used for realizing the same function;
wherein the generating a configuration file in response to a drag operation of a development user for a plurality of client components comprises:
generating a default configuration file or a gray level configuration file in response to the dragging operation of the development user for the plurality of default components or the plurality of gray level components;
wherein the loading the configuration file using the initial program framework to generate the resource package of the target application program comprises:
loading the default configuration file by using the initial program framework to generate a default resource package of the target application program; or
And loading the gray configuration file by using the initial program framework to generate a gray resource package of the target application program.
A third aspect of the present disclosure provides an application control apparatus comprising:
a first obtaining module, configured to, in response to a loading request for requesting to load a target application program, obtain a configuration file and a target resource package of the target application program based on user identity information carried in the loading request, where the target resource package includes a plurality of client components;
a first determining module, configured to determine, based on the configuration file, mapping relationships between functions of the target application and the plurality of client components; and
the first calling module is used for responding to an operation instruction for realizing a target function and sequentially calling a plurality of target client side components corresponding to the target function so as to control the target application program to realize the target function.
A fourth aspect of the present disclosure provides an application development apparatus for developing a target application controlled by the control method described above, the apparatus including:
a second obtaining module, configured to obtain an initial application framework, where the initial application framework includes a plurality of client components;
the first generation module is used for responding to the dragging operation of a development user aiming at a plurality of client components and generating a configuration file; and
and the second generation module is used for loading the configuration file by using the initial application framework so as to generate the resource package of the target application program.
A fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; memory to store one or more instructions, wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement a method as described above.
A sixth aspect of the disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to implement the method as described above.
A seventh aspect of the present disclosure provides a computer program product comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, the configuration file and the target resource package of the target application program are obtained based on the identity information of the user, the mapping relation between each function of the target application program and the client end component in the target resource package is determined according to the configuration file, and when an operation instruction of the user for realizing the target function is received, the plurality of target client end components corresponding to the target function are called to realize the target function. The method and the device at least partially solve the technical problem that the running efficiency of the application program obtained through low-code development in the related technology is low in the android native system environment, effectively improve the smoothness of the application program in running, and realize personalized display of the page in the application program.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of an application control method and an application development method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of an application control method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method for a target application to obtain a configuration file according to an embodiment of the present disclosure;
FIG. 4 is a flow chart that schematically illustrates a method for operating a page jump function in a target application, in accordance with an embodiment of the present disclosure;
FIG. 5 is a flow chart that schematically illustrates a method for implementing an inter-module service invocation function in a target application, in accordance with an embodiment of the present disclosure;
FIG. 6 is a framework diagram that schematically illustrates a schematic diagram of an application development device program framework, in accordance with an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of the structure of an application development apparatus according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a method of application development according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates a block diagram of an application control device according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a block diagram of an application development apparatus according to an embodiment of the present disclosure;
fig. 11 schematically shows a block diagram of an electronic device adapted to implement an application control method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The low-code development is a development platform which can quickly generate an application program without coding or by a small amount of codes, and the application program development method is realized through visualization, so that developers with different experience levels can create a webpage and move the application program through a graphical user interface by using a dragging component and model-driven logic.
At present, the high-speed development of the mobile internet brings high-speed iterative update of a mobile application development technology, and low-code development is widely used for development of mobile application programs due to the advantages.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: the current low-code development is not realized based on a native system, and the technical problem of low operation efficiency exists.
In view of the above, the present invention is suitable for the current mobile development platform, the convergence mobile application development technology, and the specification of the mobile application system architecture. Can drag the mode through simple dragging through the device for business expert can realize the development device of field drive design through a quick development APP of this platform. Meanwhile, configuration is issued through the platform, rendering is carried out through android native, and the personalized display effect is achieved under the condition that fluency is guaranteed.
Specifically, embodiments of the present disclosure provide an application control method, an application development method, an application control apparatus, an application development apparatus, an electronic device, a readable storage medium, and a computer program product. The application program control method comprises the steps of responding to a loading request for requesting to load a target application program, and acquiring a configuration file and a target resource package of the target application program based on identity information of a user carried in the loading request, wherein the target resource package comprises a plurality of client components; determining a mapping relationship between functions of the target application and a plurality of the client components based on the configuration file; and responding to an operation instruction for realizing a target function, and sequentially calling a plurality of target client side components corresponding to the target function so as to control the target application program to realize the target function.
It should be noted that the application control method and apparatus and the application development method and apparatus according to the embodiments of the present disclosure may be used in the field of computer technology or the field of finance. The application control method and apparatus, and the application development method and apparatus of the embodiments of the present disclosure can also be used in any fields other than the computer technology field and the financial field. The application fields of the application control method and device, the application development method and device of the embodiment of the disclosure are not limited.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
Fig. 1 schematically shows an application scenario diagram of an application control method and an application development method according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, 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 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and so forth.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, and/or social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The methods provided by the embodiments of the present disclosure may also be performed by a server or server cluster that is different from the server 105 and that is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the method provided by the embodiment of the present disclosure may also be executed by the terminal device 101, 102, or 103, or may also be executed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the apparatus provided by the embodiment of the present disclosure may also be disposed in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Hereinafter, based on the scenario described in fig. 1, the application control method and the application development method of the disclosed embodiment will be described in detail with reference to fig. 2 to 8.
Fig. 2 schematically shows a flow chart of an application control method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S203.
In operation S201, in response to a loading request for requesting to load a target application, a configuration file of the target application and a target resource package are obtained based on identity information of a user carried in the loading request, where the target resource package includes a plurality of client components.
According to embodiments of the present disclosure, the target application may include, for example, any application installed on the electronic device. The electronic device may include a smartphone, a tablet, a laptop or desktop computer, or the like.
According to an embodiment of the present disclosure, the identity information of the user may be used to identify information of the user, such as age, region, and the like.
According to embodiments of the present disclosure, a configuration file may include various files for configuring an application. For example, in an android environment, a configuration file may include multiple json files for security configuration, navigation configuration, page configuration, functional configuration.
According to an embodiment of the present disclosure, the target resource package includes all data resources that support the operation of the target application.
According to embodiments of the present disclosure, a client component may be packaged in a method compiled from any programming language. Client components compiled from different programming languages may have data interfaces compatible with the running system of the target application.
According to embodiments of the present disclosure, different client components may implement different functions, including but not limited to message pushing, two-dimensional code generation, positioning, network requests, screen adaptation, and the like.
In operation S202, mapping relationships between various functions of the target application and the plurality of client components are determined based on the configuration file.
According to the embodiment of the disclosure, the functions of the target application program may include, for example, a page jump function, a communication function of information interaction, a service call function, and the like.
According to the embodiment of the disclosure, the mapping relation between the functions of the target application program and the client components can be determined according to the information in the configuration file, the mapping relation is stored in the set, and the corresponding client components can be directly loaded from the set when the target functions are executed, so as to realize the target functions.
For example, under the android native system, the target application program obtains a configuration file, the configuration file comprises page information, routing information and the like, and the client component is registered in the set according to the page information and the routing information, so that each function of the target application program and the client component store a mapping relation. For example, when the page jump function is operated, a page jump event is clicked, action in the configuration file is read, the action comprises routing information of page jump, and a client component corresponding to the page jump function is loaded in a corresponding set according to the routing information, so that the jump is completed.
In operation S203, in response to an operation instruction for implementing the target function, a plurality of target client components corresponding to the target function are sequentially called to control the target application to implement the target function.
According to an embodiment of the present disclosure, the operation instruction may include, for example, a user clicking one icon in the target application program on one of the pages to execute a function corresponding to the icon. For example, the icon implements a navigation function of jumping to another page, and then a client component corresponding to the jumping function and a client component corresponding to the displaying of another page are called, so that the page jumps to the corresponding page of the clicked icon.
According to the embodiment of the disclosure, the configuration file and the target resource package of the target application program are obtained based on the identity information of the user, the mapping relation between each function of the target application program and the client end component in the target resource package is determined according to the configuration file, and when an operation instruction of the user for realizing the target function is received, the plurality of target client end components corresponding to the target function are called to realize the target function. The method and the device at least partially solve the technical problem that the running efficiency of the application program obtained through low-code development in the related technology is low in the android native system environment, effectively improve the smoothness of the application program in running, and realize personalized display of the page in the application program.
It should be noted that, unless explicitly stated that there is an execution sequence between different operations or there is an execution sequence between different operations in technical implementation, the execution sequence between multiple operations may not be sequential, or multiple operations may be executed simultaneously in the flowchart in this disclosure.
According to the embodiment of the disclosure, acquiring the configuration file and the target resource package of the target application program based on the identity information of the user carried in the loading request includes:
acquiring a local resource package of a target application program;
determining a guest group tag of a user based on identity information of the user;
acquiring server resource version information corresponding to the guest group label;
updating the local resource package by using the server resource version information to obtain a target resource package; and
and acquiring the configuration file from the server based on the server resource version information.
According to an embodiment of the present disclosure, the local resource package may include, for example, a base file for the target application to implement various functions.
According to an embodiment of the present disclosure, determining the guest group tag of the user based on the identity information of the user may include, for example, determining the guest group tag of the user to be 80 th, 90 th, etc. according to the age information of the user. For another example, the guest group tags of the user are determined to be boys and girls according to the gender information of the user. For another example, according to the region information of the user, the passenger group labels of the user are determined to be southern people, northern people and the like.
According to an embodiment of the present disclosure, the guest group tag includes a general guest group and a gray guest group;
the acquiring of the server resource version information corresponding to the guest group tag includes:
determining the category of the guest group label;
under the condition that the guest group label is determined to be a common guest group, the version information of a default resource package in the server is used as the resource version information of the server; and
and under the condition that the client group label is determined to be the gray client group, taking the version information of the gray resource packet corresponding to the gray client group in the server as the server resource version information.
According to the embodiment of the disclosure, the user can be determined to be a common passenger group or a gray passenger group according to the association table representing the relationship between the passenger group label and the passenger group category. Taking the passenger group tag identified according to the age information as an example, after the passenger group tag of the user is 50, it can be determined that the user is a gray-scale passenger group based on the association table, and the specific gray-scale passenger group is an elderly person group.
According to the embodiment of the disclosure, the version information of the default resource package and the version information of the gray level resource package corresponding to different gray level guest groups are preset in the server, and the version information of different gray level resource packages is provided for different gray level guest groups. For example, if the gray level guest group corresponding to the user is an elderly group, the corresponding server resource package is a gray level resource package corresponding to the elderly group, and an application program applying the gray level resource package displays a larger font when displaying an interface thereof.
According to the embodiment of the disclosure, the user is divided into the common passenger group and the gray passenger group through the passenger group tags, and the gray passenger group corresponds to the version information of different gray resource packages according to the difference of the passenger group tags, so that personalized display can be supported, and different users can see different pages by using the same target application program.
According to the embodiment of the disclosure, the server resource version information includes a server resource version number, and the local resource packet has a local resource version number;
the updating of the local resource package by using the server resource version information to obtain the target resource package includes:
acquiring a differential data packet from a server based on the server resource version number and the local resource version number, wherein the differential data packet comprises inconsistent data in the server resource packet and the local resource packet corresponding to the server resource version number; and
and updating the local resource packet by using the differential data packet to obtain a target resource packet.
According to the embodiment of the present disclosure, for example, if the version number of the server resource is V1.03, and the version number of the local resource packet is V1.01, the differential packet between the resource packet corresponding to the version number V1.01 and the resource packet corresponding to the version number V1.03 is used to update the local resource packet, so as to obtain the target resource packet.
According to the embodiment of the disclosure, the delta data packet is obtained from the server according to the server resource version number and the local resource version number, and the target resource packet is obtained by updating the local resource packet with the delta data packet. In the process of updating the local resource packet, only the difference data packet needs to be acquired from the server, and only inconsistent data in the server resource packet and the local resource packet needs to be updated, so that the updating effect is faster and more convenient.
According to the embodiment of the disclosure, the target function includes a page jump function of jumping to a target page, a communication function of implementing information interaction, and a service call function of calling a target service.
According to an embodiment of the present disclosure, an interception component is included in the plurality of client components;
before sequentially calling a plurality of target client side components corresponding to the target functions, the method further comprises the following steps:
based on the identity information of the user, carrying out authority verification on the user;
under the condition that the user passes the authority verification, sequentially calling a plurality of target client components corresponding to the target functions;
calling an interception component to jump to an interception page under the condition that the user is determined not to pass the authority verification; and
and responding to the condition that the information input by the user on the interception page passes the authority verification, and sequentially calling a plurality of target client components corresponding to the target functions.
According to embodiments of the present disclosure, the interception component may include, for example, a login interceptor, a log interceptor, a model interceptor, and the like.
For example, when the user performs the page jump function, if the user has successfully logged in, the page jump is directly performed. When the user performs the page jump function, if the user does not log in, the user jumps to a login page firstly, and then page jump is performed after the user logs in successfully.
Fig. 3 schematically illustrates a flowchart of a method for a target application to obtain a configuration file according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S312.
In operation S301, a guest group tag of a user and a local resource package of a target application are acquired.
And after the acquisition of the related information of the target application program is completed, a resource package version detection request is sent to a middle station service of the back management platform.
In operation S302, it is determined whether to upload guest group tag information. In a case where it is determined that the upper delivery group tag information is selected in the setting of the target application, operation S303 is performed; in a case where it is determined that the upper delivery group tag information is not selected in the setting of the target application, operation S305 is performed.
In operation S303, it is determined whether a gray resource package exists. In case it is determined that there is a gray resource package, performing operation S304; in the case where it is determined that there is no grayscale resource pack, operation S305 is performed.
In operation S304, it is determined whether the guest group tag corresponding to the gray resource package matches the guest group tag of the user. Executing operation S306 when it is determined that the guest group tag corresponding to the grayscale resource package matches the guest group tag of the user; in a case that it is determined that the guest group tag corresponding to the grayscale resource package does not match the guest group tag of the user, operation S305 is performed.
In operation S305, version information of the default resource package is acquired as server resource version information.
In operation S306, version information of the grayscale resource package is acquired as server resource version information.
In operation S307, it is determined whether the server resource version information needs to be updated. In a case that it is determined that the server resource version information needs to be updated, performing operation S308; in a case where it is determined that the server resource version information does not need to be updated, operation S309 is performed.
In operation S308, the server-side resource version information is updated based on the resource server.
In operation S309, a configuration file is requested from the resource server based on the version information of the server-side resource package.
In operation S310, it is determined whether the local resource package needs to be updated. Executing operation S311 when it is determined that the local resource package needs to be updated according to the server resource package; in case that it is determined from the server side resource package that the local resource package does not need to be updated, operation S312 is performed.
In operation S311, the delta data packet is obtained from the resource server, and the local resource packet is updated by using the delta data packet, so as to obtain the target resource packet.
In operation S312, the local resource package is taken as a target resource package.
Fig. 4 schematically shows a flowchart of a method for operating a page jump function in a target application according to an embodiment of the present disclosure.
The method also comprises a program loading process before execution.
In the program loading process, determining client components which need to be called when the modules such as M1 and M2 in the target application generate pages based on the acquired configuration files so as to acquire the mapping relation between the page jump function realized by each module and the client components; and through the APT technology, each module can generate an information class based on the mapping relation and add the information class to the set of routes.
APT, short for indication Processing Tool, refers to that Annotation can be processed during code compiling, and Java files are generated, so that manual code input is reduced. And the APT technology can solve the problem of dependence among modules and is matched with decoupling among the modules.
As shown in fig. 4, the method includes operations S401 to S405.
In operation S401, a click operation of the user on the first page of the module M1 is received, and a page jump operation to jump to the second page is performed.
In operation S402, the information carried in the first page and the related information jumping to the second page are transmitted into the route.
In operation S403, a client component corresponding to the page jump function is acquired from the information class according to the received information.
In operation S404, the interceptor is executed to perform the authority verification.
In operation S405, after determining that the user passes the authority verification, the client component is invoked to perform a page jump from the first page to the second page of the module M2.
Fig. 5 schematically shows a flowchart of an implementation method of a service call function between modules in a target application according to an embodiment of the present disclosure.
The method also comprises a program loading process before execution.
In the program loading process, determining client components needing to be called when the modules such as M1 and M2 in the target application generate pages based on the acquired configuration file so as to acquire the mapping relation between the service calling function realized by each module and the client components; and through the APT technology, each module can generate an information class based on the mapping relation and add the information class to the set of routes. When the module M1 calls the service of the module M2, the service interface of the module M2 is sunk into the route, the service is exposed for the module M1 to call, the interfaces of the module M1 and the module M2 are connected in the route, and the service is registered in the module M1.
As shown in fig. 5, the method includes operations S501 to S508.
In operation S501, a click operation of the user on the first page of the module M1 is received, and an operation of calling the target service in the module M2 is performed.
In operation S502, information of the target service that needs to be invoked is passed into the route.
In operation S503, a client component corresponding to a function that implements the call target service is acquired from the information class according to the received information.
In operation S504, the client component is invoked to effect a call to the target service in module M2.
According to the embodiment of the present disclosure, since the modules are completely decoupled in the target application, the interface is sunk into the core library of the base when the implementation is performed, then the interface is implemented in the service provider module M2, and then the service caller M1 can call the service provided by the service provider M2 through routing.
According to the embodiment of the disclosure, as the modules are completely decoupled in the template application program, the subsequent maintenance cost is reduced, and the maintenance is convenient.
Fig. 6 schematically shows a block diagram of the structure of an application development apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the application development device includes two parts, a back pipe platform 610 and a client running platform 620.
The backend platform 610 includes content management 611, guest group management 612, resource version management 613, and grayscale management 614, which allows a development user to generate a configuration file of content in a drag-and-drop manner, and to define different page contents for different guest groups.
The client runtime platform 620 is an application generated by the application development device chassis of the present disclosure. The client runtime platform 620 may pull the client component corresponding to each user from the backend platform 610 during runtime, initialize all pages through the configuration file, and then dynamically generate elements of each page and corresponding event information according to the client component of the page content when entering each page of the client runtime platform 620, thereby generating an application program that can be used by the user during runtime.
According to the embodiment of the disclosure, by adopting the application program development device provided by the disclosure, a development user can rapidly develop an application program through the development device in a simple dragging mode, and the development device of the field drive design is realized. Meanwhile, the configuration file is issued through the back pipe platform 610 in the development device, and rendering is performed through android native, so that the personalized display effect is achieved under the condition that fluency is guaranteed.
FIG. 7 schematically illustrates a schematic diagram of an application framework according to an embodiment of the disclosure.
As shown in fig. 7, the development apparatus 700 of this embodiment includes, from top to bottom, an APP Starter layer 701, a service module layer 702, and a component layer 703.
The APP Starter layer 701 is an APP shell, is used for providing a start screen, initialization work of life cycles of components, and the like, and can start a designated module through configuration.
The service module layer 702 may be a Native module, or may be H5 or RN Bundle. Any one service module can independently exist as an application, and has a complete application period without a dependency relationship. The hopping, communication, service invocation between the various traffic modules may be implemented, but not limited to, using routing.
H5 refers to generation 5 HTML. HTML is an abbreviation of hypertext markup language and is a necessary tool for web page production.
RN is an abbreviation of reactive native, a kind of computer language.
The component layer 703, the output form of the component layer, may include source code dependency, far-end jar (computer file package format) package dependency, or far-end aar dependency.
The component layer 703 may include, for example, core components, functional components, UI components, and the like.
The core components may include, for example, components such as MVP Base, Network, Router, Autosize, Cache, Config, and so forth.
The MVP Base function refers to the Base class of MVP and is the basis of computer program design.
Network is a Network request function, which refers to requesting messages, services, etc. from a client to a server.
Router is a page routing function, used for mapping page jump relation, including functions of URL jump and value transfer related to jump, interceptor, etc.
The Autosize is a screen adapting function, which means that a certain element has the same display effect on mobile phones with different sizes and different resolutions.
The Cache is a high-speed small-capacity temporary memory, can be realized by a high-speed static memory chip, or is integrated into a CPU chip to store instructions or operation data which are accessed by the CPU most frequently.
Config is a configuration command used to store configuration information commonly used by the client.
Service is a Service function, which is a piece of code running in the background, and it can run in its own process, and also in the context (context) of other application program processes, depending on its needs. Other components may be bound to a service, and the method may be invoked by Remote Procedure Calls (RPCs). For example, a service of a media player, may wish to continue playing music when the user exits the media selection user interface, which is ensured by the service when the user interface is closed.
The functional components may include, for example, Push, QR, Bridge, LBS, Share, ASR, IM, and like components.
Push refers to active message pushing of an operator to a user mobile device through a product or a third-party tool. The user can see Push message notification on the mobile device lock screen and the notification bar, and the notification bar can be clicked to call up the application program and go to the corresponding page.
QR refers to a two-dimensional code scanning or generating function.
Bridge means bridging, meaning communication across languages; such as communication between client Java and Web-side Js.
LBS is a location based service that acquires location information of a mobile terminal user through a telecommunication mobile operator's radio communication network (e.g., GSM network, CDMA network) or an external positioning means (e.g., GPS).
ASR refers to automatic speech recognition functionality. For example, speech is converted to text.
IM refers to an instant messaging function, and is a service capable of instantly sending and receiving internet messages and the like.
OCR is a character recognition function, and a technology of automatically recognizing characters by using a computer is an important field of pattern recognition applications.
UI components may include, for example, common Lists, ViewPager, Menu, etc., supporting custom component view styles.
The List is a form of a List, in which a table is used as a container to contain the text or the chart.
ViewPager is a layout management function used to implement different views.
Menu is a Menu function for adjusting display parameters and the like.
Fig. 8 schematically shows a flowchart of an application development method according to an embodiment of the present disclosure.
As shown in fig. 8, the application development method of this embodiment for developing a target application controlled by the control method described above includes operations S801 to S803.
In operation S801, an initial application framework is obtained, wherein the initial application framework includes a plurality of client components.
According to an embodiment of the present disclosure, the initial application framework is, for example, the application framework shown in FIG. 7 described above.
In operation S802, a configuration file is generated in response to a drag operation of a development user with respect to a plurality of client components.
In operation S803, the configuration file is loaded using the initial application framework to generate a resource package of the target application program.
According to an embodiment of the present disclosure, a default component and a grayscale component are included in the plurality of client components.
According to embodiments of the present disclosure, the same functionality may be achieved when applying the default component and the grayscale component, but different pages may be presented.
Wherein, in response to the drag operation of the development user for the plurality of client components, generating a configuration file comprises:
generating a default configuration file or a gray level configuration file in response to the dragging operation of a development user for a plurality of default components or a plurality of gray level components;
according to an embodiment of the present disclosure, loading a configuration file using an initial program framework to generate a resource package of a target application program includes:
loading a default configuration file by using an initial program framework to generate a default resource package of a target application program; or
And loading the gray configuration file by using the initial program framework to generate a gray resource package of the target application program.
Fig. 9 schematically shows a block diagram of an application control device according to an embodiment of the present disclosure.
As shown in fig. 9, the application control apparatus 900 of this embodiment includes a first obtaining module 901, a first determining module 902, and a first calling module 903.
A first obtaining module 901, configured to, in response to a loading request for requesting to load a target application, obtain a configuration file of the target application and a target resource package based on identity information of a user carried in the loading request, where the target resource package includes a plurality of client components.
A first determining module 902 is configured to determine mapping relationships between functions of the target application and the plurality of client components based on the configuration file.
The first calling module 903 is configured to, in response to an operation instruction for implementing a target function, sequentially call a plurality of target client components corresponding to the target function to control a target application program to implement the target function.
According to the embodiment of the disclosure, a configuration file and a target resource package of a target application program are acquired by a first acquisition module 901 based on identity information of a user, a mapping relation between each function of the target application program and a client component in the target resource package is determined by a first determination module 902 according to the configuration file, and when an operation instruction of the user for realizing the target function is received, a plurality of target client components corresponding to the target function are called by a first calling module 903 to realize the target function, so that each page to be displayed is finally generated. The technical problems of unsmooth operation and low operation efficiency in the related art are at least partially solved.
According to an embodiment of the present disclosure, the first obtaining module 901 includes a first obtaining unit, a first determining unit, a second obtaining unit, an updating unit, and a third obtaining unit.
The first acquisition unit is used for acquiring the local resource package of the target application program.
The first determining unit is used for determining the guest group label of the user based on the identity information of the user.
And the second acquisition unit is used for acquiring the server resource version information corresponding to the guest group label.
And the updating unit is used for updating the local resource package by using the server resource version information to obtain the target resource package.
And the third acquisition unit is used for acquiring the configuration file from the server based on the server resource version information.
According to an embodiment of the present disclosure, the guest group tag includes a general guest group and a gray guest group.
According to an embodiment of the present disclosure, the second obtaining unit includes a first determining subunit, a second determining subunit, and a third determining subunit.
A first determining subunit, configured to determine a category of the guest group tag.
And the second determining subunit is used for taking the version information of the default resource package in the server as the server resource version information under the condition that the guest group label is determined to be the common guest group.
And the third determining subunit is used for taking the version information of the gray resource packet corresponding to the gray guest group in the server as the server resource version information under the condition that the guest group label is determined to be the gray guest group.
According to the embodiment of the disclosure, the server resource version information includes a server resource version number, and the local resource packet has a local resource version number.
According to an embodiment of the present disclosure, an update unit includes a first acquisition subunit and an update subunit.
The first obtaining subunit is configured to obtain a delta data packet from the server based on the server resource version number and the local resource version number, where the delta data packet includes data that is inconsistent in the server resource packet and the local resource packet corresponding to the server resource version number.
And the updating subunit is used for updating the local resource packet by using the difference data packet to obtain the target resource packet.
According to the embodiment of the disclosure, the target function includes a page jump function of jumping to a target page, a communication function of implementing information interaction, and a service call function of calling a target service.
According to an embodiment of the present disclosure, an interception component is included in the plurality of client components.
According to the embodiment of the disclosure, the application control device further comprises a verification module, a second determination module, a third determination module and a second calling module.
And the verification module is used for verifying the authority of the user based on the identity information of the user.
And the second determining module is used for sequentially calling the plurality of target client components corresponding to the target functions under the condition that the user is determined to pass the authority verification.
And the third determination module is used for calling the interception component to jump to the interception page under the condition that the user is determined not to pass the authority verification.
And the second calling module is used for responding to the condition that the information input by the user on the interception page passes the authority verification and sequentially calling a plurality of target client components corresponding to the target functions.
Fig. 10 schematically shows a block diagram of an application development apparatus according to an embodiment of the present disclosure.
As shown in fig. 10, 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.
A second obtaining module 1001, configured to obtain an initial application framework, where the initial application framework includes a plurality of client components.
A first generating module 1002, configured to generate a configuration file in response to a drag operation of a development user for a plurality of client components.
A second generating module 1003, configured to load the configuration file using the initial application framework to generate the resource package of the target application program.
According to an embodiment of the present disclosure, a default component and a grayscale component are included in the plurality of client components, wherein the default component and the grayscale component are used to implement the same functionality.
According to an embodiment of the present disclosure, the first generation module 1002 includes a first generation unit.
The device comprises a first generation unit, a second generation unit and a third generation unit, wherein the first generation unit is used for responding to the dragging operation of a development user for a plurality of default components or a plurality of gray-scale components and generating a default configuration file or a gray-scale configuration file.
According to an embodiment of the present disclosure, the second generation module 1003 includes a second generation unit or a third generation unit.
And the second generation unit is used for loading the default configuration file by using the initial program framework so as to generate a default resource package of the target application program.
Or a third generating unit, configured to load the grayscale configuration file using the initial program framework to generate the grayscale resource package of the target application program.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part 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 may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the first obtaining module 901, the first determining module 902, and the first invoking module 903 may be combined to be implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality 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 obtaining module 901, the first determining module 902, and the first invoking module 903 may 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 may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or implemented by any suitable combination of any of the three implementations. Alternatively, at least one of the first obtaining module 901, the first determining 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, the corresponding function may be executed.
It should be noted that the application control device portion in the embodiment of the present disclosure corresponds to the application control method portion in the embodiment of the present disclosure, and the description of the application control device portion specifically refers to the application control method portion, which is not described herein again.
Fig. 11 schematically shows a block diagram of an electronic device adapted to implement an application control method according to an embodiment of the present disclosure. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, a 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 section 1108 into a Random Access Memory (RAM) 1103. The processor 1101 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 1101 may also include on-board memory for caching purposes. The processor 1101 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to the embodiments of the present disclosure.
In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are stored. The processor 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. The processor 1101 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1102 and/or the RAM 1103. It is noted that the programs may also be stored in one or more memories other than the ROM 1102 and RAM 1103. The processor 1101 may also perform various operations of the method flows according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 1100 may also include input/output (I/O) interface 1105, input/output (I/O) interface 1105 also connected to bus 1104, according to an embodiment of the disclosure. Electronic device 1100 may also include one or more of the following components connected to I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal output unit such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. The driver 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, or the like is mounted on the drive 1111 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 1109 and/or installed from the removable medium 1111. The computer program, when executed by the processor 1101, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 1102 and/or the RAM 1103 and/or one or more memories other than the ROM 1102 and the RAM 1103 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being adapted to cause the electronic device to carry out the application control method provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 1101, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication part 1109, and/or installed from the removable medium 1111. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (13)

1. An application control method comprising:
responding to a loading request for requesting to load a target application program, and acquiring a configuration file and a target resource package of the target application program based on identity information of a user carried in the loading request, wherein the target resource package comprises a plurality of client components;
determining a mapping relationship between functions of the target application and a plurality of the client components based on the configuration file; and
and responding to an operation instruction for realizing a target function, and sequentially calling a plurality of target client side components corresponding to the target function so as to control the target application program to realize the target function.
2. The method of claim 1, wherein the obtaining the configuration file and the target resource package of the target application based on the identity information of the user carried in the loading request comprises:
acquiring a local resource package of the target application program;
determining a guest group tag of the user based on the identity information of the user;
acquiring server resource version information corresponding to the guest group label;
updating the local resource package by using the server resource version information to obtain the target resource package; and
and acquiring the configuration file from the server based on the server resource version information.
3. The method of claim 2, wherein the guest group tag comprises a regular guest group and a grayscale guest group;
the obtaining of the server resource version information corresponding to the guest group tag includes:
determining a category of the guest group tag;
under the condition that the guest group label is determined to be a common guest group, taking the version information of a default resource packet in the server as the resource version information of the server; and
and under the condition that the client group label is determined to be a gray client group, taking the version information of a gray resource packet corresponding to the gray client group in the server as the version information of the server resource.
4. The method of claim 2, wherein the server resource version information includes a server resource version number, the local resource package having a local resource version number;
wherein the updating the local resource package by using the server resource version information to obtain the target resource package includes:
acquiring 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 comprises inconsistent data in the server resource packet and the local resource packet corresponding to the server resource version number; and
and updating the local resource packet by using the differential data packet to obtain the target resource packet.
5. The method of claim 1, wherein the target functions include a page jump function to jump to a target page, a communication function to implement information interaction, and a service call function to call a target service.
6. The method of claim 1, wherein an intercepting component is included in the plurality of client components;
before the sequentially calling the plurality of target client side components corresponding to the target functions, the method further comprises the following steps:
performing authority verification on the user based on the identity information of the user;
under the condition that the user passes the authority verification, sequentially calling a plurality of target client components corresponding to the target functions;
calling the interception component to jump to an interception page under the condition that the user is determined not to pass the permission verification; and
and responding to the fact that the information input by the user on the interception page passes the authority verification, and sequentially calling a plurality of target client components corresponding to the target functions.
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:
obtaining an initial application framework, wherein the initial application framework comprises a plurality of client components;
generating a configuration file in response to a drag operation of a development user for a plurality of client components; and
and loading the configuration file by using the initial application framework to generate a resource package of the target application program.
8. The method of claim 7, wherein a default component and a grayscale component are included in the plurality of client components, wherein the default component and the grayscale component are used to implement the same functionality;
wherein the generating a configuration file in response to a drag operation of a development user for a plurality of client components comprises:
generating a default configuration file or a gray level configuration file in response to the dragging operation of the development user for the plurality of default components or the plurality of gray level components;
wherein the loading the configuration file using the initial program framework to generate the resource package of the target application program comprises:
loading the default configuration file by using the initial program framework to generate a default resource package of the target application program; or
And loading the gray configuration file by using the initial program framework to generate a gray resource package of the target application program.
9. An application control apparatus comprising:
a first obtaining module, configured to, in response to a loading request for requesting to load a target application program, obtain a configuration file and a target resource package of the target application program based on user identity information carried in the loading request, where the target resource package includes a plurality of client components;
a first determining module, configured to determine, based on the configuration file, mapping relationships between functions of the target application and the plurality of client components; and
the first calling module is used for responding to an operation instruction for realizing a target function and sequentially calling a plurality of target client side components corresponding to the target function so as to control the target application program to realize the target function.
10. An application development apparatus for developing a target application controlled by the control method according to any one of claims 1 to 6, the apparatus comprising:
a second obtaining module, configured to obtain an initial application framework, where the initial application framework includes a plurality of client components;
the first generation module is used for responding to the dragging operation of a development user aiming at a plurality of client components and generating a configuration file; and
and the second generation module is used for loading the configuration file by using the initial application framework so as to generate the resource package of the target application program.
11. An electronic device, comprising:
one or more processors;
a memory to store one or more instructions that,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 8.
13. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 8 when executed.
CN202111132620.7A 2021-09-26 2021-09-26 Application program control method and device and application program development method and device Pending CN113805973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111132620.7A CN113805973A (en) 2021-09-26 2021-09-26 Application program control method and device and application program development method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111132620.7A CN113805973A (en) 2021-09-26 2021-09-26 Application program control method and device and application program development method and device

Publications (1)

Publication Number Publication Date
CN113805973A true CN113805973A (en) 2021-12-17

Family

ID=78938715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111132620.7A Pending CN113805973A (en) 2021-09-26 2021-09-26 Application program control method and device and application program development method and device

Country Status (1)

Country Link
CN (1) CN113805973A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356481A (en) * 2021-12-29 2022-04-15 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114895980A (en) * 2022-05-07 2022-08-12 中国农业银行股份有限公司 Application program running method and device, electronic equipment and storage medium
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114936192A (en) * 2022-07-19 2022-08-23 成都新橙北斗智联有限公司 Method and system for dynamically compressing, obfuscating and bidirectionally caching files

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356481A (en) * 2021-12-29 2022-04-15 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114895980A (en) * 2022-05-07 2022-08-12 中国农业银行股份有限公司 Application program running method and device, electronic equipment and storage medium
CN114936192A (en) * 2022-07-19 2022-08-23 成都新橙北斗智联有限公司 Method and system for dynamically compressing, obfuscating and bidirectionally caching files

Similar Documents

Publication Publication Date Title
US11119812B2 (en) Method and device for processing application program page according to a common interface container
US11816492B2 (en) Third party integration of plugins and widgets
CN113805973A (en) Application program control method and device and application program development method and device
US9292253B2 (en) Methods and apparatus for voiced-enabling a web application
US8966508B2 (en) Method for executing hybrid web application and apparatus therefor
US11157259B1 (en) Semantic and standard user interface (UI) interoperability in dynamically generated cross-platform applications
CN105308559A (en) Dynamically configuring user experiences with action uniform resource identifiers
US20200125336A1 (en) System and method for enhancing component based development models with auto-wiring
CN106997298A (en) A kind of application resource acquisition methods and device
US11895553B2 (en) Web application with components in different virtual environments
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
US11763217B2 (en) Dynamic feature loading
US20160343041A1 (en) INTERFACING WITH SERVERS HAVING DIFFERENT APIs TO OBTAIN ADVERTISEMENT DATA
CN112965916A (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN113778393A (en) Component generation method, device, computer system and computer-readable storage medium
US10084852B1 (en) Separated device detection architecture
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
CN110618811B (en) Information presentation method and device
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN113835790B (en) Paging page display method and device based on Android
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
US11468898B2 (en) Common skill store for different virtual assistants
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113596164A (en) Data access method, device, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination