Commit 61a4d940 by guanghui.cui

配置文件添加‘商户从平台拿到订单总额比例’字段

parent 90d893ca
......@@ -12,8 +12,12 @@ user=root
password=123
[SYS]
#pos type
pos=bifengtang
#pos server ip
serverip=192.168.0.102
#商户从平台拿到百分比(总订单金额)
percent=90
#守护进程脚本
[SH]
......
......@@ -30,6 +30,11 @@ COrderInfo::COrderInfo()
strMonitorDeamon = ZIni::readString("SH","monitor", "",strIniPath.c_str());
strTakeoutDeamon = ZIni::readString("SH","takeout", "",strIniPath.c_str());
_percent = ZIni::readInt("SYS","percent", 0,strIniPath.c_str());
if(_percent<=0){
LOG(ERROR)<<"get percent failed,percent:"<<_percent;
}
LOG(INFO)<<"percent is:"<<_percent;
}
pthread_mutex_init(&mutex, NULL); //初始化互斥锁
}
......
......@@ -85,6 +85,7 @@ private:
char* _tempLatin1; //utf8转换为Latin1后,存放在此变量中
std::string strMonitorDeamon; //monitor守护进程脚本文件路径
std::string strTakeoutDeamon; //takeout守护进程脚本文件路径
int _percent; //商户从平台拿到百分比(总订单金额)
};
#endif
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