feat : finish order
This commit is contained in:
@@ -103,7 +103,7 @@ class CompletePrintService extends CateringBaseService
|
||||
|
||||
$userInfo = $this->userModel->find($orderInfo->user_id);
|
||||
|
||||
$driverInfo = $this->driverSequenceModel->find($siteInfo->delivered_id);
|
||||
$driverInfo = $this->driverSequenceModel->where('driver_id',$siteInfo->delivered_id)->first();
|
||||
if (empty($driverInfo)) throw new ErrException('配送员信息丢失,请联系管理员');
|
||||
if ($driverInfo->driver_num <= 0) throw new ErrException('配送员编号丢失,请联系管理员');
|
||||
if (empty($driverInfo->driver_name)) throw new ErrException('配送员姓名丢失,请联系管理员');
|
||||
|
||||
Reference in New Issue
Block a user