Commit 8a09300e authored by hujun's avatar hujun

店长推送

parent c068e329
...@@ -102,11 +102,13 @@ class PushMessageService ...@@ -102,11 +102,13 @@ class PushMessageService
} }
$where['store_id'] = $report_data['report_store_id']; $where['store_id'] = $report_data['report_store_id'];
$where['level'] = [ 'in', '20,40' ]; $where['level'] = [ 'in', '20,40' ];
$agent_store = $agent->getAgentInfo('id', '', $where); $agent_store = $agent->searchAgentsByKeyword('id', $where);
$agent_id[] = $report_data['report_agent_id']; foreach ($agent_store as $k=>$v) {
$agent_id[] = $agent_store['id']; $agent_id[] = $v['id'];
}
$agent_id[] = $report_data['report_agent_id'];
$this->record($push_type, 0, $agent_id, $operation_id, $data); $this->record($push_type, 0, $agent_id, $operation_id, $data);
// $this->pushAgentAllDeviceId($report_data['report_agent_id'], $title, $content); // $this->pushAgentAllDeviceId($report_data['report_agent_id'], $title, $content);
// $this->pushAgentAllDeviceId($agent_store['id'], $title, $content); // $this->pushAgentAllDeviceId($agent_store['id'], $title, $content);
......
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