飞书消息推送-修改

This commit is contained in:
liyawei
2022-03-10 15:44:20 +08:00
parent bf2e8cf916
commit e313f96406
4 changed files with 18 additions and 11 deletions
@@ -62,7 +62,7 @@ public class HttpRequestUtil {
RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(20000000).setSocketTimeout(200000000).build();
HttpPost httpPost = new HttpPost(url);
httpPost.setConfig(requestConfig);
httpPost.setEntity(new StringEntity(body));
httpPost.setEntity(new StringEntity(body,"utf-8"));
if (headerMap != null) {
Iterator var38 = headerMap.entrySet().iterator();
@@ -1,4 +1,4 @@
package com.jero.modules.document.service;
package com.jero.modules.feishu.service;
import java.io.IOException;
@@ -1,8 +1,8 @@
package com.jero.modules.document.service.impl;
package com.jero.modules.feishu.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jero.modules.document.service.IFeishuService;
import com.jero.modules.feishu.service.IFeishuService;
import com.jero.modules.system.util.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
@@ -132,13 +132,14 @@ spring:
datasource:
master:
# url: jdbc:mysql://10.0.3.44:3306/jero-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# username: root
# password: 123456
# driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://121.36.69.172:3307/laws_weilai?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
# url: jdbc:mysql://121.36.69.172:3307/laws_weilai?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://10.10.10.44:3306/laws_weilai_test?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: hzwlsoft.com
password: 123456
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://121.36.69.172:3307/laws_weilai?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
# url: jdbc:mysql://121.36.69.172:3307/laws_weilai?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# username: root
# password: hzwlsoft.com
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
@@ -185,7 +186,7 @@ jero :
uploadType: local
path :
#文件上传根目录 设置
upload: E://opt//upFiles
upload: D://opt//upFiles
#webapp文件路径
webapp: D://opt//webapp
shiro:
@@ -359,3 +360,9 @@ people:
secret: CDf2D9404C6ac1B0f7c3e3845ae0282a
# appSecret CN PROD版
# secret: 7C3F03170E3ea489df04Ce8DEC7Df4f7
## Feishu
Feishu:
appId: cli_a16d47ca9f381013
appSecret: DSfCrj70xku2VUjqwHBIuuY6HZnz7ppe
getTenantAccessTokenUrl: https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal
batchSendMessageUrl: https://open.feishu.cn/open-apis/message/v4/batch_send/