Digital resource processing method and device, electronic equipment and storage medium

文档序号:1599006 发布日期:2020-01-07 浏览:28次 中文

阅读说明:本技术 数字资源处理方法、装置、电子设备及存储介质 (Digital resource processing method and device, electronic equipment and storage medium ) 是由 宋怡松 黄颀洪 于 2019-09-12 设计创作,主要内容包括:本公开关于一种数字资源处理方法,方案中,在接收到检测终端发送的数字资源检测请求的情况下,在未处于加锁状态的各待检测数字资源中,确定为检测终端分配的目标数字资源,并且将目标数字资源的属性信息发送至检测终端,以使检测终端根据属性信息对目标数字资源进行检测,以及对目标数字资源进行加锁处理,以将目标数字资源的状态变更为加锁状态,由于为检测终端分配的目标数字资源为未处于加锁状态的待检测数字资源,且在检测终端对目标数字资源进行检测时,对目标数字资源进行加锁处理,从而确保了目标数字资源无法被分配至其他检测终端,从而避免了数字资源的重复检测,相比于现有技术,节约了检测资源。(The invention discloses a digital resource processing method, in the scheme, under the condition of receiving a digital resource detection request sent by a detection terminal, a target digital resource allocated to the detection terminal is determined in each digital resource to be detected which is not in a locking state, attribute information of the target digital resource is sent to the detection terminal, so that the detection terminal detects the target digital resource according to the attribute information, and the target digital resource is locked, so that the state of the target digital resource is changed into the locking state, because the target digital resource allocated to the detection terminal is the digital resource to be detected which is not in the locking state, and when the detection terminal detects the target digital resource, the target digital resource is locked, thereby ensuring that the target digital resource cannot be allocated to other detection terminals, and avoiding repeated detection of the digital resource, compared with the prior art, the detection resource is saved.)

1. A method for processing digital resources, comprising:

under the condition of receiving a digital resource detection request sent by a detection terminal, determining a target digital resource allocated to the detection terminal in each digital resource to be detected which is not in a locking state, wherein the locking state is used for marking that the digital resource to be detected is allocated to the corresponding detection terminal;

sending the attribute information of the target digital resource to the detection terminal so that the detection terminal detects the target digital resource according to the attribute information;

and locking the target digital resource to change the state of the target digital resource into a locked state.

2. The digital resource processing method according to claim 1, wherein the digital resource to be detected is a video resource to be detected, the video resource to be detected is divided into different content types according to video content, and determining the target digital resource allocated to the detection terminal among the digital resources to be detected that are not in the locked state comprises:

determining a content type corresponding to a detection terminal as a first content type based on a corresponding relation between the detection terminal and the content type acquired in advance;

screening out the video resources to be detected with the content type matched with the first content type from the video resources to be detected in the locked state;

and determining the target digital resources distributed to the detection terminal from the screened video resources to be detected.

3. The method according to claim 1 or 2, wherein determining the target digital resource allocated to the detection terminal comprises:

determining the detection sequence of each digital resource to be detected according to the time for receiving each digital resource to be detected which is not in a locked state by a system;

and taking the first N digital resources to be detected in the detection sequence in the digital resources to be detected as target digital resources allocated to the detection terminal, wherein N is a positive integer greater than or equal to 1.

4. The digital resource processing method according to claim 1 or 2, wherein the step of locking the target digital resource comprises:

and locking the target digital resource according to a preset locking duration.

5. The method for processing digital resources according to claim 4, wherein the step of locking the target digital resource according to a preset locking duration includes:

updating a locking state identifier of the target digital resource to a locked identifier within a preset locking duration, wherein the locking state identifier is used for identifying the locking state of the target digital resource; alternatively, the first and second electrodes may be,

adding a locking identifier lasting for the locking duration to the target digital resource, wherein the locking identifier is used for identifying that the target digital resource is in a locking state; alternatively, the first and second electrodes may be,

acquiring an identifier of the target digital resource as a target identifier; and recording the target identification in a preset digital resource locking table within the locking duration, wherein the digital resource locking table is used for recording the identification of the digital resource in a locked state.

