From 1c07c49009c2c0982248d468cdfda57ed8ab9457 Mon Sep 17 00:00:00 2001 From: yutiansut Date: Tue, 7 Apr 2020 10:18:05 +0800 Subject: [PATCH] # --- QACTPBeeBroker/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QACTPBeeBroker/__init__.py b/QACTPBeeBroker/__init__.py index 22364c2..e7f2d0f 100644 --- a/QACTPBeeBroker/__init__.py +++ b/QACTPBeeBroker/__init__.py @@ -7,7 +7,7 @@ from QACTPBeeBroker.setting import eventmq_ip, ip from QAPUBSUB.producer import publisher_routing, publisher_topic -__version__ = '1.3' +__version__ = '1.4' __author__ = 'yutiansut' @@ -121,7 +121,7 @@ def go(userid, password, brokerid, mdaddr, tdaddr, appid, authcode): @click.option('--appid', default="simnow_client_test") @click.option('--authcode', default="0000000000000000") def gopro(userid, password, brokerid, mdaddr, tdaddr, appid, authcode): - app = CtpBee("last", __name__,'pro') + app = CtpBee("last", __name__) info = { "CONNECT_INFO": { "userid": userid, @@ -136,7 +136,7 @@ def gopro(userid, password, brokerid, mdaddr, tdaddr, appid, authcode): } app.config.from_mapping(info) - data_recorder = DataRecorder("data_recorder") + data_recorder = DataRecorder("data_recorder", model='pro') # 或者直接 data_recorder = DataRecorder("data_recorder", app) app.add_extension(data_recorder) app.start()