Commit 7219ebb6 authored by 蒋政义's avatar 蒋政义

自动报名

parent baa8e5f6
...@@ -1077,6 +1077,9 @@ class PkTopAction extends IdentityAction{ ...@@ -1077,6 +1077,9 @@ class PkTopAction extends IdentityAction{
if (in_array($groupId, $ids)) { if (in_array($groupId, $ids)) {
$this->assign('joinStatus', 1); $this->assign('joinStatus', 1);
} }
if(!in_array($groupId, $ids)){
$this->assign('is_auto_join', I('aid') ? 1 : 0);
}
//滚动消息,1pk付款,2发起pk,3pk胜利,4pk失败,5胜利退钱,6失败钱归passive,7买重置卡 //滚动消息,1pk付款,2发起pk,3pk胜利,4pk失败,5胜利退钱,6失败钱归passive,7买重置卡
// $msg1 = M('PktopNews')->where(['type' => ['in', '2']])->order('add_time desc')->limit(5)->select(); // $msg1 = M('PktopNews')->where(['type' => ['in', '2']])->order('add_time desc')->limit(5)->select();
......
...@@ -360,8 +360,10 @@ ...@@ -360,8 +360,10 @@
} }
//自动报名
if("{$is_auto_join}" == 1){
$(".baoming").click();
}
}); });
</script> </script>
......
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