Update server.py
Browse files
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 |
-
|
|
|
|
| 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 |
|