Commit bc35bca7 by ss.dai

修复没设置销售单写入地址问题

parent 88ead29f
...@@ -25,6 +25,8 @@ FlowControl::FlowControl() ...@@ -25,6 +25,8 @@ FlowControl::FlowControl()
m_loginSocket = NULL; m_loginSocket = NULL;
m_pullOrderSocket = NULL; m_pullOrderSocket = NULL;
m_procOrderSocket = NULL; m_procOrderSocket = NULL;
FmPlugin::GetInstance().SetRemoteInfo(ConfigManger::GetInstance().GetDbServerIp(), ConfigManger::GetInstance().GetDbServerPort());
} }
void FlowControl::onGetNewStoreInfo(const QString &operator_id, const QString &pos_id, const QString &store_id, const QString &business_date) void FlowControl::onGetNewStoreInfo(const QString &operator_id, const QString &pos_id, const QString &store_id, const QString &business_date)
......
...@@ -81,5 +81,15 @@ int ConfigManger::GetTcpServerPort() ...@@ -81,5 +81,15 @@ int ConfigManger::GetTcpServerPort()
return m_config->value(INI_TCPPORT, 93953).toInt(); return m_config->value(INI_TCPPORT, 93953).toInt();
} }
QString ConfigManger::GetDbServerIp()
{
return m_config->value(INI_DBSERVERIP).toString();
}
int ConfigManger::GetDbServerPort()
{
return m_config->value(INI_DBSERVERPORT).toInt();
}
...@@ -75,7 +75,16 @@ public: ...@@ -75,7 +75,16 @@ public:
* 返回:端口号 * 返回:端口号
* */ * */
int GetTcpServerPort(); int GetTcpServerPort();
/* 功能:获取销售单写入地址
* 参数:NULL
* 返回:销售单地址
* */
QString GetDbServerIp();
/* 功能:获取销售单写入端口
* 参数:NULL
* 返回:销售单端口
* */
int GetDbServerPort();
private: private:
ConfigManger(); ConfigManger();
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#define INI_SOUNDINTERVAL "Float/soundInterval" #define INI_SOUNDINTERVAL "Float/soundInterval"
#define INI_REENTRY "Features/reEntry" #define INI_REENTRY "Features/reEntry"
#define INI_TCPPORT "TcpServer/Port" #define INI_TCPPORT "TcpServer/Port"
#define INI_DBSERVERIP "DbServer/ip"
#define INI_DBSERVERPORT "DbServer/port"
#define JSON_REQTYPE "reqtype" #define JSON_REQTYPE "reqtype"
#define JSON_CURRENTUSER "current_user" #define JSON_CURRENTUSER "current_user"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment