记得上下班打卡 | git大法好,push需谨慎

Commit 9b4f657c authored by jiangxiulong's avatar jiangxiulong

message

parent a8257bc5
...@@ -174,14 +174,19 @@ public class KylinOrderRefundAdminController extends BaseController { ...@@ -174,14 +174,19 @@ public class KylinOrderRefundAdminController extends BaseController {
} }
} catch (Exception e) { } catch (Exception e) {
String message = e.getMessage(); String message = e.getMessage();
return error(message); boolean error400 = message.contains("400");
/*String[] msg = e.getMessage().split(" "); boolean error401 = message.contains("401");
if (msg.length>0 && null != msg[3]) { if (error400) {
String[] msg = e.getMessage().split(" ");
if (msg.length > 0 && null != msg[3]) {
String msgStr = UnicodeUtil.toString(msg[3]); String msgStr = UnicodeUtil.toString(msg[3]);
Map msgMap = JsonUtils.fromJson(msgStr.replace("[", "").replace("]", ""), Map.class); Map msgMap = JsonUtils.fromJson(msgStr.replace("[", "").replace("]", ""), Map.class);
message = msgMap.get("message").toString(); message = msgMap.get("message").toString();
} }
return error(message);*/ } else if (error401) {
message = message + "无权限";
}
return error(message);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment