Commit 3af43eb4 authored by hujun's avatar hujun

客户记录修改

parent 9599ba63
...@@ -48,6 +48,7 @@ class UserService ...@@ -48,6 +48,7 @@ class UserService
$this->operation_id = $operation_id; $this->operation_id = $operation_id;
$result = []; $result = [];
$agent_id_old = $referrer_id_old = $referrer_source_old = 0; $agent_id_old = $referrer_id_old = $referrer_source_old = 0;
$type = $user_name = '';
try { try {
if (empty($id)) { if (empty($id)) {
//新增用户 //新增用户
...@@ -94,9 +95,14 @@ class UserService ...@@ -94,9 +95,14 @@ class UserService
} }
//记录修改客方 //记录修改客方
$this->recordGuest((int)$data['agents_id'], (int)$agent_id_old, $id, $user_name,$type); if (!empty($data['agents_id'])) {
$this->recordGuest((int)$data['agents_id'], (int)$agent_id_old, $id, $user_name, $type);
}
//记录邀请人修改记录 //记录邀请人修改记录
$this->recordReferrer($data['referrer_id'], $data['referrer_source'], $id, $referrer_id_old, $referrer_source_old, $type); if (!empty($data['referrer_id'])) {
$this->recordReferrer($data['referrer_id'], $data['referrer_source'], $id, $referrer_id_old, $referrer_source_old, $type);
}
//更新业绩统计 //更新业绩统计
$agent = new AAgents(); $agent = new AAgents();
......
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