A unified management method and device for error reporting when sending image materials to multiple social media platforms at the same time

By receiving the image collection uploaded by users, obtaining the address collection, and building a binary data group to store response information, the upload failure problem caused by different image requirements on multiple social media platforms is solved, and the success rate and accuracy of image upload are improved.

CN119299414BActive Publication Date: 2025-03-11ONE NETWORK INTEROPERABILITY (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411844934.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-11
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

When the existing technology sends image materials at the same time on multiple social media platforms, it is impossible to effectively and uniformly manage the different requirements of each platform for image size, format and proportion, resulting in users being unable to successfully upload pictures at one time.

Method used

By receiving the image collection prepared by the user and obtaining its corresponding address collection, constructing the request parameters to send to multiple social media platforms, building a binary data group to store response information, dividing errors and supporting image collections, calculating image error rates, and performing image correction operations when the error rate exceeds the preset value.

Benefits of technology

It realizes unified management of error reporting when multiple social media platforms send image materials at the same time, improves the success rate and accuracy of image uploads, reduces unnecessary workload, and ensures the integrity of error messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299414B_ABST
    Figure CN119299414B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a unified management method, device and electronic device for errors when multiple social media platforms send picture materials at the same time, belonging to the field of data processing technology, the method comprising: obtaining an address set corresponding to a picture set P; sending a request parameter R to m social media platforms through a backend interface API (R); constructing a binary data set Es for storing the response information of the jth social media platform Mj to the address URLi of the i-th picture; calculating the picture error rate corresponding to the social media platform Pj based on the error information Ej and the support information Sj; calling a parameter parsing function Fj to perform parameter parsing on the error information Ej to obtain an error picture correction parameter Cg, and performing a correction operation on the pictures in the error picture set Pcj corresponding to the social media platform Pj based on the correction parameter Cg and the picture correction function Fg. The present invention can improve the error correction efficiency of sending pictures on multiple platforms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and electronic device for unified management of errors when multiple social media platforms simultaneously send picture materials. Background Art

[0002] Sending images to multiple social media platforms at the same time means uploading the same set of images to multiple social media platforms at the same time. This method is usually used in the following scenarios:

[0003] Content sharing: Companies or individuals hope to publish the latest product information, event promotions and other content simultaneously on multiple social media platforms to expand their influence and reach more audiences.

[0004] Content distribution: Content creators hope to reach different user groups through multiple platforms to increase the exposure and interactivity of their content.

[0005] Event synchronization: When holding online or offline events, organizers hope to publish event information and on-site photos on multiple platforms simultaneously so that participants and other followers can understand the progress of the event in real time.

[0006] In the process of unified management of errors when sending image materials to multiple social media platforms at the same time, the existing technology has the following problems:

[0007] Different platforms have different requirements for the size, width, height, format and ratio of each image. Therefore, when a user uploads multiple images, the degree of compliance of the various attributes of these images for different platforms is inconsistent, resulting in the user being unable to upload a complete set of images to multiple social media platforms at the same time.

[0008] The above problems become technical problems that need to be solved. Summary of the invention

[0009] In view of this, the embodiments of the present invention provide a method, device and electronic device for unified management of errors reported when multiple social media platforms send picture materials simultaneously, which at least partially solve the problems existing in the prior art.

[0010] In a first aspect, an embodiment of the present invention provides a unified management method for errors reported when multiple social media platforms simultaneously send image materials, including:

[0011] After receiving a set of pictures P={P1,P2,…Pn} that the user intends to upload to m social media platforms M at the same time, obtain the address set URL={URL1,URL2,…URLn} corresponding to the picture set P;

[0012] Constructing request parameters R={URL1, URL2, ... URLn}, and sending the request parameters R to m social media platforms through the backend interface API (R);

[0013] Construct a binary data set Es=[Sij,Eij] to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, where Sij represents the support information of the j-th social media platform for the i-th picture, and Eij represents the error information issued by the j-th social media platform for the i-th picture;

[0014] For the social media platform Pj, the error information Ej and support information Sj of all images are read from Es, and based on the error information Ej and support information Sj, the image set P is divided into an error image set Pcj and a support image set Psj, and the image error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated based on the error information Ej and support information Sj, where Fc is an error calculation function and j is less than or equal to m;

[0015] When the image error rate Er is greater than the preset value E0, the parameter parsing function Fj is called to perform parameter parsing on the error information Ej to obtain the error image correction parameter Cg, and based on the correction parameter Cg and the image correction function Fg, the images in the error image set Pcj corresponding to the social media platform Pj are corrected to form a corrected image set Pgj, and the corrected image set Pgj and the supporting image set Psj are sent to the social media platform Pj together.

[0016] According to a specific implementation of an embodiment of the present invention, after receiving a picture set P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M at the same time, obtaining an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P includes:

[0017] Select and upload images through the front-end interface so that each image can be sent to the server for processing;

[0018] After receiving the pictures, the server stores them in the specified location and sets a unique ID for each picture to form a picture set P = {P1, P2, ...Pn}.

[0019] According to a specific implementation of an embodiment of the present invention, after receiving a picture set P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M at the same time, obtaining an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P, further includes:

[0020] Determine the storage path of the image based on the configuration;

[0021] A relative path is constructed based on the storage path and file name, and a complete access URL is constructed based on the relative path and the server IP address.

[0022] According to a specific implementation of an embodiment of the present invention, constructing a request parameter R={URL1, URL2, ... URLn}, and sending the request parameter R to m social media platforms through a backend interface API (R) includes:

[0023] Prepare a list of all image URLs and pass it to the backend interface as part of the request parameters;

[0024] Send a POST request to the backend API. The body of the request is a JSON object that contains the contents of the image URL list.

[0025] According to a specific implementation of an embodiment of the present invention, the construction of a binary data set Es=[Sij, Eij] for storing the response information of the j-th social media platform Mj to the address URLi of the i-th picture includes:

[0026] Create a two-dimensional array Es of size n×m, where each element Es[i][j] is an array containing two components;

[0027] Call the backend API to obtain the response information of each platform for each image. The response information includes support information and error information.

[0028] Traverse each image i and each platform j, extract the support information Sij and error information Eij from the response, and store the extracted information in Es[i][j].

[0029] According to a specific implementation method of an embodiment of the present invention, based on the error information Ej and the support information Sj, the picture set P is divided into an error picture set Pcj and a support picture set Psj, and based on the error information Ej and the support information Sj, the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated, including:

[0030] Initialize two empty sets Pcj and Psj. Set Pcj is used to store images that failed to be uploaded, and Psj is used to store images that were successfully uploaded.

[0031] For each picture Pi in the picture set P and its corresponding response information Sij, Eij, perform the following judgment:

[0032] If Eij is not empty, add the picture Pi to the error picture set Pcj;

[0033] If Sij is not empty and Eij is empty, add the picture Pi to the supporting picture set Psj.

[0034] According to a specific implementation manner of an embodiment of the present invention, based on the error information Ej and the support information Sj, the picture set P is divided into an error picture set Pcj and a support picture set Psj, and the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated based on the error information Ej and the support information Sj, and further includes:

[0035] By calculating the number of non-empty entries in the error information Ej set, the number of images Ne that failed to be uploaded on platform Pj is counted;

[0036] By calculating the number of non-empty entries in the support information Sj set, the number of successfully uploaded images Ns is counted;

[0037] Calculate the image error rate Er:

[0038] .

[0039] According to a specific implementation of an embodiment of the present invention, the correction operation is performed on the pictures in the erroneous picture set Pcj corresponding to the social media platform Pj based on the correction parameter Cg and the picture correction function Fg to form a corrected picture set Pgj, including:

[0040] Create a new empty set Pgj to store the corrected pictures;

[0041] Traverse each picture Pi in the error picture set Pcj and its corresponding error information Eij and correction parameter Cgi;

[0042] For each erroneous image Pi, use the correction parameter Cgi and the image correction function Fg to perform a correction operation on the image Pi to obtain the corrected image Pgi;

[0043] Add the corrected picture Pgi to the corrected picture set Pgj.

[0044] In a second aspect, an embodiment of the present invention provides a unified management device for errors reported when multiple social media platforms simultaneously send image materials, including:

[0045] The acquisition module receives a set of pictures P={P1, P2, ...Pn} that the user intends to upload to m social media platforms M at the same time, and then obtains a set of addresses URL={URL1, URL2, ...URLn} corresponding to the picture set P;

[0046] A construction module constructs a request parameter R={URL1, URL2, ... URLn}, and sends the request parameter R to m social media platforms through a backend interface API (R);

[0047] A construction module is constructed to construct a binary data set Es=[Sij,Eij], which is used to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, where Sij represents the support information of the j-th social media platform for the i-th picture, and Eij represents the error information issued by the j-th social media platform for the i-th picture;

[0048] The reading module reads the error information Ej and support information Sj of all pictures from Es for the social media platform Pj, divides the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculates the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj, where Fc is an error calculation function and j is less than or equal to m;

[0049] The correction module, when the image error rate Er is greater than the preset value E0, calls the parameter parsing function Fj to perform parameter parsing on the error information Ej to obtain the error image correction parameter Cg, and based on the correction parameter Cg and the image correction function Fg, performs correction operations on the images in the error image set Pcj corresponding to the social media platform Pj to form a corrected image set Pgj, and sends the corrected image set Pgj and the supporting image set Psj to the social media platform Pj together.

[0050] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0051] at least one processor; and,

[0052] a memory communicatively connected to the at least one processor; wherein,

[0053] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the unified management method for errors reported when multiple social media platforms send image materials simultaneously in any of the first aspects or any of the implementations of the first aspect.

[0054] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the unified management method for errors reported when multiple social media platforms simultaneously send image materials in the aforementioned first aspect or any implementation method of the first aspect.

[0055] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the unified management method for errors reported when multiple social media platforms simultaneously send image materials in the aforementioned first aspect or any implementation method of the first aspect.

[0056] The unified management scheme for errors when multiple social media platforms simultaneously send image materials in an embodiment of the present invention includes: after receiving a set of images P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M simultaneously, obtaining the address set URL={URL1, URL2, ...URLn} corresponding to the image set P; constructing a request parameter R={URL1, URL2, ...URLn}, and sending the request parameter R to the m social media platforms through a backend interface API (R); constructing a binary metadata group Es=[Sij, Eij] for storing the response information of the j-th social media platform Mj to the address URLi of the ith image, Sij represents the support information of the j-th social media platform for the ith image, and Eij represents the error message issued by the j-th social media platform for the ith image; for the social media platform Pj, reading the error information Ej and support information of all images from Es. Support information Sj, based on the error information Ej and support information Sj, divide the picture set P into an error picture set Pcj and a support picture set Psj, calculate the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and support information Sj, Fc is the error calculation function, j is less than or equal to m; when the picture error rate Er is greater than the preset value E0, call the parameter parsing function Fj to perform parameter parsing on the error information Ej, obtain the error picture correction parameter Cg, based on the correction parameter Cg and the picture correction function Fg, perform correction operations on the pictures in the error picture set Pcj corresponding to the social media platform Pj, form a corrected picture set Pgj, and send the corrected picture set Pgj and the support picture set Psj to the social media platform Pj together. This solution adopts a method of storing the data of pictures in each platform and storing the error information of each picture corresponding to each platform separately, that is, dynamically updating the storage of the platform picture address, and only adding the picture error information after the detection is successful, reducing unnecessary workload and ensuring the integrity of the picture error information. The corresponding error information can also be counted based on each dimension. Since the error information summarized in each dimension is not stored, the error information of each dimension depends entirely on the user's operation on the image. The error information of each dimension is calculated in real time, which greatly improves the accuracy of the error information. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A schematic flow chart of a unified management method for errors reported when multiple social media platforms simultaneously send picture materials, provided by an embodiment of the present invention;

