Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
hf
9 years ago
Commit
f8b3a5e2a5a1980dcd312728c23b4b3e956f1662
1 parent
4cb82218
code review by fei.hong: do modify skn limit codes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/www.yohobuy.com/application/models/Product/Item.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
f8b3a5e
...
...
@@ -340,6 +340,12 @@ class DetailModel
elseif
(
$soldOut
)
{
$result
[
'cartInfo'
][
'soldOut'
]
=
true
;
}
$skns
=
array
(
51116461
,
51215621
,
51215620
,
51215622
,
51216345
,
51216346
,
51215618
,
51215619
);
//暂时处理
if
(
in_array
(
$baseInfo
[
'erpProductId'
],
$skns
))
{
$result
[
'cartInfo'
][
'soldOut'
]
=
true
;
}
// 是否收藏
$result
[
'isCollect'
]
=
false
;
...
...
yohobuy/www.yohobuy.com/application/models/Product/Item.php
View file @
f8b3a5e
...
...
@@ -136,6 +136,12 @@ class ItemModel
$goodsInfo
[
'buyNow'
]
=
$fashTopGoods
[
'buyNow'
];
//是否立即购买
}
}
$skns
=
array
(
51116461
,
51215621
,
51215620
,
51215622
,
51216345
,
51216346
,
51215618
,
51215619
);
//暂时处理
if
(
in_array
(
$baseInfo
[
'erpProductId'
],
$skns
))
{
$goodsInfo
[
'soldOut'
]
=
true
;
$totalStorageNum
=
0
;
}
$soldOut
=
$baseInfo
[
'status'
]
==
0
||
$totalStorageNum
===
0
;
$notForSale
=
$baseInfo
[
'attribute'
]
==
2
;
//非卖品
$virtualGoods
=
$baseInfo
[
'attribute'
]
==
3
;
//虚拟商品
...
...
Please
register
or
login
to post a comment