|
@@ -389,8 +389,7 @@ class CustomerService extends Service
|
|
if($customer['top_depart_id'] == $user['head']['id']) $is_main = 1;
|
|
if($customer['top_depart_id'] == $user['head']['id']) $is_main = 1;
|
|
$customer['is_belong_to_main'] = $is_main;
|
|
$customer['is_belong_to_main'] = $is_main;
|
|
$customer['order_number'] = Customer::$order_number . "|" . $data['id'] . "|" . $customer['title'];
|
|
$customer['order_number'] = Customer::$order_number . "|" . $data['id'] . "|" . $customer['title'];
|
|
- $product = Product::where('id',$customer['intention_product'])->value('title');
|
|
|
|
- $customer['intention_product_title'] = $product;
|
|
|
|
|
|
+ $customer['intention_product_title'] = Product::where('id',$customer['intention_product'])->value('title') ?? "";
|
|
$customer['product_category'] = [];
|
|
$customer['product_category'] = [];
|
|
if(! empty($customer['intention_product'])){
|
|
if(! empty($customer['intention_product'])){
|
|
$pro = (new ProductService())->getProductDetail([$customer['intention_product']]);
|
|
$pro = (new ProductService())->getProductDetail([$customer['intention_product']]);
|