|
|
@@ -135,7 +135,12 @@ class MtController extends PublicController
|
|
|
noticeUtil::push("美团确认订单报错,没有找到商品图片,美团订单id:{$mtOrderId}", '15280215347');
|
|
|
util::stop();
|
|
|
}
|
|
|
- $imgString = $mgGoodsDetail['data']['picture'];
|
|
|
+ $imgString = $mgGoodsDetail['data']['picture'] ?? '';
|
|
|
+ if (empty($imgString)) {
|
|
|
+ noticeUtil::push("美团确认订单报错,没有商品图片,美团订单id:{$mtOrderId}", '15280215347');
|
|
|
+ util::stop();
|
|
|
+ }
|
|
|
+ noticeUtil::push("美团确认订单,美团订单id:{$mtOrderId},商品图片:" . $imgString, '15280215347');
|
|
|
$goodsName = $mtGoods['food_name'] ?? '';
|
|
|
$goodsPrice = $mtGoods['price'] ?? 0;
|
|
|
$num = $mtGoods['quantity'] ?? 0;
|