Commit f7f07ebe authored by 刘小敏's avatar 刘小敏

商品详情页试戴按钮是否显示

parent 3f852fc2
......@@ -128,7 +128,7 @@ class Goods extends Common
// 商品是否可试戴
$goodsService = new GoodsService();
$isAllowed = $goodsService->isCategoryAllowed($goods['category_ids']);
$goods['is_allowed_tryon'] = $isAllowed ? 1 : 0;
$goods['is_allowed_tryon'] = $goods['image_3d'] && $isAllowed ? 1 : 0;
$this->success('获取成功', $goods);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment