Commit 2cfae699 authored by hujun's avatar hujun

update where

parent e14087c0
...@@ -91,9 +91,13 @@ class PushClientService ...@@ -91,9 +91,13 @@ class PushClientService
} }
$this->pushAgentAllDeviceId($v['operation_id'], $title, $content, $type, $v['user_id'], $is_forbidden, $v['house_id'], $v['order_id'], $v['message']); $this->pushAgentAllDeviceId($v['operation_id'], $title, $content, $type, $v['user_id'], $is_forbidden, $v['house_id'], $v['order_id'], $v['message']);
$id_array[] = $v['id'];
}
if (isset($id_array)) {
$update_data['status'] = 1; $update_data['status'] = 1;
$update_data['send_time'] = date('Y-m-d H:i:s'); $update_data['send_time'] = date('Y-m-d H:i:s');
$this->m_push->updateData($update_data, [ 'id' => $v['id'] ]); $this->m_push->updateData($update_data, [ 'id' => ['in', $id_array] ]);
} }
return ; return ;
} }
......
...@@ -453,10 +453,11 @@ class PushMessageService ...@@ -453,10 +453,11 @@ class PushMessageService
$id_array[] = $v['id']; $id_array[] = $v['id'];
} }
if (isset($id_array)) {
$update_data['status'] = 1; $update_data['status'] = 1;
$update_data['send_time'] = date('Y-m-d H:i:s'); $update_data['send_time'] = date('Y-m-d H:i:s');
$m_push->updateData($update_data, [ 'id' => ['in', $id_array] ]); $m_push->updateData($update_data, ['id' => ['in', $id_array]]);
}
} }
return ; return ;
} }
...@@ -626,9 +627,10 @@ class PushMessageService ...@@ -626,9 +627,10 @@ class PushMessageService
$this->pushAgentAllDeviceId($v['addressee_id'], $v['title'], $v['message'], $v['type'], $id, $is_forbidden, $v['house_id'], $v['order_id']); $this->pushAgentAllDeviceId($v['addressee_id'], $v['title'], $v['message'], $v['type'], $id, $is_forbidden, $v['house_id'], $v['order_id']);
$id_array[] = $v['id']; $id_array[] = $v['id'];
} }
if (isset($id_array)) {
$update_data['status'] = 1; $update_data['status'] = 1;
$update_data['send_time'] = date('Y-m-d H:i:s'); $update_data['send_time'] = date('Y-m-d H:i:s');
$m_push->updateData($update_data, [ 'id' =>['in', $id_array] ]); $m_push->updateData($update_data, ['id' => ['in', $id_array]]);
}
} }
} }
\ No newline at end of file
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