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

赠送积分和角色管理

@@ -127,7 +127,7 @@ class FriendController extends HomeBaseController @@ -127,7 +127,7 @@ class FriendController extends HomeBaseController
127 if ($total > 0) { 127 if ($total > 0) {
128 if (Db::name('user')->where(['id' => $uid])->setDec('balance', $total)) { 128 if (Db::name('user')->where(['id' => $uid])->setDec('balance', $total)) {
129 if (Db::name('user')->where(['id' => $friend_id])->setInc('balance', $total)) { 129 if (Db::name('user')->where(['id' => $friend_id])->setInc('balance', $total)) {
130 - //被赠送者插入赠送记录日志log 130 + //记录日志log
131 $log = [ 131 $log = [
132 0 => [ 132 0 => [
133 'uid' => $friend_id, 133 'uid' => $friend_id,