CN117411871A - Image material uploading method, device, equipment, storage medium and program product - Google Patents

Image material uploading method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN117411871A
CN117411871A CN202311402279.1A CN202311402279A CN117411871A CN 117411871 A CN117411871 A CN 117411871A CN 202311402279 A CN202311402279 A CN 202311402279A CN 117411871 A CN117411871 A CN 117411871A
Authority
CN
China
Prior art keywords
submitted
uploading
information
terminal
image
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
CN202311402279.1A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311402279.1A priority Critical patent/CN117411871A/en
Publication of CN117411871A publication Critical patent/CN117411871A/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • H04L9/3249Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures using RSA or related signature schemes, e.g. Rabin scheme
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to an uploading method, device, equipment, storage medium and program product of image materials, which are applied to the technical field of computers. The method comprises the following steps: receiving an acquisition request sent by a first terminal, wherein the acquisition request comprises user information and first uploading credential information; according to the validity period of the valid credential information stored in the cache, carrying out validity verification on the first uploading credential information, and determining whether the first terminal has uploading authority according to a verification result of the validity; if the first terminal has the uploading authority, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted; and sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted. By adopting the method, the submitting efficiency of the image material can be improved.

Description

Image material uploading method, device, equipment, storage medium and program product
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for uploading an image material.
Background
The aggregate extraction traffic typically includes sales-class extraction traffic, partial extraction traffic, and the like. When dealing with the extraction business of the accumulation fund, related image materials are submitted on the accumulation fund business system so as to be convenient for the accumulation fund business personnel to check.
In the related art, the service of extracting the accumulation fund is generally performed by a super teller machine (Super Teller Machine, STM). The STM needs to be additionally provided with high-speed image shooting equipment so as to have an image acquisition function and realize the acquisition of image materials related to the extraction business of the public accumulation fund.
However, the standard STM is not provided with the high-speed shooting instrument, and a user needs to find the STM provided with the high-speed shooting instrument, so that collection of image materials related to the extraction business of the accumulation fund can be realized, and the submitting efficiency of the image materials is greatly reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, device, storage medium, and program product for uploading an image material, which can improve the efficiency of submitting the image material.
In a first aspect, the present application provides a method for uploading an image material. The method comprises the following steps:
receiving an acquisition request sent by a first terminal, wherein the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by the first terminal by scanning bar code information in an extraction page corresponding to the virtual resource extraction service;
According to the validity period of the valid credential information stored in the cache, carrying out validity verification on the first uploading credential information, and determining whether the first terminal has uploading authority according to a verification result of the validity;
if the first terminal has the uploading authority, determining a list of the image materials to be submitted according to the user information, wherein the list of the image materials comprises state information of the image materials to be submitted;
and sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted.
In one embodiment, the verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache includes:
matching the first uploading credential information with the valid credential information stored in the cache;
if the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit, determining that the first uploading credential information is valid;
and if the valid credential information matched with the first uploading credential information does not exist, or the submitting time of the first uploading credential information is not within the valid period of the valid credential information matched with the hit, determining that the first uploading credential information is invalid.
In one embodiment, the status information includes an unembossed status or an uploaded uncommitted status; the determining the list of the image materials to be submitted according to the user information comprises the following steps:
determining the image material to be submitted according to the user information;
inquiring the uploading record of the image material to be submitted in the cache information;
determining state information of the image material to be submitted according to the uploading record of the image material to be submitted;
and generating a list of the image materials to be submitted according to the state information of the image materials to be submitted.
In one embodiment, after the generating the list of the image materials to be submitted according to the status information of the image materials to be submitted, the method further includes:
if the image material to be submitted is in the uploaded non-submitted state, generating a first thumbnail of the image material to be submitted according to the uploading record of the image material to be submitted;
and adding the first thumbnail in the list of the image materials to be submitted.
In one embodiment, the generating the first thumbnail of the image material to be submitted according to the upload record of the image material to be submitted includes:
Acquiring a necessity parameter of the image material to be submitted in a virtual resource extraction service;
determining the compression ratio of the image material to be submitted according to the necessity parameter;
and generating the first thumbnail according to the uploading record of the image material to be submitted and the compression ratio of the image material to be submitted.
In one embodiment, after the transmitting the list of image materials to be submitted to the first terminal, the method further includes:
receiving first indication information sent by the first terminal, wherein the first indication information is used for indicating the first terminal to finish uploading the image material;
generating a second thumbnail of the image material to be submitted, which is uploaded by the first terminal;
transmitting the first thumbnail and/or the second thumbnail to a second terminal so that the second terminal displays the first thumbnail and/or the second thumbnail;
responding to second indicating information sent by the second terminal, submitting the image material to be submitted to a service system corresponding to the virtual resource extraction service, wherein the second indicating information is used for indicating the image material to be submitted.
In one embodiment, after the sending the first thumbnail and the second thumbnail to the second terminal, the method further includes:
receiving third indication information sent by the second terminal, wherein the third indication information is used for indicating to re-upload the image material to be submitted;
sending second uploading credential information to the second terminal according to the third indication information, so that the second terminal refreshes the bar code information in the extraction page according to the second uploading credential information;
and storing the second uploading credential information as valid credential information in a cache.
In a second aspect, the present application further provides an image material uploading device. The device comprises:
the system comprises a receiving module, a first terminal and a second terminal, wherein the receiving module is used for receiving an acquisition request sent by the first terminal, the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by scanning bar code information in an extraction page corresponding to the virtual resource extraction service by the first terminal;
the processing module is used for verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading permission according to the verification result of the validity; if the first terminal has the uploading authority, determining a list of the image materials to be submitted according to the user information, wherein the list of the image materials comprises state information of the image materials to be submitted;
And the sending module is used for sending the list of the image materials to be submitted to the first terminal so that the first terminal can upload the image materials to be submitted according to the state information of the image materials to be submitted.
In one embodiment, the processing module is specifically configured to match the first upload credential information with valid credential information stored in the cache; if the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit, determining that the first uploading credential information is valid; and if the valid credential information matched with the first uploading credential information does not exist, or the submitting time of the first uploading credential information is not within the valid period of the valid credential information matched with the hit, determining that the first uploading credential information is invalid.
In one embodiment, the status information includes an unembossed status or an uploaded uncommitted status; the processing module is specifically configured to determine the image material to be submitted according to the user information; inquiring the uploading record of the image material to be submitted in the cache information; determining state information of the image material to be submitted according to the uploading record of the image material to be submitted; and generating a list of the image materials to be submitted according to the state information of the image materials to be submitted.
In one embodiment, the processing module is further configured to generate, if the image material to be submitted is in the uploaded non-submitted state, a first thumbnail of the image material to be submitted according to an upload record of the image material to be submitted; and adding the first thumbnail in the list of the image materials to be submitted.
In one embodiment, the processing module is specifically configured to obtain a necessary parameter of the image material to be submitted in a virtual resource extraction service; determining the compression ratio of the image material to be submitted according to the necessity parameter; and generating the first thumbnail according to the uploading record of the image material to be submitted and the compression ratio of the image material to be submitted.
In one embodiment, the receiving module is further configured to receive first indication information sent by the first terminal, where the first indication information is used to indicate that the first terminal finishes uploading the image material;
the processing module is further used for generating a second thumbnail of the image material to be submitted, which is uploaded by the first terminal;
the sending module is further configured to send the first thumbnail and/or the second thumbnail to a second terminal, so that the second terminal displays the first thumbnail and/or the second thumbnail; responding to second indicating information sent by the second terminal, submitting the image material to be submitted to a service system corresponding to the virtual resource extraction service, wherein the second indicating information is used for indicating the image material to be submitted.
In one embodiment, the receiving module is further configured to receive third indication information sent by the second terminal, where the third indication information is used to indicate to re-upload the image material to be submitted;
the sending module is further configured to send second uploading credential information to the second terminal according to the third indication information, so that the second terminal refreshes barcode information in the extraction page according to the second uploading credential information;
the processing module is further configured to store the second uploading credential information as valid credential information in a cache.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the uploading method of the image material in the first aspect when executing 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 method for uploading image material of the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the method for uploading image material according to the first aspect.
The method, the device, the equipment, the storage medium and the program product for uploading the image material comprise the steps of firstly receiving an acquisition request sent by a first terminal, wherein the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by the first terminal for scanning bar code information in an extraction page corresponding to the virtual resource extraction service. And then, verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading authority according to the verification result of the validity. If the first terminal has the uploading authority, determining a list of the image materials to be submitted according to the user information, wherein the list of the image materials comprises state information of the image materials to be submitted. And finally, sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted. Through this mode for first terminal can obtain first uploading voucher information through scanning bar code information to after first uploading voucher information verifies effectively, can carry out the uploading of image material, and need not to gather image material through installing high-speed image appearance equipment STM additional, and then improved image material's commit efficiency greatly.
Drawings
Fig. 1 is an application environment diagram of an image material uploading method provided in an embodiment of the present application;
fig. 2 is a flowchart of an uploading method of an image material according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another method for uploading an image material according to an embodiment of the present disclosure;
fig. 4 is a signaling interaction diagram of an uploading method of an image material according to an embodiment of the present application;
fig. 5 is a block diagram of an uploading device for image materials according to an embodiment of the present application;
fig. 6 is an internal structure diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The image material uploading method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the server 101 communicates with the first terminal 102 and the second terminal 103, respectively, via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 101 or may be placed on a cloud or other network server.
When the image material needs to be uploaded, the first terminal 102 may scan the barcode information in the corresponding extraction page of the virtual resource extraction service displayed on the second terminal 103, thereby obtaining the first uploading credential information. The first upload credential information is sent by the server 101 to the second terminal 103. Subsequently, the first terminal 102 sends an acquisition request to the server 101, where the acquisition request is used to request to acquire a list of image materials to be submitted corresponding to the virtual resource extraction service, and the acquisition request includes user information and first uploading credential information. Then, the server 101 performs validity verification on the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determines whether the first terminal has uploading authority according to the verification result of the validity. If the first terminal has the uploading authority, the server 101 determines a list of image materials to be submitted according to the user information, where the list of image materials includes status information of the image materials to be submitted. Finally, the server 101 sends the list of the image materials to be submitted to the first terminal 102, and the first terminal 102 uploads the image materials to be submitted according to the state information of the image materials to be submitted.
The first terminal 102 may be, but not limited to, various terminal devices with shooting components, such as personal computers, notebook computers, smart phones, tablet computers, internet of things devices, portable wearable devices, etc., and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, etc. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The second terminal 103 may be an STM. The server 101 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for uploading image materials is provided, and the method is applied to the server in fig. 1 or a channel gateway in the server, and is illustrated as an example, and includes S201-S204:
s201, receiving an acquisition request sent by a first terminal.
The acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to the virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by scanning bar code information in an extraction page corresponding to the virtual resource extraction service by the first terminal.
In some embodiments, when the user handles the virtual resource extraction service, in the virtual resource extraction service corresponding extraction page of the second terminal, a control for uploading the image material may be clicked to display barcode information in the virtual resource extraction service corresponding extraction page, and the first terminal may acquire the first uploading credential information and the user information by scanning the barcode information, so as to send an acquisition request to the server.
The virtual resource extraction service may be an aggregate extraction service, or may be another fund extraction service that needs to verify image data, which is not limited in the implementation of the present application. For example, if the virtual resource extraction service is an accumulation fund extraction service, the extraction page may be an accumulation fund extraction page, accordingly.
It should be understood that the embodiments of the present application are not limited to image materials, and in some embodiments, the image resources may include identification materials, labor relationship materials, house renting materials, and the like, and may be determined according to a service type of the virtual resource extraction service.
It should be understood that the embodiments of the present application are not limited to the user information and the first upload credential information, and the user information may include, for example, a user number, a data signature, a channel number, a transaction code, an extraction type, and the like. Illustratively, the first uploading credential information may be a Java network token (JWT) check credential.
Illustratively, the JWT verification credentials may be signed using a hierarchical message authentication code (Hierarchical Message Authentication Code, HMAC) algorithm or a public/private key pair of an asymmetric encryption algorithm (e.g., an RSA algorithm), thereby ensuring the authenticity and integrity of the JWT verification credentials.
In some embodiments, the user information and the first upload credential information may be carried on a uniform resource locator (Uniform Resource Locator, URL) in the acquisition request, as a parameter on the URL, or may be carried in a request header of a hypertext transfer protocol (Hypertext Transfer Protocol, HTTP). Accordingly, the server may extract the user information and the first upload credential information from the request header of the parameter or HTTP on the URL after receiving the acquisition request.
It should be understood that the embodiment of the present application also does not limit the type of barcode information, and the barcode information may include a two-dimensional code, a barcode, and the like. In some embodiments, the user information and the first upload credential information included in the barcode information may be sent by the server to the second terminal, and then generated by the second terminal under the trigger of the user.
In some embodiments, the valid upload time may be displayed in the corresponding extraction page of the virtual resource extraction service, where the valid upload time may be a valid period of the first upload credential information, so as to remind the user to upload the image material in time.
S202, verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading permission according to the verification result of the validity.
In this step, the server may perform validity verification on the first upload credential information according to the validity period of the valid credential information stored in the cache, and determine whether the first terminal has the uploading authority according to the verification result of the validity.
It should be understood that the embodiment of the present application does not limit how the server performs validity verification on the first uploading credential information according to the validity period of the valid credential information stored in the cache. In some implementations, the server may first match the first upload credential information with valid credential information stored in the cache. If the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit, the server determines that the first uploading credential information is valid. If the valid credential information matched with the first uploading credential information does not exist, or the submitting time of the first uploading credential information is not within the valid period of the valid credential information matched and hit, the server determines that the first uploading credential information is invalid.
The server may store the first upload credential information as valid credential information in the cache when generating the first upload credential information and transmitting the first upload credential information to the second terminal to generate the barcode information, and the server may set a validity period of the valid credential information. Then, after the server receives the acquisition request, the first uploading credential information in the acquisition request and the valid credential information in the cache may be matched, and whether the valid credential information identical to the first uploading credential information exists in the cache is determined.
If the cache does not have valid credential information identical to the first upload credential information, then it may be determined that valid credential information matching the first upload credential information does not exist, and the server may determine that the first upload credential information is invalid.
If the valid credential information which is the same as the first uploading credential information exists in the cache, the same valid credential information is the valid credential information which is matched and hit, and accordingly, whether the submitting time of the first uploading credential information is within the valid period of the valid credential information which is matched and hit can be further determined. If the submitting time of the first uploading credential information is not within the valid period of the valid credential information of the matching hit, the server may determine that the first uploading credential information is invalid. If the commit time of the first upload credential information is within the validity period of the valid credential information that matches the hit, the server may determine that the first upload credential information is valid.
In some embodiments, the validity period of the valid credential information may be 1 minute, 10 minutes, 30 minutes, or the like, which is not limited in the embodiments of the present application. The time of submitting the first uploading credential information may be a sending time of the obtaining request.
In some embodiments, if the verification result is that the first upload credential information is valid, it may be determined that the first terminal has the upload authority. If the verification result is that the first uploading credential information is invalid, it can be determined that the first terminal does not have the uploading authority.
In some embodiments, the server may also store user information, and for information security, after determining that the first terminal has the uploading authority, the server may further compare the user information in the acquisition request with the stored user information, and allow the subsequent sending of the list of image materials and the uploading of the image materials after the comparison is consistent.
S203, if the first terminal has the uploading authority, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted.
In this step, after determining whether the first terminal has the uploading authority, if the first terminal has the uploading authority, the server may determine the list of the image materials to be submitted according to the user information.
Wherein the status information includes an unreleased status or an uploaded unreleased status.
It should be understood that the embodiments of the present application do not limit how the server determines the list of image materials to be submitted according to the user information. In some embodiments, the server may first determine the image material to be submitted based on the user information. Secondly, the server can inquire the uploading record of the image material to be submitted in the cache information. And thirdly, the server determines the state information of the image material to be submitted according to the uploading record of the image material to be submitted. And finally, the server generates a list of the image materials to be submitted according to the state information of the image materials to be submitted.
For example, the user information may include an extraction type, where a mapping relationship exists between the extraction type and the image material to be submitted. The server may determine the image material to be submitted based on a mapping relationship between the extraction type and the image material to be submitted. For example, the user information may include a number of the image material to be submitted, and the server may directly determine the image material to be submitted based on the number of the image material to be submitted.
For example, if the server queries the cache for an upload record of the image material to be submitted, the server may determine that the image material to be submitted is in an uploaded non-submitted state. If the server does not query the uploading record of the image material to be submitted in the cache, the server can determine that the image material to be submitted is in an unoccupied state.
For example, the server may add an identification of the image material to be submitted and status information of the image material to be submitted to a list template to generate a list of image materials to be submitted.
In some embodiments, if the image material to be submitted is in the uploaded non-submitted state, the server may first generate a first thumbnail of the image material to be submitted according to the upload record of the image material to be submitted. Subsequently, the server may add the first thumbnail in the list of image materials to be submitted.
For example, different compression ratios may be employed for image materials to be submitted of different importance to ensure the transmission speed. The server may first obtain the necessary parameters of the image material to be submitted in the virtual resource extraction service. The server may then determine the compression ratio of the image material to be submitted based on the necessity parameter. And finally, the server generates a first thumbnail according to the uploading record of the image material to be submitted and the compression ratio of the image material to be submitted.
For example, the necessity parameter may include a first value and a second value, and the values of the necessity parameters of different image materials to be submitted may be preset. The necessity of the image material to be submitted corresponding to the first value is higher than that of the image material to be submitted corresponding to the second value. Accordingly, the server may set a first compression ratio and a second compression ratio, the first compression ratio being lower than the second compression ratio. For the image material to be submitted, the necessity parameter is a first value, the first thumbnail can be generated by adopting a first compression ratio for compression. For the image material to be submitted, the necessity parameter of which is the second value, the second compression ratio can be adopted for compression to generate the first thumbnail.
It should be noted that, the original image material for generating the first thumbnail is compressed, and is the image material extracted from the uploading record of the image material to be submitted.
In some embodiments, if the first terminal does not have the uploading authority, the server may send a prompt message to the first terminal to prompt that the first uploading credential information is wrong or overtime. The user can refresh the bar code information in the extracted page and then re-use the first terminal to scan the bar code information so as to re-acquire the user information and the first uploading certificate information. Then, the first terminal re-transmits an acquisition request to the server based on the re-acquired user information and the first upload credential information.
S204, sending the list of the image materials to be submitted to the first terminal, so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted.
In this step, after determining the list of image materials to be submitted, the server may send the list of image materials to be submitted to the first terminal. And then, the first terminal displays a list of the image materials to be submitted, and uploads the image materials to be submitted according to the state information of the image materials to be submitted.
In some embodiments, after displaying the list of image materials to be submitted, the user may call the shooting component of the first terminal to shoot the image materials, or select the image materials from the album of the first terminal as the image materials in the non-uploaded state, and upload the image materials in the non-uploaded state to the server.
In other embodiments, for image material in an uploaded uncommitted state, the user may determine whether modification is needed through the first thumbnail in the list of image material. If the user needs to modify, the user can also re-shoot through the shooting component of the first terminal or re-select from the album of the first terminal and then submit to the server again.
In this application, in order to ensure the uploading speed of the image material, the image material may be compressed and then uploaded in slices.
In some embodiments, after the server sends the list of image materials to be submitted to the first terminal, the first terminal may send first indication information to the server, where the first indication information is used to indicate that the first terminal completes uploading the image materials. And secondly, the server generates a second thumbnail of the image material to be submitted, which is uploaded by the first terminal. And the server sends the first thumbnail and/or the second thumbnail to the second terminal so that the second terminal displays the first thumbnail and/or the second thumbnail. And finally, responding to second indicating information sent by the second terminal, submitting the image material to be submitted to a service system corresponding to the virtual resource extraction service by the server, wherein the second indicating information is used for indicating the submitting of the image material to be submitted.
The first indication information is sent after a user clicks a completion control displayed on the first terminal. The second indication information is also sent after the user clicks a confirmation control displayed on the second terminal.
It should be understood that the compression manner of the second thumbnail is the same as that of the first thumbnail, which is not limited in the embodiment of the present application.
In some embodiments, after the server sends the first thumbnail and the second thumbnail to the second terminal, the second terminal may further send third indication information to the server, where the third indication information is used to indicate that the image material to be submitted is re-uploaded. And then, the server sends second uploading credential information to the second terminal according to the third indication information, so that the second terminal refreshes and extracts the bar code information in the page according to the second uploading credential information. And finally, the server stores the second uploading credential information as valid credential information in a cache.
The first indication information is sent after the user clicks a modification control displayed on the second terminal.
According to the image material uploading method, firstly, an acquisition request sent by a first terminal is received, the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by the first terminal scanning bar code information in an extraction page corresponding to the virtual resource extraction service. And then, verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading authority according to the verification result of the validity. If the first terminal has the uploading authority, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted. And finally, sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted. Through this mode for first terminal can obtain first uploading voucher information through scanning bar code information to after first uploading voucher information verifies effectively, can carry out the uploading of image material, and need not to gather image material through installing high-speed image appearance equipment STM additional, and then improved image material's commit efficiency greatly.
The following describes how the server verifies the validity of the first upload credential information. Fig. 3 is a flowchart illustrating another method for uploading an image material according to an embodiment of the present application. As shown in fig. 3, the uploading method of the image material is applied to a server, and includes S301-S309:
s301, receiving an acquisition request sent by a first terminal.
The acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to the virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by scanning bar code information in an extraction page corresponding to the virtual resource extraction service by the first terminal.
S302, determining whether valid credential information matched with the first uploading credential information exists.
If yes, S303 is executed, and if no, S304 is executed.
S303, determining whether the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit.
If yes, S306 is executed, and if no, S304 is executed.
S304, determining that the first uploading credential information is invalid.
S305, determining that the first terminal does not have the uploading authority.
S306, determining that the first uploading credential information is valid.
S307, determining that the first terminal has the uploading authority.
S308, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted.
S309, sending the list of the image materials to be submitted to the first terminal, so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted.
According to the image material uploading method, whether the first uploading credential information is valid is determined by determining whether valid credential information matched with the first uploading credential information exists in the cache and whether the submitting time of the first uploading credential information is within the valid period of the valid credential information matched with the hit, so that the uploading authority of the first terminal is determined, and information security is improved.
The following describes how the server submits the image material to the service system corresponding to the virtual resource extraction service after the first terminal uploads the image material to the server. Fig. 4 is a signaling interaction diagram of an uploading method of an image material according to an embodiment of the present application. As shown in fig. 4, the uploading method of the image material includes S401-S413:
S401, the first terminal scans bar code information in a corresponding extraction page of the virtual resource extraction service to obtain user information and first uploading certificate information.
S402, the first terminal sends an acquisition request to the server, wherein the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to the virtual resource extraction service, and the acquisition request comprises user information and first uploading credential information.
S403, the server verifies the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determines whether the first terminal has uploading authority according to the verification result of the validity.
S404, if the first terminal has the uploading authority, the server determines a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted.
S405, the server sends a list of image materials to be submitted to the first terminal.
S406, the first terminal displays a list of image materials to be submitted.
S407, the first terminal uploads the image material to be submitted to the server according to the state information of the image material to be submitted.
S408, the first terminal sends first indication information to the server, wherein the first indication information is used for indicating the first terminal to finish uploading the image material.
S409, the server generates a second thumbnail of the image material to be submitted, which is uploaded by the first terminal.
S410, the server sends the first thumbnail and/or the second thumbnail to the second terminal.
S411, the second terminal displays the first thumbnail and/or the second thumbnail.
And S412, the second terminal sends second indication information to the server, wherein the second indication information is used for indicating the submitting of the image material to be submitted.
S413, the server submits the image material to be submitted to a service system corresponding to the virtual resource extraction service.
According to the image material uploading method, firstly, an acquisition request sent by a first terminal is received, the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by the first terminal scanning bar code information in an extraction page corresponding to the virtual resource extraction service. And then, verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading authority according to the verification result of the validity. If the first terminal has the uploading authority, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted. And finally, sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted. Through this mode for first terminal can obtain first uploading voucher information through scanning bar code information to after first uploading voucher information verifies effectively, can carry out the uploading of image material, and need not to gather image material through installing high-speed image appearance equipment STM additional, and then improved image material's commit efficiency greatly.
It should be understood that, although the steps in the flowcharts related to the above embodiments 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 an image material uploading device for realizing the image material uploading method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the following specific limitation in the embodiment of the uploading device for one or more image materials may refer to the limitation of the uploading method for image materials, which is not repeated herein.
In one embodiment, as shown in fig. 5, an image material uploading apparatus 500 is provided, including: a receiving module 501, a processing module 502 and a transmitting module 503, wherein:
the receiving module 501 is configured to receive an acquisition request sent by a first terminal, where the acquisition request is used to request to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, and the acquisition request includes user information and first uploading credential information, where the first uploading credential information is acquired by the first terminal scanning barcode information in an extraction page corresponding to the virtual resource extraction service.
The processing module 502 is configured to perform validity verification on the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determine whether the first terminal has uploading authority according to a validity verification result; if the first terminal has the uploading authority, determining a list of image materials to be submitted according to the user information, wherein the list of image materials contains state information of the image materials to be submitted.
And the sending module 503 is configured to send the list of the image materials to be submitted to the first terminal, so that the first terminal uploads the image materials to be submitted according to the status information of the image materials to be submitted.
In one embodiment, the processing module 502 is specifically configured to match the first upload credential information with valid credential information stored in the cache; if the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit, determining that the first uploading credential information is valid; if the valid credential information matched with the first uploading credential information does not exist, or the submitting time of the first uploading credential information is not within the valid period of the valid credential information matched and hit, the first uploading credential information is determined to be invalid.
In one embodiment, the state information includes an unoccupied state or an uploaded uncommitted state; the processing module 502 is specifically configured to determine an image material to be submitted according to user information; inquiring uploading records of image materials to be submitted in the cache information; determining state information of the image material to be submitted according to the uploading record of the image material to be submitted; and generating a list of the image materials to be submitted according to the state information of the image materials to be submitted.
In one embodiment, the processing module 502 is further configured to generate a first thumbnail of the image material to be submitted according to an upload record of the image material to be submitted if the image material to be submitted is in an already-uploaded non-submitted state; a first thumbnail is added to the list of image materials to be submitted.
In one embodiment, the processing module 502 is specifically configured to obtain a necessity parameter of an image material to be submitted in a virtual resource extraction service; determining the compression ratio of the image material to be submitted according to the necessity parameter; and generating a first thumbnail according to the uploading record of the image material to be submitted and the compression ratio of the image material to be submitted.
In one embodiment, the receiving module 501 is further configured to receive first indication information sent by the first terminal, where the first indication information is used to indicate that the first terminal finishes uploading the image material.
The processing module 502 is further configured to generate a second thumbnail of the image material to be submitted, which is uploaded by the first terminal.
The sending module 503 is further configured to send the first thumbnail and/or the second thumbnail to the second terminal, so that the second terminal displays the first thumbnail and/or the second thumbnail; and responding to second indicating information sent by the second terminal, submitting the image material to be submitted to a service system corresponding to the virtual resource extraction service, wherein the second indicating information is used for indicating the submitting of the image material to be submitted.
In one embodiment, the receiving module 501 is further configured to receive third indication information sent by the second terminal, where the third indication information is used to indicate to re-upload the image material to be submitted.
The sending module 503 is further configured to send second uploading credential information to the second terminal according to the third indication information, so that the second terminal refreshes and extracts barcode information in the page according to the second uploading credential information.
The processing module 502 is further configured to store the second upload credential information as valid credential information in a cache.
All or part of the modules in the image material uploading device can be realized 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 for storing 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 is executed by a processor to implement a method of uploading image material.
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 application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, including a memory and a processor, where the memory stores a computer program, and the processor implements the method for uploading the image material when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method for uploading image material described above.
In one embodiment, a computer program product is provided, comprising a computer program that when executed by a processor implements the method for uploading image material described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments 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 the various 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 various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being 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 represent only a few embodiments of the present application, which are described in more detail and are not thereby to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (11)