6. The digital resource processing method of claim 4, wherein after said locking said target digital resource, said digital resource processing method further comprises:

after receiving a detection result of the target digital resource fed back by the detection terminal, deleting the target digital resource from each digital resource to be detected; and/or, according to the detection result, transferring the target digital resource to a rechecking stage corresponding to the detection result; alternatively, the first and second electrodes may be,

and when the detection result of the target digital resource fed back by the detection terminal is not received within the locking duration after locking, unlocking the target digital resource in the locking state.

7. A digital resource processing apparatus, comprising:

the system comprises a target digital resource determining module, a detecting terminal and a locking module, wherein the target digital resource determining module is configured to determine a target digital resource allocated to the detecting terminal in each to-be-detected digital resource which is not in a locked state under the condition that a digital resource detecting request sent by the detecting terminal is received, and the locked state is used for marking that the to-be-detected digital resource is allocated to the corresponding detecting terminal;

the target digital resource sending module is configured to send the attribute information of the target digital resource to the detection terminal, so that the detection terminal detects the target digital resource according to the attribute information;

a target digital resource locking module configured to perform a locking process on the target digital resource to change a state of the target digital resource to a locked state.

8. The device according to claim 7, wherein the digital resource to be detected is a video resource to be detected, and the video resource to be detected is divided into different content types according to video content;

the target digital resource determining module is specifically configured to execute determining a content type corresponding to a detection terminal based on a pre-acquired correspondence between the detection terminal and the content type, as a first content type, screening out to-be-detected video resources with content types matched with the first content type from among to-be-detected video resources in a locked state, and determining a target digital resource allocated to the detection terminal from among the screened to-be-detected video resources.

9. An electronic device, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the digital resource processing method of any of claims 1 to 6.

10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the digital resource processing method of any one of claims 1 to 6.

Technical Field

The present disclosure relates to the field of digital resource processing, and in particular, to a method and an apparatus for processing digital resources, an electronic device, and a storage medium.

Background

With the development of internet technology, in recent years, self-media platforms sharing digital resources such as characters, pictures and videos are developed rapidly, and the reading amount or the watching amount of a single digital resource can reach hundreds of millions of times on a mainstream self-media platform, so that detection of digital resources uploaded by users is especially important in order to avoid adverse effects of illegal digital resources on the society.

Disclosure of Invention

The present disclosure provides a digital resource processing method, an apparatus, an electronic device and a storage medium, so as to at least solve the problem of detection resource waste caused by repeated detection of digital resources in the related art. The technical scheme of the disclosure is as follows:

according to a first aspect of the embodiments of the present disclosure, there is provided a digital resource processing method, including:

under the condition of receiving a digital resource detection request sent by a detection terminal, determining a target digital resource allocated to the detection terminal in each digital resource to be detected which is not in a locking state, wherein the locking state is used for marking that the digital resource to be detected is allocated to the corresponding detection terminal;

sending the attribute information of the target digital resource to the detection terminal so that the detection terminal detects the target digital resource according to the attribute information;

and locking the target digital resource to change the state of the target digital resource into a locked state.

Further, the digital resources to be detected are video resources to be detected, the video resources to be detected are divided into different content types according to video content, wherein, in each digital resource to be detected which is not in a locked state, determining a target digital resource allocated to the detection terminal includes:

determining a content type corresponding to a detection terminal as a first content type based on a corresponding relation between the detection terminal and the content type acquired in advance;

screening out the video resources to be detected with the content type matched with the first content type from the video resources to be detected in the locked state;

and determining the target digital resources distributed to the detection terminal from the screened video resources to be detected.

Further, determining the target digital resource allocated to the detection terminal includes:

determining the detection sequence of each digital resource to be detected according to the time for receiving each digital resource to be detected which is not in a locked state by a system;

and taking the first N digital resources to be detected in the detection sequence in the digital resources to be detected as target digital resources allocated to the detection terminal, wherein N is a positive integer greater than or equal to 1.

