leishankai
2019-06-12 e99b037391638941917a18358bbe62944d81560b
返回值默认处理
1 files modified
5 ■■■■ changed files
backend/archive-backStage/archive-web/src/main/java/com/changhong/archive/interceptor/JsonMessageConverter.java 5 ●●●● patch | view | raw | blame | history
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;
    }