diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 1fa09bd0..dae2a03d 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1179,7 +1179,7 @@ class ShopController extends BaseAuthedController return; } } else { - $gold = 0; + $gold = 1500; if ($gold < $cost) { $this->_rspErr(2, 'gold is not enough'); return; @@ -1229,6 +1229,20 @@ class ShopController extends BaseAuthedController ); } + public function getChestItems() + { + $goods_id = getReqVal('goods_id', 0); + + if ($goods_id < 900001 || $goods_id > 900004) { + $this->_rspErr(2, 'goods_id is invalid'); + return; + } + + $meta = mt\Item::get($goods_id); + $chestType = $meta['sub_type']; + $itemStore = mt\ShopChest::getRandomItemListByChestType($chestType); + } + private function buyGoodsFree() { }