Browse Source

商品详情,字段完整

lizhen_gitee 2 months ago
parent
commit
20fb03f471
1 changed files with 2 additions and 0 deletions
  1. 2 0
      addons/unishop/controller/Product.php

+ 2 - 0
addons/unishop/controller/Product.php

@@ -78,6 +78,7 @@ class Product extends Base
                 }
             }
             $data->server = count($serverValue) ? implode(' · ', $serverValue) : '';*/
+            $data->server = '';
 
             // 默认没有收藏
             $data->favorite = false;
@@ -90,6 +91,7 @@ class Product extends Base
             //优惠券
             /*$data->coupon = (new Coupon)->where('endtime', '>', time())
                 ->where(['switch' => Coupon::SWITCH_ON])->cache(10)->order('weigh DESC')->select();*/
+            $data->coupon = [];
 
             // 是否已收藏
             if ($this->auth->id) {