|
@@ -1,5 +1,6 @@
|
|
package com.care.common.util;
|
|
package com.care.common.util;
|
|
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
import com.tencentcloudapi.common.Credential;
|
|
import com.tencentcloudapi.common.Credential;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
@@ -30,7 +31,9 @@ public class SmsUtil {
|
|
String[] templateParam){
|
|
String[] templateParam){
|
|
SendStatus sendStatus = null;
|
|
SendStatus sendStatus = null;
|
|
try{
|
|
try{
|
|
-
|
|
|
|
|
|
+ if (StrUtil.isEmpty(phoneNumber)){
|
|
|
|
+ return sendStatus;
|
|
|
|
+ }
|
|
Credential cred = new Credential(secretId, secretKey);
|
|
Credential cred = new Credential(secretId, secretKey);
|
|
|
|
|
|
HttpProfile httpProfile = new HttpProfile();
|
|
HttpProfile httpProfile = new HttpProfile();
|