Resource processing method, device, electronic device and computer readable medium

By selecting the target verification file from the database for resource verification, the separation of resource calling services and operations is achieved, which solves the problem of low efficiency in resource verification and default value setting in the existing technology, and improves the efficiency of resource processing and data processing. efficiency.

CN113778956BActive Publication Date: 2024-09-20JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111084105.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2024-09-20
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

In the existing technology, there are a large number of duplicate codes and a single resource call service relationship when setting resource verification and default values, resulting in a large amount of data processing and low efficiency.

Method used

By obtaining the target verification files in multiple verification files from the preset database, verifying the resources to be processed, and feeding back the verification results, we can achieve the separation of resource calling services and operations, establish a one-to-many calling relationship, and reduce The number of resource call services to avoid the problem of high data duplication.

Benefits of technology

It improves the efficiency of resource processing, reduces the amount and time of data processing, and improves data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778956B
    Figure CN113778956B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a resource processing method, device, electronic device and computer-readable medium. A specific implementation of the method includes: in response to receiving a resource verification request from a terminal device, obtaining a target verification file corresponding to the resource verification request from a preset database; verifying the resources to be processed corresponding to the resource verification request through the target verification file, and feeding back the verification result to the terminal device; in response to receiving the resources to be processed from the terminal device, storing the resources to be processed in the database; in response to detecting the request information of the resources to be processed in the corresponding database, processing the resources to be processed based on the request information. This implementation realizes the separation of resource call services and operations, and realizes a one-to-many call relationship between resource call services and operations. The number of resource call services is reduced and the problem of high data duplication between multiple resource call services is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a resource processing method, device, electronic device, and computer-readable medium. Background Art

[0002] Containers are a technical means in the Linux kernel to isolate resources such as processors, memory, and networks. From the perspective of user experience, they are similar to virtual machines. R&D personnel can deploy their own resources into containers to implement various operations on resources. Before deploying resources into containers, it is necessary to verify the resources and set default values ​​for resource attributes.

[0003] When performing operations such as verifying resources and setting default values, it is necessary to implement them through resource calling services, and each resource calling service is only for a certain operation of the resource. For example, when a user needs to perform multiple operations on a resource, the prior art requires multiple resource calling services; when performing the same operation on multiple resources, multiple resource calling services are also required. That is, in the prior art, the resource calling service and the operation are a fixed one-to-one calling relationship. When performing multiple operations on the same resource, or performing the same operation on multiple resources, there will be a large amount of repeated code and other information in the resource calling service. Therefore, when performing operations such as verifying resources, the prior art has problems such as a large amount of resource calling services, high data repetitiveness, and a single relationship between resource calling services and operations. In this way, the amount of data processing and the time of data processing are increased, and the efficiency of data processing is reduced. Summary of the invention

[0004] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0005] Some embodiments of the present disclosure propose resource processing methods, devices, electronic devices, and computer-readable media to solve the technical problems mentioned in the above background technology section.

[0006] In a first aspect, some embodiments of the present disclosure provide a resource processing method, the method comprising: in response to receiving a resource verification request from a terminal device, obtaining a target verification file corresponding to the resource verification request from a preset database, the resource verification request being used to instruct verification of the resources to be processed, the database storing resources and at least one verification file corresponding to the resources; verifying the resources to be processed corresponding to the resource verification request through the target verification file, and feeding back the verification result to the terminal device; in response to receiving the resources to be processed from the terminal device, storing the resources to be processed in a database; in response to detecting request information corresponding to the resources to be processed in the database, processing the resources to be processed based on the request information.

[0007] In a second aspect, some embodiments of the present disclosure provide a resource processing device, which includes: a verification file acquisition unit, configured to, in response to receiving a resource verification request sent by a terminal device, obtain a target verification file corresponding to the resource verification request from a preset database, the resource verification request is used to indicate verification of the resources to be processed, and the database stores resources and at least one verification file corresponding to the resources; a verification unit, configured to verify the resources to be processed corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device; a resource storage unit, configured to, in response to receiving the resources to be processed sent by the terminal device, store the resources to be processed in a database; a resource processing unit, configured to, in response to detecting request information corresponding to the resources to be processed in the database, process the resources to be processed based on the request information.

