Fix missing recommend_payload import; raise small-account cap to 200k.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-27 23:27:19 +08:00
parent 7bb80ba538
commit 4f4c4bb9fc
4 changed files with 46 additions and 7 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Fix recommend_payload import and deploy 200k scope."""
import paramiko, sys
from pathlib import Path
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
root = Path(__file__).resolve().parents[1]
files = ["product_recommend.py", "install_trading.py", "templates/trade.html"]
c = paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("192.168.8.21", username="root", password="woaini88", timeout=15)
sftp = c.open_sftp()
for rel in files:
sftp.put(str(root / rel), f"/opt/qihuo/{rel.replace(chr(92), '/')}")
print("uploaded", rel)
sftp.close()
_, o, e = c.exec_command("cd /opt/qihuo && pm2 restart qihuo && sleep 2 && /opt/qihuo/venv/bin/python -c \"from recommend_store import recommend_payload; from install_trading import install_trading; print('import ok')\"")
print(o.read().decode("utf-8", errors="replace"))
print(e.read().decode("utf-8", errors="replace"))
_, o, e = c.exec_command("curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:6600/login")
print("login status", o.read().decode())
c.close()