Browse Source

Merge branch 'phoenix' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into phoenix

master
weigang 5 years ago
parent
commit
edbb8fa19b
  1. 8
      app/Model/v3/FinancialRecord.php

8
app/Model/v3/FinancialRecord.php

@ -92,6 +92,14 @@ class FinancialRecord extends Model
'comment',
'status',
];
protected $appends = [
'created_at_text',
];
public function getCreatedAtTextAttribute()
{
return date('Y-m-d H:i:s', $this->attributes['created_at']);
}
/**
* The attributes that should be cast to native types.
*

Loading…
Cancel
Save