This commit is contained in:
songliang 2023-06-29 14:13:13 +08:00
parent 769f495821
commit bd501f9356

View File

@ -1179,7 +1179,7 @@ class ShopController extends BaseAuthedController
return; return;
} }
} else { } else {
$gold = 0; $gold = 1500;
if ($gold < $cost) { if ($gold < $cost) {
$this->_rspErr(2, 'gold is not enough'); $this->_rspErr(2, 'gold is not enough');
return; 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() private function buyGoodsFree()
{ {
} }