[0008] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0009] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0010] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: by processing resources through the resource processing method of some embodiments of the present disclosure, the processing efficiency of resources is improved. Specifically, the reason for the low processing efficiency of resources is that each processing of resources requires a resource call service. Based on this, when receiving a resource verification request, the resource processing method of some embodiments of the present disclosure obtains a target verification file from multiple verification files of the corresponding resource from the database, and then verifies the resource to be processed through the target verification file. In this way, the separation of resource call service and operation is realized when processing resources, and a one-to-many call relationship between resource call service and operation is realized. The number of resource call services is reduced, and the problem of high data duplication between multiple resource call services is avoided. After that, the resources to be processed are stored in the database, and the resources to be processed are processed. In this way, the data processing amount and data processing time are reduced, and the data processing efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0012] Figure 1 is a schematic diagram of an application scenario of a resource processing method of some embodiments of the present disclosure;

[0013] Figure 2 is a flow chart of some embodiments of the resource processing method according to the present disclosure;

[0014] Figure 3 are flow charts of other embodiments of the resource processing method according to the present disclosure;

[0015] Figure 4 are flow charts of some further embodiments of the resource processing method according to the present disclosure;

[0016] Figure 5 is a schematic diagram of an application scenario of the resource processing method disclosed herein;

[0017] Figure 6 is a schematic diagram of the structure of some embodiments of the resource processing device according to the present disclosure;

[0018] Figure 7 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] Figure 1 It is a schematic diagram of an application scenario of the resource processing method according to some embodiments of the present disclosure.

[0026] like Figure 1As shown, the terminal device 101 can send a resource verification request to the server 102. The server 102 is provided with a database, and the database stores multiple resources, and each resource can have corresponding multiple verification files. The verification file is used to judge various attributes of the resource to determine whether the resource to be processed meets the attribute requirements or the provisions of the attribute value. The server 102 can obtain the target verification file corresponding to the resource verification request from the preset database. In this way, the separation of resource call service and operation is realized, and a one-to-many call relationship between resource call service and operation is realized. The number of resource call services is reduced and the problem of high data duplication between multiple resource call services is avoided. The server 102 can verify the resource to be processed corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device 101. When the verification result is legal, the terminal device 101 can upload the resource to be processed to the server 102. The server 102 can store the resource to be processed in the database, receive the request information corresponding to the resource to be processed, and process the resource to be processed. In this way, the data processing amount and data processing time are reduced, and the data processing efficiency is improved.

[0027] It should be understood that Figure 1 The number of terminal devices 101 and servers 102 in the figure is only for illustration. Any number of terminal devices 101 and servers 102 may be provided according to implementation requirements.

[0028] Continue to refer Figure 2 , Figure 2 The process 200 of some embodiments of the resource processing method according to the present disclosure is shown. The resource processing method comprises the following steps:

[0029] Step 201, in response to receiving a resource verification request sent by a terminal device, obtaining a target verification file corresponding to the resource verification request from a preset database.

[0030] In some embodiments, the execution entity of the resource processing method (eg Figure 1 The server 102 shown in the figure can receive the resource verification request sent by the terminal device 101 through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (Ultra Wide Band) connection, and other wireless connection methods currently known or to be developed in the future.

[0031] After receiving the resource verification request sent by the terminal device 101, the execution subject can obtain the target verification file corresponding to the resource verification request from the database preset on the execution subject. The resource verification request is used to describe what kind of operation is performed on the resource to be processed. Specifically, the above resource verification request can be used to instruct to verify the resource to be processed at the terminal device 101. There are multiple resources stored in the database, each resource can have corresponding multiple verification files, and each verification file can be used to perform a specific operation on the resource. For example, it can be used to judge various attributes of the resource to determine whether the resource to be processed meets the attribute requirements or attribute value regulations. Correspondingly, the target verification file is the verification file corresponding to the resource verification request in the multiple verification files. In this way, the dynamic reading of multiple verification files and the one-to-many calling relationship between resource calling services and operations are realized.

[0032] Step 202: Verify the to-be-processed resources corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device.

[0033] In some embodiments, the execution subject may verify the to-be-processed resource corresponding to the resource verification request through the target verification file. The to-be-processed resource may be a variety of resource types such as images and videos. The verification result may be "legal" or "illegal", or "passed" or "failed", etc. Afterwards, the execution subject may feed back the verification result to the above-mentioned terminal device.

[0034] Step 203: In response to receiving the resources to be processed sent by the terminal device, the resources to be processed are stored in a database.

[0035] In some embodiments, when the verification result is "illegal" or "failed", the terminal device 101 can modify the resource verification request and send it to the execution subject again. When the verification result is "legal" or "passed", the terminal device 101 can send the pending resources corresponding to the resource verification request to the execution subject. The execution subject can store the pending resources in a database.

[0036] Step 204: in response to detecting the request information corresponding to the resource to be processed in the database, processing the resource to be processed based on the request information.

[0037] In some embodiments, the resources in the database can be called. In practice, the terminal device 101 verifies the resources to be processed and uploads them to the execution subject in order to process the resources to be processed. When the execution subject receives the request information corresponding to the resources to be processed, the resources to be processed can be processed based on the request information. The request information is used to indicate the processing operation to be performed on the resources to be processed. For example, when the resource to be processed is an image, the request information can be: "render the image".

[0038] The resource processing method disclosed in some embodiments of the present disclosure processes resources, and the resource processing efficiency is improved. Specifically, the reason for the low resource processing efficiency is that each type of resource processing requires a resource call service. Based on this, when receiving a resource verification request, the resource processing method of some embodiments of the present disclosure obtains a target verification file from multiple verification files of the corresponding resource in the database, and then verifies the resource to be processed through the target verification file. In this way, the separation of resource call service and operation is achieved when processing resources, and a one-to-many call relationship between resource call service and operation is achieved. The number of resource call services is reduced, and the problem of high data duplication between multiple resource call services is avoided. The resources to be processed are then stored in the database, and the resources to be processed are processed. In this way, the data processing volume and data processing time are reduced, and the data processing efficiency is improved.

[0039] Continue to refer Figure 3 , Figure 3 The process 300 of some embodiments of the resource processing method according to the present disclosure is shown. The resource processing method comprises the following steps:

[0040] Step 301, in response to receiving a resource verification request sent by a terminal device, querying resource type information of a to-be-processed resource corresponding to the resource verification request.

[0041] The execution subject may first query the resource type information of the to-be-processed resource corresponding to the resource verification request. For example, if the to-be-processed resource is an image and the resource verification request indicates to verify the image, the corresponding resource type information is the image type.

[0042] Step 302: Obtain at least one to-be-processed verification file of the resource type information.

[0043] The execution subject may query at least one to-be-processed verification file corresponding to the image type from the database. Here, each to-be-processed verification file may be a verification of the image. For example, the to-be-processed verification file may be a verification of the image resolution, the image size, the image pixel, etc.

[0044] Step 303: Match a target verification file corresponding to the resource verification request from the at least one verification file to be processed.

[0045] The resource verification request usually requires a certain operation on the resource to be processed. Therefore, the execution subject can match the resource verification request with multiple verification files to be processed, and then determine the target verification file.

[0046] Step 304: Verify the to-be-processed resources corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device.

[0047] In some optional implementations of some embodiments, the verifying the to-be-processed resources corresponding to the resource verification request through the target verification file includes: verifying the description information included in the resource verification request through the target verification file.

[0048] The resource verification request may include description information, and the description information is used to describe the attribute information of the resource to be processed. For example, if the resource to be processed is an image, the description information may be: verifying the resolution of the image. Then the target verification file determined by the above steps may be used to verify the resolution of the image. The execution subject may verify the description information contained in the resource verification request through the target verification file to determine whether the resource to be processed meets the resolution requirement.

[0049] In some optional implementations of some embodiments, the above-mentioned target verification file is used to verify the resources to be processed corresponding to the above-mentioned resource verification request, including: in response to missing attribute information to be processed in the above-mentioned description information, setting default values ​​for the attribute values ​​of the above-mentioned attribute information to be processed through the above-mentioned target verification file.

[0050] When the execution subject detects that the resource to be processed lacks certain attributes or attribute values ​​of the attributes, it can independently set default values ​​for the resource to be processed.

[0051] In some optional implementations of some embodiments, the above-mentioned target verification file is used to verify the resources to be processed corresponding to the above-mentioned resource verification request, including: in response to the above-mentioned resource verification request, the above-mentioned resource operation information exists, and environment variables are generated based on the above-mentioned resource operation information, and the above-mentioned environment variables are used to describe the hardware information and software information corresponding to the above-mentioned resources to be processed when they are executed according to the above-mentioned resource operation information.

[0052] The resource verification request may include resource operation information, which is used to describe the operating environment of the resource to be processed. For example, the resource to be processed is an image, and the image needs to be rendered. Correspondingly, the resource operation information may be requirements for the processor, memory, etc. of the rendering device. The requirements put forward by the resource operation information may not be consistent with the actual requirements when processing the resource to be processed (for example, the required hardware resources and software resources are too high, or the hardware resources and software resources are too low). Therefore, the execution subject needs to match the resource operation information according to the actual situation and generate environment variables. Among them, the above-mentioned environment variables are used to describe the hardware information and software information corresponding to the resource to be processed when it is executed according to the above-mentioned resource operation information. The environment variables can be stored in the database together with the resource to be processed. In this way, a corresponding relationship between the environment variables and the resource to be processed is established. For example, the execution subject can determine how many devices are needed to participate in the rendering of the image, the number of processor cores, memory capacity, etc. of each device based on the requirements for the processor, memory, etc. in the resource operation information. Then the above-mentioned several devices participate in the rendering of the image, and the number of processor cores, memory capacity, etc. of each device are environment variables.

[0053] Step 305, in response to receiving the resource to be processed sent by the terminal device, storing the resource to be processed in a database;

[0054] Step 306: In response to detecting the request information corresponding to the resource to be processed in the database, the resource to be processed is processed based on the request information.

[0055] The contents of steps 305 and 306 are the same as those of steps 203 and 204, and are not described in detail here.

[0056] In some optional implementations of some embodiments, the processing of the to-be-processed resources based on the request information may include the following steps:

[0057] The first step is to create a container corresponding to the resource to be processed based on the request information.

[0058] When the execution subject processes the resources to be processed, a container corresponding to the resources to be processed may be constructed. For example, if the request information indicates to render an image, the container may be a virtual machine including resources such as image processing software and multiple processor cores.

[0059] The second step is to process the above-mentioned resources to be processed through the above-mentioned container.

[0060] After the container is built, the resources to be processed can be imported into the container and processed by the container.

[0061] In some optional implementations of some embodiments, the step of creating a container corresponding to the resource to be processed based on the request information may include the following steps:

[0062] The first step is to obtain the target environment variables corresponding to the above resources to be processed.

[0063] When creating a container, it is necessary to consider the hardware and software conditions that meet the request information. From the above description, it can be seen that the execution subject can generate environment variables corresponding to the resources to be processed. Here, the execution subject can obtain the target environment variables of the resources to be processed by searching or other methods.

[0064] The second step is to set the parameters of the above container based on the above target environment variables.

[0065] After obtaining the target environment variables, the execution subject can set the parameters of the container according to the target environment variables. For example, the number of processor cores and content size of the container can be set through the target environment variables.

[0066] Continue to refer Figure 4 , Figure 4 The process 400 of some embodiments of the resource processing method according to the present disclosure is shown. The resource processing method comprises the following steps:

[0067] Step 401, in response to receiving a resource verification request sent by a terminal device, obtaining a target verification file corresponding to the resource verification request from a preset database.

[0068] Step 402: Verify the to-be-processed resources corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device.

[0069] Step 403: In response to receiving the resources to be processed sent by the terminal device, the resources to be processed are stored in a database.

[0070] Step 404: in response to detecting the request information corresponding to the resource to be processed in the database, processing the resource to be processed based on the request information.

[0071] The contents of step 401 to step 404 are the same as those of step 201 to step 204, and are not described in detail here.

[0072] Step 405: In response to the existence of the verification resource in the database, the verification resource is parsed to obtain verification information of the corresponding resource.

[0073] In addition to the resources directly used for processing, the database also has verification resources. The above-mentioned verification resources themselves can be used to characterize the verification of specified types of resources. That is, the verification resources describe what kind of verification is performed on other resources. The verification resources can be compressed packages, files, etc. At this time, the execution subject can parse the verification resources to obtain the verification information of the corresponding resources. It should be noted that the verification information here can be the verification information newly added to the resources, or it can be the verification information for updating, deleting, and other operations on the existing verification information of the resources, depending on actual needs. In this way, dynamic modification of resource verification is achieved, which improves the flexibility and applicability of resource verification.

[0074] Step 406: construct a verification file using the verification information, and establish a corresponding relationship between the verification file and the corresponding resources.

[0075] After obtaining the verification information, the execution entity can build a verification file based on the verification information and establish a corresponding relationship between the verification file and the corresponding resource. When a verification file for the corresponding resource already exists, the execution entity can merge the obtained verification information into the existing verification file. This is conducive to realizing a one-to-many calling relationship between resource calling services and operations. It reduces the number of resource calling services and avoids the problem of high data duplication between multiple resource calling services.

[0076] Further references Figure 5 , which shows a schematic diagram of an application scenario of the resource processing method. Figure 5In the figure, Kube-apiserver represents the terminal device 101, and the Webhook-operator and the ETCD database together represent the server 102. The Webhook-operator further includes an Http server and a controller. Among them, the Http server is a resource calling service, which is used to call the verification file corresponding to the resource to be processed sent by the Kube-apiserver, and verify the resource to be processed through the verification file. The Http server can also set the default value for the missing attribute information to be processed when there is missing attribute information to be processed in the resource to be processed. Webhookrequest-A, Webhookrequest-B, etc. are verification resources, which are stored in the ETCD database. The ETCD database also stores various resources and verification files corresponding to each resource. During specific operation, first, the Kube-apiserver sends a resource verification request to the Http server, and the Http server obtains the verification file of the resource corresponding to the resource verification request from the ETCD database, and verifies the resource corresponding to the resource verification request through the verification file. The verification result can be "verification passed" or "verification failed". The Http server can send the verification result to the Kube-apiserver. When the verification result is "verification passed", Kube-apiserver directly uploads the corresponding resource to the ETCD database; when the verification result is "verification failed", Kube-apiserver can modify the resource or resource verification request. When the Controller detects that Webhookrequest-A, Webhookrequest-B... exist in the ETCD database, it can parse the verification resources such as Webhookrequest-A, Webhookrequest-B... to obtain the corresponding verification information. Then, the Controller can store the verification information in the verification file of the corresponding resource in the ETCD database. In this way, the modification of the verification file corresponding to the resource is realized. In addition, Httpserver and controller run relatively independently, and a one-to-many calling relationship between Http server and verification file can be realized. In this way, the number of resource calling services is reduced and the problem of high data duplication between multiple resource calling services is avoided.

[0077] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a resource processing device, and these device embodiments are Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0078] like Figure 6 As shown, the resource processing device 600 of some embodiments includes: a verification file acquisition unit 601, a verification unit 602, a resource storage unit 603 and a resource processing unit 604. Among them, the verification file acquisition unit 601 is configured to, in response to receiving a resource verification request sent by a terminal device, obtain a target verification file corresponding to the resource verification request from a preset database, the resource verification request is used to indicate verification of the resource to be processed, and the database stores resources and at least one verification file corresponding to the resource; the verification unit 602 is configured to verify the resource to be processed corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device; the resource storage unit 603 is configured to, in response to receiving the resource to be processed sent by the terminal device, store the resource to be processed in the database; the resource processing unit 604 is configured to, in response to detecting the request information corresponding to the resource to be processed in the database, process the resource to be processed based on the request information.

