Commit f4a2f44d authored by clone's avatar clone

bug

parent 3953ed3f
...@@ -21,6 +21,7 @@ use app\model\NoteLog; ...@@ -21,6 +21,7 @@ use app\model\NoteLog;
use app\model\UPhoneFollowPp; use app\model\UPhoneFollowPp;
use app\model\Users; use app\model\Users;
use think\Exception; use think\Exception;
use Think\Log;
use think\Request; use think\Request;
class Broker extends Basic class Broker extends Basic
...@@ -199,6 +200,7 @@ class Broker extends Basic ...@@ -199,6 +200,7 @@ class Broker extends Basic
*/ */
private function judgeBand(string $device_id, int $agent_id, string $model, int $type, string $push_id): bool private function judgeBand(string $device_id, int $agent_id, string $model, int $type, string $push_id): bool
{ {
Log::record("push_id -----------------------".$push_id);
$params["agent_id"] = $agent_id; $params["agent_id"] = $agent_id;
$result = $this->aBD->getDeviceByAgentId($params); $result = $this->aBD->getDeviceByAgentId($params);
...@@ -221,9 +223,10 @@ class Broker extends Basic ...@@ -221,9 +223,10 @@ class Broker extends Basic
$is_exits = true; $is_exits = true;
} }
//当个推返回的id改变时则更新记录 //当个推返回的id改变时则更新记录
if (!empty($push_id) && $push_id != $item["push_id"]) if (!empty($push_id) && $push_id != $item["push_id"]){
Log::record("push_id ----*************-------------------".$push_id);
$this->aBD->updateDevice([ "id" => $item["id"], "push_id" => $push_id ]); $this->aBD->updateDevice([ "id" => $item["id"], "push_id" => $push_id ]);
}
} }
} }
if (!$is_exits && $type == 0) if (!$is_exits && $type == 0)
......
...@@ -204,7 +204,7 @@ class OrderLogService ...@@ -204,7 +204,7 @@ class OrderLogService
public function selectOrderDetail($where_) public function selectOrderDetail($where_)
{ {
$orderModel = new OrderModel(); $orderModel = new OrderModel();
$field = "a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone, $field = "a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_name as user_nick,c.user_phone,
c.user_pic,c.sex"; c.user_pic,c.sex";
$result = $orderModel->selectOrderDetail($field, $where_); $result = $orderModel->selectOrderDetail($field, $where_);
foreach ($result as $k => $v) { foreach ($result as $k => $v) {
......
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