Browse Source

Merge remote-tracking branch 'origin/develop' into develop

ncs_23818 2 years ago
parent
commit
a9a51aac3f

+ 0 - 1
application/admin/controller/OrderInfoRefund.php

@@ -124,7 +124,6 @@ class OrderInfoRefund extends Backend
             $this->error('无法退款');
         }
         if($refund->refund_type==$refund::REFUND_TYPE_ALL){
-            $refund->refund_status=$refund::REFUND_OVER;
             $refund->payToUser();
         }
         $refund->save();

+ 1 - 0
application/common/model/Refund.php

@@ -294,6 +294,7 @@ class Refund Extends Model
     #end
     public function payToUser(){
         $payment = $this->orders->payment ?? null;
+        $this->refund_status=self::REFUND_OVER;
         if ($payment) {
             $this->order_no=order_no('tk');
             $this->save();