:art:优化响应头和返回值判断逻辑

This commit is contained in:
hello-hao
2021-12-29 11:12:24 +08:00
parent b0cd5ca51f
commit a4855adbe6
11 changed files with 25 additions and 17 deletions
@@ -126,7 +126,7 @@ public class ClientService {
e.printStackTrace();
System.out.println("未获取到图片的MD5,成成UUID");
}
Msg fileMiME = TypeDict.FileMiME(file, uploadConfig.getSuffix());
Msg fileMiME = TypeDict.FileMiME(file);
if (!fileMiME.getCode().equals("200")) {
//非图像文本
msg.setCode("4009");