wugg 2 years ago
parent
commit
f75cf3164e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/admin/controller/Payment.php

+ 3 - 0
app/admin/controller/Payment.php

@@ -957,6 +957,9 @@ class Payment extends BaseController
         $remark = $post['remark']??'';
         Db::startTrans();
         try {
+            if($payment['invType']==1&&$status==1){
+                $status=2;
+            }
             $invup =["status"=>$status,"remark"=>$remark,"updatetime"=>date("Y-m-d H:i:s")];
             $inv =Db::name("pay_invoice")->where($payment)->update($invup);
             if($inv){