cqpCow 10 tháng trước cách đây
mục cha
commit
beb65fb3a8
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      app/Service/CustomerService.php

+ 1 - 2
app/Service/CustomerService.php

@@ -389,8 +389,7 @@ class CustomerService extends Service
         if($customer['top_depart_id'] == $user['head']['id']) $is_main = 1;
         $customer['is_belong_to_main'] = $is_main;
         $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'] = [];
         if(! empty($customer['intention_product'])){
             $pro = (new ProductService())->getProductDetail([$customer['intention_product']]);