作者 lihan
1 个管道 的构建 通过 耗费 0 秒

赠送积分和角色管理

@@ -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,