|
|
@@ -31,7 +31,7 @@ public class SMS {
|
|
|
/**
|
|
|
* 发短信
|
|
|
*/
|
|
|
- public static String sendVerifyCodeByMobileNumber(String mobileNumber, String verifyCode) {
|
|
|
+ public static BatchSendResponse sendVerifyCodeByMobileNumber(String mobileNumber, String verifyCode) {
|
|
|
if (SMS.smsClient == null) {
|
|
|
SMS.init();
|
|
|
}
|
|
|
@@ -50,9 +50,8 @@ public class SMS {
|
|
|
List<String> params = new ArrayList<>();
|
|
|
params.add(verifyCode);
|
|
|
request.setParams(params);
|
|
|
- BatchSendResponse response = smsClient.batchSend(request);
|
|
|
-
|
|
|
- return new Gson().toJson(response);
|
|
|
+
|
|
|
+ return smsClient.batchSend(request);
|
|
|
}
|
|
|
|
|
|
// /**
|