记得上下班打卡 | 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:
localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam:
url: ${liquidnet.service.adam.url}
feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
......@@ -22,3 +22,5 @@ liquidnet:
localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam:
url: ${liquidnet.service.adam.url}
feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
\ No newline at end of file
......@@ -22,3 +22,5 @@ liquidnet:
localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam:
url: ${liquidnet.service.adam.url}
feishu:
bWebhook: "https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555"
\ No newline at end of file
......@@ -22,3 +22,5 @@ liquidnet:
localUrl: ${liquidnet.service.kylin.url-pay.localUrl}
adam:
url: ${liquidnet.service.adam.url}
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;
import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.JsonUtils;
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 java.util.HashMap;
import java.util.Map;
@Service
@Slf4j
public class FeishuBotServiceImpl implements IFeishuBotService {
@Value("${liquidnet.feishu.bWebhook}")
private String bWebhook;
@Override
public void sendTextMessage(String text) {
......@@ -20,8 +25,10 @@ public class FeishuBotServiceImpl implements IFeishuBotService {
Map<String, Object> bodyMap = new HashMap<>();
bodyMap.put("msg_type", "text");
bodyMap.put("content", textMap);
HttpUtil.postJson("https://open.feishu.cn/open-apis/bot/v2/hook/6315d096-5947-4bbb-9c34-90808dd91555",
JsonUtils.toJson(bodyMap));
try {
HttpUtil.postJson(bWebhook, 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