消息修改
This commit is contained in:
+5
-5
@@ -327,10 +327,10 @@ public interface ISysBaseAPI extends CommonAPI {
|
||||
/**
|
||||
* 发送短信
|
||||
* @param phone 手机号
|
||||
* @param codeType 发送类型
|
||||
* @param codeTime 超时时间
|
||||
* @param templateCode 模板编码
|
||||
* @param map 参数集合
|
||||
* @param sender 通道号
|
||||
* @param templateId 参数集合
|
||||
* @param signature 签名名称
|
||||
* @param templateParas 参数
|
||||
*/
|
||||
void sendSMS(String phone, String codeType, String codeTime,String templateCode,HashMap<String,String> map);
|
||||
void sendMessage(String phone, String sender,String templateId,String signature,String templateParas);
|
||||
}
|
||||
|
||||
+22
-26
@@ -93,40 +93,18 @@ public class HuaWeiSmsUtil {
|
||||
switch (codeType) {
|
||||
case "1":
|
||||
//中汽标协-登录检查验证码
|
||||
sender = "8821062807743";
|
||||
signature = "中汽标协";
|
||||
sender = "8821092414481";
|
||||
signature = "中汽中心标准所";
|
||||
templateId = "9fbee7166af24bbfacc178e417345a21";
|
||||
templateParas = "[" + randomNumber + "," + phone + "," + verificationTime + "]";
|
||||
break;
|
||||
case "2":
|
||||
//中汽标协-忘记密码
|
||||
sender = "8821062807743";
|
||||
signature = "中汽标协";
|
||||
sender = "8821092414481";
|
||||
signature = "中汽中心标准所";
|
||||
templateId = "6f8573c5adc54df2a56a6e48556c3044";
|
||||
templateParas = "[" + randomNumber + "," + phone + "," + verificationTime + "]";
|
||||
break;
|
||||
case "3":
|
||||
//中汽标协-会员到期提醒
|
||||
sender = "8821062807762";
|
||||
signature = "中汽标协";
|
||||
templateId = "3c6321febaa84fecb68d6b0f5bbc0754";
|
||||
//通知类短信,不需要存redis
|
||||
codeTime = "0";
|
||||
break;
|
||||
case "4":
|
||||
//中汽标协-发票邮寄通知提醒
|
||||
sender = "8821062807762";
|
||||
signature = "中汽标协";
|
||||
templateId = "077964a02a814149bb01900e43c9a04e";
|
||||
codeTime = "0";
|
||||
break;
|
||||
case "5":
|
||||
//中汽标协-合同分期到期通知提醒
|
||||
sender = "8821062807762";
|
||||
signature = "中汽标协";
|
||||
templateId = "077964a02a814149bb01900e43c9a04e";
|
||||
codeTime = "0";
|
||||
break;
|
||||
default:
|
||||
throw new JeroBootException("codeType flase.");
|
||||
}
|
||||
@@ -134,6 +112,24 @@ public class HuaWeiSmsUtil {
|
||||
return this.huaWeiSendSms(phone, codeTime, url, appKey, appSecret, templateParas,sender, templateId, signature,randomNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description 发送通知类短信
|
||||
* @Author lqt
|
||||
* @Date 2021/9/27
|
||||
* @Param phone 手机号
|
||||
* @Param sender 通道号
|
||||
* @Param templateId 参数集合
|
||||
* @Param signature 签名名称
|
||||
* @Param templateParas 参数
|
||||
* @Return
|
||||
* @Exception
|
||||
*/
|
||||
public Boolean sendMessageNotice(String phone, String sender,String templateId,String signature,String templateParas) {
|
||||
String randomNumber = "";
|
||||
//调用华为短信发送
|
||||
return this.huaWeiSendSms(phone, "0", url, appKey, appSecret, templateParas,sender, templateId, signature,randomNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* 调用华为短信发送
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user