|
|
|
@ -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();
|
|
|
|
|