|
@@ -39,10 +39,10 @@ public class SendSms {
|
|
|
|
|
|
//必填,请参考"开发准备"获取如下数据,替换为实际值
|
|
|
private static final String url = "https://rtcsms.cn-north-1.myhuaweicloud.com:10743/sms/batchSendSms/v1"; //APP接入地址+接口访问URI
|
|
|
- private static final String appKey = "s2i0pqQJ30D2dYu3BXPw43nSc0qx"; //APP_Key
|
|
|
- private static final String appSecret = "X8At6jIo08fWMIMZx85xCfpvyf2K"; //APP_Secret
|
|
|
- private static final String sender = "99200620888880005050"; //国内短信签名通道号或国际/港澳台短信通道号
|
|
|
- private static final String templateId = "dc556371ed4a48dda9a148a7dc050875"; //模板ID
|
|
|
+ private static final String appKey = "4yw8cHqho8EAVi5R3GAcewA6NTwt"; //APP_Key
|
|
|
+ private static final String appSecret = "98vxBHJWZWE5326n5da6LY5X8T8g"; //APP_Secret
|
|
|
+ private static final String sender = "99200620888880005063"; //国内短信签名通道号或国际/港澳台短信通道号
|
|
|
+ private static final String templateId = "e29c115bd9f64ffab2d297035c1b9ba4"; //模板ID
|
|
|
private static final String signature = "华为云短信测试"; //签名名称
|
|
|
|
|
|
private static final String templateId_repair = "dc556371ed4a48dda9a148a7dc050875"; //模板ID
|
|
@@ -68,8 +68,8 @@ public class SendSms {
|
|
|
* 模板中的每个变量都必须赋值,且取值不能为空
|
|
|
* 查看更多模板和变量规范:产品介绍>模板和变量规范
|
|
|
*/
|
|
|
- String templateParas_repair = "[\"C-001\",\"1号车间\",\"熊超\"]";
|
|
|
- sendRepairSms(receiver, templateParas_repair);
|
|
|
+ // String templateParas_repair = "[\"C-001\",\"1号车间\",\"熊超\"]";
|
|
|
+ // sendRepairSms(receiver, templateParas_repair);
|
|
|
}
|
|
|
|
|
|
public static void sendCodeSms(String receiver, String templateParas) throws Exception {
|