xieruidong 2 éve
szülő
commit
62a105519e
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      application/common/model/Refund.php

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

@@ -93,7 +93,11 @@ class Refund Extends Model
         return $this['amount'];
     }
     public function refundResult($succ,$remark=''){
-        $this['pay_status']=$succ?1:2;
+        if(is_bool($succ)){
+            $this['pay_status']=$succ?1:2;
+        }else{
+            $this['pay_status']=$succ;
+        }
         $this['pay_remark']=$remark;
         $this->save();
     }