diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index e62b917..a28d641 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -309,14 +309,12 @@ class BagController{ $addreward = new classes\AddReward(); $ptime = $this->getParameter(RECOMMEND_TIME); $addreward->addReward($item_id, 1, $account_id, $ptime['param_value'], 0); - $_REQUEST['color_id'] = 0; - $this->exchangeBagItem(); - // echo json_encode(array( - // 'errcode' => 0, - // 'errmsg' => '', - // 'item_id' => $item_id, - // 'color_id' => 0 - // )); + echo json_encode(array( + 'errcode' => 0, + 'errmsg' => '', + 'item_id' => $item_id, + 'color_id' => 0 + )); } public function freeGetItem()