From e99b037391638941917a18358bbe62944d81560b Mon Sep 17 00:00:00 2001
From: leishankai <835256719@qq.com>
Date: Wed, 12 Jun 2019 13:15:58 +0800
Subject: [PATCH] 返回值默认处理

---
 backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java b/backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java
index 025fdfe..e2cfc13 100644
--- a/backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java
+++ b/backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java
@@ -9,6 +9,7 @@
 import com.alibaba.fastjson.JSONObject;
 
 
+import com.changhong.archive.constant.demo.DemoConst;
 import com.changhong.archive.tools.ObjectTool;
 import org.springframework.http.HttpOutputMessage;
 import org.springframework.http.converter.HttpMessageNotWritableException;
@@ -64,7 +65,9 @@
 		 * 其它
 		 */
 		else{
-			bm.setRspDesc(e.getMessage());
+			bm.setRspCode(DemoConst.E10000);
+			bm.setRspDesc(DemoConst.E10000Msg);
+			//bm.setRspDesc(e.getMessage());
 		}
 		return bm;
 	}

--
Gitblit v1.8.0