Data processing method and device, electronic equipment and computer readable storage medium

By generating a token containing restrictions and querying the business table after a preset time, combining AI and manual auditing, the problem of users maliciously uploading files is solved, and comprehensive supervision of the file upload process is achieved, storage and traffic costs are reduced, and the stability and security of the system are improved.

CN120433952APending Publication Date: 2025-08-05NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510251561.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

The existing technology cannot effectively restrict users from maliciously uploading large amounts of files, resulting in file storage space being encroached on, increasing storage and traffic costs.

Method used

By generating a token containing restrictions, monitoring the file upload process, and querying whether file information exists in the business table after the preset time. If it does not exist, sending restricted access instructions to prevent file access, combining AI audit model and manual audit to ensure file legality.

Benefits of technology

Effectively prevent users from maliciously uploading large amounts of files, controlling storage and traffic costs, improving the reliability and stability of file upload management, and preventing the spread of bad content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120433952A_ABST
    Figure CN120433952A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment and a computer readable storage medium. The data processing method comprises the steps that a token is generated in response to a file uploading request sent by target user equipment, and the token is sent to the target user equipment; receiving first file information sent by the file service system, wherein the first file information is generated for the first file after the file service system receives the first file uploaded by the user equipment and determines that the first file meets a limiting condition through the token; after a first preset duration of the first file information is received, if it is queried that the first file information does not exist in the business table, an access limiting instruction for the first file is sent to a file service system, so that the file service system responds to the access limiting instruction to control the first file not to be accessed, the service table comprises file information sent by the user equipment, and the target user equipment is one of the user equipment. The method can prevent a user from maliciously uploading a large number of files, and control file storage and flow cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a data processing method, device, electronic device, and computer-readable storage medium. Background Art

[0002] In business systems, the storage of user files usually relies on external file service systems.

[0003] Currently, when a user needs to upload a file, he or she can send an upload request to the business system. After receiving the request, the business system generates a token based on the request and the preset protocol and sends it to the user. The user sends the file to be uploaded and the received token to the file service module. When the file service module determines that the file to be uploaded meets the token restrictions, it stores the file to be uploaded and generates a corresponding file link to send to the user. The user sends the file link to the business system. After determining that the file link is reliable, the business system stores the file link in the corresponding business table.

[0004] However, the current file upload method cannot prevent users from maliciously uploading a large number of files, resulting in a large number of files maliciously uploaded by users occupying the file storage space and increasing the cost of file storage. Summary of the Invention

[0005] This application provides a data processing method, device, electronic device, and computer-readable storage medium that can prevent users from maliciously uploading large amounts of files and control file storage and traffic costs. The specific solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:

[0007] Receive a file upload request sent by a target user device;

[0008] In response to a file upload request, generating a token and sending the token to a target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions;

[0009] Receiving first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition;

[0010] After receiving the first file information for a first preset time period, querying a service table for the presence of the first file information, wherein the service table includes file information sent by a user device, and the target user device is one of the user devices;

[0011] If the first file information does not exist in the service table, a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0012] In a second aspect, an embodiment of the present application further provides a data processing method, the method comprising:

[0013] Receiving a first file and a token sent by a target user device, and determining whether the first file meets a restriction condition based on the token, wherein the token includes the restriction condition for the first file;

[0014] If the first file meets the restriction condition, generating first file information corresponding to the first file;

[0015] Sending the first file information to the target user device and the service system respectively;

[0016] receiving an access restriction instruction for the first file sent by the business system, wherein the access restriction instruction is sent by the business system to the file service system when the business system finds that the first file information does not exist in the business table after receiving the first file information for a first preset time period, the business table includes file information sent by the user device, and the target user device is one of the user devices;

[0017] In response to the access restriction instruction, the first file is controlled to be inaccessible.

[0018] In a third aspect, an embodiment of the present application provides a data processing device, the device comprising:

[0019] A receiving unit, configured to receive a file upload request sent by a target user device;

[0020] A generating unit, configured to generate a token in response to a file upload request and send the token to a target user device, wherein the token includes restriction conditions for the file to be uploaded and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions;

[0021] The receiving unit is further configured to receive first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition;

[0022] a query unit, configured to query whether the first file information exists in a service table after a first preset time period of receiving the first file information, wherein the service table includes file information sent by the user equipment, and the target user equipment is one of the user equipments;

[0023] The sending unit is configured to send an access restriction instruction for the first file to the file service system if the first file information does not exist in the service table, so that the file service system controls the first file to be inaccessible in response to the access restriction instruction.

[0024] In a fourth aspect, an embodiment of the present application provides a data processing device, the device comprising:

[0025] a receiving unit, configured to receive a first file and a token sent by a target user device, and determine whether the first file meets a restriction condition based on the token, wherein the token includes the restriction condition for the first file;

[0026] a generating unit, configured to generate first file information corresponding to the first file if the first file meets the restriction condition;

[0027] A sending unit, configured to send the first file information to a target user device and a service system respectively;

