From d0cad6f194aeee30fefad016489f3e16fa6d4ebd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 31 Jul 2023 12:09:58 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 2448910e..8ff95c57 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -339,17 +339,10 @@ class ShopController extends BaseAuthedController { } } - $freeNum = 0; - if (!empty($goodsMeta['free_type'])) { - //$count = $this->countFreeBuyTimes($goods['free_type'], $goods['id'], $goods['goods_id']); - //$goodsMe['free_num'] = $goods['free_num'] - $count; - } else { - //$goods['free_num'] = 0; - } $this->_rspData( array( 'items' => array_keys($record), - 'free_num' => $freeNum, + 'free_num' => 0, ) ); }