[0059] Figure 2 A flowchart of another unified management method for errors when sending picture materials simultaneously on multiple social media platforms provided by an embodiment of the present invention;

[0060] Figure 3 A schematic diagram of the structure of a unified management device for errors reported when multiple social media platforms simultaneously send picture materials, provided by an embodiment of the present invention;

[0061] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0063] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0064] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0065] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0066] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0067] The disclosed embodiment provides a unified management method for errors when multiple social media platforms send picture materials simultaneously. The unified management method for errors when multiple social media platforms send picture materials simultaneously provided by the embodiment can be executed by a computing device, which can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal device, etc.

[0068] See also Figure 1 and Figure 2 The present disclosure provides a unified management method for errors when multiple social media platforms send picture materials at the same time, including:

[0069] S101, after receiving a picture set P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M simultaneously, obtain an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P.

[0070] After receiving a set of pictures P = {P1, P2, ... Pn} that a user is going to upload to m social media platforms M at the same time, the process of obtaining the address set URL = {URL1, URL2, ... URLn} corresponding to the picture set P can be divided into the following steps:

[0071] Users upload image files through the front-end interface, and the back-end server receives these image files and stores them in a directory on the server.

[0072] For each uploaded image Pi, a unique access address URLi is generated. These addresses can be absolute paths on the server or public access links generated by CDN (Content Distribution Network).

[0073] Specifically, the front end can use an HTML form to obtain multiple image files selected by the user, use JavaScript to capture the form submission event, and send a POST request to the backend server through the FetchAPI.

[0074] The backend can use multer middleware to process file uploads, set the file storage location and file name generation rules, process upload requests, save files and generate access addresses, and return a JSON response containing all image access addresses.

[0075] Through the above steps, the picture set P uploaded by the user can be efficiently received and the corresponding address set URL can be generated.

[0076] S102, constructing request parameters R={URL1, URL2, ... URLn}, and sending the request parameters R to m social media platforms through a backend interface API (R).

[0077] After obtaining the address set URL={URL1, URL2, ...URLn} corresponding to the picture set P, it is necessary to construct a request parameter R, which contains the addresses of all pictures. The request parameter R is a list or array containing the addresses of all pictures.

