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
hf
9 years ago
Commit
2a4db9360b8765fa7476f3d0edd24724226f93b2
1 parent
f8b3a5e2
code review by fei.hong: do modify skn limit codes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
14 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 @
2a4db93
...
...
@@ -340,12 +340,6 @@ 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 @
2a4db93
...
...
@@ -34,7 +34,6 @@ class ItemModel
$statGoodsInfo
=
array
();
$banner
=
array
();
$baseInfo
=
ItemData
::
baseInfo
(
$productId
,
$uid
,
$productSkn
);
if
(
empty
(
$baseInfo
[
'productName'
])
&&
empty
(
$baseInfo
[
'erpProductId'
])
&&
empty
(
$baseInfo
[
'productPriceBo'
]))
{
return
array
();
}
...
...
@@ -136,12 +135,7 @@ 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
;
//虚拟商品
...
...
@@ -1183,7 +1177,6 @@ class ItemModel
$result
[
'hasLimitedCode'
]
=
true
;
$result
[
'limitedCodeSoldOut'
]
=
true
;
$result
[
'getLimitedCode'
]
=
false
;
break
;
case
6
:
// 开售前,即将开售(用户已领取限购码)
$result
[
'openSoon'
]
=
true
;
...
...
Please
register
or
login
to post a comment