Merge branch 'script_gj' into 'master'
Script gj See merge request !1136
This commit is contained in:
+3
-3
@@ -157,15 +157,15 @@ class SeaweedDataSynch extends BaseBatch{
|
|||||||
|
|
||||||
def dists = updating(c, "district")
|
def dists = updating(c, "district")
|
||||||
updateEs(c, dists, "district", "192.168.0.89")
|
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")
|
def offices = updating(c, "office")
|
||||||
updateEs(c, offices, "office", "192.168.0.89")
|
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")
|
def shops = updating(c, "shop")
|
||||||
updateEs(c, shops, "shop", "192.168.0.89")
|
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()
|
println index +" "+ c + " 完成 "+new Date().toString()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -316,6 +316,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);
|
||||||
|
println("mobile:"+mobile+" code:"+checkCode)
|
||||||
return AliyunSmsClient.sendSms(mobile, "SMS_483345375", con.toString())
|
return AliyunSmsClient.sendSms(mobile, "SMS_483345375", con.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user