From 355b5f079cabc5eb577e58120ff833403e4a2216 Mon Sep 17 00:00:00 2001 From: yangduo Date: Mon, 10 Feb 2025 16:16:52 +0800 Subject: [PATCH] adjust --- webapp/controller/BagController.class.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 8f4fcdc..89749a7 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -309,12 +309,14 @@ class BagController{ $addreward = new classes\AddReward(); $ptime = $this->getParameter(RECOMMEND_TIME); $addreward->addReward($item_id, 1, $account_id, $ptime['param_value'], 0); - echo json_encode(array( - 'errcode' => 0, - 'errmsg' => '', - 'item_id' => $item_id, - 'color_id' => 0 - )); + $_REQUEST['color_id'] = 0; + $this->exchangeBagItem(); + // echo json_encode(array( + // 'errcode' => 0, + // 'errmsg' => '', + // 'item_id' => $item_id, + // 'color_id' => 0 + // )); } public function freeGetItem()