[0028] The receiving unit is further configured to receive an access restriction instruction for the first file sent by the business system, wherein the access restriction instruction is sent to the file service system when the business system finds that the first file information does not exist in the business table after receiving the first file information for a first preset time period, the business table includes file information sent by the user device, and the target user device is one of the user devices;

[0029] The control unit is configured to control the first file to be inaccessible in response to the access restriction instruction.

[0030] In a fifth aspect, the present application further provides an electronic device, comprising:

[0031] processor; and

[0032] The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method described in the first and second aspects is executed.

[0033] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium storing a data processing program, which is run by a processor to execute the method described in the first and second aspects.

[0034] The data processing method provided by an exemplary embodiment of the present application includes the following steps: receiving a file upload request sent by a target user device; generating a token in response to the file upload request, and sending the token to the target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions; receiving first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction conditions; after a first preset time period of receiving the first file information, querying whether the first file information exists in a business table, wherein the business table includes file information sent by the user device, and the target user device is one of the user devices; if the first file information does not exist in the business table, sending a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction. It can be seen that in this application, the interaction between the file service system and the business system is added. When the user does not send the first file information to the business system, the business system can monitor the files uploaded by the user and the file information corresponding to the files through the first file information sent by the file service system, thereby realizing comprehensive supervision of the file upload process from the business level, preventing users from maliciously uploading large amounts of files, and controlling file storage and traffic costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A system diagram for implementing a data processing method provided in an embodiment of the present application;

[0036] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;

[0037] Figure 3 Another flowchart of the data processing method provided in an embodiment of the present application;

[0038] Figure 4 Another flow chart of the data processing method provided in the embodiment of the present application

[0039] Figure 5 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0040] Figure 6 Another structural diagram of the data processing device provided in an embodiment of the present application;

[0041] Figure 7 This is a structural block diagram of an example of an electronic device for data processing provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0043] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than that illustrated or described herein. In addition, the terms "including", "having" and their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "Including A, B and / or C" means including any one, any two, or any three of A, B, and C.

[0045] It should be understood that in the embodiments of the present application, "B corresponding to A," "B corresponding to A," "A corresponds to B," or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based solely on A; B can also be determined based on A and / or other information.

[0046] In business systems, the storage of user files usually relies on external file service systems.

[0047] Currently, when a user needs to upload a file, he or she can send an upload request to the business system. After receiving the request, the business system generates a token based on the request and the preset protocol and sends it to the user. The user sends the file to be uploaded and the received token to the file service module. When the file service module determines that the file to be uploaded meets the token restrictions, it stores the file to be uploaded and generates a corresponding file link to send to the user. The user sends the file link to the business system. After determining that the file link is reliable, the business system stores the file link in the corresponding business table.

[0048] However, the current file upload method cannot prevent users from maliciously uploading a large number of files, resulting in a large number of files maliciously uploaded by users occupying the file storage space and increasing the cost of file storage.

[0049] Based on background technical reasons, in order to prevent users from maliciously uploading large amounts of files and to control file storage and traffic costs, the first embodiment of the present application provides a data processing method, which is applied to electronic devices. The electronic devices can be desktop computers, laptops, mobile phones, tablet computers, electronic watches, etc., or other electronic devices capable of data processing, which are not specifically limited in the embodiments of the present application.

[0050] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0051] Figure 1 This is a system diagram for implementing a data processing method provided in an embodiment of the present application. Figure 1 As shown, the system may include: user equipment, a file service system, and a business system. The user equipment is connected to the file service system and the business system respectively, and the file service system is connected to the business system.

[0052] The user device is used to send a file upload request to the business system, receive a token sent by the business system, send the file and token to the file service system, receive file information sent by the file service system, which includes a file link, and send the file information to the business system.

[0053] The file service system is used to receive files and tokens sent by user devices, and determine whether the file meets the restriction conditions through the token, and the token includes the restriction conditions for the file; if the file meets the restriction conditions, generate file information corresponding to the file; send the file information to the user device and the business system respectively; receive the restricted access instruction for the file sent by the business system, wherein the restricted access instruction is sent to the file service system by the business system after a first preset time after receiving the first file information and finding that the first file information does not exist in the business table, wherein the business table includes the file information sent by the user device, and the target user device is one of the user devices; in response to the restricted access instruction, control the first file to be inaccessible.

[0054] The business system is used to receive a file upload request sent by a target user device; generate a token in response to the file upload request, and send the token to the target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions; receive first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction conditions; after receiving the first preset time length of the first file information, query whether the first file information exists in the business table, wherein the business table includes file information sent by the user device, and the target user device is one of the user devices; if the first file information does not exist in the business table, send a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0055] Figure 2 Schematic diagram of the data processing method provided in the embodiment of the present application. Figure 2 As shown, the method may include S201-S207.

[0056] S201: The target user device sends a file upload request to the business system.

[0057] S202: The business system receives a file upload request sent by a target user device, generates a token, and sends the token to the target user device.

[0058] For example, upon receiving a file upload request from a target user device, the service system can generate a token according to a preset protocol and then send the generated token to the target user device. The token includes restrictions on the file to be uploaded and is used to determine whether the first file uploaded by the target user device to the file service system meets the restrictions.

