Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
Project
Project
Details
Activity
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
llewan
ylc.llewan.com
Commits
b7225da1
Commit
b7225da1
authored
Sep 30, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加兑换次数限制
parent
c7c3689c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ShopController.class.php
Application/Home/Controller/ShopController.class.php
+8
-0
No files found.
Application/Home/Controller/ShopController.class.php
View file @
b7225da1
...
...
@@ -152,6 +152,14 @@ class ShopController extends BaseController
echo
$this
->
formatRes
(
$result
);
exit
;
}
$num
=
M
(
"yl_goods_order"
,
""
,
C
(
"LEWAN_HEZI"
))
->
where
(
array
(
'uid'
=>
$token
[
'uid'
],
'create_time'
=>
array
(
'gt'
,
date
(
'Y-m-d'
))))
->
count
();
if
(
$num
>
2
)
{
$result
=
array
(
'c'
=>
2
,
'msg'
=>
'今天兑换次数已达上限'
);
echo
$this
->
formatRes
(
$result
);
exit
;
}
$model
=
new
\Home\Model\ShopModel
();
$result
=
$model
->
goodsChange
(
$token
[
'uid'
],
$goodsId
,
$changeWay
);
...
...
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