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
af71803f
Commit
af71803f
authored
Aug 11, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改GET参数
parent
7bb6d4db
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
16 deletions
+21
-16
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+8
-5
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+2
-2
GroupModel.class.php
app/Lib/Model/GroupModel.class.php
+2
-1
myInvite.html
app/Tpl/Vip/Index/myInvite.html
+3
-2
newPop.html
app/Tpl/Vip/Index/newPop.html
+1
-1
saicheng.html
app/Tpl/Vip/Index/saicheng.html
+2
-2
head.html
app/Tpl/Vip/PkTop/head.html
+1
-1
index.html
app/Tpl/Vip/PkTop/index.html
+1
-1
indexOld____.html
app/Tpl/Vip/PkTop/indexOld____.html
+1
-1
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
af71803f
...
@@ -469,10 +469,7 @@ class IndexAction extends IdentityAction {
...
@@ -469,10 +469,7 @@ class IndexAction extends IdentityAction {
$userId
=
$ucData
[
'user_id'
];
$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表,需要添加
//用户未加入大赛或已加入,但不在cofool_allex_user表,需要添加
if
(
$joinRes
[
'status'
]
==
0
||
$joinRes
[
'joinStatus'
]
==
1
){
if
(
$joinRes
[
'status'
]
==
0
||
$joinRes
[
'joinStatus'
]
==
1
){
...
@@ -486,8 +483,14 @@ class IndexAction extends IdentityAction {
...
@@ -486,8 +483,14 @@ class IndexAction extends IdentityAction {
}
}
//0成功,1失败
//0成功,1失败
if
(
$joinRes
[
'status'
]
==
0
){
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
);
D
(
'Sms'
)
->
send
([
'mobile'
=>
$mobile
,
'content'
=>
$bmContent
,
'type'
=>
46
],
true
,
true
);
$this
->
ajaxReturn
(
array
(
'status'
=>
1
,
'info'
=>
'参赛成功!'
)
);
$this
->
ajaxReturn
(
[
'status'
=>
1
,
'info'
=>
'参赛成功!'
]
);
}
else
{
}
else
{
//第一次用手机号可以登录,不提示参加大赛超过10个的弹窗
//第一次用手机号可以登录,不提示参加大赛超过10个的弹窗
if
(
$mobile
&&
$joinRes
[
'canLogin'
]){
if
(
$mobile
&&
$joinRes
[
'canLogin'
]){
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
af71803f
...
@@ -625,14 +625,14 @@ class PkTopAction extends IdentityAction{
...
@@ -625,14 +625,14 @@ 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
(
'User'
)
->
addMoney
(
$userId
,
$userName
,
$mobile
);
D
(
'User'
)
->
addMoney
(
$userId
,
$userName
,
$mobile
);
D
(
'User'
)
->
addInvite
(
$userId
,
$userName
);
D
(
'User'
)
->
addInvite
(
$userId
,
$userName
);
//完成勋章
//完成勋章
D
(
'User'
)
->
finishXunzhang
(
$userId
,
$userName
,
$mobile
,
'cansai'
);
D
(
'User'
)
->
finishXunzhang
(
$userId
,
$userName
,
$mobile
,
'cansai'
);
D
(
'Sms'
)
->
send
([
'mobile'
=>
$mobile
,
'content'
=>
$bmContent
,
'type'
=>
46
],
true
,
true
);
return
[
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
];
return
[
'status'
=>
1
,
'info'
=>
'参赛成功'
,
'debug'
=>
$userId
];
}
}
...
...
app/Lib/Model/GroupModel.class.php
View file @
af71803f
...
@@ -284,7 +284,8 @@ class GroupModel extends Model{
...
@@ -284,7 +284,8 @@ class GroupModel extends Model{
//参加的未开赛和正在进行中的大赛如果超过10个,禁止加入,
//参加的未开赛和正在进行中的大赛如果超过10个,禁止加入,
//必须放在清缓存前面判断,否则清除缓存后还生成旧的参加大赛列表的缓存
//必须放在清缓存前面判断,否则清除缓存后还生成旧的参加大赛列表的缓存
$myCount
=
$this
->
checkMyGroupCount
(
$user_id
);
$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
];
return
[
'status'
=>
1
,
'error'
=>
'你参加的未结束大赛超过10个,不能再报名'
,
'canLogin'
=>
1
];
}
}
...
...
app/Tpl/Vip/Index/myInvite.html
View file @
af71803f
...
@@ -152,11 +152,12 @@ $(function(){
...
@@ -152,11 +152,12 @@ $(function(){
clipboard
.
on
(
'success'
,
function
(
e
)
{
layer
.
msg
(
'复制链接成功'
,
1
,
1
);});
clipboard
.
on
(
'success'
,
function
(
e
)
{
layer
.
msg
(
'复制链接成功'
,
1
,
1
);});
clipboard
.
on
(
'error'
,
function
(
e
)
{
layer
.
msg
(
'复制失败,请长按复制'
);});
clipboard
.
on
(
'error'
,
function
(
e
)
{
layer
.
msg
(
'复制失败,请长按复制'
);});
//关闭报名成功的弹框
//关闭报名成功的弹框
I('use_type',0,'intval')
$
(
'#closeSucc'
).
click
(
function
(){
$
(
'#closeSucc'
).
click
(
function
(){
location
.
reload
();
location
.
reload
();
});
});
if
(
'{$_GET.pop}'
==
1
){
if
(
"{:I('pop',0,'intval')}"
==
1
){
$
(
".mask"
).
show
();
$
(
".mask"
).
show
();
$
(
"#pop2weima"
).
show
();
$
(
"#pop2weima"
).
show
();
}
}
...
...
app/Tpl/Vip/Index/newPop.html
View file @
af71803f
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
if
(
mobile
==
''
){
layer
.
msg
(
'请输入手机号'
);
return
;}
if
(
mobile
==
''
){
layer
.
msg
(
'请输入手机号'
);
return
;}
if
(
smsCode
==
''
){
layer
.
msg
(
'请输入验证码'
);
return
;}
if
(
smsCode
==
''
){
layer
.
msg
(
'请输入验证码'
);
return
;}
var
targetUrl
=
$
(
'#popLogin'
).
attr
(
'targetUrl'
);
var
targetUrl
=
$
(
'#popLogin'
).
attr
(
'targetUrl'
);
// var referer='{$_GET.referer}';
var
param
=
{
mobile
:
mobile
,
smsCode
:
smsCode
,
targetUrl
:
targetUrl
};
var
param
=
{
mobile
:
mobile
,
smsCode
:
smsCode
,
targetUrl
:
targetUrl
};
$
.
post
(
"/Index/telLogin"
,
param
,
function
(
data
){
$
.
post
(
"/Index/telLogin"
,
param
,
function
(
data
){
// alert();
// alert();
...
...
app/Tpl/Vip/Index/saicheng.html
View file @
af71803f
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
}
}
$
(
function
(){
$
(
function
(){
//支付成功的弹窗
//支付成功的弹窗
if
(
'{$_GET.is_payok}'
==
1
){
if
(
"{:I('is_payok',0,'intval')}"
==
1
){
$
(
".mask"
).
show
();
$
(
".mask"
).
show
();
$
(
"#popPaySucc"
).
show
();
$
(
"#popPaySucc"
).
show
();
}
}
...
@@ -338,7 +338,7 @@
...
@@ -338,7 +338,7 @@
//自动点击报名按钮
//自动点击报名按钮
if
(
'{$_GET.clickFlag}'
==
1
){
if
(
"{:I('clickFlag',0,'intval')}"
==
1
){
$
(
"#baoming"
).
click
();
$
(
"#baoming"
).
click
();
}
}
...
...
app/Tpl/Vip/PkTop/head.html
View file @
af71803f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
//为了加载效果提前
//为了加载效果提前
//点后退按钮
//点后退按钮
var
ourl
=
''
;
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')){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
ourl
=
'close'
;
// }
// }
...
...
app/Tpl/Vip/PkTop/index.html
View file @
af71803f
...
@@ -337,7 +337,7 @@
...
@@ -337,7 +337,7 @@
// });
// });
//自动点击报名按钮
//自动点击报名按钮
if
(
'{$_GET.clickFlag}'
==
1
){
if
(
"{:I('clickFlag',0,'intval')}"
==
1
){
$
(
".baoming"
).
click
();
$
(
".baoming"
).
click
();
}
}
...
...
app/Tpl/Vip/PkTop/indexOld____.html
View file @
af71803f
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
//为了加载效果提前
//为了加载效果提前
//点后退按钮
//点后退按钮
var
ourl
=
''
;
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'
)){
if
(
!
window
.
localStorage
.
getItem
(
'TradeQueryPageUid'
)){
ourl
=
'close'
;
ourl
=
'close'
;
}
}
...
...
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