[0078] The backend provides an API interface for sending image URLs to multiple social media platforms. The definition of this interface is as follows:

[0079] API interface: POST / api / sendToSocialMedia.

[0080] Request body: The request body should contain the following fields:

[0081] platforms: A list containing the names of the target social media platforms.

[0082] urls: A list containing image URLs, for example ["URL1","URL2","URL3"].

[0083] Send a POST request to the backend API interface through an HTTP client (such as Postman, curl or other HTTP libraries). The request body contains the constructed request parameter R and the target social media platform list.

[0084] After receiving the request, the backend will parse the platforms and urls fields in the request body, and call the API interface of the corresponding social media platform based on this information to send the image address to the specified platform.

[0085] In the process of sending the request parameter R to the m social media platforms through the backend interface API (R), the user can enter keywords in the filter box to simultaneously filter multiple social media platforms, thereby quickly generating m social media platforms. Specifically, the following steps can be included:

[0086] S1021, obtaining the original social media platform value list Ve={Ve1, Ve2,..., Vem} of all social media platforms A={a1, a2,..., an} contained in the filter box at one time, and constructing a ternary filtering function group Fs={H(Ve), P(Ve), R(Ve)} to sort the original social media platform value list Ve to obtain a standard social media platform value list Va={Va1, Va2,..., Vam}, where H(Ve)=log(1+f(Ve)) represents the popularity score of the social media platform value Ve, f(Ve) is the usage frequency of Ve in the past preset time period, P(Ve) represents the user's preference score for the social media platform value Ve, and R(Ve) represents the relevance score of the social media platform value Ve.

[0087] S1022, monitor the user's input content S in the input box in real time, and construct a matching vector Pt=[Sm(Va,S),M(Va,S),|S|,T0] to match the input content S with the standard social media platform value list Va to obtain a matching degree M(Va,S)=Fp(Pt), where Sm(Va) is the similarity score between Va and S, M(Va,S) represents the matching degree between the social media platform value Va and the input string S, |S| represents the length of the input string, T0 is a preset threshold, and Fp is a matching degree calculation function.

[0088] You can set the calculation formula to calculate the similarity score Sm(Va,S):

[0089]

[0090] TF-IDF stands for term frequency-inverse document frequency. Based on the matching degree between the social media platform value Va and the input content S, the matching degree M(Va,S) is calculated. Finally, a preset threshold T0 is set to determine whether the matching degree meets the acceptable standard.

[0091] A matching degree calculation function Fp(Pt) can be defined to calculate the final matching degree M(Va,S) according to the matching vector Pt:

[0092]

[0093] α1, β2, γ2, δ2 are weight coefficients, Lmax is the maximum input length, I(|S|≥T0) is the indicator function, which returns 1 if |S|≥T0, otherwise returns 0.

[0094] S1023, according to the calculated matching degree M(Va,S), the input content S is classified into the corresponding social media platform name, and the drop-down box list is updated in descending order according to the matching degree, and the matched social media platform values ​​are aggregated and displayed in units of social media platform names, and a click event is bound to each social media platform value. The click event record format is E={aj,Vaj,t,W(Vaj)}, aj represents the jth social media platform, Vaj represents the social media platform value of the jth social media platform, t represents the click time, W(Vaj) represents the dynamic adjustment value of the jth social media platform value, W(Vaj)=λ*F(Vaj)+(1-λ)*C(Vaj), C(Vaj) is the impact value of the user's historical selection behavior on Vaj, F(Vaj) is the impact value of the jth social media platform calculated based on the ternary filter function group Fs, and λ is the adjustment coefficient.

[0095] S1024, when it is detected that the user clicks on a social media platform value, the user's click behavior E is recorded, and the user selection state set U is updated according to the clicked social media platform value Va and its corresponding social media platform name a. If Va is not in U, Va is added to U, U=U∪{(a,Va)}; if Va is already in U, Va is removed from U, U=U\{(a,Va)}, where \ represents a removal operation;

[0096] S1025, after the user triggers the confirmation operation, all selected social media platform values ​​are collected, and the comprehensive weights of the selected social media platform values ​​under each social media platform are calculated using the multi-factor comprehensive evaluation model G(a), and the social media platform values ​​selected by the user are aggregated based on the social media platform name, and the aggregated data P={(a1,G(a1)),(a2,G(a2)),...,(al,G(al))} is submitted to the backend interface for search and filtering operations.

[0097] Among them, the multi-factor comprehensive evaluation model G(a) is expressed as:

[0098]

[0099] It is the sum of the products of the weights and popularity scores of all selected social media platforms. It is the sum of the weights of all selected social media platform values.

[0100] Through the above steps, m social media platforms can be quickly selected, and the image addresses can be efficiently sent to multiple social media platforms, thereby realizing the function of publishing image materials on multiple platforms simultaneously.

[0101] S103, construct a binary data group Es=[Sij,Eij], which is used to store the response information of the j-th social media platform Mj to the address URLi of the ith image, Sij represents the support information of the j-th social media platform for the ith image, and Eij represents the error message issued by the j-th social media platform for the ith image.

[0102] Constructing a binary data set Es = [Sij, Eij] to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture can help manage and analyze the upload results of each picture on different platforms, which can include the following steps:

[0103] Initialize the binary data array Es, which is a two-dimensional array in which each element is a sub-array containing two fields.

[0104] Sij: represents the support information of the j-th social media platform Mj for the i-th picture.

[0105] Eij: represents the wrong information of the j-th social media platform Mj for the i-th picture.

[0106] For each image URLi and each social media platform Mj, record the response information after uploading. If the upload is successful, record the support information Sij. If the upload fails, record the error information Eij.

[0107] Specifically, a two-dimensional array Es can be created with a size of n×m, where n is the number of pictures and m is the number of social media platforms. Each element Es[i][j] is a subarray containing two fields, and the initial value can be set to empty.

[0108] For each image URLi and each social media platform Mj:

[0109] Send an upload request, and update Es[i][j] according to the response result. If the upload is successful, set Sij to the support information in the response. If the upload fails, set Eij to the error information in the response.

[0110] Through the above steps, a binary data set Es can be constructed to store the response information of each image on different social media platforms. This helps with subsequent error handling and data analysis to ensure that the image can be successfully uploaded to the target platform.

[0111] S104, for the social media platform Pj, read the error information Ej and support information Sj of all images from Es, and based on the error information Ej and support information Sj, divide the image set P into an error image set Pcj and a support image set Psj, and calculate the image error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and support information Sj, where Fc is the error calculation function and j is less than or equal to m.

[0112] The error picture set Pcj and the support picture set Psj may be initialized. The error picture set Pcj is used to store pictures that failed to be uploaded, and the support picture set Psj is used to store pictures that were successfully uploaded.

[0113] Traverse the image set P, and for each image Pi, read the response information Sij and Eij of the j-th social media platform Pj from Es. For storing error information Ej, collect all non-empty Eij into Ej, and for storing support information Sj, collect all non-empty Sij into Sj.

[0114] Add all the images Pi whose Eij is not empty to the error image set Pcj, and add all the images Pi whose Sij is not empty to the support image set Psj.

[0115] By calculating the number of non-empty entries in the error information Ej set, the number of images Ne that failed to be uploaded on platform Pj is counted;

[0116] By calculating the number of non-empty entries in the support information Sj set, the number of successfully uploaded images Ns is counted;

[0117] Calculate the image error rate Er:

[0118] .

[0119] Through the above steps, the error information Ej and support information Sj of all images can be read from the binary data set Es, and based on this information, the image set P is divided into the error image set Pcj and the support image set Psj, and finally the image error rate Er corresponding to the social media platform Pj is calculated. This method helps to better manage and analyze the results of image uploads and ensure that the images can be successfully uploaded to the target platform.

[0120] S105, when the image error rate Er is greater than the preset value E0, the parameter parsing function Fj is called to perform parameter parsing on the error information Ej to obtain the error image correction parameter Cg, and based on the correction parameter Cg and the image correction function Fg, the images in the error image set Pcj corresponding to the social media platform Pj are corrected to form a corrected image set Pgj, and the corrected image set Pgj and the supporting image set Psj are sent to the social media platform Pj together.

[0121] When the image error rate Er is greater than a preset value E0, it is necessary to perform correction operations on the erroneous images to improve the upload success rate.

[0122] The image error rate Er can be checked. If Er>E0, correction is required. The parameter parsing function Fj can be called to parse the error information Ej and extract useful correction parameters Cg. The error information Ej may contain multiple types of errors, such as incorrect image format, size that does not meet requirements, network problems, etc. The parameter parsing function Fj needs to identify these error types and generate corresponding correction parameters Cg.

[0123] Use the correction parameter Cg to correct each image in the error image set Pcj. According to the correction parameter Cg, the operations that may be required include adjusting the image size, converting the image format, repairing metadata, etc. Collect all corrected images into a new set Pgj. Merge the corrected image set Pgj and the supporting image set Psj. Send the merged image set to the social media platform Pj.

[0124] Through the above steps, when the image error rate exceeds the preset value, the error information can be automatically parsed, correction parameters can be generated, and the error images can be corrected, and finally the corrected images and successfully uploaded images can be sent to the social media platform together. This method helps to improve the success rate of image uploads and ensure that the content can be successfully published on multiple platforms.

