Merge branch 'yinyong' into hjb

This commit is contained in:
aozhiwei 2023-11-13 17:01:05 +08:00
commit 4fa98efce5

View File

@ -46,6 +46,32 @@ class BagController extends BaseAuthedController {
));
}
public function createGuildConsume()
{
$consume = explode("|",mt\Parameter::getVal('create_club_cost'));
$costItems = array(
array(
'item_id' => $consume[0],
'item_num' => $consume[1]
),
);
$lackItem = null;
if (!$this->_hasEnoughItems($costItems, $lackItem)) {
$this->_rspErr(3, $this->_getLackItemErrMsg($lackItem));
return;
}
$this->_decItems($costItems);
$this->_rspOk();
}
// 兑换水晶
public function exchangeCrystal()
{
// step1. consume items
// step2. send rewards
$this->_rspOk();
}
public function useItem()
{
$itemId = getReqVal('item_id', 0);