|
|
@ -6,6 +6,7 @@ import cn.hutool.core.net.URLEncodeUtil;
|
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
|
import cn.hutool.core.text.StrPool;
|
|
|
|
import cn.hutool.core.text.StrPool;
|
|
|
|
import cn.hutool.core.util.ArrayUtil;
|
|
|
|
import cn.hutool.core.util.ArrayUtil;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.http.Header;
|
|
|
|
import cn.hutool.http.Header;
|
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
@ -82,7 +83,9 @@ public class YunPianSmsScript implements SmsScript {
|
|
|
|
params.put("apikey", account.getApikey());
|
|
|
|
params.put("apikey", account.getApikey());
|
|
|
|
params.put("mobile", StringUtils.join(smsParam.getPhones(), StrPool.COMMA));
|
|
|
|
params.put("mobile", StringUtils.join(smsParam.getPhones(), StrPool.COMMA));
|
|
|
|
params.put("tpl_id", account.getTplId());
|
|
|
|
params.put("tpl_id", account.getTplId());
|
|
|
|
|
|
|
|
if (CharSequenceUtil.isNotBlank(smsParam.getContent()) && smsParam.getContent().contains(PARAMS_KV_SPLIT_KEY)) {
|
|
|
|
params.put("tpl_value", getTplValue(smsParam));
|
|
|
|
params.put("tpl_value", getTplValue(smsParam));
|
|
|
|
|
|
|
|
}
|
|
|
|
return params;
|
|
|
|
return params;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|