|
@@ -100,7 +100,7 @@ public class ContentPlatformCooperateAccountServiceImpl implements ContentPlatfo
|
|
|
account.setContentType(param.getContentType());
|
|
|
account.setUpdateTimestamp(now);
|
|
|
if (Objects.isNull(param.getId())) {
|
|
|
- String externalId = redisUtils.get(param.getGhId());
|
|
|
+ String externalId = aigcApiService.getDetailByGhId(param.getGhId());
|
|
|
if (StringUtils.hasText(externalId)) {
|
|
|
account.setExternalId(externalId);
|
|
|
}
|
|
@@ -138,7 +138,6 @@ public class ContentPlatformCooperateAccountServiceImpl implements ContentPlatfo
|
|
|
JSONObject detail = aigcApiService.getAccountDetail(publishAccountId);
|
|
|
String name = detail.getString("name");
|
|
|
String ghId = detail.getString("ghId");
|
|
|
- redisUtils.setValueWithExpire(ghId, publishAccountId, 6 * 60 * 60L);
|
|
|
return GzhAuthResultVO.builder().name(name).ghId(ghId).build();
|
|
|
}
|
|
|
return null;
|