[0079] In an optional implementation of some embodiments, the verification file acquisition unit 601 may include: a resource type information query subunit (not shown in the figure), a verification file to be processed acquisition subunit (not shown in the figure) and a target verification file acquisition subunit (not shown in the figure). The resource type information query subunit is configured to query the resource type information of the resource to be processed corresponding to the resource verification request; the verification file to be processed acquisition subunit is configured to acquire at least one verification file to be processed of the resource type information; the target verification file acquisition subunit is configured to match the target verification file corresponding to the resource verification request from the at least one verification file to be processed.

[0080] In an optional implementation of some embodiments, the above-mentioned resource verification request includes description information, and the above-mentioned description information is used to describe the attribute information of the above-mentioned resource to be processed; and the above-mentioned verification unit 602 may include: a verification sub-unit (not shown in the figure), which is configured to verify the description information contained in the above-mentioned resource verification request through the above-mentioned target verification file.

[0081] In an optional implementation of some embodiments, the above-mentioned verification unit 602 may include: a default value setting subunit (not shown in the figure), which is configured to set the default value of the attribute value of the above-mentioned attribute information to be processed through the above-mentioned target verification file in response to the missing attribute information to be processed in the above-mentioned description information.

[0082] In an optional implementation of some embodiments, the resource verification request includes resource operation information, and the resource operation information is used to describe the operation environment of the resource to be processed; and the verification unit 602 includes: an environment variable generation subunit (not shown in the figure), which is configured to generate environment variables based on the resource operation information in response to the resource verification request, and the environment variables are used to describe the hardware information and software information corresponding to the resource to be processed when it is executed according to the resource operation information.

