diff --git a/webapp/mt/ShopGoods.php b/webapp/mt/ShopGoods.php index 04e34cfb..31f5c42f 100644 --- a/webapp/mt/ShopGoods.php +++ b/webapp/mt/ShopGoods.php @@ -65,8 +65,6 @@ class ShopGoods array_push($result, $goodsIds[$i]); } } - error_log(1111); - error_log(json_encode($result)); return $result; } diff --git a/webapp/services/ShopService.php b/webapp/services/ShopService.php index 8a299f8a..0e9e33ba 100644 --- a/webapp/services/ShopService.php +++ b/webapp/services/ShopService.php @@ -168,7 +168,7 @@ class ShopService { $key = 'shop.daily.shop:' . myself()->_getAccountId(); $data = $r->get($key); if (empty($data)) { - $num = myself()->_callMtStatic('Parameter', 'getByName', 'SHOP_TYPE2_SLOT'); + $num = myself()->_callMtStatic('Parameter', 'getByName', 'SHOP_TYPE2_SLOT')['param_value']; $data = mt\ShopGoods::getRandDailyHeroGoodsIds(mt\Shop::DAILY_HERO_SHOP, min(50, $num)); $r->setPx($key, json_encode($data), 1000 * 3600 * 24); } else {