: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
@@ -47,14 +47,16 @@ public class COSImageupload {
returnImage.setImgSize(entry.getValue().length());
returnImage.setCode("200");
} catch (CosServiceException serverException) {
returnImage.setCode("400");
serverException.printStackTrace();
} catch (CosClientException clientException) {
returnImage.setCode("400");
clientException.printStackTrace();
}
}
}catch(Exception e){
e.printStackTrace();
returnImage.setCode("200");
returnImage.setCode("500");
}
return returnImage;
}