|
@@ -0,0 +1,23 @@
|
|
|
+package cn.com.ctop.job.bytedance.handler;
|
|
|
+
|
|
|
+import cn.com.ctop.common.module.utils.HttpUtils2;
|
|
|
+import com.xxl.job.core.context.XxlJobHelper;
|
|
|
+import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+@Component
|
|
|
+public class CwjsPolicyApprovedNoticeJob {
|
|
|
+
|
|
|
+
|
|
|
+ @XxlJob("cwjsPolicyApprovedNoticeWxJob")
|
|
|
+ public void execute() throws Exception {
|
|
|
+ try {
|
|
|
+// String url = "http://gateway.tjyourong.com.cn/finance/cwjsPolicyInfo/weiXinNotice";
|
|
|
+ String url = "http://api.tjyourong.com.cn/finance/cwjsPolicyInfo/weiXinNotice";
|
|
|
+ HttpUtils2.httpGet(url, null, null);
|
|
|
+ XxlJobHelper.log("send weixin message success");
|
|
|
+ } catch (Exception e) {
|
|
|
+ XxlJobHelper.log(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|