tanbushi commited on
Commit
1c24e31
·
1 Parent(s): 7c781cc
Files changed (1) hide show
  1. api_key_sb.py +2 -0
api_key_sb.py CHANGED
@@ -31,6 +31,8 @@ async def get_api_key_info(model: str = None):
31
 
32
  if response.data:
33
  api_key_info = response.data[0]
 
 
34
  return api_key_info
35
  else:
36
  return None
 
31
 
32
  if response.data:
33
  api_key_info = response.data[0]
34
+ # 在返回api_key_info之前,更新其ran_at字段
35
+ await update_api_key_ran_at(api_key_info.get('api_key_id'))
36
  return api_key_info
37
  else:
38
  return None