Update UserUpgradeService.php

This commit is contained in:
邹景立 2021-03-24 16:56:48 +08:00
parent d555b92524
commit 8ad025bb2c

View File

@ -99,7 +99,7 @@ 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['pid2'] > 0) ? $this->upgrade($user['pid2'], false) : true;
return ($parent && $user['pid1'] > 0) ? $this->upgrade($user['pid1'], false) : true;
}
/**