Commit 53c0ac79 authored by 何金镒's avatar 何金镒

建发社区token更新

parent a10aa3d4
...@@ -159,6 +159,8 @@ public class DifyControllerV2 { ...@@ -159,6 +159,8 @@ public class DifyControllerV2 {
// 没有建发的token,有效期7天 // 没有建发的token,有效期7天
String cdc_token = cdcHttpUtils.getCDCToken(token.getCcuId(), token.getCDCOwnerId()); String cdc_token = cdcHttpUtils.getCDCToken(token.getCcuId(), token.getCDCOwnerId());
token.setAccessToken(cdc_token); token.setAccessToken(cdc_token);
token.setState(CDCToken.STATE_ENABLED);
token.setCreateTime(LocalDateTime.now());
tokenService.updateById(token); tokenService.updateById(token);
} }
if(StrUtil.isBlank(token.getAccessToken())){ if(StrUtil.isBlank(token.getAccessToken())){
......
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