Commit 8278d2d5 by ss.dai

新增配置门店编号前缀为pos_as_

parent 3c577c4f
...@@ -57,7 +57,7 @@ bool FlowControl::_Login() ...@@ -57,7 +57,7 @@ bool FlowControl::_Login()
QTimer::singleShot(VALUE_RELOGINTIME, this, &FlowControl::_Login); QTimer::singleShot(VALUE_RELOGINTIME, this, &FlowControl::_Login);
return false; return false;
} }
sendJson = DataManger::GetInstance().GetLoginData(m_storeId, SERVER_PASSWORD, m_posId, m_cashierId); sendJson = DataManger::GetInstance().GetLoginData(ConfigManger::GetInstance().GetPrefix()+m_storeId, ConfigManger::GetInstance().GetPassword(), m_posId, m_cashierId);
emit showAlert(AlertForm::LOADING, "正在登录......"); emit showAlert(AlertForm::LOADING, "正在登录......");
QLOG_INFO() << QString("[---login---][requestData:%1]").arg(_GetJsonStr(sendJson)); QLOG_INFO() << QString("[---login---][requestData:%1]").arg(_GetJsonStr(sendJson));
......
...@@ -76,5 +76,15 @@ int ConfigManger::GetListenPort() ...@@ -76,5 +76,15 @@ int ConfigManger::GetListenPort()
return m_config->value(INI_LISTENPORT, 34953).toInt(); return m_config->value(INI_LISTENPORT, 34953).toInt();
} }
QString ConfigManger::GetPrefix()
{
return m_config->value("Client/prefix", "pos_as_").toString();
}
QString ConfigManger::GetPassword()
{
return m_config->value("Client/password", "posoperator@freemud.cn").toString();
}
...@@ -70,6 +70,17 @@ public: ...@@ -70,6 +70,17 @@ public:
* 返回:监听端口 * 返回:监听端口
* */ * */
int GetListenPort(); int GetListenPort();
/* 功能:获取商户前缀
* 参数:NULL
* 返回:监听端口
* */
QString GetPrefix();
/* 功能:获取登录密码
* 参数:NULL
* 返回:监听端口
* */
QString GetPassword();
private: private:
ConfigManger(); ConfigManger();
......
[FmServer] [FmServer]
url=http://waimaiapi.freemudorder.com/api url=http://wmpos.sandload.cn/api
[RefundListener] [RefundListener]
port=34953 port=34953
...@@ -12,4 +12,8 @@ eleme=002|饿了么 ...@@ -12,4 +12,8 @@ eleme=002|饿了么
bdwm=003|百度外卖 bdwm=003|百度外卖
jdwm=004|京东到家 jdwm=004|京东到家
mtwm=005|美团外卖 mtwm=005|美团外卖
fmwd=006|非码微店 fmwd=006|非码微店
\ No newline at end of file
[Client]
prefix=pos_as_
password=posoperator@freemud.cn
\ No newline at end of file
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