CN112241286A - Resource package configuration method and device and storage medium - Google Patents

Resource package configuration method and device and storage medium Download PDF

Info

Publication number
CN112241286A
CN112241286A CN202010777475.7A CN202010777475A CN112241286A CN 112241286 A CN112241286 A CN 112241286A CN 202010777475 A CN202010777475 A CN 202010777475A CN 112241286 A CN112241286 A CN 112241286A
Authority
CN
China
Prior art keywords
packaging
configuration
packing
resource package
result
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
CN202010777475.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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010777475.7A priority Critical patent/CN112241286A/en
Publication of CN112241286A publication Critical patent/CN112241286A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a resource package configuration method, a device and a storage medium, wherein the configuration method comprises the following steps: the server receives a packaging configuration request sent by the client, the packaging configuration request is used for indicating packaging configuration parameters, the server forwards the packaging configuration request to the packaging platform so that the packaging platform can execute packaging processing according to the packaging configuration parameters in the packaging configuration request, the server sends a packaging result to the client after receiving the packaging result returned by the packaging platform, and if the packaging configuration is successful, the packaging result returned by the server comprises a two-dimensional code of a packaged resource package, and the two-dimensional code is used for updating or sharing the resource package by the client. According to the configuration process, developers can install and share the resource package through the two-dimensional code on the mobile APP terminal in the test stage, the flexibility of development and test is improved, and meanwhile, the development and test efficiency is improved.

Description

