Commit 03a72b0b authored by wangjing's avatar wangjing

Merge remote-tracking branch 'origin/master'

parents be5d3f54 c6ec6e19
...@@ -16,6 +16,7 @@ class PkTopAction extends IdentityAction{ ...@@ -16,6 +16,7 @@ class PkTopAction extends IdentityAction{
//首页 //首页
public function index() { public function index() {
//首页的排行榜等切换
if(!I('viewPage')){ if(!I('viewPage')){
header('location:'.M_URL.'/Match/jiang'); header('location:'.M_URL.'/Match/jiang');
exit; exit;
...@@ -618,6 +619,13 @@ class PkTopAction extends IdentityAction{ ...@@ -618,6 +619,13 @@ class PkTopAction extends IdentityAction{
M('userinfo', " ", C('DB_CONFIG_MNCG3'))->add($initData); M('userinfo', " ", C('DB_CONFIG_MNCG3'))->add($initData);
} }
D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true); D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true);
//钱包
$wallet=M('Wallet')->where(['user_id'=>$userId])->find();
if(empty($wallet)){
M('Wallet')->add(['user_id'=>$userId,'user_name'=>$userName,'add_time'=>time()]);
}
return array('status'=>1,'info'=>'参赛成功','debug'=>$userId); return array('status'=>1,'info'=>'参赛成功','debug'=>$userId);
......
...@@ -769,6 +769,10 @@ ...@@ -769,6 +769,10 @@
return false; return false;
}); });
//自动点击报名按钮
if('{$_GET.clickFlag}'==1){
$(".baoming").click();
}
}); });
......
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