Skip to content

Commit

Permalink
[Fix] setBackUpAddress函数缺失返回值
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Feb 20, 2022
1 parent c289881 commit 11ce220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,4 +1,4 @@
# 1.0.2.2.3版本
# 1.0.2.2.4版本

1. 调整安装脚本setup.py,支持Windows下安装时根据Python版本进行编译
2. 调整接口初始化时,接口名称的赋值方式
15 changes: 8 additions & 7 deletions vnpy_esunny/api/vnesunny/vnesunnytd/vnesunnytd.cpp
@@ -1,11 +1,11 @@

// vnesunnytd.cpp : 定义 DLL 应用程序的导出函数。
// vnesunnytd.cpp : ���� DLL Ӧ�ó���ĵ���������
//

#include "vnesunnytd.h"

///-------------------------------------------------------------------------------------
///C++的回调函数将数据保存到队列中
///C++�Ļص����������ݱ��浽������
///-------------------------------------------------------------------------------------

void TdApi::OnConnect(const TAPISTR_20 UserNo)
Expand Down Expand Up @@ -861,7 +861,7 @@ void TdApi::OnRtnCurrencyInfo(const TAPISTR_20 UserNo, const TapAPICurrencyInfo


///-------------------------------------------------------------------------------------
///工作线程从队列中取出数据,转化为python对象后,进行推送
///�����̴߳Ӷ�����ȡ�����ݣ�ת��Ϊpython����󣬽�������
///-------------------------------------------------------------------------------------

void TdApi::processTask()
Expand Down Expand Up @@ -2882,13 +2882,13 @@ void TdApi::processRspQryManagerConfigFile(Task *task)


///-------------------------------------------------------------------------------------
///主动函数
///��������
///-------------------------------------------------------------------------------------

void TdApi::createEsTradeAPI(int nResult)
{
this->api = (IEsTradeAPI*)CreateEsTradeAPI(nResult); // 创建API接口对象
this->api->SetAPINotify(this); //注册回调函数对象
this->api = (IEsTradeAPI*)CreateEsTradeAPI(nResult); // ����API�ӿڶ���
this->api->SetAPINotify(this); //ע��ص���������
};

void TdApi::release()
Expand Down Expand Up @@ -2968,6 +2968,7 @@ int TdApi::setBackUpAddress(string UserNo, const dict &req)
getString(req, "LoginIP", myreq.LoginIP);
getUnsignedInt(req, "LoginPort", &myreq.LoginPort);
int i = this->api->SetBackUpAddress((char*)UserNo.c_str(), &myreq);
return i;
}

pybind11::tuple TdApi::requestVerifyIdentity(string UserNo, const dict &req, TAPIUINT32 nRequestID)
Expand Down Expand Up @@ -3379,7 +3380,7 @@ pybind11::tuple TdApi::qryManagerConfigFile(string UserNo, const dict &req, TAPI
};

///-------------------------------------------------------------------------------------
///Boost.Python封装
///Boost.Python��װ
///-------------------------------------------------------------------------------------

class PyTdApi : public TdApi
Expand Down

0 comments on commit 11ce220

Please sign in to comment.