Resource package configuration method and device and storage medium
Technical Field
The present application relates to the field of software development and testing, and in particular, to a method and an apparatus for configuring a resource package, and a storage medium.
Background
Currently, there are three main ways for developing an application APP: native APP development, web version APP development, and hybrid APP development. The hybrid APP development can achieve cross-platform and code multiplexing, is close to native, and based on the consideration of cost and performance, most companies consider adopting a hybrid APP development mode.
Hybrid APP development involves the problem of how Bundle resource packages are integrated into native APPs. At present, the following two methods are mainly adopted: the first mode is that a developer finishes manually punching a Bundle resource package and copies the Bundle resource package to a native APP engineering catalog; the second mode is that the Bundle resource package is finished through the packaging platform, then the resource package is issued through the issuing platform, and whether the latest Bundle resource package needs to be downloaded from the platform is checked when the APP is started.
When a problem occurs in the testing stage, after the repair is completed every time, developers need to copy Bundle resource packages to the original APP and then package the packages by the original APP, or package the packages on the packaging platform through a Personal Computer (PC) at every time and then release the packages to the distribution platform. Obviously, the whole development and test process is complicated, and the development efficiency is low.
Disclosure of Invention
The application provides a resource package configuration method, a resource package configuration device and a storage medium, and flexibility and efficiency of development and testing are improved.
In a first aspect, the present application provides a method for configuring a resource package, including:
receiving a packaging configuration request sent by a client, wherein the packaging configuration request is used for indicating packaging configuration parameters;
forwarding the packaging configuration request to a packaging platform;
receiving a packaging result returned by the packaging platform, wherein the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, generating a two-dimension code of the packed resource package according to the packing result, and sending the two-dimension code to the client, wherein the two-dimension code is used for updating or sharing the resource package by the client.
In one possible embodiment, the packing configuration parameters include at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
In a possible embodiment, if the packing configuration is successful, the packing result includes at least one of the following: address link of resource package, version number, packaging time and packaging personnel.
In one possible embodiment, the method further comprises:
receiving a packed query request sent by the client;
querying a database according to the packed query request, wherein historical packed records are stored in the database;
and when the packaging result corresponding to the packaging query request is recorded in the database, returning the packaging result to the client.
In a possible implementation manner, the receiving the packed query request sent by the client includes: and receiving the packaged query request sent by the client through a polling interface.
In a possible implementation manner, the generating a two-dimensional code of a packaged resource package according to the packaging result includes:
and generating a two-dimensional code corresponding to the resource packet according to the address link of the resource packet in the packaging result.
In one possible embodiment, the method further comprises:
and sending the packaging result to the mailbox address in the packaging configuration parameter.
In a second aspect, the present application provides a method for configuring a resource package, including:
sending a packaging configuration request to a server, wherein the packaging configuration request is used for indicating packaging configuration parameters;
receiving a packaging result returned by the packaging platform through the server, wherein the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, the packing result returned by the server comprises the two-dimension code of the packed resource package, and the resource package is updated according to the two-dimension code.
In one possible embodiment, the packing configuration parameters include at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
In a possible embodiment, if the packing configuration is successful, the packing result includes at least one of the following: address link of resource package, version number, packaging time and packaging personnel.
In one possible embodiment, the method further comprises:
sending a packaging query request to the server, wherein a historical packaging record is stored in a database of the server;
and receiving the packaging result returned by the server.
In one possible embodiment, the method further comprises:
receiving a polling configuration request, wherein the polling configuration request comprises polling time for inquiring a packaged result;
correspondingly, the sending the packaged query request to the server includes:
and sending the packed query request to a polling interface of the server according to the polling time.
In a third aspect, the present application provides a device for configuring a resource package, including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a packaging configuration request sent by a client, and the packaging configuration request is used for indicating packaging configuration parameters;
the sending module is used for forwarding the packaging configuration request to a packaging platform;
the receiving module is further configured to receive a packaging result returned by the packaging platform, where the packaging result is used to indicate whether packaging configuration is successful;
if the packing configuration is successful, the processing module is used for generating a two-dimension code of the packed resource package according to the packing result, and the sending module is also used for sending the two-dimension code to the client, wherein the two-dimension code is used for updating or sharing the resource package by the client.
In a fourth aspect, the present application provides an apparatus for configuring a resource package, including:
a sending module, configured to send a packing configuration request to a server, where the packing configuration request is used to indicate packing configuration parameters;
the receiving module is used for receiving a packaging result returned by the packaging platform through the server, and the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, the packing result returned by the server comprises the two-dimension code of the packed resource package, and the updating module is used for updating the resource package according to the two-dimension code.
In a fifth aspect, the present application provides an apparatus for configuring a resource package, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the configuration means of the resource package to perform the method of any one of the first aspects.
In a sixth aspect, the present application provides an apparatus for configuring a resource package, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the configuration device of the resource package to perform the method of any of the second aspects.
In a seventh aspect, the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform the method according to any of the first aspect.
In an eighth aspect, the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the method according to any of the second aspects.
The application provides a resource package configuration method, a device and a storage medium, wherein the configuration method comprises the following steps: the server receives a packaging configuration request sent by the client, the packaging configuration request is used for indicating packaging configuration parameters, the server forwards the packaging configuration request to the packaging platform so that the packaging platform can execute packaging processing according to the packaging configuration parameters in the packaging configuration request, the server sends a packaging result to the client after receiving the packaging result returned by the packaging platform, and if the packaging configuration is successful, the packaging result returned by the server comprises a two-dimensional code of a packaged resource package, and the two-dimensional code is used for updating or sharing the resource package by the client. According to the configuration process, developers can install and share the resource package through the two-dimensional code on the mobile APP terminal in the test stage, the flexibility of development and test is improved, and meanwhile, the development and test efficiency is improved.
Drawings
Fig. 1 is a schematic view of a scenario of a configuration method of a resource package according to an embodiment of the present application;
fig. 2 is an interaction diagram of a method for configuring a resource package according to an embodiment of the present application;
fig. 3 is an interaction diagram of a method for configuring a resource package according to an embodiment of the present application;
fig. 4 is a schematic interface diagram of a client according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a configuration apparatus for a resource package according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a configuration apparatus for a resource package according to an embodiment of the present disclosure;
fig. 7 is a schematic hardware structure diagram of a configuration apparatus of a resource package according to an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of a configuration apparatus of a resource package according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprises," "comprising," and "having," 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 elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, terms related to the embodiments of the present application will be briefly described below.
Bundle resource package: the picture, the XIB (a graphic interface design document) and the text file are organized together and packed into a Bundle file, so that resources in the package can be conveniently quoted in other projects. The Bundle file is static, that is, the resource file in the Bundle is not involved in project compilation as a resource Bundle, and the Bundle package cannot contain executable files. It is merely a resource that is parsed into specific binary data.
Hot updating: the method is a common updating mode for numerous APPs, and after a user downloads and installs the APPs, the APPs are immediately updated when opened, and only the codes of the updated parts need to be downloaded and installed.
Jenkins: the system is an open source software project, is a continuous integration tool developed based on Java, is used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform to enable continuous integration of software to be possible.
Read Native (RN): the system is a cross-platform mobile application development framework with a Facebook open source and supports two platforms of ios and android. The RN develops mobile applications using Javascript language, JSX similar to HTML, and CSS, so a person familiar with Web front-end development needs little learning to enter the field of mobile application development.
Branch Git: the branch is separated from the development mainline so as not to influence the development mainline, the incredible lightness is realized, the branch creation and the branch switching are almost completed instantly, and the merging branch is supported.
At present, a hybrid APP development mode is usually adopted for APP development of an application program, and in a test stage of the hybrid APP development, codes, such as RN codes, need to be continuously modified, and the codes are subjected to packing processing, such as resource packing of the RN codes. If the APP does not support hot-update, developers need to manually copy the resource package of the RN code into the engineering catalog of the ios APP. If the APP supports hot updating, developers need to pack the APP on a packing platform (such as a Jenkins platform) through a PC, then the APP is released to a release platform, the APP downloads a resource package (Bundle resource package) through a hot updating mode, however, the mode depends on the PC, and if the PC is not provided, a development test process cannot be normally performed.
In order to simplify a complex development and test flow, improve development and test efficiency and reduce development and test cost, the application provides a resource package configuration method, the method does not depend on a Personal Computer (PC), developers can carry out resource package configuration through an Application (APP) on a mobile terminal, server package configuration parameters are transmitted to a packaging platform, after the packaging platform packages, the packaging platform returns a packaging result to the server, the server caches the packaging result in a database of the server and sends the packaging result to a client, the packaging result sent by the server comprises two-dimensional codes of the packaged resource packages, and the developers can update the resource packages through the two-dimensional codes or share the two-dimensional codes to other personnel of an APP project. According to the configuration process, the APP end is installed and shares the resource package through the two-dimensional code in the testing stage, the flexibility of development and testing is improved, and meanwhile, the development and testing efficiency is improved.
Fig. 1 is a schematic view of a scenario of a configuration method of a resource package provided in an embodiment of the present application, and as shown in fig. 1, the scenario includes a client, a server, and a packaging platform. The server is used as an intermediate link between the client and the packaging platform and is used for storing the packaging configuration parameters sent by the client and sending the packaging configuration parameters to the packaging platform. The packaging platform receives the packaging configuration parameters sent by the server, modifies the configuration table through a preset script, copies the source code according to the packaging address in the packaging configuration parameters, downloads the dependency package, performs syntax analysis on the source code, executes packaging, and finally informs the server of the packaging result, wherein the packaging result is used for indicating whether the packaging configuration is successful. And after receiving the packaging result returned by the packaging platform, the server stores the packaging result in the database so as to execute subsequent query tasks. After the client sends the packaging configuration parameters to the packaging platform through the server, the packaging result returned by the packaging platform can be received through the server.
In some embodiments, the client may further send a packaged query request to the server, where the packaged query request is used to request the historical data of any one time of packaged records, and the server returns the historical data corresponding to the packaged query request to the client by querying the historical packaged records in the database.
In some embodiments, the client may further send a packaged query request to the server according to a preset polling time, that is, periodically send a packaged query request to the server, so as to obtain the resource package packaged by the packaging platform from the server in time.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is an interaction diagram of a configuration method of a resource package according to an embodiment of the present application, and as shown in fig. 2, the configuration method according to the embodiment includes the following steps:
step 201, the client sends a packing configuration request to the server, and the packing configuration request is used for indicating packing configuration parameters.
In this embodiment, the developer configures the package parameters through the client, specifically, the package configuration parameters may include at least one of the following:
packing version, packing branch, packing address, packing type, and mailbox address.
Wherein, the packaging version refers to the version of the RN resource package. A packed branch is a git branch where the RN code is modified. The packed address refers to the git address from which the RN source code can be copied. The packaging types include the following two types: debug type and release type. The mailbox address comprises the mailbox address of the developer and/or the mailbox address of other personnel established by the developer.
Step 202, the server forwards the packaging configuration request to the packaging platform.
In this embodiment, after receiving the package configuration request sent by the client, the server may store the package configuration parameters indicated in the package configuration request in a database of the server. The packaged configuration parameters in the packaged configuration request are then forwarded to the packaging platform.
And step 203, the packaging platform executes packaging according to the packaging configuration request.
Specifically, the packaging platform modifies the configuration table according to the packaging configuration parameters in the packaging configuration request, and copies the RN source code according to the packaging address (i.e., the git address), that is, downloads the dependent package. Wherein the RN source code is stored in the git repository. And then, the packaging platform analyzes the syntax of the copied RN source code and performs packaging. It is noted that the packaged code of the packaging platform includes code that has not been altered in addition to the modified code.
Optionally, the packaging platform of this embodiment may be a Jenkins platform.
And step 204, the packaging platform sends a packaging result to the server, and the packaging result is used for indicating whether packaging configuration is successful or not.
If the packing configuration is successful, the packing result may include at least one of: address link of resource package, version number, packaging time and packaging personnel. The address link of the resource package is used for the client to download the packaged resource package, and the version number refers to the version number of the resource package.
If the packaging configuration fails, the packaging platform may return a specific reason for the failure, such as a code syntax error, a code reference error, and the like.
And step 205, if the packing configuration is successful, the server generates the two-dimensional code of the packed resource package according to the packing result.
In this embodiment, after receiving a successfully configured packing result returned by the packing platform, the server may generate a two-dimensional code corresponding to the resource package according to the address link of the resource package in the packing result. And the two-dimension code of the resource package is used for updating or sharing the resource package by the client.
And step 206, sending the two-dimensional code to the client.
And step 207, the client updates the resource package according to the two-dimension code.
Specifically, the developer can update the resource package by long-term pressing the two-dimensional code on the APP interface to finish downloading and updating the current APP.
Optionally, in some embodiments, the developer may also share the two-dimensional code with a relevant person in the development test stage through another APP, so that the relevant person updates the resource package according to the two-dimensional code.
According to the resource package configuration method provided by the embodiment of the application, a server receives a packaging configuration request sent by a client, the packaging configuration request is used for indicating packaging configuration parameters, the server forwards the packaging configuration request to a packaging platform, so that the packaging platform executes packaging processing according to the packaging configuration parameters in the packaging configuration request, the server sends a packaging result to the client after receiving the packaging result returned by the packaging platform, if the packaging configuration is successful, the packaging result returned by the server comprises a two-dimensional code of a packaged resource package, and the two-dimensional code is used for updating or sharing the resource package by the client. According to the configuration process, developers can install and share the resource package through the two-dimensional code on the mobile APP terminal in the test stage, the flexibility of development and test is improved, and meanwhile, the development and test efficiency is improved.
Optionally, in some embodiments, after receiving the packaging result returned by the packaging platform, the server may send the packaging result to the mailbox address according to the mailbox address indicated in the packaging configuration request, where the packaging result is used to indicate whether the packaging configuration request is successful.
Optionally, in some embodiments, the email notification package result may not pass through the server, that is, after the package platform completes the package, the package platform may directly send the package result to the mailbox address according to the mailbox address indicated in the package configuration request.
The above embodiment shows a configuration scheme in which a developer sends a packaging configuration request to a packaging platform through a client, and under the influence of external factors, such as network outage, mobile terminal outage, and the like, when the developer logs in the client again, the developer may send a packaging query request to a server through the client to query a last packaging configuration result or a historical packaging configuration result.
The following describes the configuration method of the resource package according to this embodiment in detail with reference to fig. 3. Fig. 3 is an interaction diagram of a configuration method of a resource package according to an embodiment of the present application, and based on the embodiment shown in fig. 2, as shown in fig. 3, the configuration method of the resource package according to the embodiment further includes the following steps:
step 301, the client sends a packaged query request to the server.
In one possible implementation, the packed query request includes an identification of the packing configuration that uniquely identifies a certain packing configuration. For example, a developer performs packaging configuration once through a client in a certain time period, the client generates an identifier of the packaging configuration this time, and a packaging configuration request sent by the client to the server includes the identifier. Subsequently, the client side can send a packaged query request to the server in a polling mode, wherein the packaged query request comprises the identifier of the packaged configuration, so that the server can query the relevant parameters of the packaged configuration and the packaged result through the identifier.
In one possible implementation, the packaged query request includes time period information, and the server may query the historical packaged records in the time period according to the time period information, for example, query the historical packaged records in 9:00 to 12:00 on a certain day.
Step 302, the server queries the database according to the packed query request. Wherein, the database stores the historical packaging record.
In a possible implementation manner, the server queries the database according to the identifier of the packing configuration in the packing query request, and obtains the packing configuration parameters and/or the packing result corresponding to the identifier of the packing configuration from the database. Optionally, the packed result may include the two-dimensional code of the packed resource package.
In a possible implementation manner, the server queries the database according to the time period information in the packing query request, and obtains a historical packing record in the time period from the database, where the historical packing record includes packing configuration parameters and/or packing results corresponding to one or more times of packing configurations.
Optionally, in some embodiments, the historical packaging records obtained by the server in the database within a certain time period may include packaging configuration records of other people, and the returned packaging result may include packaging configuration parameters and/or packaging results of other people, and the packaging configuration records of other people may be queried in this manner, and the resource package is selected to be updated or not updated.
Fig. 4 is a schematic interface diagram of a client according to an embodiment of the present application, and as shown in fig. 4, the interface includes history package records of 3 package configurations, which are shown in a form of a list. In fig. 4, "0.3.0 to 125614", "0.3.0 to 125607" and "0.3.0 to 125507" indicate IDs of the packing configurations, "debug" and "release" indicate packing types, and "0.6.1" and "0.3.4" indicate version numbers of resource packages corresponding to different packing configurations. The developer can inquire the packaging configuration parameters and/or the packaging results of any one-time packaging configuration by clicking the details, and the developer can download the update resource package corresponding to any one-time packaging results by clicking the installation. Each packing configuration record corresponds to a packing result, and the packing result is used for indicating the success or failure of packing, as shown in fig. 4, 3 packing configuration records are all marked with a mark of packing "success".
And step 303, returning the packed result to the client when the packed result corresponding to the packed query request is recorded in the database.
Optionally, in some embodiments, the method for configuring the resource package further includes the following steps:
the client receives a polling configuration request, wherein the polling configuration request comprises polling time for inquiring the packaged result. Accordingly, the step 301 includes:
and sending the packaged query request to a polling interface of the server according to the polling time.
In the example, a polling mode is adopted to query the packaged result, so that a developer can obtain the packaged result at the first time and integrate the resource package into the APP terminal.
The resource package configuration method provided by the embodiment of the application relates to a query process of packaging configuration, a packaging query request is sent to a server through a client, the server queries a database according to the packaging query request, and returns a packaging result corresponding to the request in the database to the client, so that a user can check the packaging result corresponding to any packaging configuration at the client, and the resource package is updated at an APP (application) end in time.
Fig. 5 is a schematic structural diagram of a configuration apparatus of a resource package according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 500 for configuring a resource packet of this embodiment includes:
a receiving module 501, configured to receive a packing configuration request sent by a client, where the packing configuration request is used to indicate packing configuration parameters;
a sending module 502, configured to forward the packaging configuration request to a packaging platform;
the receiving module 501 is further configured to receive a packaging result returned by the packaging platform, where the packaging result is used to indicate whether packaging configuration is successful;
if the packing configuration is successful, the processing module 503 is configured to generate a two-dimensional code of the packed resource package according to the packing result, and the sending module 502 is further configured to send the two-dimensional code to the client, where the two-dimensional code is used for the client to update or share the resource package.
In one possible embodiment, the packing configuration parameters include at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
In a possible embodiment, if the packing configuration is successful, the packing result includes at least one of the following: address link of resource package, version number, packaging time and packaging personnel.
In a possible implementation, the processing module 503 is specifically configured to:
and generating a two-dimensional code corresponding to the resource packet according to the address link of the resource packet in the packaging result.
In a possible implementation manner, the receiving module 501 is further configured to receive a packed query request sent by the client;
the processing module 503 is further configured to query a database according to the packed query request, where the database stores a historical packed record;
the sending module 502 is further configured to return the packed result to the client when the packed result corresponding to the packed query request is recorded in the database.
In a possible implementation, the receiving module 501 is specifically configured to:
and receiving the packaged query request sent by the client through a polling interface.
In a possible implementation, the sending module 502 is further configured to:
and sending the packaging result to the mailbox address in the packaging configuration parameter.
The configuration device of the resource package provided in the embodiment of the present application is configured to execute the technical scheme of the server in any one of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a configuration apparatus of a resource package according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus 600 for configuring a resource packet of this embodiment includes:
a sending module 601, configured to send a packing configuration request to a server, where the packing configuration request is used to indicate packing configuration parameters;
a receiving module 602, configured to receive a packaging result returned by the packaging platform through the server, where the packaging result is used to indicate whether packaging configuration is successful;
if the packing configuration is successful, the packing result returned by the server includes the two-dimension code of the packed resource package, and the updating module 603 is configured to update the resource package according to the two-dimension code.
In one possible embodiment, the packing configuration parameters include at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
In a possible embodiment, if the packing configuration is successful, the packing result includes at least one of the following: address link of resource package, version number, packaging time and packaging personnel.
In a possible implementation, the sending module 601 is further configured to:
sending a packaging query request to the server, wherein a historical packaging record is stored in a database of the server;
the receiving module 602 is further configured to receive the packaged result returned by the server.
In a possible implementation manner, the receiving module 602 is further configured to receive a polling configuration request, where the polling configuration request includes a polling time for querying the packaged result;
the sending module 601 is specifically configured to:
and sending the packed query request to a polling interface of the server according to the polling time.
The configuration device of the resource package provided in the embodiment of the present application is configured to execute the technical scheme of the client in any one of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic hardware structure diagram of a configuration apparatus of a resource package according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus 700 for configuring a resource package according to this embodiment includes:
at least one processor 701 (only one processor is shown in FIG. 7); and
a memory 702 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory 702 stores instructions executable by the at least one processor 701, and the instructions are executed by the at least one processor 701, so that the configuration apparatus 700 can perform the steps performed by the server in any of the foregoing method embodiments, which are similar in implementation principle and technical effect and are not described herein again.
Alternatively, the memory 702 may be separate or integrated with the processor 701.
When the memory 702 is a separate device from the processor 701, the configuration apparatus 700 further includes: a bus 703 for connecting the memory 702 and the processor 701.
Fig. 8 is a schematic hardware structure diagram of a configuration apparatus of a resource package according to an embodiment of the present disclosure. As shown in fig. 8, the apparatus 800 for configuring a resource package according to this embodiment includes:
at least one processor 801 (only one processor is shown in FIG. 8); and
a memory 802 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the configuration apparatus 800 can perform the steps performed by the client in any of the foregoing method embodiments, which are similar in implementation principle and technical effect and are not described herein again.
Optionally, the memory 802 may be separate or integrated with the processor 801.
When the memory 802 is a separate device from the processor 801, the configuration apparatus 800 further includes: a bus 803 for connecting the memory 802 and the processor 801.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps performed by the server in any one of the foregoing method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement each step performed by a client in any one of the foregoing method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
It should be understood that the Processor mentioned in the embodiments of the present Application may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) is integrated in the processor.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (17)

