Commit 19f0c495 by wuyang.zou

Fix New Feature

1、完善代码格式
2、当前分支支持 WindowsDebug模式脱离POS运行
3、注册登录时带上程序版本号

VERSION: 2.1.2 RC
parent e61f9aa7
......@@ -9,3 +9,15 @@ build:编译中间文件<br>
依赖库:sqlite、cmake(2.8及以上)、gcc(4.8.2及以上)<br>
##【软件准备完成后,需要配置应用的相关路径,保证CMake能够正确生成 MakeFile 文件】
## 查看 新编译生成的 应用文件的依赖库信息 ldd takeaway;
## 程序启动脚本 /opt/pos/bin/run_cream.sh -> nohup /opt/pos/fmtakeout/takeaway > /dev/null &;
## 程序守护: takeaway程序将监听POS请求放到新建线程中;主线程监听ODS推送数据并及时转发给POS插件;
## ====Famliy Pos Plugin 版本提交历史记录====
1.1 2020-11-18 wuyang.zou Version: 2.1.2 RC //①完善代码格式 ②当前分支支持 WindowsDebug模式脱离POS运行 ③注册登录时带上程序版本号;
0:Check MD5: *************** takeaway Version:2.1.2 RC
1:把文件拷贝到POS后,需要给“takeaway”文件赋予可执行权限,命令:chmod +x takeaway
2: 特别注意
<<贝瑞>>
config.ini 文件 中 [ODS] 模块中的
#(生产环境外网 IP)
ip: 103.13.247.77
#(测试环境外网 IP [内网IP:10.0.103.116] )
ip: 103.13.247.78
<<全家>>
config.ini 文件 中 [ODS] 模块中的
#(生产环境外网 IP)
ip: 103.13.247.72
#(测试环境外网 IP)
ip: 103.13.247.*
3: ===============================版本提交历史记录================================
1.1 2020-11-17 wuyang.zou Version:2.1.2 RC //①完善代码格式 ②当前分支支持 WindowsDebug模式脱离POS运行 ③注册登录时带上程序版本号;
\ No newline at end of file
......@@ -52,38 +52,6 @@ struct payment
std::vector<paymentDetail> vecDetail; //付款明细数组
};
// //订单积分详情
// struct bonusDetail
// {
// int type=0; //积分类型
// std::string desc; //积分奖励描述
// int point=0; //积分奖励数值
// std::string sku; //积分商品
// };
// //订单积分
// struct bonus
// {
// std::string summary; //积分奖励总和
// std::vector<bonusDetail> vecDetail; //付款明细数组
// };
// //促销明细
// struct promotionsDetail
// {
// std::string pro_id; //促销编码
// int type=0; //促销类型
// std::string desc; //促销描述
// int offer=0; //促销金额
// std::string sku; //促销商品
// };
// //促销
// struct promotions
// {
// std::string summary; //促销金额总和
// std::vector<promotionsDetail> vecDetail; //付款明细数组
// };
//响应结果
struct responseRlt
......@@ -211,6 +179,7 @@ struct orderObj
int ods_status=0; //ods订单状态
std::string status_desc; //订单状态描述
std::string remark; //订单备注
int isNeedTableware = 0; //是否需要餐具
int total_price=0; //订单总价
int delivery_price=0; //配送费
int reduced_price=0; //折扣总金额
......@@ -231,6 +200,13 @@ struct orderObj
int totalExcessiveCharge = 0; //使用优惠券发生的溢收
int zhxPoint = 0; //甄会选积分
// Berry 新增3个积分字段,全家模式下注释这3个字段;
/*
int otherPoint = 0; //其他品牌积分
int remainingBrandPoint = 0; //品牌-剩余积分
int remainingNkbPoint = 0; //纳客宝集享-剩余积分
*/
store storeInfo; //门店信息
delivery deliveryInfo; //配送信息
customer customerInfo; //顾客信息
......
1:把文件拷贝到POS后,需要给“takeaway”文件赋予可执行权限,命令:chmod +x takeaway
\ No newline at end of file
[SYS]
[SYS]
port=24446
#<<贝瑞>>
#config.ini 文件 中 [ODS] 模块中的
#(生产环境外网 IP)
#ip: 103.13.247.77
#(测试环境外网 IP [内网IP:10.0.103.116] )
#ip: 103.13.247.78
#<<全家>>
#config.ini 文件 中 [ODS] 模块中的
#(生产环境外网 IP [内网IP:10.0.100.70] )
#ip: 103.13.247.72
#(测试环境外网 IP [内网IP:10.0.102.14] )
#ip: 103.13.247.7*
[ODS]
ip=127.0.0.1
pushPort=30001
recvPort=30002
socketTimeout=120
......@@ -10,3 +25,8 @@ socketTimeout=120
[POS]
ip=127.0.0.1
port=24445
;Windows 模拟程序 新增可配置功能: 配置门店号, POS号, 是否主POS标识;
;storeId=207777
;posId=1
;isMaster=false
......@@ -5,12 +5,15 @@
#include <stdio.h>
#include "../base/CommonStruct.h"
#include "../base/BaseDefine.h"
//std::string GetTestJson(const int statuscode,const char* msg,const char* orderid);
extern std::string g_store_id;
extern std::string g_pos_id;
extern bool g_pos_ismaster;
#define VERSION "2.1.2 RC" //版本号;
//void parseJson(const char* json);
class JsonModule
{
public:
......
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