diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 25aa1e6a..66e19b1e 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -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);