Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
a737d5fedec560600c58293801afe6cc788fa2a0
1 parent
f94ea395
最新上架
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/models/Index/Home.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
a737d5f
...
...
@@ -236,12 +236,13 @@ class HomeModel
$val
[
'price'
]
=
$val
[
'salePrice'
];
}
//TODO 字段要调整
$val
[
'tags'
][
'isFew'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'tags'
][
'isLimit'
]
=
$val
[
'tags'
][
'is_discount'
];
$val
[
'tags'
][
'is_discount'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'isFew'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'tags'
][
'isLimit'
]
=
$val
[
'tags'
][
'is_limited'
];
$val
[
'tags'
][
'isSale'
]
=
$val
[
'tags'
][
'is_discount'
];
$val
[
'tags'
][
'isNew'
]
=
false
;
//$val['tags']['is_new'];
$val
[
'tags'
][
'isYearMidPromotion'
]
=
$val
[
'tags'
][
'midYear'
];
$val
[
'tags'
][
'isYearEndPromotion'
]
=
$val
[
'tags'
][
'yearEnd'
];
$val
[
'tags'
][
'isReNew'
]
=
$val
[
'tags'
][
'is_advance'
];
unset
(
$val
[
'tags'
][
'is_advance'
],
$val
[
'tags'
][
'is_discount'
],
$val
[
'tags'
][
'is_limited'
],
$val
[
'tags'
][
'is_new'
],
$val
[
'tags'
][
'is_yohood'
],
$val
[
'tags'
][
'midYear'
],
$val
[
'tags'
][
'yearEnd'
]);
if
(
!
empty
(
$val
))
{
...
...
Please
register
or
login
to post a comment