attributes['state']); } public function getCheckTimeTextAttribute() { if(empty($this->attributes['check_time'])){ return ''; }else { return date('Y-m-d H:i:s', $this->attributes['check_time']); } } public function getCreatedAtTextAttribute() { return date('Y-m-d H:i:s', $this->attributes['created_at']); } public function getPayTypeTextAttribute() { return '提现到'.WithdrawalType::getMessage($this->attributes['type']); } public function getRealCashTextAttribute() { return '¥ '.WithdrawalType::getMessage($this->attributes['real_cash']); } }