|
|
|
@ -97,6 +97,11 @@ class PoolConfigLogic
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty($param['customer_type'])) {
|
|
|
|
|
$this->error = '请设置客户类型!';
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$repeatWhere['pool_name'] = $param['pool_name'];
|
|
|
|
|
if (!empty($param['pool_id'])) $repeatWhere['pool_id'] = ['neq', $param['pool_id']];
|
|
|
|
|
if (db('crm_customer_pool')->where($repeatWhere)->value('pool_id')) {
|
|
|
|
@ -118,7 +123,8 @@ class PoolConfigLogic
|
|
|
|
|
'remain_day' => $param['remain_day'],
|
|
|
|
|
'recycle_conf' => $param['recycle_conf'],
|
|
|
|
|
'create_user_id' => $param['user_id'],
|
|
|
|
|
'create_time' => time()
|
|
|
|
|
'create_time' => time(),
|
|
|
|
|
'customer_type' => $param['customer_type'],
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
Db::startTrans();
|
|
|
|
@ -468,7 +474,6 @@ class PoolConfigLogic
|
|
|
|
|
'level_conf' => $value['level_conf'],
|
|
|
|
|
'level' => json_encode($value['level']),
|
|
|
|
|
'limit_day' => !empty($value['limit_day']) ? $value['limit_day'] : 0,
|
|
|
|
|
'customer_type'=>$value['customer_type'],
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|