'', 1 => __('退款中'), 2 => __('待退货'), 3 => __('退款完成'), 4 => __('退款关闭'), 5 => __('退款被拒')]; } public function getRefundStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['refund_status']) ? $data['refund_status'] : ''); $list = $this->getRefundStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function user() { return $this->belongsTo('app\common\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0); } }