[0125] See also Figure 2 The present invention also provides another unified management method for errors when multiple image materials are posted on multiple social media platforms at the same time, including:

[0126] 1. After the user successfully uploads the picture, obtain the address of n pictures uploaded by the user, and store the addresses of n pictures in the corresponding fields of each platform.

[0127] 2. Use the addresses of n pictures to uniformly request the backend interface to detect the support status of n pictures on various platforms, and store the data returned by the backend in localStorage. Before the detection interface returns the result, the user is prompted that the detection is in progress and the submit button is not clickable.

[0128] 3. Send a notification that the detection is complete. When displaying, different platforms use the address of a single image and the information of the current platform to find the error information of the current image on the current platform in the data stored in localStorage and display it to the user.

[0129] 4. When a user deletes an image on a single platform, he only needs to delete the address corresponding to the image in the corresponding field of each platform. There is no need to delete the error information of the platform corresponding to the image in localStorage. This can reduce some work and prevent users from adding the current image back again.

[0130] 5. Summarize all image error messages on the current platform in multiple dimensions.

[0131] For the final submit button:

[0132] Determine whether each image on each platform has error information one by one. If so, summarize the corresponding prompts, then the submit button cannot be clicked, and the summarized prompts will be displayed

[0133] Tips for a single platform:

[0134] Use all the image addresses stored on the current platform to find the error information of the current platform corresponding to each image on the current platform in localStorage

[0135] 6. After the user completes the processing and clicks the submit button, delete all the image error information stored in localStorage after the message is sent successfully.

[0136] This method uses a method of storing the data of images in each platform and storing the error information of each platform separately, that is, dynamically updating the storage of the platform image address, and adding the error information of the image only after the detection is successful, reducing unnecessary workload and ensuring the integrity of the image error information. The corresponding error information can also be counted based on each dimension. Since the error information summarized in each dimension is not stored, the error information of each dimension depends entirely on the user's operation on the image. The error information of each dimension is calculated in real time, which greatly improves the accuracy of the error information.

[0137] According to a specific implementation of an embodiment of the present invention, after receiving a picture set P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M at the same time, obtaining an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P includes:

[0138] Select and upload images through the front-end interface so that each image can be sent to the server for processing;

[0139] After receiving the pictures, the server stores them in the specified location and sets a unique ID for each picture to form a picture set P = {P1, P2, ...Pn}.

[0140] According to a specific implementation of an embodiment of the present invention, after receiving a picture set P={P1, P2, ...Pn} that a user intends to upload to m social media platforms M at the same time, obtaining an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P, further includes:

[0141] Determine the storage path of the image based on the configuration;

[0142] A relative path is constructed based on the storage path and file name, and a complete access URL is constructed based on the relative path and the server IP address.

[0143] According to a specific implementation of an embodiment of the present invention, constructing a request parameter R={URL1, URL2, ... URLn}, and sending the request parameter R to m social media platforms through a backend interface API (R) includes:

[0144] Prepare a list of all image URLs and pass it to the backend interface as part of the request parameters;

[0145] Send a POST request to the backend API. The body of the request is a JSON object that contains the contents of the image URL list.

[0146] According to a specific implementation of an embodiment of the present invention, the construction of a binary data set Es=[Sij, Eij] for storing the response information of the j-th social media platform Mj to the address URLi of the i-th picture includes:

[0147] Create a two-dimensional array Es of size n×m, where each element Es[i][j] is an array containing two components;

[0148] Call the backend API to obtain the response information of each platform for each image. The response information includes support information and error information.

[0149] Traverse each image i and each platform j, extract the support information Sij and error information Eij from the response, and store the extracted information in Es[i][j].

[0150] According to a specific implementation method of an embodiment of the present invention, based on the error information Ej and the support information Sj, the picture set P is divided into an error picture set Pcj and a support picture set Psj, and based on the error information Ej and the support information Sj, the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated, including:

[0151] Initialize two empty sets Pcj and Psj. Set Pcj is used to store images that failed to be uploaded, and Psj is used to store images that were successfully uploaded.

[0152] For each picture Pi in the picture set P and its corresponding response information Sij, Eij, perform the following judgment:

[0153] If Eij is not empty, add the picture Pi to the error picture set Pcj;

[0154] If Sij is not empty and Eij is empty, add the picture Pi to the supporting picture set Psj.

[0155] According to a specific implementation manner of an embodiment of the present invention, based on the error information Ej and the support information Sj, the picture set P is divided into an error picture set Pcj and a support picture set Psj, and the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated based on the error information Ej and the support information Sj, and further includes:

[0156] By calculating the number of non-empty entries in the error information Ej set, the number of images Ne that failed to be uploaded on platform Pj is counted;

[0157] By calculating the number of non-empty entries in the support information Sj set, the number of successfully uploaded images Ns is counted;

[0158] Calculate the image error rate Er:

[0159] .

[0160] According to a specific implementation of an embodiment of the present invention, the correction operation is performed on the pictures in the erroneous picture set Pcj corresponding to the social media platform Pj based on the correction parameter Cg and the picture correction function Fg to form a corrected picture set Pgj, including:

[0161] Create a new empty set Pgj to store the corrected pictures;

[0162] Traverse each picture Pi in the error picture set Pcj and its corresponding error information Eij and correction parameter Cgi;

[0163] For each erroneous image Pi, use the correction parameter Cgi and the image correction function Fg to perform correction operations on the image Pi to obtain the corrected image Pgi;

[0164] Add the corrected picture Pgi to the corrected picture set Pgj.

[0165] Corresponding to the above method embodiment, see Figure 3 The embodiment of the present invention further discloses a unified management device 30 for managing errors when multiple social media platforms send picture materials simultaneously, comprising:

[0166] The acquisition module 301 receives a set of pictures P={P1, P2, ...Pn} that the user intends to upload to m social media platforms M at the same time, and then acquires a set of addresses URL={URL1, URL2, ...URLn} corresponding to the set of pictures P;

[0167] Construction module 302, constructing request parameters R={URL1, URL2, ... URLn}, and sending the request parameters R to m social media platforms through the backend interface API (R);

[0168] Construction module 303, constructing a binary data group Es=[Sij,Eij], which is used to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, where Sij represents the support information of the j-th social media platform for the i-th picture, and Eij represents the error information sent by the j-th social media platform for the i-th picture;

[0169] The reading module 304 reads the error information Ej and the support information Sj of all the pictures from Es for the social media platform Pj, divides the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculates the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj, where Fc is an error calculation function and j is less than or equal to m;

[0170] Correction module 305, when the image error rate Er is greater than the preset value E0, calls the parameter parsing function Fj to perform parameter parsing on the error information Ej to obtain the error image correction parameter Cg, and based on the correction parameter Cg and the image correction function Fg, performs correction operations on the images in the error image set Pcj corresponding to the social media platform Pj to form a corrected image set Pgj, and sends the corrected image set Pgj and the supporting image set Psj to the social media platform Pj together.

[0171] See also Figure 4 The embodiment of the present invention further provides an electronic device 60, the electronic device comprising:

[0172] at least one processor; and,

[0173] a memory communicatively connected to the at least one processor; wherein,

[0174] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the unified management method for errors when multiple social media platforms send picture materials simultaneously in the aforementioned method embodiment.

[0175] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the aforementioned method embodiment.

[0176] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes a unified management method for errors reported when multiple social media platforms simultaneously send image materials in the aforementioned method embodiment.

[0177] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 60 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

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

[0179] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, a gage, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 60 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.

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

[0181] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A unified management method for errors when multiple social media platforms send picture materials simultaneously, characterized in that: include: After receiving a set of pictures P={P1,P2,…Pn} that the user intends to upload to m social media platforms M at the same time, obtain the address set URL={URL1,URL2,…URLn} corresponding to the picture set P; Constructing request parameters R={URL1, URL2, ... URLn}, and sending the request parameters R to m social media platforms through the backend interface API (R); Construct a binary data set Es=[Sij,Eij] to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, where Sij represents the support information of the j-th social media platform for the i-th picture, and Eij represents the error information issued by the j-th social media platform for the i-th picture; For the social media platform Pj, the error information Ej and support information Sj of all images are read from Es, and based on the error information Ej and support information Sj, the image set P is divided into an error image set Pcj and a support image set Psj, and the image error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj is calculated based on the error information Ej and support information Sj, where Fc is an error calculation function and j is less than or equal to m; When the image error rate Er is greater than a preset value E0, the parameter parsing function Fj is called to perform parameter parsing on the error information Ej to obtain an error image correction parameter Cg, and based on the correction parameter Cg and the image correction function Fg, correction operations are performed on the images in the error image set Pcj corresponding to the social media platform Pj to form a corrected image set Pgj, and the corrected image set Pgj and the support image set Psj are sent to the social media platform Pj together; in The method of dividing the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculating the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj, comprises: Initialize two empty sets Pcj and Psj. Set Pcj is used to store images that failed to be uploaded, and Psj is used to store images that were successfully uploaded. For each picture Pi in the picture set P and its corresponding response information Sij, Eij, perform the following judgment: If Eij is not empty, add the picture Pi to the error picture set Pcj; If Sij is not empty and Eij is empty, add the picture Pi to the supporting picture set Psj.