1. A method for configuring a resource packet, comprising:
receiving a packaging configuration request sent by a client, wherein the packaging configuration request is used for indicating packaging configuration parameters;
forwarding the packaging configuration request to a packaging platform;
receiving a packaging result returned by the packaging platform, wherein the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, generating a two-dimension code of the packed resource package according to the packing result, and sending the two-dimension code to the client, wherein the two-dimension code is used for updating or sharing the resource package by the client.
2. The method of claim 1, wherein the packing configuration parameters comprise at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
3. The method of claim 1, wherein if the packing configuration is successful, the packing result comprises at least one of: address link of resource package, version number, packaging time and packaging personnel.
4. The method according to any one of claims 1 to 3, wherein the generating the two-dimensional code of the packaged resource package according to the packaging result comprises:
and generating a two-dimensional code corresponding to the resource packet according to the address link of the resource packet in the packaging result.
5. The method according to any one of claims 1-3, further comprising:
receiving a packed query request sent by the client;
querying a database according to the packed query request, wherein historical packed records are stored in the database;
and when the packaging result corresponding to the packaging query request is recorded in the database, returning the packaging result to the client.
6. The method of claim 5, wherein the receiving the packed query request sent by the client comprises:
and receiving the packaged query request sent by the client through a polling interface.
7. The method according to any one of claims 1-3, further comprising:
and sending the packaging result to the mailbox address in the packaging configuration parameter.
8. A method for configuring a resource packet, comprising:
sending a packaging configuration request to a server, wherein the packaging configuration request is used for indicating packaging configuration parameters;
receiving a packaging result returned by the packaging platform through the server, wherein the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, the packing result returned by the server comprises the two-dimension code of the packed resource package, and the resource package is updated according to the two-dimension code.
9. The method of claim 8, wherein the packing configuration parameters comprise at least one of: packing version, packing branch, packing address, packing type, and mailbox address.
10. The method of claim 8, wherein if the packing configuration is successful, the packing result comprises at least one of: address link of resource package, version number, packaging time and packaging personnel.
11. The method according to any one of claims 8-10, further comprising:
sending a packaging query request to the server, wherein a historical packaging record is stored in a database of the server;
and receiving the packaging result returned by the server.
12. The method of claim 11, further comprising:
receiving a polling configuration request, wherein the polling configuration request comprises polling time for inquiring a packaged result;
correspondingly, the sending the packaged query request to the server includes:
and sending the packed query request to a polling interface of the server according to the polling time.
13. An apparatus for configuring a resource package, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a packaging configuration request sent by a client, and the packaging configuration request is used for indicating packaging configuration parameters;
the sending module is used for forwarding the packaging configuration request to a packaging platform;
the receiving module is further configured to receive a packaging result returned by the packaging platform, where the packaging result is used to indicate whether packaging configuration is successful;
if the packing configuration is successful, the processing module is used for generating a two-dimension code of the packed resource package according to the packing result, and the sending module is also used for sending the two-dimension code to the client, wherein the two-dimension code is used for updating or sharing the resource package by the client.
14. An apparatus for configuring a resource package, comprising:
a sending module, configured to send a packing configuration request to a server, where the packing configuration request is used to indicate packing configuration parameters;
the receiving module is used for receiving a packaging result returned by the packaging platform through the server, and the packaging result is used for indicating whether packaging configuration is successful or not;
and if the packing configuration is successful, the packing result returned by the server comprises the two-dimension code of the packed resource package, and the updating module is used for updating the resource package according to the two-dimension code.
15. An apparatus for configuring a resource package, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the configuration device of the resource package to perform the method of any one of claims 1-7.
16. An apparatus for configuring a resource package, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the configuration device of the resource package to perform the method of any one of claims 8-12.
17. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-7 or the method of any one of claims 8-12.
CN202010777475.7A 2020-08-05 2020-08-05 Resource package configuration method and device and storage medium Pending CN112241286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010777475.7A CN112241286A (en) 2020-08-05 2020-08-05 Resource package configuration method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010777475.7A CN112241286A (en) 2020-08-05 2020-08-05 Resource package configuration method and device and storage medium

