Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
68d17b36c61f1044f4aed0b9f1783e5c4a70e8e7
1 parent
2c6b3cbe
添加失效商品的标志
Code Reveiw By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
library/Plugin/Helpers.php
library/Plugin/Helpers.php
View file @
68d17b3
...
...
@@ -583,8 +583,11 @@ class Helpers
$oneGoods
[
'isVipPrice'
]
=
$value
[
'sales_price'
]
!==
$value
[
'last_vip_price'
];
$oneGoods
[
'count'
]
=
$value
[
'buy_number'
];
if
(
$isValid
)
{
// 库存不足
if
(
$isValid
)
{
// 库存不足
$oneGoods
[
'lowStocks'
]
=
(
$value
[
'buy_number'
]
>
$value
[
'storage_number'
]);
}
else
{
// 失效商品
$oneGoods
[
'inValid'
]
=
true
;
}
//gift=>是否赠品,advanceBuy=>是否加价购,soldOut=>失效商品;
...
...
Please
register
or
login
to post a comment