|
@@ -42,6 +42,7 @@ class Refund Extends Model
|
|
|
'refund_status_text',
|
|
|
'need_rec',
|
|
|
'need_tk',
|
|
|
+ 'is_pass',
|
|
|
];
|
|
|
const REFUND_ING=100;
|
|
|
const REFUND_PASS=200;
|
|
@@ -443,6 +444,13 @@ class Refund Extends Model
|
|
|
}
|
|
|
return $arr;
|
|
|
}
|
|
|
+ #是否已通过
|
|
|
+ public function getIsPassAttr($_,$model){
|
|
|
+ return in_array($model['refund_status'],[
|
|
|
+ self::REFUND_REJECT,
|
|
|
+ self::REFUND_CANCEL,
|
|
|
+ ]);
|
|
|
+ }
|
|
|
|
|
|
public static function datetime($time){
|
|
|
if($time){
|