Publications (1)

Publication Number Publication Date
CN112241286A true CN112241286A (en) 2021-01-19

Family

ID=74171574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010777475.7A Pending CN112241286A (en) 2020-08-05 2020-08-05 Resource package configuration method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112241286A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817850A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 Information processing method, device, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082924A (en) * 2007-06-04 2007-12-05 徐恩麒 Hotel interactive system
CN105426195A (en) * 2015-12-14 2016-03-23 网易(杭州)网络有限公司 Effect verification processing method and device based on software development
CN105607992A (en) * 2015-09-29 2016-05-25 网易(杭州)网络有限公司 Application program test method, device and system
CN108664267A (en) * 2018-04-09 2018-10-16 上海瀚银信息技术有限公司 A kind of code automatic packaging system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082924A (en) * 2007-06-04 2007-12-05 徐恩麒 Hotel interactive system
CN105607992A (en) * 2015-09-29 2016-05-25 网易(杭州)网络有限公司 Application program test method, device and system
CN105426195A (en) * 2015-12-14 2016-03-23 网易(杭州)网络有限公司 Effect verification processing method and device based on software development
CN108664267A (en) * 2018-04-09 2018-10-16 上海瀚银信息技术有限公司 A kind of code automatic packaging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817850A (en) * 2021-01-28 2021-05-18 北京达佳互联信息技术有限公司 Information processing method, device, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10678522B1 (en) Compiler and method for compiling business rules for a serverless runtime environment
CN106559438B (en) Program uploading method and device based on target network platform
CN112882700B (en) IOS application program construction method and device, electronic equipment and storage medium
CN102289378B (en) Method for automatically generating APP (Application)
CN109725912B (en) Application program configuration method, device, terminal, server and readable storage medium
US20200183683A1 (en) Application architecture generation
CN105468427A (en) Implementation method and system of automatic compilation and release
CN111078229A (en) Application processing method and device, storage medium and electronic equipment
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN113064630A (en) Mobile terminal APP automatic packaging method and system, electronic device and storage medium
CN115904959A (en) Software integration and deployment method and software development management system
CN112579099A (en) Code deployment method and device, storage medium and electronic equipment
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
CN109726104B (en) Test packet generation method of mobile terminal, test terminal and storage medium
CN112241286A (en) Resource package configuration method and device and storage medium
CN110647349B (en) Method for realizing continuous delivery of iOS APP
CN111796855B (en) Incremental version updating method and device, storage medium and computer equipment
CN117527896A (en) Method and system for interfacing multi-system data with third party electronic files
CN112835587A (en) Compiling integration method and device
CN112416612A (en) Service calling method and device, computer equipment and readable storage medium
CN116483899A (en) Calling method and device for converged service interface, electronic equipment and storage medium
CN114895916A (en) Code deployment method, device, storage medium and electronic equipment
CN111273940B (en) Method and device for uploading program file to code warehouse
CN115168175A (en) Program error solving method, device, electronic equipment and storage medium
CN112052035A (en) Version packaging method and device based on bank back-line system

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