CN116149638A - Processing method and device for application program in online development platform and storage medium - Google Patents

Processing method and device for application program in online development platform and storage medium Download PDF

Info

Publication number
CN116149638A
CN116149638A CN202310224823.1A CN202310224823A CN116149638A CN 116149638 A CN116149638 A CN 116149638A CN 202310224823 A CN202310224823 A CN 202310224823A CN 116149638 A CN116149638 A CN 116149638A
Authority
CN
China
Prior art keywords
application program
application
development platform
code
range
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
CN202310224823.1A
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.)
Shanghai Weaver Network Technology Co ltd
Original Assignee
Shanghai Weaver Network 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 Shanghai Weaver Network Technology Co ltd filed Critical Shanghai Weaver Network Technology Co ltd
Priority to CN202310224823.1A priority Critical patent/CN116149638A/en
Publication of CN116149638A publication Critical patent/CN116149638A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a processing method, a device and a storage medium of an application program in an online development platform, wherein the method comprises the following steps: an application program is obtained through construction of an online development platform; configuring a use range of the application program in the visual interface, wherein the application range comprises the user identity of the usable application program; constructing a code file of the application program into an object code file applicable to an operating system based on the use range; and when the operating system loads the running file, loading and executing the target application program matched with the identity information in the target code file based on the identity information of the current login user. According to the embodiment of the application program code loading method and device, the loading range of the application program code in the online development platform can be accurately controlled from multiple dimensions, the development efficiency of the application program in the online development platform is improved, and the development experience is improved.

Description

