Merge branch 'script_gj' into 'master'

Script gj

See merge request !1136
This commit is contained in:
2025-04-24 10:28:57 +08:00
2 changed files with 4 additions and 3 deletions
@@ -157,15 +157,15 @@ class SeaweedDataSynch extends BaseBatch{
def dists = updating(c, "district")
updateEs(c, dists, "district", "192.168.0.89")
// updateEs(c, dists, "district", "192.168.0.52")
updateEs(c, dists, "district", "192.168.0.52")
def offices = updating(c, "office")
updateEs(c, offices, "office", "192.168.0.89")
// updateEs(c, offices, "office", "192.168.0.52")
updateEs(c, offices, "office", "192.168.0.52")
def shops = updating(c, "shop")
updateEs(c, shops, "shop", "192.168.0.89")
// updateEs(c, shops, "shop", "192.168.0.52")
updateEs(c, shops, "shop", "192.168.0.52")
println index +" "+ c + " 完成 "+new Date().toString()
}
@@ -316,6 +316,7 @@ class SMSOutgoingListener extends BaseBatch {
if(StringUtils.isNotBlank(checkCode)){
JSONObject con = new JSONObject()
con.put("code", checkCode);
println("mobile:"+mobile+" code:"+checkCode)
return AliyunSmsClient.sendSms(mobile, "SMS_483345375", con.toString())
}
}