Commit 2483b050 by guanghui.cui

格式修改

parent d746014e
...@@ -276,10 +276,7 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order) ...@@ -276,10 +276,7 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order)
{ {
rapidjson::Value& points_obj = orderContent_obj["points"]; rapidjson::Value& points_obj = orderContent_obj["points"];
rapidjson::Value& totalPoint= points_obj["totalPoint"]; rapidjson::Value& totalPoint= points_obj["totalPoint"];
char temp[20]={0}; order.bonusInfo.summary = std::to_string(totalPoint.GetInt());
int iPoint=totalPoint.GetInt();
sprintf(temp, "%d", iPoint);
order.bonusInfo.summary = temp;
//积分信息详情 //积分信息详情
{ {
......
...@@ -67,6 +67,7 @@ void* listen_pos_func(void* arg) ...@@ -67,6 +67,7 @@ void* listen_pos_func(void* arg)
{ {
g_init_data = posRequestData; g_init_data = posRequestData;
jsonTool.getPosResponseData(100, "successful!", responseData); jsonTool.getPosResponseData(100, "successful!", responseData);
LOG(INFO) <<"POS init data:"<<g_init_data.c_str();
}else }else
{ {
jsonTool.getPosResponseData(101, "invalid initdata!", responseData); jsonTool.getPosResponseData(101, "invalid initdata!", responseData);
...@@ -141,7 +142,7 @@ int main() ...@@ -141,7 +142,7 @@ int main()
/// 注册回调函数 /// 注册回调函数
el::Helpers::installPreRollOutCallback(logRolloutHandler); el::Helpers::installPreRollOutCallback(logRolloutHandler);
LOG(INFO)<<"---------程序启动---------"; LOG(INFO)<<"---------software start---------";
// 读取配置文件信息 // 读取配置文件信息
std::string strIniPath(strBinPath.data()); std::string strIniPath(strBinPath.data());
......
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