1. An image material uploading method, comprising:
receiving an acquisition request sent by a first terminal, wherein the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by the first terminal by scanning bar code information in an extraction page corresponding to the virtual resource extraction service;
According to the validity period of the valid credential information stored in the cache, carrying out validity verification on the first uploading credential information, and determining whether the first terminal has uploading authority according to a verification result of the validity;
if the first terminal has the uploading authority, determining a list of the image materials to be submitted according to the user information, wherein the list of the image materials comprises state information of the image materials to be submitted;
and sending the list of the image materials to be submitted to the first terminal so that the first terminal uploads the image materials to be submitted according to the state information of the image materials to be submitted.
2. The method of claim 1, wherein verifying the validity of the first upload credential information based on the validity period of the valid credential information stored in the cache comprises:
matching the first uploading credential information with the valid credential information stored in the cache;
if the submitting time of the first uploading credential information is within the validity period of the valid credential information of the matching hit, determining that the first uploading credential information is valid;
And if the valid credential information matched with the first uploading credential information does not exist, or the submitting time of the first uploading credential information is not within the valid period of the valid credential information matched with the hit, determining that the first uploading credential information is invalid.
3. The method of claim 1, wherein the status information comprises an unreleased status or an uploaded unreleased status; the determining the list of the image materials to be submitted according to the user information comprises the following steps:
determining the image material to be submitted according to the user information;
inquiring the uploading record of the image material to be submitted in the cache information;
determining state information of the image material to be submitted according to the uploading record of the image material to be submitted;
and generating a list of the image materials to be submitted according to the state information of the image materials to be submitted.
4. A method according to claim 3, wherein after the generating of the list of image materials to be submitted from the status information of the image materials to be submitted, the method further comprises:
if the image material to be submitted is in the uploaded non-submitted state, generating a first thumbnail of the image material to be submitted according to the uploading record of the image material to be submitted;
And adding the first thumbnail in the list of the image materials to be submitted.
5. The method of claim 4, wherein generating the first thumbnail of the image material to be submitted based on the upload record of the image material to be submitted comprises:
acquiring a necessity parameter of the image material to be submitted in a virtual resource extraction service;
determining the compression ratio of the image material to be submitted according to the necessity parameter;
and generating the first thumbnail according to the uploading record of the image material to be submitted and the compression ratio of the image material to be submitted.
6. The method of claim 4, wherein after the transmitting the list of image materials to be submitted to the first terminal, the method further comprises:
receiving first indication information sent by the first terminal, wherein the first indication information is used for indicating the first terminal to finish uploading the image material;
generating a second thumbnail of the image material to be submitted, which is uploaded by the first terminal;
transmitting the first thumbnail and/or the second thumbnail to a second terminal so that the second terminal displays the first thumbnail and/or the second thumbnail;
Responding to second indicating information sent by the second terminal, submitting the image material to be submitted to a service system corresponding to the virtual resource extraction service, wherein the second indicating information is used for indicating the image material to be submitted.
7. The method of claim 6, wherein after the transmitting the first thumbnail and the second thumbnail to a second terminal, the method further comprises:
receiving third indication information sent by the second terminal, wherein the third indication information is used for indicating to re-upload the image material to be submitted;
sending second uploading credential information to the second terminal according to the third indication information, so that the second terminal refreshes the bar code information in the extraction page according to the second uploading credential information;
and storing the second uploading credential information as valid credential information in a cache.
8. An image material uploading device, the device comprising:
the system comprises a receiving module, a first terminal and a second terminal, wherein the receiving module is used for receiving an acquisition request sent by the first terminal, the acquisition request is used for requesting to acquire a list of image materials to be submitted corresponding to a virtual resource extraction service, the acquisition request comprises user information and first uploading credential information, and the first uploading credential information is acquired by scanning bar code information in an extraction page corresponding to the virtual resource extraction service by the first terminal;
The processing module is used for verifying the validity of the first uploading credential information according to the validity period of the valid credential information stored in the cache, and determining whether the first terminal has uploading permission according to the verification result of the validity; if the first terminal has the uploading authority, determining a list of the image materials to be submitted according to the user information, wherein the list of the image materials comprises state information of the image materials to be submitted;
and the sending module is used for sending the list of the image materials to be submitted to the first terminal so that the first terminal can upload the image materials to be submitted according to the state information of the image materials to be submitted.
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.
11. A computer program product comprising a computer program, 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.
CN202311402279.1A 2023-10-26 2023-10-26 Image material uploading method, device, equipment, storage medium and program product Pending CN117411871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402279.1A CN117411871A (en) 2023-10-26 2023-10-26 Image material uploading method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402279.1A CN117411871A (en) 2023-10-26 2023-10-26 Image material uploading method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN117411871A true CN117411871A (en) 2024-01-16