[0083] In an optional implementation of some embodiments, the resource processing unit 604 may include: a container construction subunit (not shown in the figure) and a resource processing subunit (not shown in the figure). The container construction subunit is configured to create a container corresponding to the resource to be processed based on the request information; the resource processing subunit is configured to process the resource to be processed through the container.

[0084] In an optional implementation of some embodiments, the container construction subunit may include: a target environment variable acquisition module (not shown in the figure) and a parameter setting module (not shown in the figure). The target environment variable acquisition module is configured to acquire the target environment variables corresponding to the resources to be processed; the parameter setting module is configured to set the parameters of the container based on the target environment variables.

[0085] In an optional implementation of some embodiments, the resource processing device 600 may further include: a verification information parsing unit (not shown in the figure) and a verification file construction unit (not shown in the figure). The verification information parsing unit is configured to, in response to the existence of a verification resource in the above-mentioned database, parse the above-mentioned verification resource to obtain verification information of the corresponding resource, and the above-mentioned verification resource is used to represent the verification of a specified type of resource; the verification file construction unit is configured to construct a verification file through the above-mentioned verification information, and establish a corresponding relationship between the above-mentioned verification file and the corresponding resource.

[0086] It is understood that the units described in the device 600 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 600 and the units included therein, and will not be described in detail here.