Processing method and device for application program in online development platform and storage medium
Technical Field
The embodiment of the application relates to the field of computers, in particular to a processing method, a processing device and a storage medium of an application program in an online development platform.
Background
The code online development platform (Web IDE) is an online integrated development environment for programming developers. The code online development platform does not need to be installed locally, can realize development flow in a browser, supports functions of debugging, version management, team development and the like, and is beneficial to improving development efficiency and reducing development cost.
In the prior art, application program codes are loaded and executed in a client (namely a browser) in a proxy access mode, so that the loading range of the application program is difficult to control in the client, the development difficulty is greatly increased, and the development experience is reduced. For example, it cannot be controlled whether JavaScript code and CSS code of a certain application are executed in the client. Therefore, there is a need to provide a solution to the above-mentioned problems.
Disclosure of Invention
The embodiment of the application provides a processing method, a device and a storage medium of an application program in an online development platform, which are used for realizing accurate control of the loading range of application program codes in the online development platform, improving the development efficiency of the application program in the online development platform and improving the experience of developers.
In a first aspect, an embodiment of the present application provides a method for processing an application program in an online development platform, where the method includes:
An application program is obtained through construction of an online development platform;
configuring a use range of the application program in the visual interface, wherein the application range comprises the user identity of the usable application program;
constructing a code file of the application program into an object code file applicable to an operating system based on the use range;
and when the operating system loads the running file, loading and executing the target application program matched with the identity information in the target code file based on the identity information of the current login user.
In one possible design, the visual interface is pre-built by:
defining templet configuration through a script library act, and building a visual interface;
the visual interface is used for managing the association relation between the application program and the user identity from multiple dimensions, and the user identity comprises at least one of the following: personnel, roles, tenants of the application may be used.
In one possible design, configuring the scope of use of the application in the visualization interface includes:
for each application program in an application system of an online development platform, configuring the application range of each application program in a visual interface through visual operation; the application range of each application program comprises the association relation between each application program and a user who can use each application program;
The application program using range is synchronized into the application system.
In one possible design, after configuring the application's usage scope in the visualization interface, the method further includes:
the scope of use of the application is modified or maintained in the visualization interface.
In one possible design, building code files of an application as object code files suitable for an operating system based on a range of use includes:
for each application program in the application system of the online development platform, the application system performs code arrangement on the code files of each application program based on the user identity information associated with each application program in the application range to obtain the arranged code files;
reorganizing the arranged code files into target code files;
wherein the object code file includes at least one of the following information: JS application codes corresponding to each application program, CSS style codes corresponding to each application program, user identity information associated with each application program and subordinate relations among all levels of users.
In one possible design, the application is built through an online development platform, including:
in a code online development platform, compiling and constructing a written application program code through a packaging tool weback to obtain an initial code file of an application program;
And storing the initial code file obtained by construction to a server, wherein the server is realized by using Java as a programming language.
In one possible design, the method further comprises:
copying the code file of the application program to obtain the code file of the application program under a plurality of branches;
storing an association relationship between the application program and a user who can use the application program before the copying process and after the copying process;
executing branch management operation of the application program based on the code files and the association relations of the application program under a plurality of branches;
wherein the branch management operation of the application under the plurality of branches includes at least one of: code writing, constructing packaging and configuring the use range.
In a second aspect, an embodiment of the present application provides an application processing apparatus applied to an online development platform, which has a function of implementing a processing method corresponding to an application in the online development platform provided in the first aspect. The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware.
In one embodiment, the apparatus comprises:
the construction module is configured to construct an application program through the online development platform;
a configuration module configured to configure a range of use of the application in a visual interface, wherein the range of application includes a user identity that can use the application;
a reconstruction module configured to construct a code file of the application program as an object code file applicable to an operating system based on the usage scope;
and the loading module is configured to load and execute the target application program matched with the identity information in the target code file based on the identity information of the current login user when the operating system loads the running file.
In a third aspect, an embodiment of the present application provides a computing device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the method for processing an application in the online development platform described in the first aspect when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of processing an application in an online development platform as described in the first aspect.
Compared with the prior art, in the embodiment of the application, the application program is firstly constructed through the online development platform. Further, a scope of use of the application is configured in the visual interface, the scope of use of the application including a user identity of the available application. Further, the code file of the application program is constructed as an object code file suitable for the operating system based on the use range of the application program. Therefore, the application programs which can be loaded when users with different identities use the client can be planned through the application program use ranges, and therefore the application program use ranges can be distinguished under multiple dimensions. Finally, when the operating system loads the running file, based on the identity information of the current login user, loading and executing the target application program matched with the identity information in the target code file. Therefore, the application program code loading range in the online development platform is accurately controlled from multiple dimensions, the development efficiency of the application program in the online development platform is improved, the development difficulty is greatly reduced, and the development experience is improved.
Drawings
The objects, features and advantages of the embodiments of the present application will become readily apparent from the detailed description of the embodiments of the present application read with reference to the accompanying drawings. Wherein:
FIG. 1 is a flow chart of a method for processing an application program in an online development platform according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a method for processing an application program in an online development platform according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a processing method of an application program in another online development platform according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a processing method of an application program in an online development platform according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an application processing device applied to an online development platform according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a computing device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The terms first, second and the like in the description and in the claims of the embodiments and in the above-described figures are used for distinguishing between similar objects (e.g. first and second features are each shown as a different feature, and other similar) and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those listed or explicitly listed or inherent to such process, method, article, or apparatus, but may include other steps or modules that may not be listed or inherent to such process, method, article, or apparatus, and the partitioning of such modules by embodiments of the present application may include only one logical partitioning, and may include additional partitioning by practical implementation, such that a plurality of modules may be combined or integrated in another system, or some features may be omitted or not implemented. In addition, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling between modules via interfaces, and the communication connection may be in electrical or other similar forms, which are not limited in this application. The modules or sub-modules described as separate components may or may not be physically separate, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
The embodiment of the application provides a processing method of an application program in an online development platform, which can be applied to an application development scene, and relates to at least one service device and/or at least one terminal device. For example, a service device comprises an application processing means for application in an online development platform for executing steps of processing different phases of an application in the online development platform. For example, a terminal device comprises an application processing means for application in an online development platform, said application processing means being adapted to perform the steps of the different phases of processing of an application. For example, the application processing device applied to the online development platform is used for configuring the use range of the application program constructed by the online development platform in the visual interface, and then constructing the code file of the application program into an object code file suitable for an operating system based on the use range, so that when the operating system loads a running file, the object application program matched with the identity information in the object code file is loaded and executed based on the identity information of the current login user. The application processing device applied to the online development platform can be a server or terminal device which configures the application range of the application program constructed by the online development platform in a visual interface, then constructs a code file of the application program into a target code file suitable for an operating system based on the application range, so as to load the application program for executing the target application program matched with the identity information in the target code file based on the identity information of the current login user when the operating system loads the running file, or configures the application range of the application program constructed by the online development platform in the visual interface, and then constructs the code file of the application program into the target code file suitable for the operating system based on the application range, so as to load the application program for executing the target application program matched with the identity information in the target code file based on the identity information of the current login user when the operating system loads the running file.
For facilitating the reading of the present application document, the following describes some technical concepts related to the present application:
java, a computer programming language, can transform technical schemes into a specific technical implementation. The source code file written by the language is compiled by a computer compiler and converted into byte codes, and the file suffix is named class.
JavaScript, abbreviated as JS, is a lightweight, interpreted or just-in-time compiled programming language with function priority. Although it is named as a scripting language for developing Web pages, it is also used in many non-browser environments, javaScript is based on prototype programming, a multiple-paradigm dynamic scripting language, and supports object-oriented, imperative, and declarative (e.g., functional programming) styles.
Cascading style sheets (Cascading Style Sheets, CSS), a computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language). The CSS not only can statically modify the web page, but also can dynamically format each element of the web page in cooperation with various scripting languages.
ECMAScript 6, abbreviated as ES6, is a JavaScript language standard, which aims to make JavaScript language be used to write complex large-scale application programs, becoming an enterprise-level development language.
The reaction is mainly used for constructing the UI, and various types of parameters, such as declaration codes, which are used for assisting UI rendering, static HTML DOM elements, dynamic variables and even interactive application components, are transferred in the reaction.
Gray scale distribution, also called canary distribution, refers to a distribution mode that enables smooth transition between black and white. On which a/B testing can be performed, i.e. letting a part of the users continue to use the product property a and a part of the users start to use the product property B, if the users do not have any objection to B, the scope is gradually expanded and all users are migrated to B. The gray level release can ensure the stability of the whole system, and the problems can be found and adjusted during the initial gray level so as to ensure the influence degree.
Webpack is a static module packaging tool for modern JavaScript applications. When weback processes an application, it builds a dependency graph internally, which maps to each module required for an item and generates one or more bundles.
In the prior art, a code online development platform (Web IDE) is an online integrated development environment for programming developers. The code online development platform does not need to be installed locally, can realize development flow in a browser, supports functions of debugging, version management, team development and the like, and is beneficial to improving development efficiency and reducing development cost.
In the prior art, application codes are loaded and executed in a client (namely a browser) in a proxy access mode, so that the loading range of the application program is difficult to control in the client, the requirement of multi-dimensional control of application code files cannot be met, the development difficulty is greatly increased, and the experience of developers is reduced. For example, it cannot be controlled whether JavaScript code and CSS code of a certain application are executed in the client. In the prior art, the configuration of the application program is often realized in a programming mode, the visual configuration cannot be supported, and the development difficulty is greatly increased. In addition, the prior art has the defects that the runtime isolation of the application code file cannot be controlled, the application gray level release is not supported, the application switching branch is not supported, the branch management of the application cannot be realized, and the like.
Therefore, there is a need to provide a solution to at least one of the above problems.
Compared with the prior art, in the embodiment of the application, the application program is firstly constructed through the online development platform. Further, a scope of use of the application is configured in the visual interface, the scope of use of the application including a user identity of the available application. Thus, the visual configuration of the application program is realized, and the development difficulty is greatly reduced. Further, the code file of the application program is constructed as an object code file suitable for the operating system based on the use range of the application program. Therefore, the application programs which can be loaded when users with different identities use the client can be planned through the application program use ranges, and therefore the application program use ranges can be distinguished under multiple dimensions. Finally, when the operating system loads the running file, based on the identity information of the current login user, loading and executing the target application program matched with the identity information in the target code file. Therefore, the application program code loading range in the online development platform is accurately controlled from multiple dimensions, the development efficiency of the application program in the online development platform is improved, the development difficulty is greatly reduced, and the development experience is improved.
In some embodiments, at least one of the application processing devices applied to the online development platform is integrated, and the processing method of the application in the online development platform provided in the embodiments of the present application may be implemented based on a processing system of the application in the online development platform.
The application processing device applied to the online development platform can be an application, a server or a terminal device, or can be jointly executed by a plurality of application processing devices applied to the online development platform, wherein one application processing device applied to the online development platform can be a terminal device, and the other application processing device applied to the online development platform can be a server.
It should be noted that, the server according to the embodiments of the present application may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, a cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and an artificial intelligence platform.
The terminal device according to the embodiments of the present application may be a device that provides voice and/or data connectivity to a user, a handheld device with wireless connection functionality, or other processing device connected to a wireless modem. Such as mobile telephones (or "cellular" telephones) and computers with mobile terminals, which can be portable, pocket, hand-held, computer-built-in or car-mounted mobile devices, for example, which exchange voice and/or data with radio access networks. For example, personal communication services (English full name: personal Communication Service, english short name: PCS) telephones, cordless telephones, session Initiation Protocol (SIP) phones, wireless local loop (Wireless Local Loop, english short name: WLL) stations, personal digital assistants (English full name: personal Digital Assistant, english short name: PDA) and the like.
Referring to fig. 1, fig. 1 is a flowchart of a method for processing an application in an online development platform according to an embodiment of the present application. The method can be applied to an application program processing device in the processing scene of an application program in an online development platform, the application program processing device executes the application program, a use range of the application program constructed by the online development platform is configured in a visual interface, and then a code file of the application program is constructed as an object code file applicable to an operating system based on the use range, so that when the operating system loads an operating file, the object application program matched with the identity information in the execution object code file is loaded based on the identity information of a current login user, and the processing method of the application program in the online development platform comprises the following steps:
And step S110, constructing and obtaining an application program through an online development platform.
In the embodiment of the application, in the online development platform, the application program can be constructed in various manners. For example, one possible way of construction may be: in the code online development platform, compiling and constructing a written application program code through a packaging tool (weback) to obtain an initial code file of the application program; and storing the initial code file obtained by construction to a server, wherein the server is realized by taking Java as a programming language. Therefore, the automatic compiling and constructing process of the application program can be assisted in the online development platform, and the development efficiency of the application program is greatly improved.
In addition, in the prior art, the configuration of the application program is often realized in a programming mode, the visual configuration cannot be supported, and the development difficulty is greatly increased. Aiming at the problem, the visual interface is pre-constructed in the following way, so that development difficulty is reduced, and development experience is improved.
Specifically, optionally, a templated configuration is defined by script library act, and the visual interface is built. The visual interface is used for managing association relation between the application program and user identity from multiple dimensions, and the user identity comprises at least one of the following: personnel, roles, tenants of the application may be used. Further optionally, the user identity may be pre-configured with a binding for the application program according to the test requirement and/or the use requirement of the application program, so as to adapt to the requirements of development, management, maintenance, and the like of the application program.
Step S120, configuring a use range of the application program in a visual interface. Wherein the application scope includes the user identity that can use the application program.
Step S130, constructing the code file of the application program into an object code file applicable to an operating system based on the use range.
Through steps S120 to S130, the application program and the user identity can be associated, so that the application program application range can be controlled from different dimensions (such as dimensions of recording personnel, roles, tenants and the like) through the obtained association relationship, thereby being beneficial to improving the development efficiency of the application program in the subsequent online development platform and reducing the development difficulty.
In one possible design of step S120, the application range is configured in the visual interface, as shown in fig. 2, and steps S210 to S220 may be implemented:
s210, configuring the application range of each application program in the visual interface through visual operation for each application program in the application system of the online development platform; the application range of each application program comprises the association relation between each application program and a user who can use each application program;
S220, synchronizing the use range of each application program into the application system.
Through steps S210 to S220, visual configuration of application program application range can be realized, a technical basis is provided for human-computer interaction development experience, and development efficiency is improved.
It is understood that the user who can use each application refers to a user who has the right to use each application. For example, the usage rights of each application program may be configured in the development process, may be automatically configured by the application system according to the attribute information such as the function, the requirement, the use, etc. of the application program, or may be inherited from the version before the update of the application program, which is not limited in the embodiment of the present application. Further, the association relationship between each application program and the user who can use each application program is used to represent the association relationship between each application program and the user who has the use authority.
The following describes a specific way of pre-constructing the association relationship in the present application.
Specifically, in one possible design, the association relationship between each application program and the corresponding record personnel, roles and tenants is added in the application system. For example, the above association relationship may be stored in a configuration table of the server, where the specific configuration table is as follows:
Figure BDA0004118119180000101
Figure BDA0004118119180000111
For each application program, the association relationship among record personnel, roles and tenants corresponding to each application program can be configured in the application system. Specifically, the longitudinal extension may be implemented through the support of an object type (obj_type) field.
Further, one or more rules may be configured for the user to sort and integrate the unique identifications (Identity Document, IDs) of the respective applications in step S130. Here, for each application, an ID is generated to identify the result of the rule check for the user. Here, the association table structure of the IDs is as follows:
Figure BDA0004118119180000112
it should be noted that, in addition to configuring the application scope in the visual interface, in one possible design, the application scope may also be modified or maintained in the visual interface after step S120.
After obtaining the usage ranges of the respective application programs, in one possible design of step S130, the code files of the application programs are built as target code files applicable to the operating system based on the usage ranges, as shown in fig. 3, and may be implemented as steps S310 to S320:
S310, for each application program in an application system of an online development platform, the application system performs code arrangement on code files of each application program based on user identity information associated with each application program in the application range to obtain arranged code files;
s320, reorganizing the arranged code files into the target code files.
Wherein the object code file includes at least one of the following information: JS application codes corresponding to each application program, CSS style codes corresponding to each application program, user identity information associated with each application program and subordinate relations among all levels of users.
Based on the above example, specifically, each time a rule object attribute is newly added, a type is changed, or a rule state is changed, if a request carrying user identity information is received, a corresponding rule is recalculated, a new ID is generated, code arrangement and rearrangement are performed on a code file of an application program, so that a new code file (i.e., an object code file) is obtained, and the code file is named by the newly generated ID.
And step S140, when the operating system loads the running file, loading and executing the target application program matched with the identity information in the target code file based on the identity information of the current login user.
Specifically, when the operating system running file is loaded through the browser, user identity information logged in the current operating system can be obtained. Further, the user identity information is verified according to the multi-dimensional subordinate rules of the record personnel, roles, tenants and the like introduced by the above example. For the authenticated user, the application use range matched with the user identity information is acquired, and the code files of the application in the use range are selected, including, but not limited to, JS application codes and CSS style codes of the application, are loaded and executed.
For example, referring to the application processing flow of the online development platform shown in fig. 3, after the application is built and packaged in the online development platform, the server side synchronously obtains the user identity information, and calculates the user identity information based on the verification configuration rule, so as to obtain a rule verification result. In practical application, the application program application range can be checked in multiple branches, so as to obtain rule check results of the application program under each branch, such as rule check results 1 and … … in fig. 3 and rule check result n. And the server side returns the rule checking result to the front end in the form of a file, and the front end selects the JS application code and the CSS style code for triggering and loading and executing the corresponding paths (namely branches) so as to realize the effect of executing different code blocks according to different rules.
In addition, in the prior art, there is a defect that an application switching branch is not supported, and branch management on the application cannot be realized. In order to overcome the above technical problems, in the present application, the following possible designs may be further adopted to implement branch management of application program codes, namely:
copying the code file of the application program to obtain code files of the application program under a plurality of branches; storing an association relationship between the application program and a user who can use the application program before the copying process and after the copying process; and executing branch management operation on the application program based on the code files of the application program under a plurality of branches and the association relation. Wherein the branch management operation of the application program under the plurality of branches at least comprises one of the following: code writing, constructing packaging and configuring the use range.
According to the processing method of the application program in the online development platform, the application program is firstly obtained through the online development platform. Further, a scope of use of the application is configured in the visual interface, the scope of use of the application including a user identity of the available application. Further, the code file of the application program is constructed as an object code file suitable for the operating system based on the use range of the application program. Therefore, the application programs which can be loaded when users with different identities use the client can be planned through the application program use ranges, and therefore the application program use ranges can be distinguished under multiple dimensions. Finally, when the operating system loads the running file, based on the identity information of the current login user, loading and executing the target application program matched with the identity information in the target code file. Therefore, the application program code loading range in the online development platform is accurately controlled from multiple dimensions, the development efficiency of the application program in the online development platform is improved, the development difficulty is greatly reduced, and the development experience is improved.
Having described the method of the embodiment of the present application, next, an application processing apparatus applied to an online development platform of the embodiment of the present application will be described with reference to fig. 5.
The application processing device 50 applied to the online development platform in the embodiment of the present application can implement the steps of the processing method corresponding to the application in the embodiment corresponding to fig. 1. The functions implemented by the application processing device 50 applied to the online development platform may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above, which may be software and/or hardware. The application processing apparatus 50 may include a building module 501, a configuration module 502, a reconstruction module 503, and a loading module 504, where the functional implementation of the building module 501, the configuration module 502, the reconstruction module 503, and the loading module 504 may refer to the operations performed in the embodiment corresponding to fig. 1, and are not described herein.
In some embodiments, the building module 501 is configured to build an application through an online development platform;
a configuration module 502 configured to configure a usage range of the application program in a visual interface, wherein the application range includes a user identity that can use the application program;
A reconstruction module 503 configured to construct a code file of the application program as an object code file applicable to an operating system based on the usage scope;
and the loading module 504 is configured to load and execute the target application program matched with the identity information in the target code file based on the identity information of the current login user when the operating system loads the running file.
In some embodiments, the visual interface is pre-built by an interface building module:
defining templated configuration through a script library act, and building the visual interface;
the visual interface is used for managing association relation between the application program and user identity from multiple dimensions, and the user identity comprises at least one of the following: personnel, roles, tenants of the application may be used.
In some embodiments, when the configuration module 502 configures the application program usage range in the visual interface, it is specifically configured to:
for each application program in an application system of an online development platform, configuring the application range of each application program in the visual interface through visual operation; the application range of each application program comprises the association relation between each application program and a user who can use each application program;
The application program using range is synchronized into the application system.
In some embodiments, after configuring the application's scope of use in the visualization interface, the configuration module 502 is further configured to:
and modifying or maintaining the application program use range in the visual interface.
In some embodiments, when the reconstruction module 503 constructs the code file of the application program into an object code file applicable to the operating system based on the usage scope, the reconstruction module is specifically configured to:
for each application program in an application system of an online development platform, the application system performs code arrangement on code files of each application program based on user identity information associated with each application program in the application range to obtain arranged code files;
reorganizing the arranged code files into the target code files;
wherein the object code file includes at least one of the following information: JS application codes corresponding to each application program, CSS style codes corresponding to each application program, user identity information associated with each application program and subordinate relations among all levels of users.
In some embodiments, when the building module 501 builds an application through an online development platform, it is specifically configured to:
In the code online development platform, compiling and constructing a written application program code through a packaging tool weback to obtain an initial code file of the application program;
and storing the initial code file obtained by construction to a server, wherein the server is realized by taking Java as a programming language.
In some embodiments, the apparatus further comprises a branch management module configured to:
copying the code file of the application program to obtain code files of the application program under a plurality of branches;
storing an association relationship between the application program and a user who can use the application program before the copying process and after the copying process;
executing branch management operation on the application program based on the code files of the application program under a plurality of branches and the association relation;
wherein the branch management operation of the application program under the plurality of branches at least comprises one of the following: code writing, constructing packaging and configuring the use range.
The application program processing device is applied to an online development platform, and an application program is obtained through the online development platform. Further, a scope of use of the application is configured in the visual interface, the scope of use of the application including a user identity of the available application. Further, the code file of the application program is constructed as an object code file suitable for the operating system based on the use range of the application program. Therefore, the application programs which can be loaded when users with different identities use the client can be planned through the application program use ranges, and therefore the application program use ranges can be distinguished under multiple dimensions. Finally, when the operating system loads the running file, based on the identity information of the current login user, loading and executing the target application program matched with the identity information in the target code file. Therefore, the application program code loading range in the online development platform is accurately controlled from multiple dimensions, the development efficiency of the application program in the online development platform is improved, the development difficulty is greatly reduced, and the development experience is improved.
Having described the methods and apparatus of the embodiments of the present application, a description will now be made of a computer-readable storage medium of the embodiments of the present application, which may be an optical disc, having stored thereon a computer program (i.e., a program product) that, when executed by a processor, performs the steps described in the foregoing method embodiments, for example, obtaining a target work order type to be processed; determining a corresponding target allocation object for the work order to be processed according to allocation conditions corresponding to the target work order type; wherein the allocation conditions are pre-built based on the target work order type; and allocating the work order to be processed to the target allocation object so that the target allocation object processes the work order to be processed. The specific implementation of each step is not repeated here.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The application processing device 50 applied to the online development platform in the embodiment of the present application is described above from the point of view of a modularized functional entity, and a server and a terminal device for executing a processing method of an application in the online development platform in the embodiment of the present application are described below from the point of view of hardware processing, respectively.
It should be noted that, the entity device corresponding to the apparatus shown in fig. 5, which is applied to the embodiment of the application processing apparatus in the online development platform, further includes at least one of an input/output unit, a transceiver, a radio frequency circuit, a communication module, an input/output (I/O) interface, and a processor. The application processing device 50 applied to the online development platform shown in fig. 5 may have a structure as shown in fig. 6, and when the application processing device 50 applied to the online development platform shown in fig. 5 has a structure as shown in fig. 6, the processor and the transceiver in fig. 6 can implement the same or similar functions as the respective modules provided by the device embodiment corresponding to the device, and the memory in fig. 6 stores a computer program to be called when the processor executes the processing method of the application in the online development platform.
The embodiment of the present application further provides a terminal device, as shown in fig. 7, for convenience of explanation, only a portion related to the embodiment of the present application is shown, and specific technical details are not disclosed, and please refer to a method portion of the embodiment of the present application. The terminal device may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a Point of Sales (POS), a vehicle-mounted computer, and the like, taking the terminal device as an example of the mobile phone:
fig. 7 is a block diagram showing a part of the structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Referring to fig. 7, the mobile phone includes: radio Frequency (RF) circuitry 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuitry 1060, wireless fidelity (wireless fidelity, wiFi) module 1070, processor 1080, and power source 1090. It will be appreciated by those skilled in the art that the handset construction shown in fig. 7 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 7:
The RF circuit 1010 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1080; in addition, the data of the design uplink is sent to the base station. Generally, RF circuitry 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low noise amplifier (Low NoiseAmplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 1020 may be used to store software programs and modules that the processor 1080 performs the processing of various functional applications of the handset and applications in the online development platform by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1031 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them. Further, the touch panel 1031 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041, and alternatively, the display panel 1041 may be configured in the form of a Liquid crystal display (Liquid CrystalDisplay, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 may overlay the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1080 to determine a type of touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in fig. 7, the touch panel 1031 and the display panel 1041 are two independent components for implementing the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 1060, a speaker 1061, and a microphone 1062 may provide an audio interface between a user and a cell phone. Audio circuit 1060 may transmit the received electrical signal after audio data conversion to speaker 1061 for conversion by speaker 1061 into an audio signal output; on the other hand, microphone 1062 converts the collected sound signals into electrical signals, which are received by audio circuit 1060 and converted into audio data, which are processed by audio data output processor 1080 for transmission to, for example, another cell phone via RF circuit 1010 or for output to memory 1020 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 1070, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 1070, it is understood that it does not belong to the necessary constitution of the handset, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 1080 is the control center of the handset, connects the various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset by running or executing software programs and/or modules stored in memory 1020, and invoking data stored in memory 1020, thereby performing overall monitoring of the handset. Optionally, processor 1080 may include one or more processing units; alternatively, processor 1080 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset further includes a power source 1090 (e.g., a battery) for powering the various components, optionally in logical communication with the processor 1080 via a power management system, such as for managing charge, discharge, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present application, the processor 1080 included in the mobile phone further has a control unit for executing the above method flow of obtaining the target polynomial based on the first feature of the input, which is executed by the application processing device in the online development platform.
Fig. 8 is a schematic diagram of a server structure provided in an embodiment of the present application, where the server 1100 may vary considerably in configuration or performance, and may include one or more central processing units (central processing units, CPU) 1122 (e.g., one or more processors) and memory 1132, one or more storage mediums 1130 (e.g., one or more mass storage devices) storing applications 1142 or data 1144. Wherein the memory 1132 and the storage medium 1130 may be transitory or persistent. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 1122 may be provided in communication with a storage medium 1130, executing a series of instruction operations in the storage medium 1130 on the server 1100.
The Server 1100 may also include one or more power supplies 1120, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, and/or one or more operating systems 1141, such as Windows Server, mac OS X, unix, linux, freeBSD, and the like.
The steps performed by the server in the above embodiments may be based on the structure of the server 1100 shown in fig. 8. For example, the steps performed by the application processing device 60 applied to the online development platform as shown in fig. 8 in the above embodiment may be based on the server structure shown in fig. 8. For example, the CPU 1122 may perform the following operations by calling instructions in the memory 1132:
the target work order type to be processed is obtained through the input-output interface 1158; determining a corresponding target allocation object for the work order to be processed according to allocation conditions corresponding to the target work order type; wherein the allocation conditions are pre-built based on the target work order type; and allocating the work order to be processed to the target allocation object so that the target allocation object processes the work order to be processed.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, apparatuses and modules described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the flow or functions described in accordance with embodiments of the present application are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
The foregoing describes in detail the technical solution provided by the embodiments of the present application, in which specific examples are applied to illustrate the principles and implementations of the embodiments of the present application, where the foregoing description of the embodiments is only used to help understand the methods and core ideas of the embodiments of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope according to the ideas of the embodiments of the present application, the present disclosure should not be construed as limiting the embodiments of the present application in view of the above.

Claims (10)

1. A method for processing an application program in an online development platform, the method comprising:
an application program is obtained through construction of an online development platform;
configuring the application program application range in a visual interface, wherein the application range comprises the user identity of the application program;
constructing a code file of the application program into an object code file applicable to an operating system based on the use range;
and when the operating system loads the running file, loading and executing the target application program matched with the identity information in the target code file based on the identity information of the current login user.
2. The method of claim 1, wherein the visual interface is pre-constructed by:
defining templated configuration through a script library act, and building the visual interface;
the visual interface is used for managing association relation between the application program and user identity from multiple dimensions, and the user identity comprises at least one of the following: personnel, roles, tenants of the application may be used.
3. The method of claim 1, wherein configuring the application's scope of use in a visualization interface comprises:
for each application program in an application system of an online development platform, configuring the application range of each application program in the visual interface through visual operation; the application range of each application program comprises the association relation between each application program and a user who can use each application program;
the application program using range is synchronized into the application system.
4. The method of claim 3, further comprising, after configuring the application's scope of use in a visualization interface:
and modifying or maintaining the application program use range in the visual interface.
5. The method of claim 3, wherein building the code file of the application as an object code file suitable for an operating system based on the usage scope comprises:
for each application program in an application system of an online development platform, the application system performs code arrangement on code files of each application program based on user identity information associated with each application program in the application range to obtain arranged code files;
reorganizing the arranged code files into the target code files;
wherein the object code file includes at least one of the following information: JS application codes corresponding to each application program, CSS style codes corresponding to each application program, user identity information associated with each application program and subordinate relations among all levels of users.
6. The method of claim 1, wherein the application is built by an online development platform, comprising:
in the code online development platform, compiling and constructing a written application program code through a packaging tool weback to obtain an initial code file of the application program;
and storing the initial code file obtained by construction to a server, wherein the server is realized by taking Java as a programming language.
7. The method as recited in claim 1, further comprising:
copying the code file of the application program to obtain code files of the application program under a plurality of branches;
storing an association relationship between the application program and a user who can use the application program before the copying process and after the copying process;
executing branch management operation on the application program based on the code files of the application program under a plurality of branches and the association relation;
wherein the branch management operation of the application program under the plurality of branches at least comprises one of the following: code writing, constructing packaging and configuring the use range.
8. An application processing apparatus for use in an online development platform, the apparatus comprising:
the construction module is configured to construct an application program through the online development platform;
a configuration module configured to configure a range of use of the application in a visual interface, wherein the range of application includes a user identity that can use the application;
a reconstruction module configured to construct a code file of the application program as an object code file applicable to an operating system based on the usage scope;
And the loading module is configured to load and execute the target application program matched with the identity information in the target code file based on the identity information of the current login user when the operating system loads the running file.
9. A computing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when the computer program is executed.
10. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-7.
CN202310224823.1A 2023-03-08 2023-03-08 Processing method and device for application program in online development platform and storage medium Pending CN116149638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310224823.1A CN116149638A (en) 2023-03-08 2023-03-08 Processing method and device for application program in online development platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310224823.1A CN116149638A (en) 2023-03-08 2023-03-08 Processing method and device for application program in online development platform and storage medium

Publications (1)

Publication Number Publication Date
CN116149638A true CN116149638A (en) 2023-05-23

Family

ID=86358229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310224823.1A Pending CN116149638A (en) 2023-03-08 2023-03-08 Processing method and device for application program in online development platform and storage medium

Country Status (1)

Country Link
CN (1) CN116149638A (en)

Similar Documents

Publication Publication Date Title
CN106970790B (en) Application program creating method, related equipment and system
US9800609B2 (en) Method, device and system for detecting malware in a mobile terminal
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN109857403B (en) Page updating method and device, page processing method and device
CN106502703B (en) Function calling method and device
CN111078556B (en) Application testing method and device
CN114185491B (en) Partition file downloading method and device, storage medium and computer equipment
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN109800030B (en) Application program running method and device and terminal
CN112749074B (en) Test case recommending method and device
CN114115895A (en) Code query method and device, electronic equipment and storage medium
CN109145598B (en) Virus detection method and device for script file, terminal and storage medium
CN108959062B (en) Webpage element acquisition method and device
CN106230919B (en) File uploading method and device
CN112965832A (en) Remote Procedure Call (RPC) service calling method and related device
CN107463395B (en) Component calling method and device
CN105528220B (en) Method and device for loading dynamic shared object
CN111562910A (en) Packaging method and related equipment
CN116149638A (en) Processing method and device for application program in online development platform and storage medium
CN112732548B (en) Interface testing method and device
CN116028099A (en) Method for generating installation package, related device, equipment and storage medium
CN109240986B (en) Log processing method and device and storage medium
CN114490307A (en) Unit testing method, device and storage medium
CN113495737B (en) Software updating method and related equipment
CN112328304B (en) Script adaptation method, system, equipment and computer storage 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