[0059] S203: The target user device sends the first file and the token corresponding to the first file to the file service system.

[0060] S204: After receiving the first file sent by the target user device and the token corresponding to the first file, the file service system determines whether the first file sent by the target user device meets the restriction condition based on the token corresponding to the first file.

[0061] Exemplarily, after the target user device receives the token sent by the business system, it can upload the first file with the token, that is, send the first file and the token corresponding to the first file to the file service system. After the file service system receives the first file sent by the target user device and the token corresponding to the first file, it can check whether the first file sent by the target user device meets the restrictions carried by the token. Restrictions include file size and file type, etc. For example, the first file is a picture with a size of 2.5 kilobytes (KB). The restriction in the token is that the file is a picture file and the file is less than 3KB, then the first file meets the restriction. If the restriction in the token is that the file is a picture file and the file is less than 2KB, then the first file does not meet the restriction.

[0062] S205: If the file service system determines that the first file sent by the target user device meets the restriction condition, it generates first file information corresponding to the first file and sends the first file information to the target user device and the service system.

[0063] Exemplarily, when the file service system determines that the first file sent by the target user device meets the restriction conditions, it can generate first file information corresponding to the first file. The first file information may include file information such as the file link of the first file, the upload time of the first file, the size of the first file, and the type of the first file, and send the first file information to the target user device and the business system.

[0064] S206: After receiving the first file information for the first preset time period, the business system queries the business table to see whether the first file information exists.

[0065] Exemplarily, the service table includes file information sent by user devices. That is, all file information sent by user devices to the service system can be stored in the service table, with the target user device being one of the user devices. After receiving the first file information sent by the file service system, the service system can store the first file information in the service system's storage space. The service table can include file information such as the file upload time, file size, file type, file link, file status, and the time the file status was recorded. The first file information can also include file information such as the file upload time, file size, file type, file link, file status, and the time the file status was recorded. Based on the first file information, the service table can be queried to determine whether the service table contains the first file information. Specifically, the service table includes a first preset field, and the first file information includes the first preset field. For multiple different first preset fields with the same field name, a query can be performed to determine whether the field values of the first preset fields are the same. The first preset fields can include a file upload time field, a file size field, a file type field, and a file link. First, the service table is queried to determine whether the file link for the first file exists. If the file link for the first file does not exist in the service table, it is determined that the first file information does not exist in the service table, and no further query is performed on the other first preset fields except the file link. If there is a file link to the first file in the business table, compare whether the upload time of the first file in the business table is the same as the upload time of the first file in the first file information, compare whether the file size of the first file in the business table is the same as the file size of the first file in the first file information, and compare whether the file type of the first file in the business table is the same as the file type of the first file in the first file information. If all are the same, it is determined that the first file information exists in the business table. If the field value of any of the above fields is different, it is determined that the first file information does not exist in the business table.

[0066] For example, the first preset duration is m minutes, the file information of file Y includes a file link of file Y, the upload time of file Y is time t, the type of file Y is a picture, and the size of file Y is 4KB. m minutes after receiving the file information of file Y, the business system queries whether the file information of file Y exists in the business table. First, it can query whether there is a file link of file Y in the business table. If there is no file link of file Y in the business table, it is directly determined that the file information of file Y does not exist in the business table. If there is a file link of file Y in the business table, it is necessary to further query whether the upload time of file Y in the business table is time t, whether the type of file Y in the business table is a picture, and whether the size of file Y in the business table is 4KB. If any of the upload time, type, and size of file Y in the business table are different from those in the file information of file Y, it is determined that the file information of file Y does not exist in the business table.

[0067] S207: If the business system finds that the first file information does not exist in the business table, it sends an access restriction instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the access restriction instruction.

[0068] For example, the business system can monitor each uploaded file from a business perspective using first file information. After receiving the first file information from the file service system, the target user device sends the first file information to the business system. The business system checks whether the domain name of the first file information belongs to a trusted file service system. If the domain name of the first file information belongs to a trusted file service system, the first file information can be saved in a business table, completing the upload of the first file. Optionally, after receiving the first file information from the file service system, the target user device sends the first file information to the business system. After receiving the first file information from the target user device, the business system can compare the first file information received from the target user device with the first file information received from the file service system. If the first file information received from the target user device and the first file information received from the file service system are inconsistent, it is determined that the target user device may have maliciously uploaded the file, and an access restriction instruction for the first file can be sent to the file service system, so that the file service system, in response to the access restriction instruction, controls access to the first file. If the first file information received from the target user device and the first file information received from the file service system are consistent, the first file information can be saved in the business table, completing the upload of the first file. When the business system finds that the first file information does not exist in the business table described below within the first preset time period, the business system determines that the target user device has received the first file information but has not sent the first file information to the business system. The first preset time period can be understood as a reasonable time period reserved by the business system for the target user device to send the first file information to the business system. If the target user device has received the first file information but has not sent the first file information to the business system after the first preset time period, the target user device is considered to have a risk of maliciously uploading a large number of files. The business system will send an access restriction instruction for the first file to the file service system, so that the file service system controls the first file inaccessible in response to the access restriction instruction.