[0087] like Figure 7As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0088] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0089] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0090] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0092] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to receiving a resource verification request from a terminal device, obtain a target verification file corresponding to the resource verification request from a preset database, wherein the database stores resources and at least one verification file of the corresponding resource; verify the resource to be processed corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device; in response to receiving the resource to be processed from the terminal device, store the resource to be processed in the database; in response to detecting the request information corresponding to the resource to be processed in the database, process the resource to be processed based on the request information.

[0093] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0095] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a verification file acquisition unit, a verification unit, a resource storage unit and a resource processing unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the resource processing unit may also be described as a "unit for processing resources to be processed".

[0096] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0097] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A resource processing method, comprising: In response to receiving a resource verification request sent by a terminal device, a target verification file is selected from a plurality of verification files corresponding to the resource verification request obtained from a preset database, wherein the resource verification request is used to instruct verification of a resource to be processed, the database stores resources and at least one verification file corresponding to the resource, the database stores a plurality of resources, each resource has a plurality of corresponding verification files, each verification file is used to perform a specific operation on the resource, the specific operation includes judging various attributes of the resource to determine whether the resource to be processed meets the attribute requirements or the provisions of the attribute value, and the resource to be processed includes multiple resource types such as images and videos; Verifying the to-be-processed resources corresponding to the resource verification request through the target verification file, and feeding back the verification result to the terminal device; In response to receiving the resource to be processed sent by the terminal device, storing the resource to be processed in a database; In response to detecting request information corresponding to the resource to be processed in the database, the resource to be processed is processed based on the request information.

