|
@@ -201,8 +201,17 @@ class Api extends CatchController
|
|
|
'ant' =>$val['ant'],
|
|
|
'time'=>$val['time']
|
|
|
];
|
|
|
+ $countKey='station_receive_count_data';
|
|
|
+ $key=$mac.'_'.$val['label'];
|
|
|
+ $count_data=$redis->hGet($countKey,$key);
|
|
|
+ if($count_data){
|
|
|
+ $count_data++;
|
|
|
+ }else{
|
|
|
+ $count_data=1;
|
|
|
+ }
|
|
|
+ $redis->hSet($countKey,$key,$count_data);
|
|
|
// var_dump($report_data);
|
|
|
- debug_log("redis_to_mysql2_data",'mac:'. $mac.' label:'.$val['label'].' ant:'.$val['ant'].' time:'.date('Y-m-d H:i:s',$val['time']).' rssi:'.$val['rssi']);
|
|
|
+ debug_log("redis_to_mysql2_data",'mac:'. $mac.' label:'.$val['label'].' ant:'.$val['ant'].' time:'.date('Y-m-d H:i:s',$val['time']).' rssi:'.$val['rssi'].' count:'.$count_data);
|
|
|
if($received_state=='1'){
|
|
|
//如果开启盘点 则有数据就推送
|
|
|
$url="http://localhost:8115/api/assetReceiveReport";
|