From 72b1ab09ec783903c50254940294514bdde50ac3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 19 Aug 2019 14:20:41 +0800 Subject: [PATCH] 1 --- webapp/controller/ShareController.class.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/webapp/controller/ShareController.class.php b/webapp/controller/ShareController.class.php index 2302b4a..34217ea 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -175,7 +175,6 @@ class ShareController{ public function keyBoxReward() { - error_log('keyBoxReward'); $account_id = $_REQUEST['account_id']; //登录校验 $login = loginVerify($account_id, $_REQUEST['session_id']); @@ -564,7 +563,8 @@ class ShareController{ return; } $mail_id = $_REQUEST['mail_ids']; - + $kefureward_uuid = 'game2001api_kefureward_uuid:' . md5($_REQUEST['account_id']); + $r = $this->getRedis($kefureward_uuid); $user_db_str = $r->get($kefureward_uuid); if (empty($user_db_str)) { phpcommon\sendError(ERR_USER_BASE + 1,'session失效'); @@ -576,16 +576,12 @@ class ShareController{ return; } $p = $this->getParameter(REWARD_TIMES); - $times = $p['value'] - 1; + $times = $p['param_value'] - 1; foreach ($user_db['kefureward_list'] as $kefureward) { //增加奖励 $addreward = new classes\AddReward(); $addreward->addReward($kefureward['item_id'], $kefureward['item_num'] * $times, $account_id); } - array_push($item_list, array( - 'item_id' => $item_id, - 'item_num' => $item_num, - )); echo json_encode(array( 'errcode' => 0,