Update UserUpgradeService.php

This commit is contained in:
邹景立 2021-05-08 16:08:36 +08:00
parent 436c24e429
commit 13455d1a4a

View File

@ -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);
}
}