[0069] For example, user A and the business system both receive file information of file X sent by the file service system at time T0. The business system searches the business table at time T1 and finds that file information X does not exist. Time T1 is the time n minutes after time T0. The business system sends a file X access restriction instruction to the file service system at time T1. The file service system can control access to file X based on the file X access restriction instruction. For example, it can restrict access to the server by specific IP addresses, ports, or protocols, thereby achieving control over file access. File access control can be achieved by modifying the file configuration file (such as httpd.conf or .htaccess file).

[0070] Optionally, the above S207, if the business system queries that the first file information does not exist in the business table, sends a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction, may also include: if the first file information does not exist in the business table, recording the status of the first file in the first file information as failed review, and sending a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0071] Exemplarily, the business table also includes a second preset field, and the first file information includes the second preset field. The second preset field may include the status of the file and the time of recording the file status. The status of the first file may include a pending status, an audit passed status, a deleted status, and an audit failed status. When the business system receives the first file information, the initial status of the first file in the first file information is a pending status. When it is found that the first file information does not exist in the business table, the status of the file in the first file information can be updated to an audit failed status. Specifically, if the first file information does not exist in the business table, the field value of the second preset field in the first file information is recorded as an identifier indicating that the first file has failed the audit, that is, the field value of the file status field is recorded as a field value indicating that the first file has failed the audit, and the field value of the file status time field is recorded as a field value indicating that the first file has failed the audit.

[0072] For example, different preset characters can be used to represent different states of the first file, character 1 represents the pending state, character 2 represents the approved state, character 3 represents the deleted state, and character 4 represents the unapproved state. When the business system receives the first file information, the initial state of the first file in the first file information is the pending state, that is, the field value of the file status field in the first file information is character 1. When it is found that the first file information does not exist in the business table, the file status field in the first file information can be changed from character 1 to character 4.

[0073] Optionally, if the business system finds that the first file information exists in the business table, the status of the first file in the business table is recorded as an approved status.

[0074] Based on the above embodiment, for example, when it is found that the business table contains the first file information, the file status field in the first file information may be changed from character 1 to character 2.

[0075] The embodiment of the present application increases the interaction between the business system and the file service system. The file service system generates file information and sends the file information to the user device while also sending the file information to the business system. The file upload process can be fully supervised from the business level, thereby preventing users from maliciously uploading large amounts of files and controlling file storage and traffic costs.

[0076] In an optional embodiment, the above method may also include: after receiving the second preset time length of the first file information, if the first file information still does not exist in the business table, sending a deletion instruction for the first file to the file service module, so that the file service system deletes the first file in response to the deletion instruction, wherein the second preset time length is greater than the first preset time length.

[0077] For example, after receiving the first file information for the second preset time period, the business system may query the business table to see whether the first file information exists. If the first file information still does not exist in the business table at this time, it is considered that the target user device will no longer send the first file information to the business system, and the risk of the target user device maliciously uploading a large number of files increases, so the first file may be determined to be an invalid file. The business system may update the file status in the first file information to a deleted state, and send a delete instruction for the first file to the file service module, so that the file service system deletes the first file in response to the delete instruction. After receiving the first file information for the second preset time period, if the first file information exists in the business table, a release access restriction instruction for the first file is sent to the file service module, so that the file service system controls the first file to resume normal access in response to the release access restriction instruction.

[0078] Based on the above embodiment, for example, after the business system sends a command to restrict access to file X to the file service system at time T1, it can again query the business table at time T2 to see whether the first file information exists. Time T2 is the time after time T1 plus m hours. If the first file information still does not exist in the business table at time T2, the business system can send a delete command to the file service system, so that the file service system deletes file X in response to the delete command. If the first file information exists in the business table at time T2, the business system can send a command to release access restrictions to the file service system, so that the file service system controls normal access to the first file in response to the command.

[0079] Figure 3 Another flow chart of the data processing method provided in the embodiment of the present application. Figure 3 As shown, the business system can traverse the first file information whose file status is "review failed" and determine whether the time since the first file information was received exceeds a second preset time. If the time since the first file information was received exceeds the second preset time and the first file information still does not exist when the business table is queried, the file status of the first file information can be updated to a deleted state and a delete instruction can be sent to the file service system so that the file service system deletes the first file in response to the delete instruction. If the time since the first file information was received exceeds the second preset time and the first file information exists when the business table is queried, the file status of the first file in the business table can be updated to a reviewed state.

[0080] This embodiment sends a deletion instruction for the first file to the file service module if the first file information still does not exist in the business table after the second preset time period has passed since the first file information was received, so that the file service system deletes the first file in response to the deletion instruction. This can delete invalid files, reduce the storage space occupied by invalid files, and lower file storage costs. Furthermore, if it is determined that the first file information still does not exist in the business table after the second preset time period, the first file is deleted, rather than immediately deleting the first file if the first file information does not exist in the business table after the first preset time period. This avoids the business system accidentally deleting the first file if the user delays sending the first file information to the business system due to forgetfulness or delay, thereby reducing the risk of accidental deletion and improving the reliability of the business system's file upload management.

