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

赠送积分和角色管理

... ... @@ -139,7 +139,7 @@ class FriendController extends HomeBaseController
'uid' => session('user.id'),
'create_time' => time(),
'balance' => $total,
'type' => 3
'type' => 4
]
];
... ...
... ... @@ -380,10 +380,10 @@ class CenterController extends HomeBaseController
$type = request()->param('type');
if ($type == 1) {
$title = '积分获取记录';
$where['type'] = ['neq', 2];
$where['type'] = ['in', "1,3"];
} else {
$title = '积分使用记录';
$where['type'] = ['neq', 1];
$where['type'] = ['in', "2,4"];
}
$where['uid'] = ['eq', session('user.id')];
$log = Db::name('zj_integral_log')->where($where)->order('create_time DESC')->select();
... ...