|
|
@ -66,7 +66,7 @@ class GoodsController extends BaseController |
|
|
|
|
|
|
|
|
//搜索不到商品
|
|
|
//搜索不到商品
|
|
|
if(is_null($res['detail']['id'])){ |
|
|
if(is_null($res['detail']['id'])){ |
|
|
throw new ErrorCodeException(ErrorCode::GOODS_ACTIVITY_ON_SALE_NO); |
|
|
|
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::GOODS_ON_SALE_NO); |
|
|
} |
|
|
} |
|
|
//如果没有banner数据,使用商品cover图
|
|
|
//如果没有banner数据,使用商品cover图
|
|
|
if(count($res['banner']) == 0){ |
|
|
if(count($res['banner']) == 0){ |
|
|
|