Family

ID=89488591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402279.1A Pending CN117411871A (en) 2023-10-26 2023-10-26 Image material uploading method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN117411871A (en)

Similar Documents

Publication Publication Date Title
CN110535660B (en) Evidence obtaining service system based on block chain
CN109067541B (en) Data verification method and device based on block chain and electronic equipment
US10402784B2 (en) Dynamic notary system
US20190088063A1 (en) Electronic voting system and control method
CN110489946B (en) Copyright authentication method, device, equipment and storage medium based on block chain
CN108234442B (en) Method, system and readable storage medium for acquiring contract
CN112804218B (en) Block chain-based data processing method, device, equipment and storage medium
CN110365711B (en) Multi-platform user identity association method and device, computer equipment and computer readable storage medium
CN111079197A (en) Audit result data storage method and device, electronic equipment and medium
US20230069988A1 (en) Generating electronic signatures
CN113704357A (en) Smart city data sharing method and system based on block chain
CN111523142B (en) Data processing method, device, electronic equipment and medium
US20230418984A1 (en) Artwork managing method, computer, and program
CN113129008A (en) Data processing method and device, computer readable medium and electronic equipment
CN112966309A (en) Service implementation method and device based on block chain
CN116962021A (en) Method, device, equipment and medium for user real name authentication in financial cooperative institution
CN117411871A (en) Image material uploading method, device, equipment, storage medium and program product
CN116366289A (en) Safety supervision method and device for remote sensing data of unmanned aerial vehicle
CN116233847A (en) Login method, login device, computer equipment and storage medium
Bergers et al. Dwh-dim: a blockchain based decentralized integrity verification model for data warehouses
KR102636695B1 (en) Real estate brokerage management server that processes electronic contracts for online real estate transactions and operating method thereof
CN114896313B (en) Data transmission method, device, equipment and medium
CN117040782A (en) Method, device, computer equipment and storage medium for merchant online account opening
CN110597826A (en) Data isolation method and device based on block chain network
CN117314661A (en) Accounting processing method, device, equipment, medium and product

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