فهرست منبع

Merge branch 'master' of https://git.hxiaoju.top/Other/Gong-Ying-Lian-API

afa 4 ماه پیش
والد
کامیت
10bfd0e8dc
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      app/admin/controller/shop/CustomerSpec.php

+ 5 - 1
app/admin/controller/shop/CustomerSpec.php

@@ -66,7 +66,11 @@ class CustomerSpec extends Backend
 
             //然后根据选中的规格ID逐个判断是否存在,存在的更新状态、包装箱及发货价,不存在的则创建。 type_id
             foreach ($params['all_data'] as $item) {
-                $row = $this->model->where('customer_id',$params['ids'])->where('type_id',$item['type_id'])->where('product_id',$item['value'])->findOrEmpty();
+                $row = $this->model
+                    ->where('customer_id',$params['ids'])
+                    ->where('type_id',$item['type_id'])
+                    ->where('product_id',$item['value'])
+                    ->findOrEmpty();
                 if($row->isEmpty()){
                     $this->model->create([
                         'customer_id' => $params['ids'],