Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
b2091dec66ff3871ec2b33bb5b40de280f49a7b0
1 parent
90d91716
master
...
baidu_ocpcapi
develop
feature/canbuy
feature/channelDataMap
feature/company-profile
feature/contact
feature/detail-link
feature/home-optimize
feature/overseas-edition
feature/payment
feature/pcurl
feature/reduce
feature/refactor_alert
feature/shoppingPay
feature/virtualOrder
hotfix/11
hotfix/cart
hotfix/changeappversion
hotfix/gift
hotfix/im
hotfix/link
hotfix/ocpc
hotfix/shop
hotfix/upload
hotfix/yohobi
release/6.9.0
release/6.9.2
2019-12-5
all
sync coupon status
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
apps/activity/models/coupon.js
apps/activity/models/coupon.js
View file @
b2091de
...
...
@@ -100,13 +100,9 @@ exports.getCouponStatus = (params) => {
let
i
=
0
;
coupon
.
data
.
forEach
(
function
(
val
,
index
)
{
coupon
.
data
.
forEach
(
function
(
val
)
{
if
(
val
.
template_name
===
'getCoupon'
&&
val
.
data
.
length
)
{
// 优惠券楼层
if
(
!
coupon
.
data
[
index
-
1
].
data
||
!
coupon
.
data
[
index
-
1
].
data
.
text
)
{
return
;
}
val
.
data
.
forEach
(
function
(
item
)
{
const
status
=
Number
(
item
.
status
);
...
...
Please
register
or
login
to post a comment