Further, the step of locking the target digital resource includes:

and locking the target digital resource according to a preset locking duration.

Further, the step of locking the target digital resource according to a preset locking duration includes:

updating a locking state identifier of the target digital resource to a locked identifier within a preset locking duration, wherein the locking state identifier is used for identifying the locking state of the target digital resource; alternatively, the first and second electrodes may be,

adding a locking identifier lasting for the locking duration to the target digital resource, wherein the locking identifier is used for identifying that the target digital resource is in a locking state; alternatively, the first and second electrodes may be,

acquiring an identifier of the target digital resource as a target identifier; and recording the target identification in a preset digital resource locking table within the locking duration, wherein the digital resource locking table is used for recording the identification of the digital resource in a locked state.

Further, after the locking process is performed on the target digital resource, the digital resource processing method further includes:

after receiving a detection result of the target digital resource fed back by the detection terminal, deleting the target digital resource from each digital resource to be detected; and/or, according to the detection result, transferring the target digital resource to a rechecking stage corresponding to the detection result; alternatively, the first and second electrodes may be,

and when the detection result of the target digital resource fed back by the detection terminal is not received within the locking duration after locking, unlocking the target digital resource in the locking state.

According to a second aspect of the embodiments of the present disclosure, there is provided a digital resource processing apparatus, including:

the system comprises a target digital resource determining module, a detecting terminal and a locking module, wherein the target digital resource determining module is configured to determine a target digital resource allocated to the detecting terminal in each to-be-detected digital resource which is not in a locked state under the condition that a digital resource detecting request sent by the detecting terminal is received, and the locked state is used for marking that the to-be-detected digital resource is allocated to the corresponding detecting terminal;

the target digital resource sending module is configured to send the attribute information of the target digital resource to the detection terminal, so that the detection terminal detects the target digital resource according to the attribute information;

a target digital resource locking module configured to perform a locking process on the target digital resource to change a state of the target digital resource to a locked state.

Further, the digital resource to be detected is a video resource to be detected, and the video resource to be detected is divided into different content types according to video content;

the target digital resource determining module is specifically configured to execute determining a content type corresponding to a detection terminal based on a pre-acquired correspondence between the detection terminal and the content type, as a first content type, screening out to-be-detected video resources with content types matched with the first content type from among to-be-detected video resources in a locked state, and determining a target digital resource allocated to the detection terminal from among the screened to-be-detected video resources.

Further, the target digital resource determining module is specifically configured to execute determining a detection sequence of each to-be-detected digital resource according to a time when the system receives each to-be-detected digital resource that is not in a locked state, and use, as a target digital resource allocated to the detection terminal, the first N to-be-detected digital resources in the to-be-detected digital resources whose detection sequence is in the first N, where N is a positive integer greater than or equal to 1.

Further, the target digital resource locking module is specifically configured to perform locking processing on the target digital resource according to a preset locking duration.

Further, the target digital resource locking module is specifically configured to update a locking state identifier of the target digital resource to a locked identifier within a preset locking duration, where the locking state identifier is used to identify a locking state of the target digital resource; or adding a locking identifier lasting for the locking duration to the target digital resource, wherein the locking identifier is used for identifying that the target digital resource is in a locking state; or acquiring the identifier of the target digital resource as a target identifier; and recording the target identification in a preset digital resource locking table within the locking duration, wherein the digital resource locking table is used for recording the identification of the digital resource in a locked state.

Further, the digital resource processing apparatus further includes:

the detection result receiving module is configured to delete the target digital resource from each digital resource to be detected after the target digital resource locking module completes locking processing of the target digital resource and receives a detection result of the target digital resource fed back by the detection terminal; and/or, according to the detection result, transferring the target digital resource to a rechecking stage corresponding to the detection result;

and the unlocking module is configured to unlock the target digital resource in the locked state when the detection result of the target digital resource fed back by the detection terminal is not received within the locked time length after the target digital resource locking module completes the locking processing of the target digital resource.

According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the digital resource processing method of any one of the above.

According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above-mentioned digital resource processing methods.

