作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

合并分支 'heshupeng' 到 'master'

Heshupeng



查看合并请求 !190
@@ -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