customers_602
This commit is contained in:
@@ -389,7 +389,9 @@ class Customers extends Wxapp
|
||||
$a_num && $up_data['a_num = a_num+1'] = null;
|
||||
$t_num && $up_data['t_num = t_num+1'] = null;
|
||||
$visit_time && $up_data['visit_time'] = $visit_time;
|
||||
$level != $row['level'] && $up_data['level'] = $level;//更改客户等级
|
||||
if ($level && $level != $row['level']) {
|
||||
$up_data['level'] = $level;//更改客户等级
|
||||
}
|
||||
$log_4 = '';//到店
|
||||
if ($a_num) {
|
||||
$log_4 = $row['status'] == 1 ? '客户再次到店' : '客户到店';
|
||||
@@ -403,7 +405,7 @@ class Customers extends Wxapp
|
||||
if ($up_data) {
|
||||
$result = $this->customers_model->update($up_data, ['id' => $id]);
|
||||
if ($result) { //添加日志
|
||||
if ($level != $row['level']) {//更改客户等级
|
||||
if ($level && $level != $row['level']) {
|
||||
$this->customers_entity->add_log($id, $uid, $uname, '更改客户等级', 9);
|
||||
}
|
||||
if ($log_9) {//系统变更
|
||||
|
||||
Reference in New Issue
Block a user