According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the digital resource processing method according to any one of the above.

The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: under the condition of receiving a digital resource detection request sent by a detection terminal, determining a target digital resource allocated to the detection terminal in each digital resource to be detected which is not in a locked state, and transmitting the attribute information of the target digital resource to the detection terminal so that the detection terminal detects the target digital resource according to the attribute information, and locking the target digital resource to change the state of the target digital resource to a locked state, because the target digital resource allocated to the detection terminal is the digital resource to be detected which is not in the locked state, and when the detection terminal detects the target digital resource, locking the target digital resource, thereby ensuring that the target digital resource cannot be distributed to other detection terminals, therefore, repeated detection of digital resources is avoided, and compared with the prior art, the detection resources are saved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.

FIG. 1 is a flow diagram illustrating a method of digital resource processing in accordance with an exemplary embodiment.

FIG. 2 is a flow diagram illustrating another method of digital resource processing in accordance with an exemplary embodiment.

Fig. 3 is a block diagram illustrating a digital resource processing apparatus according to an example embodiment.

FIG. 4 is a block diagram illustrating an electronic device in accordance with an example embodiment.

Detailed Description

In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

In an embodiment of the present invention, the provided digital resource processing method may be applied to a detection server, where the detection server may be connected to a plurality of detection terminals through a network, and the detection server may include a storage database for storing digital resources to be detected, and a processing server for locking the digital resources to be detected.

When the detection server receives the digital resource uploaded by the user, the digital resource uploaded by the user is stored in the database, and meanwhile, the time for uploading the digital resource by the user is recorded.

Fig. 1 is a flow chart illustrating a method of processing a digital resource, as shown in fig. 1, according to an exemplary embodiment, including the following steps.

S101: and under the condition of receiving a digital resource detection request sent by the detection terminal, determining a target digital resource allocated to the detection terminal in each digital resource to be detected which is not in a locked state.

In this step, the locking state is used to mark that the digital resource to be detected has been allocated to the corresponding detection terminal, in one embodiment, unallocated digital resources may be treated as digital resources to be detected, and at this time, the unallocated digital resources are all digital resources which are not in a locked state, and further the target digital resource allocated to the detection terminal can be determined from the digital resources, in one embodiment, considering complexity and cost of implementation of the scheme, in order to reduce complexity and implementation cost, all digital resources that have not received the detection result may be used as the digital resources to be detected, and at this time, the digital resources to be detected comprise allocated digital resources and unallocated digital resources, the allocated digital resources can exist in the digital resources to be detected, however, the digital resource that has not received the detection result returned by the detection terminal may be a digital resource that has not been allocated (a digital resource that is not in a locked state).

In one embodiment, the digital assets may be text, pictures, or videos, etc., such as gourmet videos uploaded by the user.

In an embodiment, the detection terminal is a device terminal that detects the digital resources, where the detection terminal may detect the allocated data resources through an artificial intelligence detection system, and to ensure the accuracy of the detection result, the detection terminal may also detect the allocated digital resources through an artificial detection method.

In an embodiment, the digital resource to be detected allocated to the detection terminal may also be determined in each digital resource to be detected that is not in the locked state based on a preset allocation rule, where the preset allocation rule may be set according to an actual requirement or an application scenario, and may be randomly allocated, or may be allocated according to different attributes of the digital resource to be detected, for example, the preset allocation rule may be allocated according to the data size of the digital resource to be detected, the resource type of the digital resource to be detected, such as a text, a picture, or a video, or the preset allocation rule may be allocated according to a difference between an upload time of the digital resource to be detected and a current time, for example, the preset allocation rule allocates the digital resource to be detected in different difference ranges to different detection terminals.

In an embodiment, when a digital resource detection request sent by a detection terminal is received, a target digital resource can be randomly determined from all digital resources to be detected which are not in a locked state, and the target digital resource can be determined according to the time for receiving all digital resources to be detected which are not in the locked state.

