chenbiao 3 лет назад
Родитель
Сommit
5c1164bf63

+ 2 - 1
netflix-web/src/main/java/com/cyksj/web/controller/gpt/ChatGptController.java

@@ -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();