...
|
...
|
@@ -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']);
|
...
|
...
|
|