文件 过大 问题

This commit is contained in:
2026-01-09 18:27:06 +08:00
parent 38f1dc9d1f
commit a6991905b8

View File

@@ -21,6 +21,7 @@ import com.czg.third.wechat.dto.resp.WechatQueryStateResp;
import com.czg.utils.UploadFileUtil;
import com.wechat.pay.java.core.Config;
import com.wechat.pay.java.core.cipher.PrivacyEncryptor;
import com.wechat.pay.java.core.exception.MalformedMessageException;
import com.wechat.pay.java.service.file.FileUploadService;
import com.wechat.pay.java.service.file.model.FileUploadResponse;
import lombok.extern.slf4j.Slf4j;
@@ -203,6 +204,8 @@ public class WechatEntryManager {
);
return uploadResponse.getMediaId();
} catch (MalformedMessageException e) {
log.error("微信上传图片报错URL{}", url);
} catch (Exception e) {
log.error("微信上传图片报错URL{},错误信息:{}", url, e.getMessage(), e);
}