In an embodiment, the digital resources to be detected may be stored in a database to be detected, where the digital resources to be detected are not in a locked state and include digital resources to be detected that are already in a locked state, where the digital resources to be detected that are not in a locked state may be unallocated digital resources to be detected or may be allocated digital resources that are not detected, and the digital resources that are already in a locked state are digital resources to be detected that are allocated to a detection terminal for processing and have a duration less than a locking duration.

In an embodiment, the number of the to-be-detected digital resources allocated to the detection terminal may be 1, or may be multiple, for example, 10 to-be-detected digital resources are taken as 1 group, and when a digital resource detection request sent by the detection terminal is received, it is determined that the 1 group of the to-be-detected digital resources is a target digital resource allocated to the detection terminal.

Illustratively, there are 4 detection terminals, detection terminal a, detection terminal B, detection terminal C, detection terminal D, wherein, the detection terminal A is operated by a detection person a, the detection terminal B is operated by a detection person B, the detection terminal C is operated by a detection person C, the detection terminal D is operated by a detection person D, when the detection person a needs to get a detection task, a digital resource detection request can be sent to the detection server through the detection terminal a to request to allocate the digital resource to be detected to the detection server, when receiving a digital resource detection request sent by the detection terminal A, the method detects that the digital resource is not locked and stored in the database, and determining the digital resource to be detected with the difference value between the uploading time and the current time being 1h-2h as the digital resource to be detected distributed by the detection terminal.

S102: and sending the attribute information of the target digital resource to a detection terminal so that the detection terminal can detect the target digital resource according to the attribute information.

In this step, the attribute information of the target digital resource may be an identifier of the target digital resource, where the identifier that is uniquely corresponding to the digital resource to be detected may be a storage address of the digital resource to be detected, or may be a hash code obtained by the target digital resource through hash operation.

For example, for the target digital resource a, the unique identifier may be a storage address: \ \192.168.1.xxx \ target resource a.

After receiving the attribute information of the target digital resource, the detection terminal may determine the digital resource to be detected according to the attribute information, for example, if the storage address \ \192.168.1.xxx \ target resource a of the target digital resource a is received, the target resource a may be determined by the storage address.

S103: and locking the target digital resource to change the state of the target digital resource into a locked state.

In this step, the process may be executed after step S102 is completed, or may be executed after step S101 is completed.

As will be appreciated by those skilled in the art, a lock is a very important concept in data processing, and by locking data, the data can be prevented from being modified by unauthorized operations, thereby ensuring the integrity and security of the data. In this step, the target digital resource is locked, so that the target digital resource is isolated, and the target digital resource cannot be continuously allocated to other configuration terminals, thereby ensuring that the target digital resource cannot be repeatedly called.

In an embodiment, the locking processing on the target digital resource may be to lock the target digital resource based on a SqlServer (database) locking mechanism, or may be to lock the target digital resource based on a cache memcached locking mechanism, so that the target digital resource is in a locked state within a locking duration.

In the above digital resource processing method provided by the embodiment of the present invention, in the case of receiving a digital resource detection request sent by a detection terminal, a target digital resource allocated to the detection terminal is determined among digital resources to be detected that are not in a locked state, and attribute information of the target digital resource is sent to the detection terminal, so that the detection terminal detects the target digital resource according to the attribute information, and locks the target digital resource to change the state of the target digital resource to the locked state, because the target digital resource allocated to the detection terminal is the digital resource to be detected that is not in the locked state, and when the detection terminal detects the target digital resource, the target digital resource is locked, thereby ensuring that the target digital resource cannot be allocated to other detection terminals, and avoiding repeated detection of the digital resource, compared with the prior art, the detection resource is saved.

In one embodiment, the digital resource to be detected is a video resource to be detected, wherein the video resource to be detected is divided into different content types according to video content, and the inventor further finds that, if the video resource to be detected is randomly allocated to each detection terminal, the content type of the video resource to be detected allocated to each detection terminal is also random, because the detection difficulty of the video resource is high, and the detection side points of the video resources of different content types are different, when the video resource is detected manually next time, the content type of the video resource which is detected by each detector with great strength is also different, and for the video resource, if the video resource to be detected is randomly allocated to each detection terminal, the problem of low detection efficiency exists.

