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

测试

... ... @@ -1421,8 +1421,11 @@ class User extends Api
$page = $this->request->param('page', 1, 'intval');
$page_num = $this->request->param('page_num', 10, 'intval');
$data = QuestionCollect::with(['question'])
->where('user_id',$this->auth->id)
->order('createtime desc')
->alias('a')
->join('mobile_question b','a.question_id = b.id')
->where('a.user_id',$this->auth->id)
->order('a.createtime desc')
->field('a.*')
->paginate($page_num,false,['page'=>$page])
->each(function($v){
$v['createtime'] = date('Y.m.d H:i',$v['createtime']);
... ...