|
@@ -212,13 +212,14 @@ class Api extends CatchController
|
|
|
'label' =>$val['label'],
|
|
|
'rssi' =>$val['rssi'],
|
|
|
'ant' =>$val['ant'],
|
|
|
- 'report_time'=>$val['time']
|
|
|
+ 'time'=>$val['time']
|
|
|
];
|
|
|
- var_dump($report_data);
|
|
|
+ // var_dump($report_data);
|
|
|
|
|
|
if($received_state=='1'){
|
|
|
//如果开启盘点 则有数据就推送
|
|
|
$url="http://localhost:8115/api/assetReceiveReport";
|
|
|
+ var_dump($report_data);
|
|
|
$postFields = http_build_query($report_data);
|
|
|
$url_res= curl_http_post($postFields,$url,false);
|
|
|
echo 'assetReceiveReport res'.PHP_EOL;
|
|
@@ -248,7 +249,7 @@ class Api extends CatchController
|
|
|
//2>1 外到内 进
|
|
|
$send_data['dirt']=1;
|
|
|
}
|
|
|
-
|
|
|
+ var_dump($send_data);
|
|
|
//推送数据
|
|
|
$url="http://localhost:8115/api/assetReport";
|
|
|
$postFields = http_build_query($send_data);
|