Qilan2 commited on
Commit
7555313
·
verified ·
1 Parent(s): fdc2216

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -2
server.py CHANGED
@@ -296,8 +296,9 @@ def check_api1():
296
  response_json = response.json() # 获取 JSON 内容
297
  print("接口返回信息:", response_json)
298
  if "token" in response_json:
299
- print("检测到 token,结束检测")
300
- break # 跳出循环
 
301
  else:
302
  print("接口返回信息:", response_json)
303
 
 
296
  response_json = response.json() # 获取 JSON 内容
297
  print("接口返回信息:", response_json)
298
  if "token" in response_json:
299
+ print("检测到 token")
300
+ subprocess.run(f"rsync -avz -e 'ssh -p {ssh_port} -o StrictHostKeyChecking=no' root@{frp_url}:/sillytavern/ /sillytavern/", shell=True, check=True)
301
+ # break # 跳出循环
302
  else:
303
  print("接口返回信息:", response_json)
304