Commit fe06ab7a authored by hujun's avatar hujun

客方

parent fa8f397b
......@@ -159,7 +159,7 @@ class UserService
} else {
if ($agent_id != $agent_id_old) {
$remark = '修改为' . $agent_data['name'] . '-' . $agent_data['phone'];
$this->pushMessage($agent_id_old, $this->operation_id, $user_name, $user_id);
$this->pushMessage($agent_id, $agent_id_old, $this->operation_id, $user_name, $user_id);
}
}
......@@ -297,7 +297,7 @@ class UserService
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function pushMessage($agent_id, $operation_id, $user_name, $user_id) {
public function pushMessage($agent_id, $old_agent_id, $operation_id, $user_name, $user_id) {
$push = new PushMessageService();
$agent = new AAgents();
$ccr_agent_data = $agent->getAgentInfo('name', $operation_id);
......@@ -305,6 +305,6 @@ class UserService
$content = "你的【客户ID:{$user_id}】客户,客方被【{$ccr_agent_data['name']}】修改为【{$agent_name['name']}】";
$data['message'] = $content;
$data['user_id'] = $user_id;
$push->record(2, 0, [0=>$agent_id], $operation_id, $data);
$push->record(2, 0, [0=>$old_agent_id], $operation_id, $data);
}
}
\ 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