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
f9c76dcf
Commit
f9c76dcf
authored
Sep 18, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复抽奖漏洞
parent
9cb316c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
PublicAction.class.php
app/Lib/Action/Vip/PublicAction.class.php
+4
-0
No files found.
app/Lib/Action/Vip/PublicAction.class.php
View file @
f9c76dcf
...
@@ -153,6 +153,10 @@ class PublicAction extends IdentityAction {
...
@@ -153,6 +153,10 @@ class PublicAction extends IdentityAction {
if
(
$userId
==
0
){
if
(
$userId
==
0
){
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请登录后再操作'
]);
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请登录后再操作'
]);
}
}
$oldKaihu
=
M
(
'PktopKaihu'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
if
(
!
$oldKaihu
[
'left_num'
]){
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请联系管理员获取抽奖机会'
]);
}
$prizeList
=
[
$prizeList
=
[
'1'
=>
[
'name'
=>
'100元奖券'
,
'score'
=>
0
],
'2'
=>
[
'name'
=>
'500元奖券'
,
'score'
=>
0
],
'1'
=>
[
'name'
=>
'100元奖券'
,
'score'
=>
0
],
'2'
=>
[
'name'
=>
'500元奖券'
,
'score'
=>
0
],
'3'
=>
[
'name'
=>
'300元奖券'
,
'score'
=>
0
],
'4'
=>
[
'name'
=>
'35元奖券'
,
'score'
=>
100
]
'3'
=>
[
'name'
=>
'300元奖券'
,
'score'
=>
0
],
'4'
=>
[
'name'
=>
'35元奖券'
,
'score'
=>
100
]
...
...
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