Преглед изворни кода

秒杀商品已售数量显示问题处理

evoxwht пре 2 година
родитељ
комит
1ee52e4744
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      crmeb/app/services/activity/seckill/StoreSeckillServices.php

+ 1 - 1
crmeb/app/services/activity/seckill/StoreSeckillServices.php

@@ -469,7 +469,7 @@ class StoreSeckillServices extends BaseServices
         /** @var StoreProductServices $storeProductService */
         $storeProductService = app()->make(StoreProductServices::class);
         $productInfo = $storeProductService->get($storeInfo['product_id']);
-        $storeInfo['total'] = $productInfo['sales'] + $productInfo['ficti'];
+        $storeInfo['total'] = $productInfo['sales'] + $productInfo['ficti'] + $storeInfo['sales'];
 
         if (sys_config('share_qrcode', 0) && request()->isWechat()) {
             /** @var QrcodeServices $qrcodeService */