|
|
@@ -42,6 +42,14 @@ class BalanceLogModel extends Model
|
|
|
'actual_money' => 'decimal:2',
|
|
|
];
|
|
|
|
|
|
+ protected $appends = ['time_text'];
|
|
|
+
|
|
|
+ // 时间
|
|
|
+ public function getTimeTextAttribute()
|
|
|
+ {
|
|
|
+ return $this->create_time? datetime($this->create_time,'Y-m-d H:i:s') : '';
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 关联用户(会员、代理、商家都在 member 表)
|
|
|
*/
|