feat : finish order
This commit is contained in:
@@ -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('订单商品数据不存在');
|
||||
|
||||
Reference in New Issue
Block a user