|
|
|
@ -111,11 +111,11 @@ class Goods extends BaseModel |
|
|
|
|
// 商品图片 |
|
|
|
|
$item['goods_image'] = !empty($item['goods']['goods_image']) ? $item['goods']['goods_image'] : ''; |
|
|
|
|
// 秒杀商品原价 (获取主商品价格) |
|
|
|
|
$item['original_price'] = !empty($item['goods']['original_price']) ? $item['goods']['original_price'] : 0; |
|
|
|
|
$item['original_price'] = !empty($item['goods']['original_price']) ? $item['goods']['original_price']: $item['goods']['goods_price_min']; |
|
|
|
|
// 回调函数 |
|
|
|
|
is_callable($callback) && call_user_func($callback, $item); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $data; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|