CN114385206A - Resource file submitting method and device, electronic equipment and storage medium - Google Patents

Resource file submitting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114385206A
CN114385206A CN202111651474.9A CN202111651474A CN114385206A CN 114385206 A CN114385206 A CN 114385206A CN 202111651474 A CN202111651474 A CN 202111651474A CN 114385206 A CN114385206 A CN 114385206A
Authority
CN
China
Prior art keywords
resource
target
submission
verification
checking
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
CN202111651474.9A
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 Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue 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 Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202111651474.9A priority Critical patent/CN114385206A/en
Publication of CN114385206A publication Critical patent/CN114385206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a resource file submitting method and device, electronic equipment and a storage medium. The method comprises the following steps: when a resource submission request of a target application program is received, acquiring at least one target submission resource corresponding to the resource submission request based on a pre-constructed resource verification starter; determining at least one target resource verification process to be started in a resource verification starter, distributing at least one target submission resource to the target resource verification process, and verifying the distributed target submission resource through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter concurrently; and if the target submitted resource passes the verification, submitting the target submitted resource to a resource library of the target application program in response to the resource submission request, so that the resource file corresponding to the application program can be verified and submitted more quickly and effectively, and the effect of improving the submission efficiency of the resource file is achieved.

Description

Resource file submitting method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a resource file submitting method and device, electronic equipment and a storage medium.
Background
In order to meet the requirements of users, the resource files provided by the application programs need to be updated continuously. At present, submission of a resource file corresponding to an application program generally needs to be performed through a submission technology provided by the application program. To ensure the quality of the submission, the resource file is typically checked.
In the related art, the submission technique provided by the application program is integrated into the application program, that is, the code segment corresponding to the submission technique is embedded in the source code of the application program. The submission technology provided by the application program can only verify the set resources, and a third-party verification tool needs to be started for the resources except the set resources to verify. However, starting the third-party verification tool is slow in starting speed, and also occupies a large amount of memory space, so that the resource file verification is time-consuming, and the technical problems of slow speed and long time consumption in resource file submission are caused.
Disclosure of Invention
The embodiment of the invention provides a resource file submitting method and device, electronic equipment and a storage medium, which are used for rapidly verifying and submitting a resource file in an application program, so that the resource file submitting efficiency is improved.
In a first aspect, an embodiment of the present invention provides a method for submitting a resource file, where the method includes:
when a resource submission request of a target application program is received, acquiring at least one target submission resource corresponding to the resource submission request based on a pre-constructed resource verification starter;
determining at least one target resource verification process to be started in the resource verification starter, distributing at least one target submission resource to the target resource verification process, and verifying the distributed target submission resource through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter concurrently;
and if the target submission resource passes the verification, submitting the target submission resource to a resource library of the target application program in response to the resource submission request.
In a second aspect, an embodiment of the present invention further provides a device for submitting a resource file, where the device includes:
the target submission resource acquisition module is used for acquiring at least one target submission resource corresponding to a resource submission request based on a pre-constructed resource verification starter when the resource submission request of a target application program is received;
the target submitting resource checking module is used for determining at least one target resource checking process to be started in the resource checking initiator, distributing the at least one target submitting resource to the target resource checking process, and checking the distributed target submitting resource through the target resource checking process, wherein two or more than two resource checking processes can be started in the resource checking initiator concurrently;
and the target submission resource submitting module is used for responding to the resource submitting request and submitting the target submission resource to the resource library of the target application program if the target submission resource passes the verification.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, the program causes the processor to implement the resource file submission method as provided by any of the embodiments of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the resource file submission method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, when the resource submission request of the target application program is received, at least one target submission resource corresponding to the resource submission request can be obtained based on the pre-constructed resource verification starter, the personalized resource verification and submission requirements of the target application program can be adapted, and the target submission resource can be flexibly verified and submitted. After the target submitted resources are obtained, at least one target resource verification process to be started in the resource verification starter can be determined, and at least one target submitted resource can be reasonably distributed to the target resource verification process so as to achieve the most resource distribution. And the distributed target submission resources can be verified through the target resource verification process. When a plurality of resource checking processes are needed, two or more resource checking processes can be started in the resource checking initiator concurrently. And the concurrent verification is carried out on the resources, so that the verification time length can be shortened. After the target submitted resource is verified, if the target submitted resource passes the verification, the target submitted resource can be submitted to the resource library of the target application program in response to the resource submission request so as to ensure the effectiveness of the target submitted resource, the technical problems of low speed and long time consumption of the resource file submission method in the prior art are solved, the resource file corresponding to the application program is submitted more quickly and effectively, and the technical effect of improving the submission efficiency of the resource file is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a resource file submission method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a resource file submission method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a resource file submitting apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flowchart of a resource file submission method according to an embodiment of the present invention, where the method is applicable to a case of verifying submitted resources, and the method may be executed by a resource file submission apparatus, and the resource file submission apparatus may be implemented in a software and/or hardware manner, and may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
s110, when a resource submitting request of the target application program is received, the resource verifying starter is constructed in advance to obtain at least one target submitting resource corresponding to the resource submitting request.
Wherein the target application can be understood as an application that currently needs to submit a resource, such as a Unity application. The number of target applications may be one or more. A resource submission request may be understood as a request that requires submission of a resource. The information that may be carried in the resource submission request may include, but is not limited to, an identifier of the target application program, an identifier of the target submission resource, and the like, where the identifier of the target application program may include, but is not limited to, a name, a version number, and the like of the target application program. A target commit resource may be understood as a resource that needs to be committed. The target submission resources may include, but are not limited to, pictures, grids and textures of the model, and the like. The number of the target submitting resources can be one, two or more, and in practical application, the number of the target submitting resources is often multiple and not fixed, and may be hundreds or thousands.
The resource check initiator may be understood as an executable file having a resource check function. Illustratively, the resource check initiator may be an exe file. The executable file with the resource checking function may be obtained based on a program code with the resource checking function, and specifically, the program code with the resource checking function is compiled, and after the compilation is completed, the executable file with the resource checking function may be generated. The executable file with the resource checking function can be obtained by decoupling a program code with the resource checking function contained in a source code of a target application program and a program code except the program code with the resource checking function. The resource check initiator may be configured to obtain a target submission resource corresponding to the resource submission request.
Specifically, when a resource submission request of the target application program is received, the resource submission request may be parsed. And a target submission resource corresponding to the resource submission request may be determined. After the target submission resource is determined, the target submission resource corresponding to the resource submission request can be acquired by operating the pre-constructed resource verification starter. Specifically, the target submission resource corresponding to the resource submission request may be obtained by operating the pre-constructed resource verification initiator, where the storage address of the target submission resource corresponding to the resource submission request is determined by operating the pre-constructed resource verification initiator, and the target submission resource may be obtained from the corresponding storage address.
It should be noted that there are various ways to generate the resource submission request of the target application program, and the specific generation way is not specifically limited herein, for example, the resource submission request of the target application program may be generated based on a resource submission triggering operation of the target application program by a user, or the resource submission request input by the user for the target application program may be received.
In the embodiment of the present invention, for the situation that resources corresponding to multiple target application programs are submitted, when a resource submission request of at least one target application program is received, the time when the resource submission request of each target application program is received may be determined, and the resource submission requests corresponding to the times are analyzed according to the chronological order. If the number of the resource submission requests corresponding to the same time is two or more, one resource submission request of the multiple resource submission requests corresponding to the same time can be randomly selected for analysis. And further can determine the target submission resource corresponding to each resource request. After determining the target submission resource corresponding to each resource request, the target submission resource corresponding to each resource submission request may be acquired according to a pre-established resource check.
Before acquiring the target submission resource corresponding to the resource submission request, or when acquiring the target submission resource corresponding to the resource submission request, the target submission resource can be processed in the following two ways:
as an optional implementation manner of the embodiment of the present invention, the target submission resource is encrypted by calling a resource encryption algorithm. The resource encryption algorithm may be set according to actual requirements, and the specific algorithm is not limited herein, for example, the resource encryption algorithm may be an RSA encryption algorithm, a Blowfish encryption algorithm, or an AES encryption algorithm. The technical effect of improving the safety of the resources can be achieved by encrypting the target submission resources.
As an optional implementation manner of the embodiment of the present invention, when the number of the target submission resources corresponding to the resource submission request is large, there is a technical problem that it takes a long time to acquire the target submission resources, and then, the target submission resources may be compressed by calling a resource compression algorithm. The resource compression algorithm may also be set according to actual requirements, and is not limited herein, for example, a Lempel-ziv (lz) compression method, a Huffman algorithm, and the like. The size of the target submission resource can be compressed by calling a resource compression algorithm to compress the target submission resource, so that the pre-constructed resource verification initiator can acquire the target resource more quickly.
S120, at least one target resource verification process to be started in the resource verification starter is determined, at least one target submission resource is distributed to the target resource verification process, and the distributed target submission resource is verified through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter in a concurrent mode.
The resource check initiator may include, but is not limited to, a target resource check process to be started and a standby target resource check process. The standby target resource checking process can be understood as a target resource checking process which is not required to be started at the current moment. The number of target resource check processes to be started may be one, two, or more than two. In practical application, in order to improve the efficiency of resource verification, two or more resource verification processes can be started in the resource verification initiator concurrently, and then the distributed target submission resources can be verified through the two or more resource verification processes concurrently.
The resource verification initiator may concurrently open two or more resource verification processes, and it may be understood that when one resource verification process is opened in the resource verification initiator, another resource verification process or multiple resource verification processes are also opened in the resource verification initiator. Further, the distributed target submission resources are concurrently checked by two or more resource checking processes, which can be understood that one resource checking process has not completed checking the distributed target submission resources, and another resource checking process has started checking the distributed target submission resources. It will be appreciated that each resource checking process only checks the target commit resource to which it is respectively distributed. It should be noted that the number of target commit resources distributed by each resource check process may be the same or different.
Illustratively, when there are multiple target commit resources, the target commit resources are divided into three target commit resource groups, denoted resource group S1, resource group S2, and resource group S3, respectively, each resource group including at least one target commit resource. The resource checking initiator comprises a target resource checking process T1, a target resource checking process T2, a target resource checking process T3 and a target resource checking process T4. The target resource checking process to be started is a target resource checking process T1, a target resource checking process T2 and a target resource checking process T3. And distributing the resource group S1, the resource group S2 and the resource group S3 to the target resource check process T1, the target resource check process T2 and the target resource check process T3 respectively. At this time, the resource check initiator may concurrently open two or more resource check processes, and it is understood that when the resource check initiator opens the target resource check process T1, the resource check initiator also opens the target resource check process T2 and/or the target resource check process T3. Further, by concurrently checking the distributed target commit resource by two or more resource checking processes, it can be understood that, when the checking of the target commit resource by the target resource checking process T1 on the target commit resource in the resource group S1 is not yet completed, the target resource checking process T2 has already started to check the target commit resource in the resource group S2 and/or the target resource checking process T3 has already started to check the target commit resource in the resource group S3.
Specifically, after the target submission resource corresponding to the resource submission request is acquired, a target resource verification process to be started in the resource verification initiator may be determined. And then the target submission resource can be distributed to the target resource checking process. Two or more target resource check processes may be started concurrently. Therefore, the distributed target submission resources can be checked through the concurrently started target resource checking process. Optionally, in this embodiment, the concurrent starting of two or more target resource check processes may also be performed before the target commit resource is distributed to the target resource check processes. It should be noted that, after the resource check initiator is started, that is, the executable file with the resource check function is stored in the memory, the executable file with the resource check function is run in the memory, and the executable file with the resource check function in a running state is used as the process of the resource check initiator.
It should be noted that there may be multiple creating occasions of the target resource process, and the specific creating occasion of the target resource process is not limited herein, for example, the creating occasion of the target resource process may be created when the resource check launcher acquires the target submission resource, or may be created in the resource check launcher when the resource check launcher receives the resource submission request of the target application program.
It should be further noted that, in the embodiment of the present invention, the file quality of the target submitted file may be improved by verifying the target submitted file. The abnormal phenomenon of the project caused by the problem of the file quality in the project is avoided.
Optionally, before determining at least one target resource check process to be started in the resource check initiator, creating at least one resource check process is further included. The creating of the resource check process may be creating a preset maximum number of resource check processes that can be performed concurrently, and may shorten a submission time of the target submission resource, or may be determining a number of target processes corresponding to the memory space based on an available memory space at the current time, and creating the resource check process of the number of target processes, so that a phenomenon of process blockage due to limited memory space can be avoided.
How to determine at least one target resource check process to be started in a resource check initiator is described in the following two ways:
and determining all openable resource checking processes in the resource checking initiator at the current moment, and taking all the openable resource checking processes as target resource checking processes.
Specifically, after the resource verification initiator acquires the target submission resource corresponding to the resource submission request, it may be determined, for each resource verification process in the resource verification initiator, whether the resource verification process can be opened at the current time, and if so, the openable resource verification process may be used as the target resource verification process. And furthermore, all openable resource verification starters in the resource verification starters can be started at the current moment, so that the resource verification starters are started to the maximum extent.
Illustratively, all resource check processes included in the resource check initiator are a resource check process T4, a resource check process T5, a resource check process T6, and a resource check process T7. At the current time, the resource check process T4 may not be opened, and the resource check process T5, the resource check process T6, and the resource check process T7 may all be opened, so the resource check process T5, the resource check process T6, and the resource check process T7 may be used as the target resource check process.
And secondly, determining the resource size and/or the resource quantity of at least one target submitted resource, determining the quantity of target resource verification processes to be started in the resource verification starter according to the resource size and/or the resource quantity, and starting the target resource verification processes.
The resource size of the target submission resource can be understood as the size of the occupied space of the target submission resource.
Specifically, after the resource check initiator acquires the target submission resource, the resource size and/or the resource number of the target submission resource may be determined. And further, the number of target resource checking processes to be started in the resource checking initiator can be determined based on the resource size and/or the resource number of the target submitted resource. And then the number of target resource checking processes can be started.
In an embodiment, a correspondence between the resource size of the target committed resource and the target resource check process is preset, where the resource size of the target committed resource may be the resource size of each target committed resource corresponding to the target resource check process, or may be the sum of the resource sizes of all target committed resources that the target resource check process can check, and the sum of the file sizes of the target committed resources corresponding to different target resource check processes may be the same or different, for example, the resource size of the target resource check process T5 corresponding to a single target committed resource is in an interval from N1 to N2, and for example, the sum of the resource sizes of all target committed resources that the target resource check process T5 can check is N3. After the resource check initiator acquires the target submission resource, the resource size of the target submission resource can be determined, and then the number of target resource check processes to be started in the resource check initiator can be determined based on the preset corresponding relationship between the resource size of the target submission resource and the target resource check processes. And then the target resource checking process can be started.
In another embodiment, the correspondence between the number of resources of the target submission resource and the number of target resource checking processes may be preset. After the resource verification initiator acquires the target submission resource, the resource number of the target submission resource may be determined, and then the number of target resource verification processes to be started in the resource verification initiator may be determined based on a correspondence between the preset resource number of the target submission resource and the number of the target resource verification processes. And then the target resource checking process can be started.
Illustratively, the preset correspondence between the resource quantity of the target submission resource and the quantity of the target resource checking process is as follows: the 100 target submitted resources correspond to 1 target resource checking process, and when the number of the resources of the target submitted resources is 1000, the number of the target resource checking processes to be started is 10.
In another embodiment, the resource size and the resource quantity of the target submission resource and the corresponding relationship between the target resource checking process and the target submission resource may be preset. For example, a resource number of the target committed resource between N3 and N4 and a resource size of the target committed resource in the range 512B to 1003B may correspond to the target resource checking process T7. After the resource verification starter obtains the target submission resources, the resource size and the resource number of the target submission resources can be determined, and then the number of target resource verification processes to be started in the resource verification starter can be determined based on the preset corresponding relation between the resource size and the resource number of the target submission resources and the target resource verification processes. And then the target resource checking process can be started.
Optionally, the distributed target submission resource is checked by the target resource checking process in the following manner:
and when the number of the target resource checking processes is two or more, starting the two or more target resource checking processes simultaneously, and checking the distributed target submission resources through each target resource checking process respectively.
Specifically, after the target resource checking process is started, the number of the target resource checking processes may be determined. If the number of the target resource checking processes is two or more, the two or more target resource checking processes can be started concurrently. And then the target submission resources corresponding to the concurrently started target resource verification processes can be verified respectively through the concurrently started target resource verification processes.
It should be noted that, in the embodiment of the present invention, by concurrently starting two or more target resource verification processes to verify the corresponding target submission resource, the verification time for the target submission resource can be shortened, so as to improve the verification efficiency.
Optionally, a check parameter of the target submission resource is preset. And then, the target submission resource can be checked based on the preset checking parameter of the target submission resource. The check parameters of the target submitted resource may be set according to actual needs of the check, and optionally, the check parameters may include but are not limited to a resource identifier, a resource type, a format corresponding to the resource type, and the like.
S130, if the target submission resource passes the verification, responding to the resource submission request, and submitting the target submission resource to a resource library of the target application program.
The resource submission request may carry information of a resource library of the target application program, where the information of the resource library of the target application program may include, but is not limited to, a name, a type, and path information of the resource library. A repository may be understood as a library for storing target commit resources. Optionally, the repository may be a database or a repository of repository resources. The type of the resource storage warehouse can be a public type or a private type. The number of resource pools of the target application may be one or more. When the number of target submission resources corresponding to the target application program is large, the target application program may include a plurality of resource libraries, where each resource library may store different types of target submission resources.
Specifically, if the target submission resource passes the verification, the resource submission request may be parsed. And in turn, the repository for the target application can be determined. After the target resource library is determined, the target submission resource can be submitted to the resource library of the target application program, so that the target submission resource can be managed and used in a centralized manner.
Optionally, the target submission resource is submitted to the resource library of the target application program in the following manner:
and aiming at each target submission resource, converting the target submission resource into a corresponding binary stream, and submitting the binary stream to a resource library of the target application program. The benefit of committing the target commit resource in this way is that the repository of the target application can store the target commit resource more quickly and efficiently.
It should be noted that, after the target submission resource passes the verification, submitting the target submission resource to the resource library of the target application program not only guarantees the resource quality of the target submission resource stored in the resource library, but also can avoid the technical problems of waste of storage space due to the existence of invalid resources and low efficiency of searching resources from the resource library corresponding to the target application program.
On the basis, if the target submitted resource is not verified, a verification failure report corresponding to the target submitted resource is generated, and the verification failure report is sent to the target terminal based on a hypertext transfer protocol sending interface realized in the resource verification starter.
The check failure report may be a check failure report corresponding to the target submission resource, which is generated when it is determined that the target submission resource fails to be checked. Can be used for recording the target submission resources which are not verified so as to facilitate the verification and subsequent processing of the target submission resources which are not verified. The information in the check failure report may include, but is not limited to, the resource identification, the resource type, the resource format, and the check time of the target commit resource that failed the check. The check failure report may also carry the target commit resource. The number of check failure reports may be one or more. The target terminal may be a terminal of a supervisor who targets submission of the resource. The number of target terminals may be one or more.
Optionally, after sending the check failure report to the target terminal, the resource file submitting method further includes: and displaying the verification failure report on the target terminal. Therefore, related personnel can conveniently supervise and process the target submission resources of the target application program, and the resource quality of the target submission resources is improved.
Optionally, if the target submission resource fails to be verified, a verification failure report may be generated by:
in a first mode, if the target submission resource is not verified, the target submission resource which is not verified can be determined. When all the target submission resources are checked, a check failure report may be generated based on all the target submission resources that fail the check. Then the number of check failure reports at this time is one.
And if the target submission resources are not verified, determining the number of failed verification of the target submission resources which are not verified currently. If the number of failed verifications reaches a preset number threshold, a verification failure report may be generated based on the number of failed verification target commit resources. Then, the number of check failure reports at this time may be one or more. The preset number threshold may be 20, 40, or 80, and the specific value is not limited herein.
According to the technical scheme of the embodiment of the invention, when the resource submission request of the target application program is received, at least one target submission resource corresponding to the resource submission request can be obtained based on the pre-constructed resource verification starter. The resource verification starter can independently submit the target submission resources corresponding to the resource submission requests of the target application programs, and the flexibility of resource submission can be improved. After the target submitted resource is obtained, at least one target resource verification process to be started in the resource verification starter can be determined, and the at least one target submitted resource is distributed to the target resource verification process. And the distributed target submission resources can be verified through the target resource verification process. Wherein, two or more resource checking processes can be started in the resource checking initiator concurrently. In the embodiment of the invention, the resources are verified by reasonably and effectively concurrently starting the resource verification process, so that the verification time can be shortened. After the target submitted resource is verified, if the target submitted resource passes the verification, the target submitted resource can be submitted to the resource library of the target application program in response to the resource submission request, so that the technical problems of low speed and long time consumption of the resource file submission method in the prior art are solved, the resource file corresponding to the application program is submitted more quickly and effectively, and the technical effect of improving the submission efficiency of the resource file is achieved.
Example two
Fig. 2 is a schematic flow chart of a resource file submission method provided in the second embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the distributing the at least one target submission resource to the target resource checking process includes: and distributing the at least one target submission resource to a target resource verification process through the Jenkins jobservice realized in the resource verification starter.
Optionally, the resource verification initiator includes a resource management module corresponding to the target application program, and the verifying the distributed target submission resource by the target resource verification process includes: and verifying the distributed target submission resources through the target verification process and the resource management module corresponding to the target application program.
The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
s210, when a resource submitting request of a target application program is received, acquiring at least one target submitting resource corresponding to the resource submitting request based on a pre-constructed resource verification starter.
S220, determining at least one target resource verification process to be started in the resource verification starter, and distributing at least one target submission resource to the target resource verification process through Jenkins jobservice realized in the resource verification starter.
The Jenkins jobservice can be used for distributing the target submission resource to the target resource checking process. Wherein, two or more resource checking processes can be started in the resource checking initiator concurrently.
Specifically, a target resource verification process to be started in the resource verification starter is determined. And then the target submitted resource can be distributed to the target resource verification process at the distribution moment of the target submitted resource by calling Jenkins jobservice realized in the resource verification starter.
In the embodiment of the invention, the tasks distributed by the target submitted resources can be monitored in the distribution process of distributing the target submitted resources to the target resource verification process through the Jenkins jobservice realized in the resource verification initiator. If the target submitted resource has a distribution time, the Jenkins jobservice realized in the resource verification initiator monitors the distribution task at the distribution time. In this embodiment, the advantage of monitoring the task of distributing the target submission resource is that if the target submission resource is lost in the distribution process, the Jenkins job service implemented in the resource check initiator can be more quickly located to the target submission resource.
And S230, verifying the distributed target submission resources through the target verification process and the resource management module corresponding to the pre-constructed target application program.
The resource management module may be a module obtained by encapsulating resource management information corresponding to the target submitted resource. The resource management information may include at least one resource verification parameter and a resource verification method of the resource. The resource check parameter may include, but is not limited to, a resource type, a resource format corresponding to the resource type, a resource size, a resource name, a resource size, and the like. The resource check parameters of different types of resources may be the same or different. The resource checking method may be a predefined regular expression for checking the target submission resource. The resource checking methods of different types of resources may be the same or different. It should be noted that the resource management information can be flexibly configured according to the actual requirement of the resource check. Alternatively, the resource management information may be stored in the form of at least one file.
Specifically, after the target submission resource is distributed to the target resource verification process, the resource management module corresponding to the target application program can be called through the target resource verification process. And then the target submission resource can be checked through the resource management module. Specifically, for each target submission resource, a resource check parameter and a resource check method configured for each resource in the resource management module may be determined, and the resource check parameters such as the resource format, the resource size, and the like of the corresponding target submission resource are checked by calling the resource check method of each resource.
Optionally, in practical application, the types of resources are many, and in order to facilitate management and maintenance of resource management information in the resource management module, a common resource check parameter in resource check parameters of all types of resources may be separately stored, and a private check parameter corresponding to each type of resource is separately stored. The advantage of this processing is not only to reduce the occupation of the memory space by the resource management module, but also to facilitate the subsequent maintenance of the resource check parameters for each resource.
Exemplarily, the resource types of the target submission resource include a type a and a type B, where the resource verification parameters of the target submission resource of the type a are a resource format, a resource size, and a resource size; the resource check parameters of the type B target submission resources are the resource format and the resource size, and then the resource format and the resource size can be used as the public resource check parameters, and the resource size can be used as the private resource check parameters of the type a target submission resources.
In the embodiment of the invention, the advantage of pre-constructing the resource management module corresponding to the target application program is that the resource management information corresponding to the target submission resource is conveniently managed in a unified manner, the resource management information is conveniently added, modified or deleted, and the resource submission requirements of the target application program can be better met.
S240, if the target submission resource passes the verification, responding to the resource submission request, and submitting the target submission resource to a resource library of the target application program.
According to the technical scheme of the embodiment of the invention, at least one target submission resource is distributed to the target resource verification process through the Jenkins job service realized in the resource verification starter, wherein the Jenkins job service realized in the resource verification starter can not only distribute the target submission resource, but also monitor the distributed target submission resource, so that the distribution condition of the target resource can be known in real time. The distributed target submission resources are verified through the resource management module corresponding to the target verification process and the target application program, so that the effect of rapidly and conveniently verifying the target submission resources is achieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a resource file submission apparatus according to a third embodiment of the present invention, where the present invention provides a resource file submission apparatus, and the apparatus includes: a target commit resource acquisition module 310, a target commit resource check module 320, and a target commit resource commit module 330.
The target submission resource acquiring module 310 is configured to, when a resource submission request of a target application program is received, acquire, based on a pre-established resource verification initiator, at least one target submission resource corresponding to the resource submission request; the target submission resource checking module 320 is configured to determine at least one target resource checking process to be started in the resource checking initiator, distribute the at least one target submission resource to the target resource checking process, and check the distributed target submission resource through the target resource checking process, where two or more resource checking processes may be concurrently started in the resource checking initiator; and the target submission resource submitting module 330 is configured to, if the target submission resource passes the verification, submit the target submission resource to the resource library of the target application in response to the resource submission request.
According to the technical scheme of the embodiment of the invention, through the target submission resource acquisition module, when the resource submission request of the target application program is received, at least one target submission resource corresponding to the resource submission request can be acquired based on the pre-constructed resource verification starter. And then, at least one target resource verification process to be started in the resource verification starter is determined through the target submission resource verification module, and at least one target submission resource is distributed to the target resource verification process. After the target submission resource is distributed to the target resource verification process, the distributed target submission resource can be verified through the target resource verification process. Wherein, two or more resource checking processes can be started in the resource checking initiator concurrently. After the target submitted resource is checked, the target submitted resource submitting module submits the target submitted resource to a resource library of a target application program in response to a resource submitting request through the target submitted resource submitting module if the target submitted resource passes the check, so that the validity of the target submitted resource is ensured, the technical problems of low speed and long time consumption of a resource file submitting method in the prior art are solved, the resource file corresponding to the application program is submitted more quickly and effectively, and the technical effect of improving the submitting efficiency of the resource file is achieved.
Optionally, the target submitting resource verifying module 320 is configured to determine all openable resource verifying processes in the resource verifying initiator at the current time, and use all openable resource verifying processes as target resource verifying processes.
Optionally, the target submission resource checking module 320 is configured to determine a resource size and/or a resource number of the at least one target submission resource, determine the number of target resource checking processes to be started in the resource checking initiator according to the resource size and/or the resource number, and start the target resource checking processes.
Optionally, the target submission resource checking module 320 is configured to distribute the at least one target submission resource to a target resource checking process through a Jenkins job service implemented in the resource checking initiator.
Optionally, the target submission resource checking module 320 is configured to, when the number of the target resource checking processes is two or more, concurrently start two or more target resource checking processes, and check the distributed target submission resource through each target resource checking process.
Optionally, the resource verification initiator includes a resource management module corresponding to the target application program, and a target submission resource verification module 320, configured to verify the distributed target submission resource through the resource management module corresponding to the target verification process and the target application program.
Optionally, the apparatus further comprises: and the verification failure report transmission module is used for generating a verification failure report corresponding to the target submitted resource and sending the verification failure report to the target terminal based on a hypertext transfer protocol sending interface realized in the resource verification starter if the target submitted resource fails to be verified.
The device can execute the resource file submission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the resource file submission method.
It should be noted that, the units and modules included in the apparatus for submitting resource files are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing any of the embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer-readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer device readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown, but commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to carry out the functions of embodiments of the invention. Program product 40 may be stored, for example, in memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), one or more devices that enable a user to interact with electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) devices, tape drives, and data backup storage devices, to name a few.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, implementing the resource file submission method provided by the above-described embodiment of the present invention, and the method includes:
when a resource submission request of a target application program is received, acquiring at least one target submission resource corresponding to the resource submission request based on a pre-constructed resource verification starter; determining at least one target resource verification process to be started in the resource verification starter, distributing at least one target submission resource to the target resource verification process, and verifying the distributed target submission resource through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter concurrently; and if the target submission resource passes the verification, submitting the target submission resource to a resource library of the target application program in response to the resource submission request.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the resource file submission method provided in any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and is characterized in that, for example, the method for submitting a resource file provided in the foregoing embodiment of the present invention includes:
when a resource submission request of a target application program is received, acquiring at least one target submission resource corresponding to the resource submission request based on a pre-constructed resource verification starter; determining at least one target resource verification process to be started in the resource verification starter, distributing at least one target submission resource to the target resource verification process, and verifying the distributed target submission resource through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter concurrently; and if the target submission resource passes the verification, submitting the target submission resource to a resource library of the target application program in response to the resource submission request.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A resource file submission method is characterized by comprising the following steps:
when a resource submission request of a target application program is received, acquiring at least one target submission resource corresponding to the resource submission request based on a pre-constructed resource verification starter;
determining at least one target resource verification process to be started in the resource verification starter, distributing at least one target submission resource to the target resource verification process, and verifying the distributed target submission resource through the target resource verification process, wherein two or more resource verification processes can be started in the resource verification starter concurrently;
and if the target submission resource passes the verification, submitting the target submission resource to a resource library of the target application program in response to the resource submission request.
2. The method according to claim 1, wherein the determining at least one target resource check process to be started in the resource check initiator comprises:
and determining all openable resource checking processes in the resource checking initiator at the current moment, and taking all openable resource checking processes as target resource checking processes.
3. The method according to claim 1, wherein the determining at least one target resource check process to be started in the resource check initiator comprises:
determining the resource size and/or the resource quantity of the at least one target submitted resource, determining the quantity of target resource checking processes to be started in the resource checking starter according to the resource size and/or the resource quantity, and starting the target resource checking processes.
4. The method of claim 1, wherein said distributing the at least one target commit resource to a target resource check process comprises:
and distributing the at least one target submission resource to a target resource verification process through the Jenkins jobservice realized in the resource verification starter.
5. The method of claim 1, wherein the checking, by the target resource checking process, the distributed target commit resource comprises:
and when the number of the target resource checking processes is two or more, starting the two or more target resource checking processes simultaneously, and checking the distributed target submission resources through each target resource checking process respectively.
6. The method of claim 1, wherein the checking, by the target resource checking process, the distributed target commit resource comprises:
and verifying the distributed target submission resources through the target verification process and a resource management module corresponding to a pre-constructed target application program.
7. The method of claim 1, further comprising:
and if the target submitted resource does not pass the verification, generating a verification failure report corresponding to the target submitted resource, and sending the verification failure report to a target terminal based on a hypertext transfer protocol sending interface realized in the resource verification starter.
8. An apparatus for rendering a resource file, comprising:
the target submission resource acquisition module is used for acquiring at least one target submission resource corresponding to a resource submission request based on a pre-constructed resource verification starter when the resource submission request of a target application program is received;
the target submitting resource checking module is used for determining at least one target resource checking process to be started in the resource checking initiator, distributing the at least one target submitting resource to the target resource checking process, and checking the distributed target submitting resource through the target resource checking process, wherein two or more than two resource checking processes can be started in the resource checking initiator concurrently;
and the target submission resource submitting module is used for responding to the resource submitting request and submitting the target submission resource to the resource library of the target application program if the target submission resource passes the verification.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement the method of committing the resource file according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of committing a resource file according to any one of claims 1-7.
CN202111651474.9A 2021-12-30 2021-12-30 Resource file submitting method and device, electronic equipment and storage medium Pending CN114385206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111651474.9A CN114385206A (en) 2021-12-30 2021-12-30 Resource file submitting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111651474.9A CN114385206A (en) 2021-12-30 2021-12-30 Resource file submitting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114385206A true CN114385206A (en) 2022-04-22

