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

Commit 75952f49 authored by jiangxiulong's avatar jiangxiulong

异常处理

parent 0645415c
...@@ -180,8 +180,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -180,8 +180,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
// 生成签名并请求 // 生成签名并请求
String result = shunfengSignUtils.generateSignatureAndRequest(hBody, "/public/order/v1/placeOrder"); String result = shunfengSignUtils.generateSignatureAndRequest(hBody, "/public/order/v1/placeOrder");
HashMap hashMap = JsonUtils.fromJson(result, HashMap.class);
System.out.println(result); System.out.println(result);
HashMap hashMap = new HashMap();
try {
hashMap = JsonUtils.fromJson(result, HashMap.class);
} catch (Exception e) {
return ResponseDto.failure(result);
}
if (null == hashMap.get("succ") || hashMap.get("succ").equals("fail")) { if (null == hashMap.get("succ") || hashMap.get("succ").equals("fail")) {
String msg = ""; String msg = "";
if (null == hashMap.get("succ")) { if (null == hashMap.get("succ")) {
......
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