Browse Source

售前退货工单收货接口细节优化

wufeng 2 years ago
parent
commit
b57ebc8830
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/ReorderChild.php

+ 1 - 1
app/admin/controller/ReorderChild.php

@@ -168,7 +168,7 @@ class ReorderChild extends Base
             ->where(['a.is_del' => 0, 'a.id' => $param['id']])
             ->findOrEmpty();
         if (empty($info)) return json_show(1004, '该退货工单不存在');
-        if ($info['status'] == 1) return json_show(1004, '该退货工单已收货');
+        if ($info['status'] != 1) return json_show(1004, '该退货工单已收货');
         if ($param['loss_num'] > $info['num']) return json_show(1004, '丢失数量大于下单数量');
 
         Db::startTrans();