CN116684404A - Resource interaction data downloading method, device, computer equipment and storage medium - Google Patents

Resource interaction data downloading method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116684404A
CN116684404A CN202310659888.9A CN202310659888A CN116684404A CN 116684404 A CN116684404 A CN 116684404A CN 202310659888 A CN202310659888 A CN 202310659888A CN 116684404 A CN116684404 A CN 116684404A
Authority
CN
China
Prior art keywords
resource interaction
file
interaction data
resource
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310659888.9A
Other languages
Chinese (zh)
Inventor
马小菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310659888.9A priority Critical patent/CN116684404A/en
Publication of CN116684404A publication Critical patent/CN116684404A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a resource interaction data downloading method, a device, computer equipment and a storage medium, and relates to the technical field of big data. The method comprises the following steps: responding to a downloading request initiated by a current resource interaction node aiming at resource interaction data, acquiring the resource interaction data, and acquiring a file format associated with the downloading request; acquiring a file template corresponding to the resource interaction data according to the file format; generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data; the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information. The method can improve the generation efficiency of the multi-format file.

Description

Resource interaction data downloading method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for downloading resource interaction data.
Background
Under the great wave of mobile internet and big data, more and more financial services tend to be paperless and electronic. The downloading service is oriented to various channels and peripheral product users, the downloading format of the file is required to be diversified under diversified scenes, and the file with the format corresponding to the scenes can be generated under different scenes.
Under the diversified scene, the demand for providing various types of file inquiry and downloading such as transaction details, report forms, receipts and the like is increasing. In the prior art, generation of files aiming at multiple scenes and multiple service types is not unified and standardized, universality is low, fusion service redundancy is realized, and file generation efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource interaction data downloading method, apparatus, computer device, and storage medium that can improve the efficiency of generating a multi-format file.
In a first aspect, the present application provides a method for downloading resource interaction data, the method comprising:
responding to a downloading request initiated by a current resource interaction node aiming at resource interaction data, acquiring the resource interaction data, and acquiring a file format associated with the downloading request;
acquiring a file template corresponding to the resource interaction data according to the file format;
generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data;
the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
In one embodiment, obtaining a file format associated with a download request includes:
determining a resource interaction service type corresponding to the resource interaction data according to the resource interaction data;
and acquiring the file format corresponding to the resource service type according to the pre-constructed corresponding relation between the resource interaction service type and the file format.
In one embodiment, the current resource interaction node is any one of a plurality of resource interaction nodes;
acquiring resource interaction data, including:
determining an acquisition path of the resource interaction data according to the downloading request;
determining a target resource interaction node corresponding to the acquisition path from a plurality of resource interaction nodes;
and accessing the target resource interaction node, and acquiring resource interaction data which is sent by the target resource interaction node and is associated with the downloading request.
In one embodiment, according to a file format, obtaining a file template corresponding to resource interaction data includes:
acquiring a resource interaction service type corresponding to the resource interaction data;
and acquiring a file template corresponding to the resource interaction data according to the file format and the resource interaction service type.
In one embodiment, before generating the resource interaction data file matched with the download request by using the file template and the resource interaction data, the method includes:
formatting the resource interaction data to obtain formatted resource interaction data;
performing bit filling processing on the formatted resource interaction data to obtain the resource interaction data after bit filling processing;
carrying out emptying treatment on the resource interaction data subjected to the bit filling treatment to obtain resource interaction data subjected to the emptying treatment;
generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data, wherein the resource interaction data file comprises:
and generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data after the emptying processing.
In one embodiment, after generating the resource interaction data file matched with the download request by using the file template and the resource interaction data, the method further includes:
generating file downloading result information aiming at the resource interaction data file;
before the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node, the method further comprises the following steps:
and returning the file downloading result information to the current resource interaction node.
In one embodiment, before sending the resource interaction data file to the file management server corresponding to the download request, the method includes:
acquiring a resource interaction data encryption mode corresponding to a downloading request;
according to the resource interaction data encryption mode, encrypting the resource interaction data file to obtain an encrypted resource interaction data file;
transmitting the resource interaction data file to a file management server corresponding to the download request, comprising:
and sending the encrypted resource interaction data file to a file management server corresponding to the downloading request.
In a second aspect, the present application also provides a device for downloading resource interaction data, where the device includes:
the downloading request response module is used for responding to a downloading request initiated by the current resource interaction node aiming at the resource interaction data, acquiring the resource interaction data and acquiring a file format associated with the downloading request;
the file template acquisition module is used for acquiring a file template corresponding to the resource interaction data according to the file format;
the data file generation module is used for generating a resource interaction data file matched with the downloading request by utilizing the file template and the resource interaction data;
the file sending module is used for sending the resource interaction data file to a file management server corresponding to the downloading request, and returning the storage path information of the resource interaction data file in the file management server to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method described above.
The resource interaction data downloading method, the device, the computer equipment and the storage medium are used for responding to a downloading request initiated by a current resource interaction node aiming at the resource interaction data, acquiring the resource interaction data and acquiring a file format associated with the downloading request; acquiring a file template corresponding to the resource interaction data according to the file format; generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data; the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information. Compared with the prior art, the method and the device have the advantages that the file format associated with the downloading request is obtained, the file template corresponding to the resource interaction data is obtained according to the file format, the file template and the resource interaction data can be further utilized to generate the resource interaction data file matched with the downloading request, so that the file requirements of multiple formats can be met, the file format is directly obtained, the file template corresponding to the file format is utilized to generate the resource interaction data file, and the generation efficiency of the multi-format file is improved. Further, according to the method and the device for generating the multi-format file, the file templates corresponding to the resource interaction data are obtained according to the file formats, and under the condition that the number of the file formats is multiple, the corresponding file templates can be obtained, so that the resource interaction data files with multiple formats can be generated in one task, and the generation efficiency of the multi-format file can be improved.
Drawings
FIG. 1 is an application environment diagram of a resource interaction data downloading method in one embodiment;
FIG. 2 is a flow chart of a method for downloading resource interaction data in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining a file format associated with a download request, according to one embodiment;
FIG. 4 is a flowchart illustrating steps for obtaining resource interaction data in one embodiment;
FIG. 5 is a block diagram of a resource interaction data downloading apparatus in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource interaction data downloading method provided by the embodiment of the application can be applied to an application environment shown in figure 1. The terminal 102 communicates with the server 104 through a network, the server 104 may communicate with the server 106, the terminal 102 communicates with the server 106 through a network, and the server 106 is a file management server. The data storage system may store data that server 104 and server 106 need to process. The data storage system may be integrated on server 104 and/or server 106, or may be located on a cloud or other network server. The terminal 102 may be a current resource interaction node. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 and the server 106 may be implemented as separate servers or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for downloading resource interaction data is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
s202, responding to a downloading request initiated by a current resource interaction node aiming at the resource interaction data, acquiring the resource interaction data, and acquiring a file format associated with the downloading request.
The current resource interaction node can be any node and can be one of nodes in the distributed resource interaction system. The current resource interaction node may be a terminal. The resource interaction data may be resource business data generated in a resource interaction business process. The file format refers to a format of a file corresponding to the resource interaction data to be downloaded, and for example, the file format may be PDF, CSV, TXT, excel or other various formats.
Illustratively, in response to a download request initiated by a current resource interaction node, the server 104 obtains resource interaction data generated in a resource interaction business scenario corresponding to the download request for resource interaction data, and obtains a file format associated with the download request. For example, the file format associated with the download request can be generated through the resource interaction service scene, so that the file format corresponding to the resource interaction service scene can be automatically generated, the file format required by manual input is avoided, and the generation efficiency of the multi-format file can be improved.
S204, obtaining a file template corresponding to the resource interaction data according to the file format.
Where a file template refers to a template used to generate a file.
For example, server 104 may configure different file templates according to different file formats. According to the current file format, a file template corresponding to the file format can be obtained.
S206, generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data.
The resource interaction data file refers to a file containing resource interaction data. The resource interaction data file may be a file of any format, e.g., PDF, CSV, TXT, excel, etc.
For example, the server 104 may generate a resource interaction data file that matches the download request using the file template corresponding to the resource interaction data and the resource interaction data. For example, the resource interaction data may be written into a corresponding file template to obtain a resource interaction data file.
S208, the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
The file management server may be an FTP server (File Transfer Protocol Server), among others. The storing path information refers to path information for storing the resource interaction data file.
For example, the server 104 may send the resource interaction data file to the server 106 corresponding to the download request, the server 106 being a file management server. And the server 104 may obtain the storage path information of the resource interaction data file in the server 106, and the server 104 may return the storage path information to the current resource interaction node. The current resource interaction node may download the resource interaction data file from the server 106 based on the deposited path information. In this step, a configured transmission failure retry mechanism is supported.
In this embodiment, in response to a download request initiated by a current resource interaction node for resource interaction data, resource interaction data is obtained, and a file format associated with the download request is obtained; acquiring a file template corresponding to the resource interaction data according to the file format; generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data; the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information. Compared with the prior art, the method and the device have the advantages that the file format associated with the downloading request is obtained, the file template corresponding to the resource interaction data is obtained according to the file format, the file template and the resource interaction data can be further utilized to generate the resource interaction data file matched with the downloading request, so that the file requirements of multiple formats can be met, the file format is directly obtained, the file template corresponding to the file format is utilized to generate the resource interaction data file, and the generation efficiency of the multi-format file is improved. Further, according to the method and the device for generating the multi-format file, the file templates corresponding to the resource interaction data are obtained according to the file formats, and under the condition that the number of the file formats is multiple, the corresponding file templates can be obtained, so that the resource interaction data files with multiple formats can be generated in one task, and the generation efficiency of the multi-format file can be improved.
In one embodiment, as shown in FIG. 3, obtaining the file format associated with the download request includes:
s302, determining a resource interaction service type corresponding to the resource interaction data according to the resource interaction data;
s304, according to the pre-constructed corresponding relation between the resource interaction service type and the file format, the file format corresponding to the resource service type is obtained.
The resource interaction service type refers to a service type under a certain resource interaction service scene.
Illustratively, a resource interaction business type corresponding to the resource interaction data can be determined according to the resource interaction data; for example, according to the data content of the resource interaction data, the service scene generated by the resource interaction data is determined, and further, according to the corresponding relation between the pre-constructed resource interaction service scene and the file format, the file format corresponding to the resource service type can be obtained.
And extracting the specificity and commonality rules of different resource transfer service scenes and different file formats, and constructing the corresponding relation between the resource interaction service types and the file formats in advance.
In this embodiment, a file format corresponding to a resource service type is obtained through a pre-constructed correspondence between the resource interaction service type and the file format, so that the method and the device can be suitable for file generation of corresponding file formats under different resource interaction service scenes, and can realize file format requirements of different resource interaction service types under different resource interaction service scenes, thereby improving file generation efficiency of multiple file formats.
In one embodiment, the current resource interaction node is any one of a plurality of resource interaction nodes;
as shown in fig. 4, acquiring resource interaction data includes:
s402, determining an acquisition path of resource interaction data according to a downloading request;
s404, determining a target resource interaction node corresponding to the acquisition path from a plurality of resource interaction nodes;
s406, accessing the target resource interaction node, and acquiring resource interaction data which is sent by the target resource interaction node and is associated with the downloading request.
The acquisition path refers to a path where resource interaction data is located. The resource interaction data may be stored at other resource interaction nodes in the distributed system. Other resource interaction nodes and the current resource interaction node can form a distributed system. The target resource interaction node refers to a resource interaction node with a specific attribute, and in this implementation, the target resource interaction node is a resource interaction node corresponding to the acquisition path.
Illustratively, according to the download request, a path capable of acquiring the resource interaction data is determined, and a resource interaction node corresponding to the acquired path is taken as a target resource interaction node from a plurality of resource interaction nodes. Accessing the target resource interaction node, and acquiring resource interaction data associated with the downloading request from the target resource interaction node.
In this embodiment, the resource interaction data associated with the download request may be obtained through the target resource interaction node of the distributed system, so that the efficiency of generating the resource interaction data file may be improved.
In one embodiment, obtaining a file template corresponding to the resource interaction data according to the file format includes:
acquiring a resource interaction service type corresponding to the resource interaction data;
and acquiring a file template corresponding to the resource interaction data according to the file format and the resource interaction service type.
The resource interaction service type refers to a service type under a certain resource interaction service scene.
For example, the corresponding file template may be configured according to the file format to be generated and the resource interaction service type corresponding to the resource interaction service scene.
In this embodiment, the corresponding file templates are configured through different resource interaction service scenarios and the file formats to be generated, so that the accuracy of the file formats to be generated can be improved, and meanwhile, the generating efficiency of the multi-format file is improved.
In one embodiment, before generating a resource interaction data file matching the download request using the file template and the resource interaction data, the method comprises:
formatting the resource interaction data to obtain formatted resource interaction data;
performing bit filling processing on the formatted resource interaction data to obtain the resource interaction data after bit filling processing;
and carrying out emptying treatment on the resource interaction data subjected to the bit filling treatment to obtain the resource interaction data subjected to the emptying treatment.
For example, the resource interaction data may be preprocessed according to a commonality logic generation rule, e.g., the resource interaction data may be formatted, bit-complemented, nulled, etc. Meanwhile, custom rule input can be supported. Thus, the accuracy of generating the file for the resource interaction data can be improved.
Generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data, wherein the resource interaction data file comprises:
and generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data after the emptying processing.
For example, a file template corresponding to the resource interaction data and the resource interaction data after the emptying process may be used to generate a resource interaction data file matched with the download request.
In this embodiment, the resource interaction data is preprocessed, so that the standardization of the resource interaction data file can be achieved, and the resource interaction data file matched with the downloading request is generated by using the file template and the resource interaction data after the emptying processing, so that the resource interaction data file in the required file format can be generated, and the generation efficiency of the multi-format file is improved.
In one embodiment, after generating the resource interaction data file matching the download request using the file template and the resource interaction data, the method further comprises:
file download result information for the resource interaction data file is generated.
The file downloading result information refers to information whether the resource interaction data file is successfully downloaded or not.
For example, file download result information may be generated during the resource interaction data file. For example, if the resource interaction data file generation fails, generating information of file downloading failure; and if the resource interaction data file is successfully generated, generating information of successful file downloading.
Before the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node, the method further comprises the following steps:
and returning the file downloading result information to the current resource interaction node.
Illustratively, information of whether the resource interaction data file is successfully downloaded is returned to the current resource interaction node. If the file download fails, the current resource interaction node may choose whether to reinitiate the download instruction.
In this embodiment, the efficiency of generating the resource interaction data file can be improved by generating the file downloading result information for the resource interaction data file and returning the file downloading result information to the current resource interaction node, and the processing efficiency of the current resource interaction node can be improved under the condition that the file downloading fails.
In one embodiment, before sending the resource interaction data file to the file management server corresponding to the download request, the method comprises:
acquiring a resource interaction data encryption mode corresponding to a downloading request;
according to the resource interaction data encryption mode, encrypting the resource interaction data file to obtain an encrypted resource interaction data file;
transmitting the resource interaction data file to a file management server corresponding to the download request, comprising:
and sending the encrypted resource interaction data file to a file management server corresponding to the downloading request.
The resource interaction data encryption mode refers to a mode of encrypting a resource interaction data file, and the resource interaction data encryption mode can specify an algorithm for encrypting the resource interaction data file.
The resource interaction data encryption mode corresponding to the downloading request is obtained, and the resource interaction data file can be further encrypted according to the resource interaction data encryption mode, so that the encrypted resource interaction data file is obtained. And sending the encrypted resource interaction data file to a file management server corresponding to the downloading request.
In this embodiment, the encryption processing is performed on the resource interaction data file, so that the security of the encryption processing on the resource interaction data file can be improved.
In one embodiment, a method for downloading resource interaction data is provided, including:
in view of various business scenes and various file format requirements, the current method cannot simultaneously support file configuration processing and generation of multi-format file type data, and text formats such as PDF, CSV, TXT, excel and the like. The method is flexible according to the front end and the abundant service scenes. According to the downloading requirement initiated by the client, the file is dynamically generated through the responsibility chain, so that the method is universal and efficient.
Each channel or peripheral user initiates a download application. And processing an online downloading request initiated by each channel or peripheral user, returning to the file name generated by each channel or peripheral in real time, and asynchronously triggering data processing through threads.
And processing data required by the file is generated. Inquiring corresponding libraries according to different business scenes, processing user transaction detail data in the generated file, and preparing data for a subsequent file generation module.
And generating files with different scenes and different formats. And configuring a file template for use according to the file format to be generated and the service scene, and calling a common method to generate a corresponding file.
And sending the generated file to a file storage server. The module mainly sends the file generated by the file generation module to the corresponding ftp server according to the specific service scene selection, and the module supports a configured sending failure retry mechanism.
The asynchronous message informs the channel or the peripheral file generation. The module mainly generates an asynchronous message sending notification channel or a peripheral file, the message body contains information such as whether the file is generated or not, a storage path of the file and the like, and the channel or the periphery obtains the file with the corresponding file name under the corresponding path and displays the file to a client.
And extracting the specificity and commonality rules of different business scenes and different format files.
And according to the extraction rule, the universality design and implementation of the responsibility chain are realized.
And analyzing data according to the service scene requirements, integrating and extracting corresponding public logic, and outputting corresponding rules.
And carrying out configuration of a responsibility chain aiming at different service scenes.
And analyzing and sorting files of different file types of different service scenes to generate data processing rules, and abstracting the commonality logic generation rules. The current extraction rules mainly include: character formatting, bit filling operations, blanking operations, and the like. Custom rule input is supported for specially processed fields.
In this embodiment, file generation and downloading of different file formats (PDF, CSV, TXT and other formats) of different service scenes in a big data scene are realized through a distributed related technology, service logic is realized by dynamically adding or deleting link points through configuration of a responsibility chain, a changeable downloading scene is flexibly dealt with, and coupling of front logic and back logic in a complex scene is effectively avoided. The file downloading efficiency is effectively improved, and the resource interaction rate is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource interaction data device for realizing the above-mentioned related resource interaction data method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the resource interaction data device or devices provided below may refer to the limitation of the resource interaction data method hereinabove, and will not be described herein.
In one embodiment, as shown in FIG. 5, there is provided a resource interaction data device 500 comprising: a download request response module 510, a file template acquisition module 520, a data file generation module 530, and a file transmission module 540, wherein:
the download request response module 510 is configured to obtain the resource interaction data in response to a download request initiated by the current resource interaction node for the resource interaction data, and obtain a file format associated with the download request;
the file template obtaining module 520 is configured to obtain a file template corresponding to the resource interaction data according to the file format;
a data file generating module 530, configured to generate a resource interaction data file matched with the download request by using the file template and the resource interaction data;
the file sending module 540 is configured to send the resource interaction data file to a file management server corresponding to the download request, and return the storage path information of the resource interaction data file in the file management server to the current resource interaction node; the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
In one embodiment, the download request response module includes a service type determining unit and a file format acquiring unit.
The service type determining unit is used for determining the resource interaction service type corresponding to the resource interaction data according to the resource interaction data. The file format acquisition unit is used for acquiring the file format corresponding to the resource service type according to the pre-constructed corresponding relation between the resource interaction service type and the file format.
In one embodiment, the current resource interaction node is any one of a plurality of resource interaction nodes.
The download request response module comprises an acquisition path determining unit, a target node determining unit and a target node accessing unit.
The acquisition path determining unit is used for determining an acquisition path of the resource interaction data according to the downloading request. The target node determining unit is used for determining a target resource interaction node corresponding to the acquisition path from a plurality of resource interaction nodes. The target node access unit is used for accessing the target resource interaction node and acquiring resource interaction data which is sent by the target resource interaction node and is associated with the downloading request.
In one embodiment, the file template acquisition module includes a service type acquisition unit and a file template acquisition unit.
The service type acquisition unit is used for acquiring the resource interaction service type corresponding to the resource interaction data. The file template acquisition unit is used for acquiring a file template corresponding to the resource interaction data according to the file format and the resource interaction service type.
In one embodiment, the apparatus further comprises a formatting processing module, a bit filling processing module, and a de-empting processing module.
The formatting processing module is used for formatting the resource interaction data to obtain the resource interaction data after the formatting processing. And the bit filling processing module is used for carrying out bit filling processing on the formatted resource interaction data to obtain the resource interaction data after the bit filling processing. The void removal processing module is used for carrying out void removal processing on the resource interaction data subjected to the bit filling processing to obtain the resource interaction data subjected to the void removal processing. And the data file generation module is used for generating a resource interaction data file matched with the downloading request by utilizing the file template and the resource interaction data after the emptying processing.
In one embodiment, the apparatus further comprises a download result generation module and a download result return module.
The download result generation module is used for generating file download result information aiming at the resource interaction data file. And the downloading result returning module is used for returning the file downloading result information to the current resource interaction node.
In one embodiment, the apparatus further comprises an encryption mode acquisition module and an encryption processing module.
The encryption mode acquisition module is used for acquiring the resource interaction data encryption mode corresponding to the downloading request. The encryption processing module is used for carrying out encryption processing on the resource interaction data file according to the resource interaction data encryption mode to obtain the resource interaction data file after encryption processing. And the file sending module is used for sending the encrypted resource interaction data file to a file management server corresponding to the downloading request.
The modules in the resource interaction data downloading device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing file templates and resource interaction data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a resource interaction data downloading method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for downloading resource interaction data, the method comprising:
responding to a downloading request initiated by a current resource interaction node aiming at resource interaction data, acquiring the resource interaction data, and acquiring a file format associated with the downloading request;
acquiring a file template corresponding to the resource interaction data according to the file format;
generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data;
the resource interaction data file is sent to a file management server corresponding to the downloading request, and the storage path information of the resource interaction data file in the file management server is returned to the current resource interaction node; and the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
2. The method of claim 1, wherein the obtaining the file format associated with the download request comprises:
determining a resource interaction service type corresponding to the resource interaction data according to the resource interaction data;
and acquiring a file format corresponding to the resource service type according to the pre-constructed corresponding relation between the resource interaction service type and the file format.
3. The method of claim 2, wherein the current resource interaction node is any one of a plurality of resource interaction nodes;
the obtaining the resource interaction data includes:
determining an acquisition path of the resource interaction data according to the downloading request;
determining a target resource interaction node corresponding to the acquisition path from the plurality of resource interaction nodes;
and accessing the target resource interaction node, and acquiring resource interaction data which is sent by the target resource interaction node and is associated with the downloading request.
4. The method according to claim 1, wherein the obtaining, according to the file format, a file template corresponding to the resource interaction data includes:
acquiring a resource interaction service type corresponding to the resource interaction data;
and acquiring a file template corresponding to the resource interaction data according to the file format and the resource interaction service type.
5. The method of claim 1, wherein prior to generating a resource interaction data file matching the download request using the file template and the resource interaction data, comprising:
formatting the resource interaction data to obtain formatted resource interaction data;
performing bit filling processing on the formatted resource interaction data to obtain the resource interaction data after bit filling processing;
carrying out emptying treatment on the resource interaction data subjected to the bit filling treatment to obtain resource interaction data subjected to emptying treatment;
the generating, by using the file template and the resource interaction data, a resource interaction data file matched with the download request includes:
and generating a resource interaction data file matched with the downloading request by using the file template and the resource interaction data after the emptying processing.
6. The method of claim 1, wherein generating a resource interaction data file that matches the download request using the file template and the resource interaction data further comprises:
generating file downloading result information aiming at the resource interaction data file;
before the storing path information of the resource interaction data file in the file management server is returned to the current resource interaction node, the method further comprises the following steps:
and returning the file downloading result information to the current resource interaction node.
7. The method of claim 6, wherein before sending the resource interaction data file to the file management server corresponding to the download request, comprising:
acquiring a resource interaction data encryption mode corresponding to the downloading request;
encrypting the resource interaction data file according to the resource interaction data encryption mode to obtain an encrypted resource interaction data file;
the sending the resource interaction data file to a file management server corresponding to the download request comprises the following steps:
and sending the encrypted resource interaction data file to a file management server corresponding to the downloading request.
8. A resource interaction data downloading apparatus, the apparatus comprising:
the downloading request response module is used for responding to a downloading request initiated by a current resource interaction node aiming at the resource interaction data, acquiring the resource interaction data and acquiring a file format associated with the downloading request;
the file template acquisition module is used for acquiring a file template corresponding to the resource interaction data according to the file format;
the data file generation module is used for generating a resource interaction data file matched with the downloading request by utilizing the file template and the resource interaction data;
the file sending module is used for sending the resource interaction data file to a file management server corresponding to the downloading request, and returning the storage path information of the resource interaction data file in the file management server to the current resource interaction node; and the current resource interaction node is used for downloading the resource interaction data file from the file management server based on the storage path information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310659888.9A 2023-06-06 2023-06-06 Resource interaction data downloading method, device, computer equipment and storage medium Pending CN116684404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310659888.9A CN116684404A (en) 2023-06-06 2023-06-06 Resource interaction data downloading method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310659888.9A CN116684404A (en) 2023-06-06 2023-06-06 Resource interaction data downloading method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116684404A true CN116684404A (en) 2023-09-01

Family

ID=87778711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310659888.9A Pending CN116684404A (en) 2023-06-06 2023-06-06 Resource interaction data downloading method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116684404A (en)

Similar Documents

Publication Publication Date Title
CN111722947A (en) Service calling method and system
CN111400246B (en) Asynchronous file import method, device, computer equipment and storage medium
WO2022247316A1 (en) Storage object processing system, request processing method, gateway, and storage medium
CN116233253A (en) Service processing method, device, computer equipment and storage medium
CN116684404A (en) Resource interaction data downloading method, device, computer equipment and storage medium
CN112073395B (en) File distribution method and device
US20210141791A1 (en) Method and system for generating a hybrid data model
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium
CN112751893A (en) Message track data processing method and device and electronic equipment
CN117539962B (en) Data processing method, device, computer equipment and storage medium
CN115529288B (en) Message pushing method, device and computer equipment
CN115730016B (en) Data synchronization method, system, device, computer equipment and storage medium
CN117407156A (en) Target data extraction method, device, computer equipment and storage medium
CN116366724A (en) Business process processing method, device, computer equipment and storage medium
CN117459593A (en) Message information processing method, device, computer equipment and storage medium
CN117278625A (en) Message conversion method, device, computer equipment and storage medium
CN116257329A (en) Service operation method, device, computer equipment and storage medium
CN117082076A (en) Batch message processing method, device, computer equipment and storage medium
CN117221830A (en) Message broadcasting method, device, equipment, storage medium and program product
CN116756243A (en) Data synchronization method, device, equipment, medium and product in financial business system
CN117201642A (en) Message conversion method, device, computer equipment and storage medium
CN116680729A (en) Data processing method and device based on intelligent contract and related equipment
CN117763027A (en) Data processing method, device, computer equipment and storage medium
CN117453790A (en) Data exchange method and device based on cloud object storage, equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination