Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
09e410bf
Commit
09e410bf
authored
Mar 20, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time
parent
d9b7aa69
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ConvertCouponService.php
application/api/service/ConvertCouponService.php
+4
-1
UpdateCouponTask.php
application/task/controller/UpdateCouponTask.php
+4
-1
No files found.
application/api/service/ConvertCouponService.php
View file @
09e410bf
...
@@ -169,7 +169,10 @@ class ConvertCouponService
...
@@ -169,7 +169,10 @@ class ConvertCouponService
}
}
#发券日期大于最后使用日期
#发券日期大于最后使用日期
if
(
$v
[
'create_time'
]
>
date
(
"Y-m-d H:i:s"
,
strtotime
(
"+
{
$v
[
'use_period'
]
}
day"
,
strtotime
(
$v
[
'create_time'
])))){
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$use_time
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"+
{
$v
[
'use_period'
]
}
day"
,
strtotime
(
$v
[
'create_time'
])));
if
(
$time
>
$use_time
){
big_log
(
'优惠券已经过期'
);
big_log
(
'优惠券已经过期'
);
$this
->
m_coupon
->
updateStatus
(
$v
[
'id'
],
2
);
$this
->
m_coupon
->
updateStatus
(
$v
[
'id'
],
2
);
unset
(
$coupon_list
[
$k
]);
unset
(
$coupon_list
[
$k
]);
...
...
application/task/controller/UpdateCouponTask.php
View file @
09e410bf
...
@@ -42,7 +42,10 @@ class UpdateCouponTask
...
@@ -42,7 +42,10 @@ class UpdateCouponTask
}
}
#发券日期大于最后使用日期
#发券日期大于最后使用日期
if
(
$v
[
'create_time'
]
>
date
(
"Y-m-d H:i:s"
,
strtotime
(
"+
{
$v
[
'use_period'
]
}
day"
,
strtotime
(
$v
[
'use_period'
])))){
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$use_time
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"+
{
$v
[
'use_period'
]
}
day"
,
strtotime
(
$v
[
'create_time'
])));
if
(
$time
>
$use_time
){
$this
->
m_coupon
->
updateStatus
(
$v
[
'id'
],
2
);
$this
->
m_coupon
->
updateStatus
(
$v
[
'id'
],
2
);
}
}
}
}
...
...
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