Просмотр исходного кода

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

evoxwht 2 лет назад
Родитель
Сommit
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 */