Commit af71803f authored by houdong's avatar houdong

修改GET参数

parent 7bb6d4db
......@@ -469,10 +469,7 @@ class IndexAction extends IdentityAction {
$userId=$ucData['user_id'];
D('User')->addMoney($userId,$ucData['user_name'],$ucData['mobile']);
D('User')->addInvite($userId,$ucData['user_name']);
//完成勋章
D('User')->finishXunzhang($userId,$userName,$mobile,'cansai');
//用户未加入大赛或已加入,但不在cofool_allex_user表,需要添加
if($joinRes['status']==0||$joinRes['joinStatus']==1){
......@@ -486,8 +483,14 @@ class IndexAction extends IdentityAction {
}
//0成功,1失败
if($joinRes['status']==0){
D('User')->addMoney($userId,$ucData['user_name'],$ucData['mobile']);
D('User')->addInvite($userId,$ucData['user_name']);
//完成勋章
D('User')->finishXunzhang($userId,$userName,$mobile,'cansai');
D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true);
$this->ajaxReturn(array('status' => 1, 'info' => '参赛成功!'));
$this->ajaxReturn(['status' => 1, 'info' => '参赛成功!']);
}else{
//第一次用手机号可以登录,不提示参加大赛超过10个的弹窗
if($mobile&&$joinRes['canLogin']){
......
......@@ -625,14 +625,14 @@ class PkTopAction extends IdentityAction{
M('userinfo', " ", C('DB_CONFIG_MNCG3'))->add($initData);
}
D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true);
D('User')->addMoney($userId,$userName,$mobile);
D('User')->addInvite($userId,$userName);
//完成勋章
D('User')->finishXunzhang($userId,$userName,$mobile,'cansai');
D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true);
return ['status'=>1,'info'=>'参赛成功','debug'=>$userId];
}
......
......@@ -284,7 +284,8 @@ class GroupModel extends Model{
//参加的未开赛和正在进行中的大赛如果超过10个,禁止加入,
//必须放在清缓存前面判断,否则清除缓存后还生成旧的参加大赛列表的缓存
$myCount=$this->checkMyGroupCount($user_id);
if($myCount[0]+$myCount[1]>10){
// var_dump($myCount);exit;
if($user_id!='5364924'&&($myCount[0]+$myCount[1]>10)){
return ['status'=>1,'error'=>'你参加的未结束大赛超过10个,不能再报名','canLogin'=>1];
}
......
......@@ -152,11 +152,12 @@ $(function(){
clipboard.on('success', function(e) {layer.msg('复制链接成功',1,1);});
clipboard.on('error', function(e) {layer.msg('复制失败,请长按复制');});
//关闭报名成功的弹框
//关闭报名成功的弹框I('use_type',0,'intval')
$('#closeSucc').click(function(){
location.reload();
});
if('{$_GET.pop}'==1){
if("{:I('pop',0,'intval')}" == 1){
$(".mask").show();
$("#pop2weima").show();
}
......
......@@ -111,7 +111,7 @@
if(mobile==''){layer.msg('请输入手机号');return;}
if(smsCode==''){layer.msg('请输入验证码');return;}
var targetUrl=$('#popLogin').attr('targetUrl');
// var referer='{$_GET.referer}';
var param={mobile:mobile,smsCode:smsCode,targetUrl:targetUrl};
$.post("/Index/telLogin",param,function(data){
// alert();
......
......@@ -228,7 +228,7 @@
}
$(function(){
//支付成功的弹窗
if('{$_GET.is_payok}'==1){
if("{:I('is_payok',0,'intval')}"==1){
$(".mask").show();
$("#popPaySucc").show();
}
......@@ -338,7 +338,7 @@
//自动点击报名按钮
if('{$_GET.clickFlag}'==1){
if("{:I('clickFlag',0,'intval')}"==1){
$("#baoming").click();
}
......
......@@ -26,7 +26,7 @@
//为了加载效果提前
//点后退按钮
var ourl='';
if("{$_GET.key}"!=''||"{$_GET.is_head}"!=''||"{$_GET.key2}"!=''){
if("{:I('key')}"!=''||"{:I('is_head',0,'intval')}"!=''||"{:I('key2')}"!=''){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl='close';
// }
......
......@@ -337,7 +337,7 @@
// });
//自动点击报名按钮
if('{$_GET.clickFlag}'==1){
if("{:I('clickFlag',0,'intval')}"==1){
$(".baoming").click();
}
......
......@@ -66,7 +66,7 @@
//为了加载效果提前
//点后退按钮
var ourl='';
if("{$_GET.key}"!=''||"{$_GET.is_head}"!=''||"{$_GET.key2}"!=''){
if("{:I('key')}"!=''||"{:I('is_head',0,'intval')}"!=''||"{:I('key2')}"!=''){
if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl='close';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment