获取客户端key

This commit is contained in:
2025-11-01 22:09:39 +08:00
parent 47e97e2ecf
commit 079e7b53f1
3 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ public class CommonServiceImpl implements ICommonService {
// 解析响应为实体类
System.out.println(JSONUtil.toJsonStr(response.body()));
Map entity = JSONUtil.toBean(response.body(), Map.class);
dto.setClientSecret(entity.get("value").toString());
dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
dto.setClientSecret(entity.get("id").toString());
// dto.setExpiresAt(Long.valueOf(entity.get("expires_at").toString()));
}
} catch (Exception e) {
e.printStackTrace();