|
@@ -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();
|
|
|
}
|