From 382310f7acc64a20622a31609cab87e7cd805f2b Mon Sep 17 00:00:00 2001 From: yangduo Date: Mon, 10 Feb 2025 16:26:09 +0800 Subject: [PATCH] adjust --- webapp/controller/BagController.class.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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()