|
@@ -38,7 +38,7 @@ class CustomerService extends Service
|
|
|
$model->consulting_product = $data['consulting_product'] ?? '';
|
|
|
$model->intention_product = $data['intention_product'] ?? 0;
|
|
|
$model->progress_stage = $data['progress_stage'] ?? 0;
|
|
|
- $model->address1 = $data['address1'] ? json_encode($data['address1']) : '';
|
|
|
+ $model->address1 = ! empty($data['address1']) ? json_encode($data['address1']) : '';
|
|
|
$model->address2 = $data['address2'] ?? '';
|
|
|
$model->mark = $data['mark'] ?? '';
|
|
|
$model->importance = $data['importance'] ?? '';
|
|
@@ -195,7 +195,7 @@ class CustomerService extends Service
|
|
|
$model->consulting_product = $data['consulting_product'] ?? '';
|
|
|
$model->intention_product = $data['intention_product'] ?? 0;
|
|
|
$model->progress_stage = $data['progress_stage'] ?? 0;
|
|
|
- $model->address1 = $data['address1'] ? json_encode($data['address1']) : '';
|
|
|
+ $model->address1 = ! empty($data['address1']) ? json_encode($data['address1']) : '';
|
|
|
$model->address2 = $data['address2'] ?? '';
|
|
|
$model->crt_id = $user['id'];
|
|
|
$model->mark = $data['mark'] ?? '';
|