wesmiler 2 月之前
父节点
当前提交
653e78bf9f
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/Services/Api/GoodsService.php

+ 1 - 3
app/Services/Api/GoodsService.php

@@ -225,6 +225,7 @@ class GoodsService extends BaseService
     public function getOrderGoods($ids, $goods, $userId, $orderNo='')
     public function getOrderGoods($ids, $goods, $userId, $orderNo='')
     {
     {
         // 用户信息
         // 用户信息
+        $discountPoint = 0;
         if(empty($orderNo)){
         if(empty($orderNo)){
             $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])
             $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])
                 ->select(['id','openid', 'discount_point', 'status'])
                 ->select(['id','openid', 'discount_point', 'status'])
@@ -244,9 +245,6 @@ class GoodsService extends BaseService
         }
         }
 
 
 
 
-
-
-
         $list = $this->model->whereIn('id', $ids)
         $list = $this->model->whereIn('id', $ids)
             ->where(['status'=>1,'mark'=>1])
             ->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','category_id','store_id','delivery_fee','sku_type','price','stock','unit','weight','thumb','sku_type'])