From 9814912bf557e27806d10378fda10eb4f7f4f3dd Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Thu, 21 Nov 2019 17:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BA=92T?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/GameGiftPageController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/GameGiftPageController.class.php b/Application/Sdk/Controller/GameGiftPageController.class.php index adb442f0..1ef5df28 100644 --- a/Application/Sdk/Controller/GameGiftPageController.class.php +++ b/Application/Sdk/Controller/GameGiftPageController.class.php @@ -11,7 +11,7 @@ class GameGiftPageController extends Controller{ { // if (I("request.api_ver") == 2) { $user = BaseController::webH5Vetify(); - $this->userid = $user['userId']; + $this->userId = $user['userId']; $this->userToken = $user['userToken']; // } } @@ -149,6 +149,7 @@ class GameGiftPageController extends Controller{ $game_id = $post['game_id']; $game_name = $post['game_name']; $gift = M('giftbag','tab_'); + $user_token = $this->userToken; $novice = $gift->where(["id" => $gift_id])->field("id,giftbag_name,novice")->find(); if(empty($novice['novice'])){ echo "该礼包已被领完";die();