|
|
@@ -30,7 +30,14 @@ class AccountLogModel extends BaseModel
|
|
|
return $this->create_time? datetime($this->create_time,'Y-m-d H:i:s') : '';
|
|
|
}
|
|
|
|
|
|
- // 时间
|
|
|
+
|
|
|
+ // 金额
|
|
|
+ public function getMoneyAttribute($value)
|
|
|
+ {
|
|
|
+ return floatval($value);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 金额
|
|
|
public function getRealMoneyAttribute()
|
|
|
{
|
|
|
return moneyFormat(abs($this->money),2);
|