Commit bb62face authored by clone's avatar clone

bug

parent e57426e8
...@@ -58,7 +58,8 @@ class BrokerService ...@@ -58,7 +58,8 @@ class BrokerService
$this->aBD->updateDevice([ "id" => $item["id"], "push_id" => $push_id, "device_id" => $device_id ]); $this->aBD->updateDevice([ "id" => $item["id"], "push_id" => $push_id, "device_id" => $device_id ]);
return true; return true;
} }
if($device_id == $item["device_id"] ){ if (($is_pc == 0 && $device_id == $item["device_id"])
|| ($is_pc == 1 && $push_id = $item["push_id"] && $device_id == $item["device_id"])) {
if ($item["is_forbidden"] == 0) { if ($item["is_forbidden"] == 0) {
return true; return true;
} elseif ($item["is_forbidden"] == 1) { //已存在申请关系 } elseif ($item["is_forbidden"] == 1) { //已存在申请关系
...@@ -67,7 +68,6 @@ class BrokerService ...@@ -67,7 +68,6 @@ class BrokerService
} }
} }
if (!$is_exits && $type == 0) if (!$is_exits && $type == 0)
......
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