[0081] In an optional embodiment, the above method may further include: querying whether the first file information exists in the service table every third preset time period after the first file information is received.

[0082] For example, after receiving the first file information, every third preset time period, the business table may be queried to determine whether the first file information exists, thereby achieving real-time monitoring of file uploads and further improving the stability of the business system in managing file uploads.

[0083] In an optional embodiment, the restriction condition includes a business type, the first file information includes a business type corresponding to the first file, and after receiving the first preset time length of the first file information, querying whether the first file information exists in the business table, including: determining the sub-business table corresponding to the business type of the first file from multiple sub-business tables according to the business type; after receiving the first preset time length of the first file information, querying whether the first file information exists in the sub-business table.

[0084] Exemplarily, business types may include player show pictures, user avatars, character retrieval certification documents, and product pictures, etc. The business table includes sub-business tables corresponding to different business types. Each business type may correspond to a sub-business table, and the sub-business tables may include player show picture tables, user avatar tables, character retrieval certification document tables, and product picture tables, etc. After receiving the first preset time of the first file information, the business system can determine the sub-business table corresponding to the first file from multiple sub-business tables based on the business type, and then query whether the first file information exists in the sub-business table corresponding to the first file. The restriction condition including the business type can also ensure that the files uploaded in each business scenario are in line with expectations, effectively preventing users from maliciously transmitting errors. For example, different scenarios have different restrictions on uploading files. For example, the business scenario of character retrieval proof documents allows uploading videos, while the business scenario of user avatars allows uploading only pictures. In the existing technology, a malicious user obtains an upload token with looser restrictions from the character retrieval proof documents, uploads a video file, and then submits the link of the video file to the user avatar interface. The system will also determine that the upload is successful. The restriction conditions include business type to avoid the above situation as much as possible.

[0085] For example, taking the business types including player show pictures and user avatars as an example, Figure 4 This is another flow chart of the data processing method provided in the embodiment of the present application. Figure 4 As shown, the business type of the first file information can be determined. When the business type of the first file information is a player show picture, it is determined whether the first file information exists in the sub-business table corresponding to the player show picture. If it exists, the status of the first file in the sub-business table corresponding to the player show picture is determined to be an approved state. If it does not exist, the status of the first file in the first file information is determined to be an unapproved state, and a restricted access instruction is sent to the file service system so that the file service system controls the first file to be inaccessible in response to the restricted access instruction. Similarly, when the business type of the first file information is a user avatar, refer to the above-mentioned processing method when the business type of the first file information is a player show picture, and no further details will be given here.

[0086] In an optional embodiment, the above method may also include: every time the fourth preset time period passes, determining the first number of first file information received within the fourth preset time period before the current moment; obtaining the second number of first file information received within multiple fourth preset time periods before the current moment, and determining the average number of first file information received within multiple fourth preset time periods; if the first number is greater than the average number or the difference between the first number and the average number is greater than a preset threshold, sending a warning signal.

[0087] For example, it can be determined that the number of first file information received every 10 minutes within an hour is number 1, number 2, number 3, number 4, number 5, and number 6 respectively. The average of number 1, number 2, number 3, number 4, number 5, and number 6 is then calculated to be number 7. The numbers 1, number 2, number 3, number 4, number 5, and number 6 are compared with number 7. When any of the values of number 1, number 2, number 3, number 4, number 5, and number 6 is greater than number 7, it indicates that the number of files sent by the user device during that time period is abnormal, and there is a risk of maliciously uploading a large number of files. An early warning signal is sent to prompt relevant operators to make further judgments. The difference between number 1, number 2, number 3, number 4, number 5, and number 6 and number 7 can also be calculated. When the difference is greater than a preset threshold, it indicates that the number of files sent by the user device during that time period is abnormal, and there is a risk of maliciously uploading a large number of files. An early warning signal is sent to prompt relevant operators to make further judgments.

[0088] In an optional embodiment, the above method may also include: if the business system queries the business table and finds that there is first file information, sending the first file information to the AI audit model, the AI audit model is used to obtain the first file based on the first file information, and perform content audit on the first file to obtain the audit result of the first file; when the audit result of the first file indicates that the first file audit fails, sending a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0089] For example, when a user device sends first file information to a business system, the business system saves the first file information in a business table. The first file information saved in the business table is considered to have been legally uploaded by the user device. However, to prevent the user device from uploading prohibited content such as prohibited images, the content of the first file can be reviewed by an AI review model. The AI review model sends the review result to the business system. If the business system determines that the received review result is a failure, it sends an access restriction instruction to the file service module, so that the file service system controls access to the first file in response to the access restriction instruction.

[0090] Optionally, files that fail the AI audit model can also be manually reviewed to ensure their legitimacy and security. This design not only ensures that files sent by user devices meet business requirements, but also effectively prevents the spread of inappropriate content, improving system stability and reliability.

[0091] The above is a specific implementation of the data processing method provided in the embodiment of the present application. In specific implementation, data processing can also be performed in other feasible ways, and the embodiment of the present application is not limited thereto.

