优化会员等级校验
parent
73262cfd4e
commit
5653a0869b
|
|
@ -195,6 +195,10 @@ class User extends Model implements AuthorizableContract, AuthenticatableContrac
|
||||||
*/
|
*/
|
||||||
public function isVip(): bool
|
public function isVip(): bool
|
||||||
{
|
{
|
||||||
|
if ($this->userInfo->agent_level > UserInfo::AGENT_LEVEL_VIP) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->userInfo?->growth_value >= config('agent.upgrade_rules.vip.sales_value');
|
return $this->userInfo?->growth_value >= config('agent.upgrade_rules.vip.sales_value');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue