You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/20 02:47:41 UTC

[shardingsphere-elasticjob] branch master updated: Remove real token from example (#1618)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new f1fd628  Remove real token from example (#1618)
f1fd628 is described below

commit f1fd6286f8da0de1409eed2995502945c674052b
Author: Yanjie Zhou <zh...@aliyun.com>
AuthorDate: Tue Oct 20 10:47:31 2020 +0800

    Remove real token from example (#1618)
---
 .../shardingsphere/elasticjob/lite/example/JavaMain.java       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/elasticjob-example-lite-java/src/main/java/org/apache/shardingsphere/elasticjob/lite/example/JavaMain.java b/examples/elasticjob-example-lite-java/src/main/java/org/apache/shardingsphere/elasticjob/lite/example/JavaMain.java
index 76c183f..f5d0fe6 100644
--- a/examples/elasticjob-example-lite-java/src/main/java/org/apache/shardingsphere/elasticjob/lite/example/JavaMain.java
+++ b/examples/elasticjob-example-lite-java/src/main/java/org/apache/shardingsphere/elasticjob/lite/example/JavaMain.java
@@ -73,8 +73,8 @@ public final class JavaMain {
         setUpDataflowJob(regCenter, tracingConfig);
         setUpScriptJob(regCenter, tracingConfig);
         setUpOneOffJob(regCenter, tracingConfig);
-        setUpOneOffJobWithDingtalk(regCenter, tracingConfig);
-        setUpOneOffJobWithWechat(regCenter, tracingConfig);
+//        setUpOneOffJobWithDingtalk(regCenter, tracingConfig);
+//        setUpOneOffJobWithWechat(regCenter, tracingConfig);
 //        setUpOneOffJobWithEmail(regCenter, tracingConfig);
     }
     
@@ -145,12 +145,12 @@ public final class JavaMain {
     }
     
     private static void setDingtalkConfiguration(final JobConfiguration jobConfig) {
-        jobConfig.getExtraConfigurations().add(new DingtalkConfiguration("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5308e20a-2900-484b-a332-b5bb701ade04", 
-                "keyword", "SEC0b0a6b13b6823b95737dd83491c23adee5d8a7a649899a12217e038eddc84ff4", 7000, 8000));
+        jobConfig.getExtraConfigurations().add(new DingtalkConfiguration("https://oapi.dingtalk.com/robot/send?access_token=token",
+                "keyword", "secret", 7000, 8000));
     }
     
     private static void setWechatConfiguration(final JobConfiguration jobConfig) {
-        jobConfig.getExtraConfigurations().add(new WechatConfiguration("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5308e20a-2900-484b-a332-b5bb701ade04", 9000, 5000));
+        jobConfig.getExtraConfigurations().add(new WechatConfiguration("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=key", 9000, 5000));
     }
     
     private static void setEmailConfiguration(final JobConfiguration jobConfig) {