mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-06 16:21:17 +08:00
Compare commits
No commits in common. "c15beb54985d511ebd0aa534885e73c0bd99441c" and "ec2c0f59b0d0ea84e5280b8eb317fd877c659bba" have entirely different histories.
c15beb5498
...
ec2c0f59b0
@ -86,7 +86,7 @@ class UserUpgradeService extends Service
|
||||
$teamsIndirect = DataUser::mk()->where(['pid2' => $uuid])->whereIn('vip_code', $vipTeam)->count();
|
||||
$teamsUsers = $teamsDirect + $teamsIndirect;
|
||||
// 动态计算用户等级
|
||||
foreach (array_reverse($levels) as $item) {
|
||||
foreach ($levels as $item) {
|
||||
$l1 = empty($item['goods_vip_status']) || $user['buy_vip_entry'] > 0;
|
||||
$l2 = empty($item['teams_users_status']) || $item['teams_users_number'] <= $teamsUsers;
|
||||
$l3 = empty($item['order_amount_status']) || $item['order_amount_number'] <= $orderAmount;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user