+2
-2
@@ -161,7 +161,7 @@ class SMSOutgoingListener extends BaseBatch {
|
||||
String content = msg.getObject().msgContent.trim()
|
||||
|
||||
if(!content.startsWith("【")){
|
||||
content = "【房价网】" + content;
|
||||
content = "【上海估家】" + content;
|
||||
}
|
||||
if(content.lastIndexOf("【") > 0){
|
||||
println("非法短信内容:" + content)
|
||||
@@ -310,7 +310,7 @@ class SMSOutgoingListener extends BaseBatch {
|
||||
if(StringUtils.isNotBlank(checkCode)){
|
||||
JSONObject con = new JSONObject()
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user