|
@@ -69,7 +69,7 @@ public class SceneCallCountHandler {
|
|
|
"**错误日志**: %s";
|
|
|
|
|
|
@XxlJob("sceneCallCountHandler")
|
|
|
- private void sceneCallCountHandler() throws Exception {
|
|
|
+ public void sceneCallCountHandler() throws Exception {
|
|
|
XxlJobHelper.log("sceneCallCountHandler start.....");
|
|
|
|
|
|
Date time = Calendar.getInstance().getTime();
|
|
@@ -124,7 +124,19 @@ public class SceneCallCountHandler {
|
|
|
errorMsg.append(v3ErrorMsg);
|
|
|
}
|
|
|
|
|
|
- String ddMsg = String.format(DINGTALK_MSG_PATTERN, DateExtUtil.format(time, DateExtUtil.dateStyle4),
|
|
|
+ String envName = "";
|
|
|
+ if(env.equals("gn")){
|
|
|
+ envName = "国内";
|
|
|
+ }
|
|
|
+ if(env.equals("eur")){
|
|
|
+ envName = "国际";
|
|
|
+ }
|
|
|
+ if(env.equals("jp")){
|
|
|
+ envName = "日本";
|
|
|
+ }
|
|
|
+ String ddMsg = String.format(
|
|
|
+ DINGTALK_MSG_PATTERN, DateExtUtil.format(time, DateExtUtil.dateStyle4),
|
|
|
+ envName,
|
|
|
v4Count, v4success, v4Fail, v4Waiting,
|
|
|
v3Msg,
|
|
|
errorMsg);
|