Browse Source

修改 resultData 响应成功状态码为0

lyhzzz 3 years ago
parent
commit
23db29b8dd

+ 1 - 1
4dkankan-common-utils/src/main/java/com/fdkankan/common/response/ResultData.java

@@ -40,7 +40,7 @@ public class ResultData<T> implements Serializable {
         return ok("成功", data);
         return ok("成功", data);
     }
     }
     public static ResultData ok(String msg, Object data) {
     public static ResultData ok(String msg, Object data) {
-        return base(200, msg, data,true);
+        return base(0, msg, data,true);
     }
     }
 
 
     public static ResultData ok(int page,int pageSize,int total,Object data){
     public static ResultData ok(int page,int pageSize,int total,Object data){

+ 2 - 2
4dkankan-utils-fyun/src/main/java/com/fdkankan/fyun/oss/UploadToOssUtil.java

@@ -116,7 +116,7 @@ public class UploadToOssUtil {
 
 
 
 
 	public void upload(String filePath, String key1) {
 	public void upload(String filePath, String key1) {
-		log.info("开始上传文件 源路径:{},目标路径:{},point:{}" , filePath,key1,point);
+		log.info("开始上传文件 源路径:{},目标路径:{},type:{}" , filePath,key1,type);
 		if("oss".equals(type)){
 		if("oss".equals(type)){
 			OSSClient ossClient = new OSSClient(point, key, secrey);
 			OSSClient ossClient = new OSSClient(point, key, secrey);
 			try {
 			try {
@@ -200,7 +200,7 @@ public class UploadToOssUtil {
 	}
 	}
 
 
 	public void upload2(String filePath, String key1) {
 	public void upload2(String filePath, String key1) {
-		log.info("开始上传文件 源路径:{},目标路径:{},point:{}" , filePath,key1,point);
+		log.info("开始上传文件 源路径:{},目标路径:{},type:{}" , filePath,key1,type);
 		if("oss".equals(type)){
 		if("oss".equals(type)){
 			OSSClient ossClient = new OSSClient(point, key, secrey);
 			OSSClient ossClient = new OSSClient(point, key, secrey);
 			try {
 			try {