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; }