Commit b80a20e5 by guanghui.cui

1,积分信息添加名称字段 2、ODS连接非法增加延时,防止大量刷日志

parent 6683ede2
...@@ -381,6 +381,7 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order) ...@@ -381,6 +381,7 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order)
detail.pcode = GetJsonStringSafe(pointDetails_obj,"pcode"); detail.pcode = GetJsonStringSafe(pointDetails_obj,"pcode");
detail.desc = GetJsonStringSafe(pointDetails_obj,"desc"); detail.desc = GetJsonStringSafe(pointDetails_obj,"desc");
detail.bonus = GetJsonIntSafe(pointDetails_obj,"point"); detail.bonus = GetJsonIntSafe(pointDetails_obj,"point");
detail.name = GetJsonStringSafe(pointDetails_obj, "name");
detail.sku = GetJsonStringSafe(pointDetails_obj,"sku"); detail.sku = GetJsonStringSafe(pointDetails_obj,"sku");
detail.proType = GetJsonStringSafe(pointDetails_obj,"type"); detail.proType = GetJsonStringSafe(pointDetails_obj,"type");
if("00"==detail.proType){ if("00"==detail.proType){
......
...@@ -318,6 +318,7 @@ int main() ...@@ -318,6 +318,7 @@ int main()
LOG(INFO)<<"wait for init done"; LOG(INFO)<<"wait for init done";
if( !ods.isValid() ){ if( !ods.isValid() ){
LOG(INFO)<<"ods is not valid"; LOG(INFO)<<"ods is not valid";
sleep(1);
break; break;
} }
sleep(1); sleep(1);
......
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