|
@@ -70,8 +70,12 @@ public class SmsService {
|
|
|
return result;
|
|
|
}
|
|
|
ResBody body = new JsonMapper().fromJson(result.getData(), ResBody.class);
|
|
|
- if (body != null && body.getSuccess() != null && body.getSuccess() == false) {
|
|
|
- return new Result().error(body.getReturnMsg());
|
|
|
+ if (body != null && body.getSuccess() != null) {
|
|
|
+ if (body.getSuccess() == true) {
|
|
|
+ return new Result().success();
|
|
|
+ } else {
|
|
|
+ return new Result().error(body.getReturnMsg());
|
|
|
+ }
|
|
|
}
|
|
|
return result;
|
|
|
}
|