: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
@@ -53,7 +53,6 @@ public class KODOImageupload {
try {
for (Map.Entry<String, File> entry : fileMap.entrySet()) {
String ShortUID = SetText.getShortUuid();
java.text.DateFormat format1 = new java.text.SimpleDateFormat("MMddhhmmss");
file = entry.getValue();
try {
Response response = uploadManager.put(file,username + "/" + ShortUID + "." + entry.getKey(),upToken);
@@ -63,6 +62,7 @@ public class KODOImageupload {
returnImage.setImgSize(entry.getValue().length());
returnImage.setCode("200");
} catch (QiniuException ex) {
returnImage.setCode("400");
Response r = ex.response;
System.err.println(r.toString());
try {