|
@@ -458,7 +458,6 @@ class CustomerService extends Service
|
|
|
* @param $is_add
|
|
|
* @return array
|
|
|
*/
|
|
|
- public function customerRule($data, $is_add = true){
|
|
|
public function customerRule(&$data, $is_add = true){
|
|
|
if(empty($data['model_type'])) return [false,'客户模板类型不能为空'];
|
|
|
if(! in_array($data['model_type'],Customer::$model_type)) return [false,'客户模板类型错误'];
|