[0092] Corresponding to the data processing method provided in the first embodiment of the present application, the third embodiment of the present application further provides a data processing device, Figure 5 This is a schematic diagram of the structure of the data processing device provided in the embodiment of the present application. Figure 5 As shown, the data processing device 500 includes: a receiving unit 501, a generating unit 502, a query unit 503, and a sending unit 504.

[0093] Receiving unit 501, configured to receive a file upload request sent by a target user device;

[0094] A generating unit 502 is configured to generate a token in response to a file upload request and send the token to a target user device, wherein the token includes a restriction condition for the file to be uploaded and is used to determine whether the file uploaded by the target user device to the file service system meets the restriction condition;

[0095] The receiving unit 501 is further configured to receive first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition;

[0096] A query unit 503 is configured to query whether the first file information exists in a service table after receiving the first file information for a first preset time period, wherein the service table includes file information sent by a user equipment, and the target user equipment is one of the user equipments;

[0097] The sending unit 504 is configured to send an access restriction instruction for the first file to the file service system if the first file information does not exist in the service table, so that the file service system controls the first file to be inaccessible in response to the access restriction instruction.

[0098] Optionally, the sending unit 504 is also used to send a deletion instruction for the first file to the file service module after receiving the second preset time length of the first file information, if the first file information still does not exist in the business table, so that the file service system deletes the first file in response to the deletion instruction, wherein the second preset time length is greater than the first preset time length.

[0099] Optionally, the query unit 503 is further configured to query whether the first file information exists in the service table every third preset time period after the first file information is received.

[0100] Optionally, the restriction condition includes a business type, the first file information includes a business type corresponding to the first file, the business table includes sub-business tables corresponding to different business types, and the query unit 503 is specifically used to determine the sub-business table corresponding to the business type of the first file from multiple sub-business tables based on the business type; after receiving the first preset time length of the first file information, query whether the first file information exists in the sub-business table.

[0101] Optionally, the business table includes a first preset field, and the first file information includes a first preset field. The query unit 503 is specifically used to query whether the field value of the first preset field in the business table is the same as the field value of the first preset field in the first file information after receiving the first preset time length of the first file information.

[0102] Optionally, the first preset field includes a file link field, and the query unit 503 is specifically configured to query whether the file link field in the service table is the same as the file link field in the first file information after receiving the first preset time duration of the first file information.

[0103] Optionally, the sending unit 504 is specifically used to determine the status of the first file in the first file information as a state of failed review if the first file information does not exist in the business table, and send a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0104] Alternatively, as Figure 5 As shown, the data processing device 500 includes: a processing unit 505.

[0105] The processing unit 505 is configured to record the status of the first file in the business table as a review-passed status if the first file information exists in the business table.

[0106] Optionally, the business table also includes a second preset field, and the first file information includes the second preset field. The sending unit 504 is specifically used to determine the field value of the second preset field in the first file information as a status identifier indicating that the first file review has failed if the first file information does not exist in the business table, and send a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0107] Optionally, the processing unit 505 is specifically configured to record the field value of the second preset field in the business table as a status identifier indicating that the first file has passed review if the first file information exists in the business table.

[0108] Optionally, the processing unit 505 is also used to determine the first number of first file information received within the fourth preset time period before the current moment every time the fourth preset time period has passed; obtain the second number of first file information received within multiple fourth preset time periods before the current moment, and determine the average number of first file information received within multiple fourth preset time periods; if the first number is greater than the average number or the difference between the first number and the average number is greater than a preset threshold, send a warning signal.

[0109] Corresponding to the data processing method provided in the second embodiment of the present application, the fourth embodiment of the present application further provides another data processing device, Figure 6 This is another structural diagram of the data processing device provided in the embodiment of the present application. Figure 6 As shown, the data processing device 600 includes: a receiving unit 601, a generating unit 602, a sending unit 603, and a control unit 604.

[0110] A receiving unit 601 is configured to receive a first file and a token sent by a target user device, and determine whether the first file meets a restriction condition based on the token, wherein the token includes the restriction condition for the first file;

[0111] A generating unit 602 is configured to generate first file information corresponding to the first file if the first file meets the restriction condition;

[0112] A sending unit 603 is configured to send the first file information to a target user device and a service system respectively;

[0113] The receiving unit 601 is further configured to receive an access restriction instruction for a first file sent by the business system, wherein the access restriction instruction is sent by the business system to the file service system when the business system finds that the first file information does not exist in the business table after receiving the first file information for a first preset period of time, the business table including file information sent by the user device, and the target user device is one of the user devices;

[0114] The control unit 604 is configured to control the first file to be inaccessible in response to the access restriction instruction.

[0115] Alternatively, as Figure 6 As shown, the data processing device 600 includes: a deleting unit 605.

[0116] The receiving unit 601 is further configured to receive a deletion instruction for the first file sent by the business system, wherein the deletion instruction is sent by the business system to the file service system when the business system finds that the first file information still does not exist in the business table after receiving the first file information for a second preset time period, and the second preset time period is greater than the first preset time period;

[0117] The deleting unit 605 is configured to delete the first file in response to the deletion instruction.

