|
|
@ -209,9 +209,9 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
'price' => $goods->price, |
|
|
'price' => $goods->price, |
|
|
'original_price' => $goods->original_price, |
|
|
'original_price' => $goods->original_price, |
|
|
'vip_price' => $goods->vip_price, |
|
|
'vip_price' => $goods->vip_price, |
|
|
'name' => $goods->name, |
|
|
|
|
|
'goods_unit' => $goods->goods_unit, |
|
|
|
|
|
'cover_img' => $goods->cover_img, |
|
|
|
|
|
|
|
|
'name' => $goods->name ?: '', |
|
|
|
|
|
'goods_unit' => $goods->goods_unit ?: '', |
|
|
|
|
|
'cover_img' => $goods->cover_img ?: '', |
|
|
'spec' => json_encode($goods->spec), |
|
|
'spec' => json_encode($goods->spec), |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
@ -346,7 +346,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
} catch (Exception $e) { |
|
|
} catch (Exception $e) { |
|
|
Db::rollBack(); |
|
|
Db::rollBack(); |
|
|
$this->log->event(LogLabel::ORDER_ONLINE_LOG, ['msg' => $e->getMessage()]); |
|
|
$this->log->event(LogLabel::ORDER_ONLINE_LOG, ['msg' => $e->getMessage()]); |
|
|
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_FAIL, $e->getMessage()); |
|
|
|
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_FAIL); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|