|
|
|
@ -430,23 +430,4 @@ class SsgController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 领取激活码
|
|
|
|
|
* @param $token
|
|
|
|
|
* @param $gift_id
|
|
|
|
|
* author: xmy 280564871@qq.com
|
|
|
|
|
*/
|
|
|
|
|
public function get_novice($user_id,$gift_id){
|
|
|
|
|
|
|
|
|
|
$model = D("Giftbag");
|
|
|
|
|
$exist = $model->checkAccountGiftExist($logininfo['user_id'],$gift_id);
|
|
|
|
|
if($exist){
|
|
|
|
|
$this->error("您已经领取过该礼包!");
|
|
|
|
|
}
|
|
|
|
|
$novice = $model->getNovice($logininfo['user_id'],$logininfo['account'],$gift_id);
|
|
|
|
|
if(empty($novice)){
|
|
|
|
|
$this->error("暂无激活码");
|
|
|
|
|
}
|
|
|
|
|
$this->success("领取成功",$novice);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|