账号互T

master
tpingzhang 5 years ago
parent 4297e931f2
commit 9814912bf5

@ -11,7 +11,7 @@ class GameGiftPageController extends Controller{
{ {
// if (I("request.api_ver") == 2) { // if (I("request.api_ver") == 2) {
$user = BaseController::webH5Vetify(); $user = BaseController::webH5Vetify();
$this->userid = $user['userId']; $this->userId = $user['userId'];
$this->userToken = $user['userToken']; $this->userToken = $user['userToken'];
// } // }
} }
@ -149,6 +149,7 @@ class GameGiftPageController extends Controller{
$game_id = $post['game_id']; $game_id = $post['game_id'];
$game_name = $post['game_name']; $game_name = $post['game_name'];
$gift = M('giftbag','tab_'); $gift = M('giftbag','tab_');
$user_token = $this->userToken;
$novice = $gift->where(["id" => $gift_id])->field("id,giftbag_name,novice")->find(); $novice = $gift->where(["id" => $gift_id])->field("id,giftbag_name,novice")->find();
if(empty($novice['novice'])){ if(empty($novice['novice'])){
echo "该礼包已被领完";die(); echo "该礼包已被领完";die();

Loading…
Cancel
Save