[0118] The embodiment of the present application also provides an electronic device for data processing, which can be used to implement the data processing method provided in the embodiment of the present application.

[0119] Figure 7 This is a structural block diagram of an example of an electronic device for data processing provided in an embodiment of the present application. Figure 7 , which is a structural block diagram of an example of an electronic device for data processing provided in an embodiment of the present application.

[0120] In this embodiment, an optional hardware structure of the electronic device 700 can be as follows: Figure 7 As shown, it includes: at least one processor 701 , at least one memory 702 and at least one communication bus 705 ; the memory 702 contains a program 703 and data 704 .

[0121] The bus 705 can be a communication device for transmitting data between components inside the electronic device 700, such as an internal bus (for example, a CPU-memory bus, the processor is a central processing unit, referred to as CPU), an external bus (for example, a universal serial bus port, a peripheral component interconnect express port), etc.

[0122] In addition, the electronic device further includes: at least one network interface 706 and at least one peripheral interface 707. The network interface 706 provides wired or wireless communication with an external network 708 (e.g., the Internet, an intranet, a local area network, a mobile communication network, etc.); in some embodiments, the network interface 706 may include any number of network interface controllers (NICs), radio frequency (RF) modules, repeaters, transceivers, modems, routers, gateways, any combination of wired network adapters, wireless network adapters, Bluetooth adapters, infrared adapters, near field communication (NFC) adapters, cellular network chips, etc.

[0123] The peripheral interface 707 is used to connect to the peripheral device, and the peripheral device can be the peripheral device 1 ( Figure 7 709 in), peripheral 2 ( Figure 7 710) and peripheral 3 ( Figure 7711 in the figure). Peripherals are peripheral devices, which may include but are not limited to cursor control devices (such as a mouse, touchpad or touch screen), keyboards, displays (such as cathode ray tube displays, liquid crystal displays or light emitting diode displays), video input devices (such as cameras or input interfaces coupled to video files), etc.

[0124] The processor 701 may be a CPU, or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0125] The memory 702 may include a high-speed RAM (full name: Random Access Memory) memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0126] The processor 701 calls the program and data stored in the memory 702 and performs the following steps:

[0127] Receive a file upload request sent by a target user device;

[0128] In response to a file upload request, generating a token and sending the token to a target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions;

[0129] Receiving first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition;

[0130] After receiving the first file information for a first preset time period, querying a service table for the presence of the first file information, wherein the service table includes file information sent by a user device, and the target user device is one of the user devices;

[0131] If the first file information does not exist in the service table, a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0132] Corresponding to the data processing method provided in the embodiment of the present application, the embodiment of the present application further provides a computer-readable storage medium storing a program of the data processing method, which is executed by a processor to perform the following steps:

[0133] Receive a file upload request sent by a target user device;

[0134] In response to a file upload request, generating a token and sending the token to a target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions;

[0135] Receiving first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition;

[0136] After receiving the first file information for a first preset time period, querying a service table for the presence of the first file information, wherein the service table includes file information sent by a user device, and the target user device is one of the user devices;

[0137] If the first file information does not exist in the service table, a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

[0138] It should be noted that for the detailed description of the devices, electronic devices and computer-readable storage media provided in the second, third and fourth embodiments of the present application, reference can be made to the relevant description of the first embodiment of the present application, and no further details will be given here.

[0139] Although the present application is disclosed as above with the preferred embodiments, it is not intended to limit the present application. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

[0140] In a typical configuration, a node device in a blockchain includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0141] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0142] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), random access memory (RAM) of other types, read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage media, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0143] 2. Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0144] Although the present application is disclosed as above with the preferred embodiments, it is not intended to limit the present application. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Receive a file upload request sent by a target user device; In response to the file upload request, generating a token and sending the token to the target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions; receiving first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition; After receiving the first file information for a first preset time period, querying a service table to determine whether the first file information exists, wherein the service table includes file information sent by a user device, and the target user device is one of the user devices; If the first file information does not exist in the service table, a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

2. The method according to claim 1, characterized in that The method further comprises: After receiving the second preset time length of the first file information, if the first file information still does not exist in the business table, a deletion instruction for the first file is sent to the file service module, so that the file service system deletes the first file in response to the deletion instruction, wherein the second preset time length is greater than the first preset time length.

3. The method according to claim 1, characterized in that The method further comprises: After receiving the first file information, every third preset time period, the service table is queried to determine whether the first file information exists.

4. The method according to claim 1, wherein The restriction condition includes a business type, the first file information includes a business type corresponding to the first file, the business table includes sub-business tables corresponding to different business types, and after receiving the first preset time period of the first file information, querying whether the first file information exists in the business table includes: Determining, according to the business type, a sub-business table corresponding to the business type of the first file from a plurality of sub-business tables; After receiving the first preset time duration of the first file information, query the sub-service table to see whether the first file information exists.

5. The method according to claim 1, wherein the service table includes a first preset field, and the first file information includes the first preset field, and after receiving the first file information for a first preset time, querying whether the first file information exists in the service table comprises: After receiving the first preset time length of the first file information, it is queried whether the field value of the first preset field in the service table is the same as the field value of the first preset field in the first file information.

