mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update UserUpgradeService.php
This commit is contained in:
parent
436c24e429
commit
13455d1a4a
@ -134,6 +134,6 @@ class UserUpgradeService extends Service
|
||||
if ($user['vip_code'] < $vipCode) $this->app->event->trigger('UserUpgradeLevel', [
|
||||
'uid' => $user['id'], 'order_no' => $orderNo, 'vip_code_old' => $user['vip_code'], 'vip_code_new' => $vipCode,
|
||||
]);
|
||||
return ($parent && $user['pid1'] > 0) ? $this->upgrade($user['pid1'], false) : true;
|
||||
return !($parent && $user['pid1'] > 0) || $this->upgrade($user['pid1'], false);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user