换模版
This commit is contained in:
+2
-2
@@ -161,7 +161,7 @@ class SMSOutgoingListener extends BaseBatch {
|
|||||||
String content = msg.getObject().msgContent.trim()
|
String content = msg.getObject().msgContent.trim()
|
||||||
|
|
||||||
if(!content.startsWith("【")){
|
if(!content.startsWith("【")){
|
||||||
content = "【房价网】" + content;
|
content = "【上海估家】" + content;
|
||||||
}
|
}
|
||||||
if(content.lastIndexOf("【") > 0){
|
if(content.lastIndexOf("【") > 0){
|
||||||
println("非法短信内容:" + content)
|
println("非法短信内容:" + content)
|
||||||
@@ -310,7 +310,7 @@ class SMSOutgoingListener extends BaseBatch {
|
|||||||
if(StringUtils.isNotBlank(checkCode)){
|
if(StringUtils.isNotBlank(checkCode)){
|
||||||
JSONObject con = new JSONObject()
|
JSONObject con = new JSONObject()
|
||||||
con.put("code", checkCode);
|
con.put("code", checkCode);
|
||||||
return AliyunSmsClient.sendSms(mobile, "SMS_483345375", con.toString())
|
return AliyunSmsClient.sendSms(mobile, "SMS_483925328", con.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int resCode = SingletonClient.getClient().sendSMS([mobile] as String[],content, 5)
|
int resCode = SingletonClient.getClient().sendSMS([mobile] as String[],content, 5)
|
||||||
|
|||||||
Reference in New Issue
Block a user