|
|
@@ -320,6 +320,12 @@ public class WechatService implements WechatServiceInterface {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ // 微信 img_sec_check 限制 1MB,超过则跳过检测(fail-open)
|
|
|
+ if (imageBytes.length > 1024 * 1024) {
|
|
|
+ log.info("图片大小 {} 超过微信安全检测上限 1MB,跳过检测", imageBytes.length);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
String accessToken = getAccessToken();
|
|
|
String url = "https://api.weixin.qq.com/wxa/img_sec_check?access_token=" + accessToken;
|