文件 过大 问题
This commit is contained in:
@@ -21,6 +21,7 @@ import com.czg.third.wechat.dto.resp.WechatQueryStateResp;
|
|||||||
import com.czg.utils.UploadFileUtil;
|
import com.czg.utils.UploadFileUtil;
|
||||||
import com.wechat.pay.java.core.Config;
|
import com.wechat.pay.java.core.Config;
|
||||||
import com.wechat.pay.java.core.cipher.PrivacyEncryptor;
|
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.FileUploadService;
|
||||||
import com.wechat.pay.java.service.file.model.FileUploadResponse;
|
import com.wechat.pay.java.service.file.model.FileUploadResponse;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -203,6 +204,8 @@ public class WechatEntryManager {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return uploadResponse.getMediaId();
|
return uploadResponse.getMediaId();
|
||||||
|
} catch (MalformedMessageException e) {
|
||||||
|
log.error("微信上传图片报错,URL:{}", url);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("微信上传图片报错,URL:{},错误信息:{}", url, e.getMessage(), e);
|
log.error("微信上传图片报错,URL:{},错误信息:{}", url, e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user