Files
xianyan/docs/toolsapi/scripts/quick_test.py
Developer f91be94e9c refactor: 完成项目架构重构,统一模块导入路径
- 清理大量废弃的 barrel 导出文件,移除冗余的中间导出层
- 修复所有相对路径导入错误,统一调整为扁平化模块引用
- 更新多平台 pubspec 版本号与依赖库版本
- 补充后端功能问题管理后台与脚本工具
- 调整部分页面的快捷方式文案适配新功能
- 更新部分翻译覆盖率与API文档
2026-06-12 08:53:57 +08:00

24 lines
919 B
Python

#!/usr/bin/env python3
import paramiko, time
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('123.207.67.197', port=22, username='root', password='520Kiss123', timeout=15)
sftp = ssh.open_sftp()
sftp.put('/Users/wushu/Documents/trae_projects/project/xianyan/docs/toolsapi/application/api/controller/FeatureFlag.php',
'/www/wwwroot/tools.wktyl.com/application/api/controller/FeatureFlag.php')
sftp.close()
print('uploaded')
ssh.exec_command('rm -rf /www/wwwroot/tools.wktyl.com/runtime/cache/*', timeout=10)
time.sleep(1)
stdin, stdout, stderr = ssh.exec_command("curl -s 'https://tools.wktyl.com/api/feature_flag/issue_list'", timeout=15)
print('issue_list:', stdout.read().decode()[:300])
time.sleep(1)
stdin, stdout, stderr = ssh.exec_command('cat /tmp/issue_list_err.log 2>/dev/null', timeout=10)
print('Error log:', stdout.read().decode())
ssh.close()