Commit 59596ba2 authored by qinxunjia's avatar qinxunjia

修改描述

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