Family

ID=81199130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111651474.9A Pending CN114385206A (en) 2021-12-30 2021-12-30 Resource file submitting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114385206A (en)

Similar Documents

Publication Publication Date Title
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN110297689B (en) Intelligent contract execution method, device, equipment and medium
US8856764B2 (en) Distributed static analysis of computer software applications
CN108595316B (en) Lifecycle management method, manager, device, and medium for distributed application
US10242221B1 (en) System and method for automatically securing sensitive data in public cloud using a serverless architecture
CN110750592B (en) Data synchronization method, device and terminal equipment
CN112015663B (en) Test data recording method, device, equipment and medium
CN111930489B (en) Task scheduling method, device, equipment and storage medium
CN111563016A (en) Log collection and analysis method and device, computer system and readable storage medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN110851471A (en) Distributed log data processing method, device and system
CN114356521A (en) Task scheduling method and device, electronic equipment and storage medium
US9819559B2 (en) Integrated solution for application data layer coverage discovery and gap analysis
CN113760491A (en) Task scheduling system, method, equipment and storage medium
CN112069158A (en) Data restoration method, device, equipment and storage medium
KR20170122874A (en) Apparatus for managing log of application based on data distribution service
CN111277626A (en) Server upgrading method and device, electronic equipment and medium
CN114385206A (en) Resource file submitting method and device, electronic equipment and storage medium
CN114510398A (en) Anomaly monitoring method, apparatus, device, system and medium
CN114579405A (en) Data processing method, data processing apparatus, electronic device, and storage medium
CN113553098A (en) Method and device for submitting Flink SQL (structured query language) operation and computer equipment
CN111695986B (en) Method and device for controlling accumulated gold image
CN113641399B (en) Configuration data processing system, method, electronic device and storage medium
CN112486815B (en) Analysis method and device of application program, server and storage medium
CN112269583B (en) Method for processing equipment operation abnormal file upgrade, server and 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