From 5d9ec42795ada384c4b416b1cae3b0cb22ca5891 Mon Sep 17 00:00:00 2001
From: lihan <3398341942@qq.com>
Date: Mon, 12 Nov 2018 10:29:54 +0800
Subject: [PATCH] 赠送积分和角色管理

---
 app/friendship/controller/FriendController.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/friendship/controller/FriendController.php b/app/friendship/controller/FriendController.php
index d899a2a..115124b 100644
--- a/app/friendship/controller/FriendController.php
+++ b/app/friendship/controller/FriendController.php
@@ -23,7 +23,8 @@ class FriendController extends HomeBaseController
             ->where(['f.uid' => session('user.id')])
             ->select()->toArray();
         return $this->fetch(':friend_give_log', [
-            'list' => $data
+            'list' => $data,
+            'balance' => Db::name('user')->where(['id' => session('user.id')])->value('balance')
         ]);
     }
 
--
libgit2 0.24.0