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

赠送积分和角色管理

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