2. The method according to claim 1, wherein: The obtaining a target verification file corresponding to the resource verification request from a preset database includes: Querying resource type information of the to-be-processed resource corresponding to the resource verification request; Obtain at least one to-be-processed verification file of the resource type information; A target verification file corresponding to the resource verification request is matched from the at least one verification file to be processed.

3. The method according to claim 1, wherein: The resource verification request includes description information, and the description information is used to describe the attribute information of the resource to be processed; as well as The verifying the to-be-processed resources corresponding to the resource verification request by using the target verification file includes: The description information included in the resource verification request is verified through the target verification file.

4. The method according to claim 3, wherein: The verifying the to-be-processed resources corresponding to the resource verification request by using the target verification file includes: In response to the presence of missing attribute information to be processed in the description information, a default value is set for an attribute value of the attribute information to be processed through the target verification file.

5. The method according to claim 1, wherein: The resource verification request includes resource operation information, and the resource operation information is used to describe the operation environment of the resource to be processed; as well as The verifying the to-be-processed resources corresponding to the resource verification request by using the target verification file includes: In response to the resource verification request, the resource operation information exists, and environment variables are generated based on the resource operation information, wherein the environment variables are used to describe the hardware information and software information corresponding to the resource to be processed when it is executed according to the resource operation information.

6. The method according to claim 5, wherein: The processing of the to-be-processed resource based on the request information includes: Creating a container corresponding to the resource to be processed based on the request information; The resource to be processed is processed by the container.

7. The method according to claim 6, wherein: The creating a container corresponding to the resource to be processed based on the request information includes: Obtaining target environment variables corresponding to the resource to be processed; The parameters of the container are set based on the target environment variables.

8. The method according to claim 1, wherein: The method further comprises: In response to the existence of a verification resource in the database, parsing the verification resource to obtain verification information of a corresponding resource, wherein the verification resource is used to represent verification of a resource of a specified type; A verification file is constructed using the verification information, and a corresponding relationship between the verification file and corresponding resources is established.

9. A resource processing device, comprising: A verification file acquisition unit is configured to, in response to receiving a resource verification request sent by a terminal device, obtain a target verification file from a preset database among multiple verification files corresponding to the resource verification request, wherein the resource verification request is used to instruct to verify the resource to be processed, the database stores resources and at least one verification file corresponding to the resource, the database stores multiple resources, each resource has multiple corresponding verification files, each verification file is used to perform a specific operation on the resource, the specific operation includes judging various attributes of the resource to determine whether the resource to be processed meets the attribute requirements or the provisions of the attribute value, and the resource to be processed includes multiple resource types such as images and videos; A verification unit, configured to verify the to-be-processed resources corresponding to the resource verification request through the target verification file, and feed back the verification result to the terminal device; A resource storage unit, configured to store the resource to be processed in a database in response to receiving the resource to be processed sent by the terminal device; The resource processing unit is configured to, in response to detecting request information corresponding to the resource to be processed in the database, process the resource to be processed based on the request information.

10. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.