cqpCow 1 year ago
parent
commit
560522c551
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/CheckService.php

+ 1 - 1
app/Service/CheckService.php

@@ -196,7 +196,7 @@ class CheckService extends Service
             ->where('del_time',0)
             ->first();
         if(empty($model)) return [false, '发货单不存在或已被删除'];
-        if($model->state != InvoiceOrder::STATE_ONE) return [false, '请确认发货单状态,操作失败'];
+        if($model->state != InvoiceOrder::STATE_ZERO) return [false, '请确认发货单状态,操作失败'];
 
         InvoiceOrder::where('del_time',0)->where('id',$data['id'])
             ->update(['state' => InvoiceOrder::STATE_ONE]);