|
@@ -1098,6 +1098,7 @@ class Api extends CatchController
|
|
|
$flagIn = $avg["front"] < $config["front_in"] || $avg["behind"] < $config["behind_in"] || $avg["left"] < $config["left_in"] || $avg["right"] < $config["right_in"];
|
|
|
$flagOut = $avg["front"] > $config["front_out"] && $avg["behind"] > $config["behind_out"] && $avg["left"] > $config["left_out"] && $avg["right"] > $config["right_out"];
|
|
|
|
|
|
+
|
|
|
if($flagIn && $status == 2){
|
|
|
// if($flagIn){
|
|
|
$inoutIntFilter = $ues_redis->hget("anbang_four_wire", "anbang_4rssi_intFilter");
|
|
@@ -1108,6 +1109,23 @@ class Api extends CatchController
|
|
|
}
|
|
|
//推送进
|
|
|
$info['status'] = 1;
|
|
|
+
|
|
|
+ // 临时功能代码
|
|
|
+ $labels = []; //测试设备
|
|
|
+ if (in_array($info['id'], $labels)) {
|
|
|
+ # code...
|
|
|
+ //card_black
|
|
|
+ $where = [];
|
|
|
+ $where[] = ['type', '=','basic_config'];
|
|
|
+ $where[] = ['field', '=','card_black'];
|
|
|
+ $bkList = Db::name('sys_config')->where($where)->find();
|
|
|
+ $bkList = explode(',', $bkList['fieldValue']);
|
|
|
+ if (in_array($info['id'], $labels)) {
|
|
|
+ # code...
|
|
|
+ $info['status'] = 3;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
$url_data = [
|
|
|
"mac" => $info["mac"],
|