Commit 671e306b authored by hujun's avatar hujun

1

parent 60fbb168
...@@ -121,7 +121,7 @@ class Broker extends Basic ...@@ -121,7 +121,7 @@ class Broker extends Basic
"device_id" => "qweqweqweqweqw123123", "device_id" => "qweqweqweqweqw123123",
"model" => "iphone7",//手机型号 "model" => "iphone7",//手机型号
);*/ );*/
$status = 0; $status = 1;
$agents_data = []; $agents_data = [];
$checkResult = $this->validate($params, "PerformanceValidate.login"); $checkResult = $this->validate($params, "PerformanceValidate.login");
if (true !== $checkResult) { if (true !== $checkResult) {
...@@ -139,7 +139,7 @@ class Broker extends Basic ...@@ -139,7 +139,7 @@ class Broker extends Basic
foreach ($agents_data_list as $v) { foreach ($agents_data_list as $v) {
if ($v['status'] == 0) { if ($v['status'] == 0) {
$status = 1; $status = 0;
$agents_data = $v; $agents_data = $v;
break; //查找正常状态 break; //查找正常状态
} }
......
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