记得上下班打卡 | git大法好,push需谨慎

Commit 73a11b0c authored by wangyifan's avatar wangyifan

Merge branch 'dev_fudai_20250418' into container

parents 52784f73 2dcca21b
...@@ -22,3 +22,5 @@ liquidnet: ...@@ -22,3 +22,5 @@ liquidnet:
localUrl: ${liquidnet.service.kylin.url-pay.localUrl} localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam: adam:
url: ${liquidnet.service.adam.url} url: ${liquidnet.service.adam.url}
feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
...@@ -21,4 +21,6 @@ liquidnet: ...@@ -21,4 +21,6 @@ liquidnet:
check: ${liquidnet.service.kylin.url-pay.check} check: ${liquidnet.service.kylin.url-pay.check}
localUrl: ${liquidnet.service.kylin.url-pay.localUrl} localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam: adam:
url: ${liquidnet.service.adam.url} url: ${liquidnet.service.adam.url}
\ No newline at end of file feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
\ No newline at end of file
...@@ -21,4 +21,6 @@ liquidnet: ...@@ -21,4 +21,6 @@ liquidnet:
check: ${liquidnet.service.kylin.url-pay.check} check: ${liquidnet.service.kylin.url-pay.check}
localUrl: ${liquidnet.service.kylin.url-pay.localUrl} localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam: adam:
url: ${liquidnet.service.adam.url} url: ${liquidnet.service.adam.url}
\ No newline at end of file feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
\ No newline at end of file
...@@ -21,4 +21,6 @@ liquidnet: ...@@ -21,4 +21,6 @@ liquidnet:
check: ${liquidnet.service.kylin.url-pay.check} check: ${liquidnet.service.kylin.url-pay.check}
localUrl: ${liquidnet.service.kylin.url-pay.localUrl} localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam: adam:
url: ${liquidnet.service.adam.url} url: ${liquidnet.service.adam.url}
\ No newline at end of file feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
...@@ -3,14 +3,19 @@ package com.liquidnet.service.kylin.service.impl; ...@@ -3,14 +3,19 @@ package com.liquidnet.service.kylin.service.impl;
import com.liquidnet.commons.lang.util.HttpUtil; import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.JsonUtils; import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.kylin.service.IFeishuBotService; import com.liquidnet.service.kylin.service.IFeishuBotService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@Service @Service
@Slf4j
public class FeishuBotServiceImpl implements IFeishuBotService { public class FeishuBotServiceImpl implements IFeishuBotService {
@Value("${liquidnet.feishu.bWebhook}")
private String bWebhook;
@Override @Override
public void sendTextMessage(String text) { public void sendTextMessage(String text) {
...@@ -20,8 +25,10 @@ public class FeishuBotServiceImpl implements IFeishuBotService { ...@@ -20,8 +25,10 @@ public class FeishuBotServiceImpl implements IFeishuBotService {
Map<String, Object> bodyMap = new HashMap<>(); Map<String, Object> bodyMap = new HashMap<>();
bodyMap.put("msg_type", "text"); bodyMap.put("msg_type", "text");
bodyMap.put("content", textMap); bodyMap.put("content", textMap);
try {
HttpUtil.postJson("https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555", HttpUtil.postJson(bWebhook, JsonUtils.toJson(bodyMap));
JsonUtils.toJson(bodyMap)); }catch (Exception e){
log.error("error.", e);
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment