From 98daf72df43328247d51268947470e476585b52d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 14 Oct 2024 11:30:36 +0800 Subject: [PATCH] 1 --- webapp/mt/ShopGoods.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/mt/ShopGoods.php b/webapp/mt/ShopGoods.php index df61c50a..04e34cfb 100644 --- a/webapp/mt/ShopGoods.php +++ b/webapp/mt/ShopGoods.php @@ -61,10 +61,12 @@ class ShopGoods shuffle($goodsIds); $result = array(); for ($i = 0; $i < $num; ++$i) { - if ($i < count($goodIds)) { + if ($i < count($goodsIds)) { array_push($result, $goodsIds[$i]); } } + error_log(1111); + error_log(json_encode($result)); return $result; }