wesmiler hace 3 horas
padre
commit
1b92cce420
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Services/Api/GoodsService.php

+ 2 - 2
app/Services/Api/GoodsService.php

@@ -241,7 +241,7 @@ class GoodsService extends BaseService
         // 用户信息
         if(empty($orderNo)){
             $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])
-                ->select(['id','openid', 'discount_point', 'status'])
+                ->select(['id','openid', 'status'])
                 ->first();
             $status = isset($userInfo['status']) ? $userInfo['status'] : 0;
             $openid = isset($userInfo['openid']) ? $userInfo['openid'] : 0;
@@ -260,7 +260,7 @@ class GoodsService extends BaseService
 
         $list = $this->model->whereIn('id', $ids)
             ->where(['status'=>1,'mark'=>1])
-            ->select(['id as goods_id','goods_name','category_id','store_id','delivery_fee','sku_type','price','stock','unit','weight','thumb','sku_type'])
+            ->select(['id as goods_id','goods_name','type','category_id','store_id','delivery_fee','sku_type','price','stock','unit','weight','thumb'])
             ->get();
         $list = $list? $list->toArray() : [];
         if($list){