Therefore, in another embodiment of the present invention, there is also provided a digital resource processing method, as shown in fig. 2, including the steps of:

s201: and determining the content type corresponding to the detection terminal as a first content type based on the corresponding relation between the detection terminal and the content type acquired in advance.

In this step, the video resource to be detected can be divided into different content types according to the video content, wherein the content types are divided according to the playing content of the video resource, such as types of animation, horror, science fiction, police gangster and the like.

The correspondence between the detection terminals and the content types may be obtained in advance, and the obtaining manner may be various, for example, a correspondence table stored in a preset location may be pre-learned, where the correspondence table may be updated when detection personnel of each detection terminal changes, content types respectively corresponding to the terminals connected to the detection server are recorded in the correspondence table, and illustratively, the detection terminals A, B and C exist, the correspondence table is pre-set with the detection terminal a corresponding to the animation type, the detection terminal B corresponding to the terrorism type, and the detection terminal C corresponding to the police-robber type, and when a digital resource detection request sent by the detection terminal a is received, the first content type may be determined to be the animation type.

S202: and screening out the video resources to be detected with the content type matched with the first content type from the video resources to be detected in the locked state.

In this step, each video resource to be detected is divided into different content types according to the video content.

Illustratively, there are a video resource to be detected 1, a video resource to be detected 2, a video resource to be detected 3, a video resource to be detected 4 and a video resource to be detected 5 which are in a locked state, wherein the video resources to be detected 1 and the video resource to be detected 5 are classified into different according to video content, the video resource to be detected 1 and the video resource to be detected 5 are classified into cartoons, the video resource to be detected 2 is classified into terrorism, the video resource to be detected 3 is classified into science fiction, the video resource to be detected 4 is classified into police and gangster, and when the first content type is cartoons, the video resource to be detected 1 and the video resource.

S203: and determining the detection sequence of each digital resource to be detected according to the time for receiving each digital resource to be detected which is not in the locked state by the system.

In this step, the system may be a detection system where the detection server is located, or may be a storage system for storing digital resources uploaded by the user. The system receiving time of the digital resource may be the time when the user uploads the digital resource, and the timestamp associated with the digital resource may be uploaded correspondingly when the user terminal uploads the digital resource, and the system receiving time of the digital resource may also be the time when the detection system where the detection server is located receives the digital resource.

In an embodiment, the above-mentioned manner of determining the detection order of each digital resource to be detected according to the time for receiving each digital resource to be detected which is not in the locked state may be various, for example, sorting is performed according to the size of the receiving time of each digital resource system which is not in the locked state, and then the detection order is sequentially determined according to the sorted result, that is, the detection order of each digital resource to be detected is determined according to the principle of receiving first detection, or time intervals may be divided according to a preset time length, and the detection orders of the system receiving time of the digital resources in the same time interval are the same.

Illustratively, a digital resource 1 to be detected and a digital resource 2 to be detected exist, the receiving time of the digital resource 1 to be detected is 2019, 2 and 6 days, and the receiving time of the digital resource 2 to be detected is 2019, 2 and 7 days, and since the digital resource 1 to be detected is earlier than the receiving time of the digital resource 2 to be detected, the order of sending to check the digital resource 1 to be detected first and then sending to check the digital resource 2 to be detected can be determined.

S204: and taking the first N digital resources to be detected in the detection sequence in each digital resource to be detected as target digital resources distributed for the detection terminal.

In this step, N is a positive integer greater than or equal to 1, and may be determined according to experience or requirements, for example, N may be 10, and the digital resource to be detected whose detection order is top 10 may be determined as the target digital resource.

Illustratively, N is 1, and there are 3 digital resources to be detected, which are, respectively, a digital resource q to be detected, a digital resource w to be detected, and a digital resource e to be detected, and the submission sequence is to submit the digital resource q to be detected first, submit the digital resource e to be detected first, and submit the digital resource w to be detected first. The target digital resource may be determined to be the digital resource q to be detected.

