正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -18,7 +18,7 @@ class FriendController extends HomeBaseController | @@ -18,7 +18,7 @@ class FriendController extends HomeBaseController | ||
18 | public function friendGiveLog() | 18 | public function friendGiveLog() |
19 | { | 19 | { |
20 | $data = Db::name('friendship')->alias('f') | 20 | $data = Db::name('friendship')->alias('f') |
21 | - ->field('f.total,u.user_nickname,u.avatar') | 21 | + ->field('f.friend_uid as friend_id,f.total,u.user_nickname,u.avatar') |
22 | ->join('user u', 'u.id=f.friend_uid') | 22 | ->join('user u', 'u.id=f.friend_uid') |
23 | ->where(['f.uid' => session('user.id')]) | 23 | ->where(['f.uid' => session('user.id')]) |
24 | ->select()->toArray(); | 24 | ->select()->toArray(); |
@@ -43,7 +43,6 @@ class FriendController extends HomeBaseController | @@ -43,7 +43,6 @@ class FriendController extends HomeBaseController | ||
43 | ->field('id as friend_id,avatar,user_nickname') | 43 | ->field('id as friend_id,avatar,user_nickname') |
44 | ->where($where) | 44 | ->where($where) |
45 | ->select()->toArray(); | 45 | ->select()->toArray(); |
46 | - print_r($list); | ||
47 | if (!empty($list)) { | 46 | if (!empty($list)) { |
48 | return $this->fetch(':friend_list', [ | 47 | return $this->fetch(':friend_list', [ |
49 | 'keyword' => $keyword, | 48 | 'keyword' => $keyword, |
-
请 注册 或 登录 后发表评论