From 7e87c8e6cd515aea31f9ccb8149c467652d6a091 Mon Sep 17 00:00:00 2001
From: heshupeng <hsp@bronet.cn>
Date: Mon, 25 Jan 2021 11:47:20 +0800
Subject: [PATCH] 测试

---
 application/mobile/controller/User.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/application/mobile/controller/User.php b/application/mobile/controller/User.php
index f7c698f..f5df2c4 100644
--- a/application/mobile/controller/User.php
+++ b/application/mobile/controller/User.php
@@ -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']);
--
libgit2 0.24.0