fix(feishu): 修正获取飞书应用访问令牌方式和更新开发环境密钥

- 修正了获取应用访问令牌时解析 JSON 的字段路径
- 将 app_access_token 从嵌套 JSON 直接改为顶层字段获取
- 更新了开发环境配置中的飞书应用密钥(app-secret)
This commit is contained in:
2026-03-27 17:49:16 +08:00
parent 111f794448
commit e171e35cd6
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ public class FeishuAuthServiceImpl implements FeishuAuthService {
throw new RuntimeException("获取应用访问令牌失败: " + jsonObject.getStr("msg"));
}
return jsonObject.getJSONObject("app_access_token").getStr("app_access_token");
return jsonObject.getStr("app_access_token");
}
}

View File

@@ -48,7 +48,7 @@ mybatis-plus:
# 飞书开放平台配置
feishu:
app-id: cli_a94c8a7930badcd5
app-secret: e6d39745a94b42099f014e9d6f3a25d0
app-secret: Jva8B1CruPcOFsmROTmbKesVYvGn24HE
redirect-uri: http://localhost:8080/auth/feishu/callback
# 日志配置