新增失败短信提醒
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.fangjia.script
|
||||
|
||||
|
||||
import com.fangjia.core.util.HttpRequest
|
||||
import com.fangjia.script.util.*
|
||||
import com.fangjia.script.yinjihaun.util.DingDingMessageUtil
|
||||
import com.mongodb.BasicDBObject
|
||||
@@ -112,6 +112,18 @@ abstract class BaseBatch {
|
||||
}
|
||||
if(SystemUtils.IS_OS_LINUX){
|
||||
sendDingDingMsg("2307d2fec8314b3e8b4b83dd1d42da2e2051638e3e668f21e77ca01258bf682c",msg)
|
||||
|
||||
try {
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
params.put("phone", "13764369683");
|
||||
params.put("type", "taskFail");
|
||||
params.put("msg", batchName.substring(batchName.length() - 20, batchName.length()));
|
||||
HttpRequest httpRequest = new HttpRequest();
|
||||
httpRequest.get("http://didata-cloud-server.fangjia.com/sms/send", params, "utf-8");
|
||||
} catch (Exception ex) {
|
||||
|
||||
}
|
||||
|
||||
task.exception = msg.toString()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user