Merge branch 'yinyong' into hjb
This commit is contained in:
commit
4fa98efce5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user