正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -735,10 +735,13 @@ class User extends Api | @@ -735,10 +735,13 @@ class User extends Api | ||
735 | $where = ['user_id'=>$this->auth->id]; | 735 | $where = ['user_id'=>$this->auth->id]; |
736 | $total_num = UserMoneyLog::where($where)->count(); | 736 | $total_num = UserMoneyLog::where($where)->count(); |
737 | $list = UserMoneyLog::where($where) | 737 | $list = UserMoneyLog::where($where) |
738 | - ->field("memo,money,before,after,status,from_unixtime(createtime, '%Y-%m-%d %H:%i:%S') createtime") | 738 | + ->field("memo,money,before,after,status,createtime") |
739 | ->page($page,$pageNum) | 739 | ->page($page,$pageNum) |
740 | ->order('createtime','DESC') | 740 | ->order('createtime','DESC') |
741 | ->select(); | 741 | ->select(); |
742 | + foreach ($list as &$v) { | ||
743 | + $v['createtime'] = date('Y-m-d H:i:s',$v['createtime']); | ||
744 | + } | ||
742 | $this->success('成功',compact('total_num','list')); | 745 | $this->success('成功',compact('total_num','list')); |
743 | } | 746 | } |
744 | 747 |
-
请 注册 或 登录 后发表评论