2. The method according to claim 1, characterized in that After receiving the picture set P={P1, P2, ...Pn} that the user intends to upload to m social media platforms M at the same time, obtaining the address set URL={URL1, URL2, ...URLn} corresponding to the picture set P, including: Select and upload images through the front-end interface so that each image can be sent to the server for processing; After receiving the pictures, the server stores them in the specified location and sets a unique ID for each picture to form a picture set P = {P1, P2, ...Pn}.

3. The method according to claim 2, characterized in that After receiving a picture set P={P1, P2, ...Pn} that the user intends to upload to m social media platforms M at the same time, obtaining an address set URL={URL1, URL2, ...URLn} corresponding to the picture set P, further comprising: Determine the storage path of the image based on the configuration; A relative path is constructed based on the storage path and file name, and a complete access URL is constructed based on the relative path and the server IP address.

4. The method according to claim 3, characterized in that The constructing request parameter R={URL1, URL2, ... URLn}, and sending the request parameter R to m social media platforms through the backend interface API (R), includes: Prepare a list of all image URLs and pass it to the backend interface as part of the request parameters; Send a POST request to the backend API. The body of the request is a JSON object that contains the contents of the image URL list.

5. The method according to claim 4, characterized in that The binary data set Es=[Sij,Eij] is constructed to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, including: Create a two-dimensional array Es of size n×m, where each element Es[i][j] is an array containing two components; Call the backend API to obtain the response information of each platform for each image. The response information includes support information and error information. Traverse each image i and each platform j, extract the support information Sij and error information Eij from the response, and store the extracted information in Es[i][j].

6. The method according to claim 1, characterized in that The method further includes dividing the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculating the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj. By calculating the number of non-empty entries in the error information Ej set, the number of images Ne that failed to be uploaded on platform Pj is counted; By calculating the number of non-empty entries in the support information Sj set, the number of successfully uploaded images Ns is counted; Calculate the image error rate Er: 。 7. The method according to claim 6, characterized in that The correcting operation is performed on the pictures in the erroneous picture set Pcj corresponding to the social media platform Pj based on the correction parameter Cg and the picture correction function Fg to form a corrected picture set Pgj, including: Create a new empty set Pgj to store the corrected pictures; Traverse each picture Pi in the error picture set Pcj and its corresponding error information Eij and correction parameter Cgi; For each erroneous image Pi, use the correction parameter Cgi and the image correction function Fg to perform a correction operation on the image Pi to obtain the corrected image Pgi; Add the corrected picture Pgi to the corrected picture set Pgj.

8. A unified management device for errors when multiple social media platforms send picture materials simultaneously, characterized in that: include: The acquisition module receives a set of pictures P={P1, P2, ...Pn} that the user intends to upload to m social media platforms M at the same time, and then obtains a set of addresses URL={URL1, URL2, ...URLn} corresponding to the picture set P; A construction module constructs a request parameter R={URL1, URL2, ... URLn}, and sends the request parameter R to m social media platforms through a backend interface API (R); A construction module is constructed to construct a binary data set Es=[Sij,Eij], which is used to store the response information of the j-th social media platform Mj to the address URLi of the i-th picture, where Sij represents the support information of the j-th social media platform for the i-th picture, and Eij represents the error information issued by the j-th social media platform for the i-th picture; The reading module reads the error information Ej and support information Sj of all pictures from Es for the social media platform Pj, divides the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculates the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj, where Fc is an error calculation function and j is less than or equal to m; The correction module, when the image error rate Er is greater than a preset value E0, calls the parameter parsing function Fj to perform parameter parsing on the error information Ej to obtain an error image correction parameter Cg, performs correction operations on the images in the error image set Pcj corresponding to the social media platform Pj based on the correction parameter Cg and the image correction function Fg to form a corrected image set Pgj, and sends the corrected image set Pgj and the support image set Psj to the social media platform Pj together; in The method of dividing the picture set P into an error picture set Pcj and a support picture set Psj based on the error information Ej and the support information Sj, and calculating the picture error rate Er=Fc(Ej,Sj) corresponding to the social media platform Pj based on the error information Ej and the support information Sj, comprises: Initialize two empty sets Pcj and Psj. Set Pcj is used to store images that failed to be uploaded, and Psj is used to store images that were successfully uploaded. For each picture Pi in the picture set P and its corresponding response information Sij, Eij, perform the following judgment: If Eij is not empty, add the picture Pi to the error picture set Pcj; If Sij is not empty and Eij is empty, add the picture Pi to the supporting picture set Psj.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the unified management method for errors reported when multiple social media platforms send image materials simultaneously as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for sending messages on multiple social media platforms through one key

    CN117155891A

  • Media sharing room recommendation method and device, equipment, medium and program product

    CN118118196A