|
|
@@ -40,8 +40,9 @@ public class ChatGptController {
|
|
|
|
|
|
@GetMapping("/init")
|
|
|
private Result<String> init() throws Exception {
|
|
|
- List<Account> list = accountService.list(Wrappers.lambdaQuery(Account.class).eq(Account::getGoodsId, 18).ne(Account::getGptRefreshToken, ""));
|
|
|
+ List<Account> list = accountService.list(Wrappers.lambdaQuery(Account.class).eq(Account::getGoodsId, 18).eq(Account::getGptRefreshToken, ""));
|
|
|
for (Account account : list) {
|
|
|
+ log.info("账号:{} 正在执行获取token", account.getAccount());
|
|
|
chatGptAuthService.getRefreshToken(account);
|
|
|
}
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|