diff --git a/examples/WebTrader/run.py b/examples/WebTrader/run.py index 9e705dd9..2b1b8d1f 100644 --- a/examples/WebTrader/run.py +++ b/examples/WebTrader/run.py @@ -40,7 +40,7 @@ with open("WEB_setting.json") as f: setting = json.load(f) USERNAME = setting['username'] PASSWORD = setting['password'] - TOKEN = base64.encodestring(TODAY+PASSWORD) + TOKEN = base64.encodestring(TODAY+PASSWORD).replace('\n', '') # 创建Flask对象