Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
3c5f5277
Commit
3c5f5277
authored
Nov 24, 2022
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更多大赛
parent
43912cc7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
pk.js
Public/js/pk.js
+3
-2
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+4
-4
GroupModel.class.php
app/Lib/Model/GroupModel.class.php
+1
-1
No files found.
Public/js/pk.js
View file @
3c5f5277
...
@@ -87,15 +87,16 @@ function submitBaoming(userType,tradeUrl){
...
@@ -87,15 +87,16 @@ function submitBaoming(userType,tradeUrl){
if
(
tradeUrl
==
''
){
if
(
tradeUrl
==
''
){
window
.
location
.
reload
();
window
.
location
.
reload
();
}
else
{
}
else
{
//因登录窗重用,不出现下面的弹窗了
layer
.
alert
(
'登录成功'
,
1
,
function
(){
location
.
reload
();});
return
;
var
index
=
$
.
layer
({
var
index
=
$
.
layer
({
type
:
1
,
title
:
' '
,
border
:
[
5
,
0.5
,
'#666'
],
btns
:
2
,
btn
:
[
'关闭'
,
'去交易'
],
type
:
1
,
title
:
' '
,
border
:
[
5
,
0.5
,
'#666'
],
btns
:
2
,
btn
:
[
'关闭'
,
'去交易'
],
area
:
[
'240px'
,
'130px'
],
area
:
[
'240px'
,
'130px'
],
page
:
{
html
:
'<p style="margin-left: 48px;margin-top: 16px;">您已经加入过该大赛</p>'
},
page
:
{
html
:
'<p style="margin-left: 48px;margin-top: 16px;">您已经加入过该大赛</p>'
},
success
:
function
(
layero
){
},
success
:
function
(
layero
){
},
yes
:
function
(
index
)
{
yes
:
function
(
index
)
{
// layer.close(index);
window
.
location
.
reload
();
window
.
location
.
reload
();
// location.href='/?view='+view;
},
},
no
:
function
(
index
)
{
no
:
function
(
index
)
{
//必须回车
//必须回车
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
3c5f5277
...
@@ -375,7 +375,7 @@ class PkTopAction extends IdentityAction{
...
@@ -375,7 +375,7 @@ class PkTopAction extends IdentityAction{
//app外打开
//app外打开
if
(
$mobile
){
if
(
$mobile
){
if
(
!
$smsCode
)
{
if
(
!
$smsCode
)
{
$this
->
ajaxReturn
(
array
(
'status'
=>
0
,
'info'
=>
'请输入手机验证码!'
)
);
$this
->
ajaxReturn
(
[
'status'
=>
0
,
'info'
=>
'请输入手机验证码!'
]
);
}
}
// if (S('tel:'. $mobile . ':'.$code_type) != $smsCode) {
// if (S('tel:'. $mobile . ':'.$code_type) != $smsCode) {
// $this->ajaxReturn(array('status' => 0, 'info' => '对不起!手机验证码错误或已过期!'));
// $this->ajaxReturn(array('status' => 0, 'info' => '对不起!手机验证码错误或已过期!'));
...
@@ -400,7 +400,7 @@ class PkTopAction extends IdentityAction{
...
@@ -400,7 +400,7 @@ class PkTopAction extends IdentityAction{
$groupStatus
=
$this
->
getGroupStatus
(
$groupInfo
);
$groupStatus
=
$this
->
getGroupStatus
(
$groupInfo
);
if
(
$groupStatus
==
3
)
{
if
(
$groupStatus
==
3
)
{
$this
->
ajaxReturn
(
array
(
'status'
=>
0
,
'info'
=>
'大赛已经结束,不能报名!'
)
);
$this
->
ajaxReturn
(
[
'status'
=>
0
,
'info'
=>
'大赛已经结束,不能报名!'
]
);
}
}
if
(
$mfrom
==
1
||
$mfrom
==
2
){
if
(
$mfrom
==
1
||
$mfrom
==
2
){
...
@@ -560,9 +560,9 @@ class PkTopAction extends IdentityAction{
...
@@ -560,9 +560,9 @@ class PkTopAction extends IdentityAction{
}
else
{
}
else
{
//如果被踢出则恢复
//如果被踢出则恢复
if
(
$row
[
'grade'
]
==
-
2
){
if
(
$row
[
'grade'
]
==
-
2
){
M
(
'UserGroup'
)
->
where
(
array
(
'user_id'
=>
$userId
,
'group_id'
=>
$groupId
))
->
save
(
array
(
'grade'
=>
0
,
'add_time'
=>
time
())
);
M
(
'UserGroup'
)
->
where
(
[
'user_id'
=>
$userId
,
'group_id'
=>
$groupId
])
->
save
([
'grade'
=>
0
,
'add_time'
=>
time
()]
);
}
else
{
}
else
{
return
array
(
'status'
=>
0
,
'info'
=>
'您已经参加过该大赛'
,
'debug'
=>
$userId
,
'flag'
=>
1
)
;
return
[
'status'
=>
0
,
'info'
=>
'您已经参加过该大赛'
,
'debug'
=>
$userId
,
'flag'
=>
1
]
;
}
}
}
}
...
...
app/Lib/Model/GroupModel.class.php
View file @
3c5f5277
...
@@ -301,7 +301,7 @@ class GroupModel extends Model{
...
@@ -301,7 +301,7 @@ class GroupModel extends Model{
$user
=
M
(
'UserGroup'
)
->
where
(
array
(
'user_id'
=>
$user_id
,
'group_id'
=>
$group_id
))
->
find
();
$user
=
M
(
'UserGroup'
)
->
where
(
array
(
'user_id'
=>
$user_id
,
'group_id'
=>
$group_id
))
->
find
();
if
(
!
empty
(
$user
)){
if
(
!
empty
(
$user
)){
return
array
(
'status'
=>
1
,
'error'
=>
'您已经加入过该小组'
,
'joinStatus'
=>
1
)
;
return
[
'status'
=>
1
,
'error'
=>
'您已经加入过该小组'
,
'joinStatus'
=>
1
]
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment