Browse Source

时间

master
Lemon 5 years ago
parent
commit
c790fdba59
  1. 8
      app/Model/v3/StoreWithdrawal.php

8
app/Model/v3/StoreWithdrawal.php

@ -10,7 +10,8 @@ class StoreWithdrawal extends Model
protected $appends = [
'state_text',
'check_time_text'
'check_time_text',
'created_at_text'
];
public function getStateTextAttribute()
@ -26,4 +27,9 @@ class StoreWithdrawal extends Model
return date('Y-m-d H:i:s', $this->attributes['check_time']);
}
}
public function getCreatedAtTimeTextAttribute()
{
return date('Y-m-d H:i:s', $this->attributes['created_at']);
}
}
Loading…
Cancel
Save