6. The method according to claim 5, wherein the first preset field includes a file link field, and after receiving the first preset time duration of the first file information, querying whether the field value of the first preset field in the business table is the same as the field value of the first preset field in the first file information comprises: After receiving the first preset time duration of the first file information, it is queried whether the file link field in the service table is the same as the file link field in the first file information.

7. The method according to claim 1, wherein if the first file information does not exist in the service table, sending a restricted access instruction for the first file to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction, comprises: If the first file information does not exist in the business table, the status of the first file in the first file information is determined to be a failed review status, and a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

8. The method according to claim 7, further comprising: If the first file information exists in the business table, the status of the first file in the business table is recorded as an approved status.

9. The method according to claim 8, wherein the business table further includes a second preset field, and the first file information includes the second preset field, and if the first file information does not exist in the business table, determining the status of the first file in the first file information as a review-failed state, and sending an access restriction instruction for the first file to the file service system, so that the file service system controls access to the first file in response to the access restriction instruction, comprising: If the first file information does not exist in the business table, the field value of the second preset field in the first file information is determined as a status identifier indicating that the first file has failed the review, and a restricted access instruction for the first file is sent to the file service system, so that the file service system controls the first file to be inaccessible in response to the restricted access instruction.

10. The method according to claim 9, wherein if the first file information exists in the business table, recording the status of the first file in the business table as an approved status comprises: If the first file information exists in the business table, the field value of the second preset field in the business table is recorded as a status identifier indicating that the first file has been reviewed and approved.

11. The method according to claim 1, wherein The method further comprises: Every time a fourth preset time period passes, determining a first quantity of first file information received within the fourth preset time period before the current moment; Obtain a second quantity of the first file information received within a plurality of the fourth preset time periods before the current moment, and determine an average quantity of the first file information received within the plurality of the fourth preset time periods; If the first number is greater than the average number or the difference between the first number and the average number is greater than a preset threshold, a warning signal is sent.

12. A data processing method, characterized in that: The method comprises: receiving a first file and a token sent by a target user device, and determining whether the first file meets a restriction condition by using the token, wherein the token includes the restriction condition for the first file; If the first file meets the restriction condition, generating first file information corresponding to the first file; Sending the first file information to the target user equipment and the service system respectively; receiving an access restriction instruction for the first file sent by the business system, wherein the access restriction instruction is sent by the business system to the file service system when the business system finds that the first file information does not exist in a business table after receiving the first file information for a first preset time period, the business table includes file information sent by a user device, and the target user device is one of the user devices; In response to the access restriction instruction, the first file is controlled to be inaccessible.

13. The method according to claim 12, characterized in that The method further comprises: receiving a deletion instruction for the first file sent by the business system, wherein the deletion instruction is sent by the business system to the file service system when the business system finds that the first file information still does not exist in the business table after receiving the first file information for a second preset time period, and the second preset time period is greater than the first preset time period; In response to the deletion instruction, the first file is deleted.

14. A data processing device, characterized in that: The device comprises: A receiving unit, configured to receive a file upload request sent by a target user device; a generating unit, configured to generate a token in response to the file upload request, and send the token to the target user device, wherein the token includes restriction conditions for the file to be uploaded, and the token is used to determine whether the file uploaded by the target user device to the file service system meets the restriction conditions; The receiving unit is further configured to receive first file information sent by the file service system, wherein the first file information is file information generated for the first file after the file service system receives the first file uploaded by the user device and determines through the token that the first file meets the restriction condition; a query unit, configured to query whether the first file information exists in a service table after a first preset time period of receiving the first file information, wherein the service table includes file information sent by a user device, and the target user device is one of the user devices; The sending unit is configured to send an access restriction instruction for the first file to the file service system if the first file information does not exist in the service table, so that the file service system controls the first file to be inaccessible in response to the access restriction instruction.

15. A data processing device, characterized in that: The device comprises: a receiving unit, configured to receive a first file and a token sent by a target user device, and determine whether the first file meets a restriction condition based on the token, wherein the token includes the restriction condition for the first file; a generating unit, configured to generate first file information corresponding to the first file if the first file meets the restriction condition; A sending unit, configured to send the first file information to a target user device and a service system respectively; The receiving unit is further configured to receive an access restriction instruction for the first file sent by the business system, wherein the access restriction instruction is sent by the business system to the file service system when the business system finds that the first file information does not exist in a business table after receiving the first file information for a first preset time period, the business table includes file information sent by a user device, and the target user device is one of the user devices; A control unit is configured to control the first file to be inaccessible in response to the access restriction instruction.

16. An electronic device, characterized in that: include: processor; and The memory is used to store a data processing program. After the electronic device is powered on and the program is run by the processor, the method according to any one of claims 1 to 11 or the method according to any one of claims 12 and 13 is executed.

17. A computer-readable storage medium, characterized in that A data processing program is stored, and the program is run by a processor to perform the method according to any one of claims 1 to 11 or the method according to any one of claims 12 and 13.