#pragma once
#define TEST_DEV 1

//使用旧版本json解析
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#elif defined(_MSC_VER)
#pragma warning(disable : 4996)
#endif


#ifdef TEST_DEV
#define URL_HEAD  "https://openapi-daily.hstong.com"
#else
#define URL_HEAD "https://openapi.hstong.com"
#endif


#define DEVICE_NO "PC10092"//设备编号
//#define USER_MOBILE "17700115566"//登录手机号 1130000881
//#define USER_PWD "qwe123"//密码
//#define USER_PWD_TRADE "565651"//交易密码
#define USER_MOBILE "96980326"//登录手机号 
#define USER_PWD "a111111"//密码
#define USER_PWD_TRADE "111111"//交易密码

#define PUB_FILE_PLAT "pub_plat_online.txt"//平台公匙文件线上环境
#define PUB_FILE_PLAT_TEST "pub_plat_test.txt"//平台公匙文件测试环境
#define PUB_FILE "pub.txt"//开发者公匙文件
#define PRIVATE_FILE "private.txt"//开发者私匙文件
#define HEAD_LEN 151

#define URL_HEAD_HST  "https://win-interface-stockbss-close.hstong.com"
#define SYS_CODE_SUCCESS "0000" //处理成功
#define SYS_CODE_UNKONW "1001" //系统未知错误
#define SYS_CODE_SINGLEFAIL "1002" //签名错误
#define SYS_CODE_ENCRYPTEDERR "1003" //数据加密错误
#define SYS_CODE_SOCKETUNINI "1004" //Socket未初始化
#define SYS_CODE_INTERFACEABAND "1005" //接口已经废弃
#define SYS_CODE_USERNOTAUTHOR "1006" //用户暂未授权
#define SYS_CODE_REPEATSUBMIT "1007" //重复提交
#define SYS_CODE_INTERFACECALLFAIL "1008" //接口调用失败
#define SYS_CODE_INTERFACENOTEXIST "1009" //接口不存在
#define SYS_CODE_IIIEGALREQUEST "1010" //非法请求
#define SYS_CODE_SERVERBUSY "1011" //服务繁忙，请稍后重试
#define SYS_CODE_USERNOLOGIN "1012" //用户未登录
#define SYS_CODE_PUSHEDOUT "1013" //登陆被挤下线
#define SYS_CODE_TIMEOUT "1014" //登录超时

enum EN_MSGTYPE
{
	EN_MSGTYPE_HEARTBEAT = 0,
	EN_MSGTYPE_REQ = 1,
	EN_MSGTYPE_RESP = 2,
	EN_MSGTYPE_PUSH = 3,
};
