Jelajahi Sumber

团购能下单了,不知道为什么

lizhen_gitee 3 bulan lalu
induk
melakukan
110b41f44a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      addons/shopro/service/goods/GoodsService.php

+ 1 - 1
addons/shopro/service/goods/GoodsService.php

@@ -344,7 +344,7 @@ class GoodsService
     public function defaultFormat($goods) 
     {
         $skuPrices = $goods->sku_prices;
-        $activity = $this->is_activity ? $goods->activity : null;
+        $activity = $this->is_activity ? $goods->activity : null; //第一次调用 model/goods 里的 getActivityAttr
 
         if ($activity) {
             $skuPrices = ActivityFacade::recoverSkuPrices($goods, $activity);