S205: and sending the attribute information of the target digital resource to a detection terminal so that the detection terminal can detect the target digital resource according to the attribute information.

The step may specifically adopt the method shown in step S102, which is not described herein again.

S206: and locking the target digital resource according to the preset locking duration.

In this step, in order to avoid a situation that the digital resource to be detected is not detected all the time due to missing detection, the target digital resource may be locked according to a preset locking duration, where the preset locking duration may be set according to experience, requirements, or actual application scenarios, for example, the locking duration may be set to be average processing time of each digital resource counted in advance, and for example, the preset locking duration is 2h, the target digital resource may be locked for 2 h.

In one embodiment, step S206 can be implemented in any one of the following manners, which includes:

the first mode is as follows: and updating the locking state identifier of the target digital resource to a locked identifier within a preset locking duration, wherein the locking state identifier is used for identifying the locking state of the target digital resource.

In this way, each digital resource corresponds to one locking status identifier, the locking status identifier corresponding to each digital resource may be a locked identifier and an unlocked identifier, when the digital resource is not allocated, the locking status identifier is an unlocked identifier, and when the digital resource is allocated, the locking status identifier is a locked identifier.

When the locking state identifier of the digital resource is updated to the locked identifier, a timer can be correspondingly generated, and if the timer is not cancelled within the preset locking duration, the locking state identifier of the corresponding digital resource is updated to the unlocked identifier after the preset locking duration is operated regularly.

The second mode is as follows: and adding a locking identifier with continuous locking duration for the target digital resource, wherein the locking identifier is used for identifying that the target digital resource is in a locking state.

In this way, a locking identifier may be added to the target digital resource, and the existence duration of the locking identifier is not longer than the preset locking duration.

The third mode is as follows: acquiring an identifier of a target digital resource as a target identifier; and recording the target identification in a preset digital resource locking table within the locking duration, wherein the digital resource locking table is used for recording the identification of the digital resource in a locked state.

In this way, when the target digital resource is determined each time, the digital resource locking table needs to be queried, if the identifier of the corresponding digital resource is queried in the digital resource locking table, the target digital resource is determined again, and if the identifier of the corresponding digital resource is not queried, the digital resource to be determined is determined as the target digital resource.

And when a detection result returned by the detection terminal is received, deleting the identifier of the target sleeping resource corresponding to the detection result from the digital resource locking table.

If each written identifier is not deleted in the preset locking duration, the digital resource locking table actively deletes the identifier after the preset locking duration is reached.

S207: and judging whether the detection result of the target digital resource fed back by the detection terminal is received within the locked locking duration.

In this step, if the detection result of the target digital resource fed back by the detection terminal is received within the locked locking duration, step S208 is executed, and if the detection result of the target digital resource fed back by the detection terminal is not received within the locked locking duration, step S209 is executed.

S208: deleting the target digital resources from each digital resource to be detected, and transferring the target digital resources to a rechecking stage of corresponding detection results according to the detection results

In this step, the detection result of the target digital resource fed back by the detection terminal is received, which indicates that the target digital resource has been detected, so that the target digital resource can be deleted from each digital resource to be detected.

In one embodiment, the detection result of the target digital resource may be fed back to the uploading user of the target digital resource, including pass/fail, or violation/non-violation, and the like.

In one embodiment, if there is a review phase, the target digital resource may be transferred to the review phase.

S209: and unlocking the target digital resource in the locked state.

In this step, in order to avoid missing detection of the target digital resource to be detected due to forgetting of the detection personnel, when the detection result of the target digital resource fed back by the detection terminal is not received within the locked locking duration, the target digital resource in the locked state may be unlocked, so that the target digital resource is used as the digital resource to be detected again, which is not in the locked state, and the target digital resource may be continuously allocated to the next detection terminal.

