Commit 59596ba2 authored by qinxunjia's avatar qinxunjia

修改描述

parent 4651db99
...@@ -89,7 +89,7 @@ public class BgySmsServiceImpl implements BgySmsService { ...@@ -89,7 +89,7 @@ public class BgySmsServiceImpl implements BgySmsService {
if (err.contains("成功")) { if (err.contains("成功")) {
return new CLBizResponse(ResponseCode.SUCCESS); return new CLBizResponse(ResponseCode.SUCCESS);
} }
return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), err); return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), StringUtils.isNotBlank(err) ? "碧桂园短信发送接口返回:" + err : "碧桂园短信发送接口返回空");
} else { } else {
return new CLBizResponse(ResponseCode.SUCCESS); return new CLBizResponse(ResponseCode.SUCCESS);
} }
...@@ -121,7 +121,7 @@ public class BgySmsServiceImpl implements BgySmsService { ...@@ -121,7 +121,7 @@ public class BgySmsServiceImpl implements BgySmsService {
String retCode = retJson.getString("ret"); String retCode = retJson.getString("ret");
String retPack = retJson.getString("package"); String retPack = retJson.getString("package");
if (!sendSuccessCode.equals(retCode)) { if (!sendSuccessCode.equals(retCode)) {
return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), err); return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), StringUtils.isNotBlank(err) ? "碧桂园短信发送接口返回:" + err : "碧桂园短信发送接口返回空");
} else { } else {
return new CLBizResponse(ResponseCode.SUCCESS); return new CLBizResponse(ResponseCode.SUCCESS);
} }
...@@ -194,7 +194,7 @@ public class BgySmsServiceImpl implements BgySmsService { ...@@ -194,7 +194,7 @@ public class BgySmsServiceImpl implements BgySmsService {
String data = Json.getString("data"); String data = Json.getString("data");
return new CLBizResponse(ResponseCode.SUCCESS.getCode(), data); return new CLBizResponse(ResponseCode.SUCCESS.getCode(), data);
} }
return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), err); return new CLBizResponse(ResponseCode.UPSTREAM_FAIL.getCode(), StringUtils.isNotBlank(err) ? "碧桂园模板创建接口返回:" + err : "碧桂园模板创建接口返回空");
} else { } else {
JSONObject Json = JSONObject.parseObject(retPack); JSONObject Json = JSONObject.parseObject(retPack);
String data = Json.getString("data"); String data = Json.getString("data");
......
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