tongshanglei 1 년 전
부모
커밋
20573de4e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      catch/api/controller/Api.php

+ 1 - 1
catch/api/controller/Api.php

@@ -227,7 +227,7 @@ class Api extends CatchController
                 $hashKey='station_access_data';
                 $key=$mac.'_'.$val['label'];
                 $old_data=json_decode($redis->hGet($hashKey,$key),true);
-                if($$old_data){
+                if($old_data){
                     //取出历史数据 对比两次数据变化
                     if($old_data['ant']==$report_data['ant']){
                         //相同 则更新时间