In the digital resource processing method provided by the embodiment of the invention, the corresponding target digital resources are allocated to the detection terminals according to the corresponding relationship between the detection terminals and the content types, so that each inspector can detect the video resources which are good at the content types, the detection efficiency of the target digital resources is improved, and the first N digital resources to be detected in the detection sequence are used as the target digital resources allocated to the detection terminals, so that the condition that the digital resources which are uploaded earlier are delayed and not detected can be avoided, the detection efficiency of the digital resources is improved, and further, the target digital resources are locked according to the preset locking duration, so that the condition that the digital resources to be detected are not detected all the time due to missing detection can be avoided.

Fig. 3 is a block diagram illustrating a digital resource processing apparatus according to an example embodiment. Referring to fig. 3, the apparatus includes a target digital asset determination module 301, a target digital asset transmission module 302, and a target digital asset locking module 303.

A target digital resource determining module 301, configured to determine, in a case that a digital resource detection request sent by a detection terminal is received, a target digital resource allocated to the detection terminal from among digital resources to be detected that are not in a locked state, where the locked state is used to mark that the digital resources to be detected have been allocated to the corresponding detection terminal;

a target digital resource sending module 302 configured to execute sending the attribute information of the target digital resource to the detection terminal, so that the detection terminal detects the target digital resource according to the attribute information;

a target digital resource locking module 303 configured to perform a locking process on the target digital resource to change the state of the target digital resource to a locked state.

Further, the digital resource to be detected is a video resource to be detected, and the video resource to be detected is divided into different content types according to video content;

the target digital resource determining module 301 is specifically configured to execute determining, based on a pre-obtained correspondence between the detection terminal and the content type, a content type corresponding to the detection terminal as a first content type, screening, from among the video resources to be detected in a locked state, video resources to be detected whose content types match the first content type, and determining, from among the screened video resources to be detected, a target digital resource allocated to the detection terminal.

Further, the target digital resource determining module 301 is specifically configured to execute determining a detection sequence of each to-be-detected digital resource according to a time when the system receives each to-be-detected digital resource that is not in the locked state, and use, as a target digital resource allocated to the detection terminal, the first N to-be-detected digital resources in the to-be-detected digital resources, where N is a positive integer greater than or equal to 1.

Further, the target digital resource locking module 303 is specifically configured to perform locking processing on the target digital resource according to a preset locking duration.

Further, the target digital resource locking module 303 is specifically configured to update the locking state identifier of the target digital resource to a locked identifier within a preset locking duration, where the locking state identifier is used to identify the locking state of the target digital resource; or adding a locking identifier with continuous locking duration for the target digital resource, wherein the locking identifier is used for identifying that the target digital resource is in a locking state; or acquiring the identifier of the target digital resource as the target identifier; and recording the target identification in a preset digital resource locking table within the locking duration, wherein the digital resource locking table is used for recording the identification of the digital resource in a locked state.

Further, the digital resource processing device further comprises:

the detection result receiving module 304 is configured to delete the target digital resource from each to-be-detected digital resource after the target digital resource locking module performs the locking processing on the target digital resource and receives the detection result of the target digital resource fed back by the detection terminal; and/or, according to the detection result, transferring the target digital resource to a rechecking stage corresponding to the detection result;

and the unlocking module 305 is configured to execute unlocking of the target digital resource in the locked state when the detection result of the target digital resource fed back by the detection terminal is not received within the locked time length after the target digital resource locking module completes the locking process of the target digital resource.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Fig. 4 is a block diagram illustrating an electronic device 400 for digital resource processing in accordance with an exemplary embodiment. For example, the electronic device 400 may be provided as a server. Referring to fig. 4, apparatus 400 includes a processing component 422, which further includes one or more processors, and memory resources, represented by memory 432, for storing instructions, such as applications, that are executable by processing component 422. The application programs stored in memory 432 may include one or more modules that each correspond to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform one of the digital resource processing methods described above.

The apparatus 400 may also include a power component 426 configured to perform power management of the apparatus 400, a wired or wireless network interface 450 configured to connect the apparatus 400 to a network, and an input output (I/O) interface 458. The apparatus 400 may operate based on an operating system stored in the memory 432, such as a Windows Server, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, or similar operating system.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于提供视频的方法和设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!