feat : finish order

This commit is contained in:
2025-04-02 16:08:53 +08:00
parent ea374d578f
commit 99b38aaa7e

View File

@@ -82,7 +82,7 @@ class CompletePrintService extends CateringBaseService
if (empty($pickupCodeInfo)) throw new ErrException('取餐数据不存在');
$orderInfo = $this->orderModel->find($pickupCodeInfo->order_id);
if (empty($this->orderInfo)) throw new ErrException('订单数据不存在');
if (empty($orderInfo)) throw new ErrException('订单数据不存在');
$skuArr = $this->orderGoodModel->where('order_id',$pickupCodeInfo->order_id)->where('copies',$pickupCodeInfo->copies)->pluck('quantity','sku_id')->toArray();
if (empty($skuArr)) throw new ErrException('订单商品数据不存在');