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

Commit 2cb1caa2 authored by jiangxiulong's avatar jiangxiulong

Merge branch 'dev'

parents e62da195 0645415c
......@@ -182,8 +182,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
String result = shunfengSignUtils.generateSignatureAndRequest(hBody, "/public/order/v1/placeOrder");
HashMap hashMap = JsonUtils.fromJson(result, HashMap.class);
System.out.println(result);
if (hashMap.get("succ").equals("fail")) {
String msg = (String) hashMap.get("msg");
if (null == hashMap.get("succ") || hashMap.get("succ").equals("fail")) {
String msg = "";
if (null == hashMap.get("succ")) {
msg = result;
} else {
msg = (String) hashMap.get("msg");
}
return ResponseDto.failure(msg);
} else {
HashMap hashMapResult = (HashMap) hashMap.get("result");
......
......@@ -105,6 +105,7 @@ public class ShunfengSignUtils {
);
System.out.println("发送请求失败");
e.printStackTrace();
return e.getMessage();
} finally {
if (client != null) {
try {
......
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