diff --git a/app/Models/Affiliate/AffiliateUser.php b/app/Models/Affiliate/AffiliateUser.php index 039eeee..2fd685b 100644 --- a/app/Models/Affiliate/AffiliateUser.php +++ b/app/Models/Affiliate/AffiliateUser.php @@ -55,9 +55,9 @@ public function addRevenue(string $revenue): void { $this->load('user'); - if (! $this->user->isRealNamed()) { - return; - } + // if (! $this->user->isRealNamed()) { + // return; + // } $this->load('affiliate.user'); diff --git a/resources/views/affiliates/create.blade.php b/resources/views/affiliates/create.blade.php index ed4b624..be11b67 100644 --- a/resources/views/affiliates/create.blade.php +++ b/resources/views/affiliates/create.blade.php @@ -6,13 +6,13 @@
- 让更多人用上我们的产品,您将从他们实人认证成功之后的每笔充值中获取 {{ config('settings.billing.commission_referral') * 100 . '%' }} + 让更多人用上我们的产品,您将从他们每笔充值中获取 {{ config('settings.billing.commission_referral') * 100 . '%' }} 的佣金。
-{{-- @php($amount = 1)--}} + {{-- @php($amount = 1)--}} -{{--比如,下属用户在实人认证成功后充值了 {{$amount}}--}} -{{-- 元,您将获得 {{ $amount / (config('settings.billing.commission_referral') * 100) }} 元的佣金。
--}} + {{--比如,下属用户在实人认证成功后充值了 {{$amount}}--}} + {{-- 元,您将获得 {{ $amount / (config('settings.billing.commission_referral') * 100) }} 元的佣金。
--}} @if ($user->affiliate_id) 您被 {{ $user->affiliateUser->affiliate->user->name }}#{{ $user->affiliateUser->affiliate->user_id }} 引荐。 diff --git a/resources/views/affiliates/index.blade.php b/resources/views/affiliates/index.blade.php index 19381e6..4b847df 100644 --- a/resources/views/affiliates/index.blade.php +++ b/resources/views/affiliates/index.blade.php @@ -22,25 +22,27 @@ID | 用户名 | 盈利 | -实人状态 | + {{--实人状态 | --}}注册时间 |
---|---|---|---|---|---|
{{ $user->id }} | {{ $user->user->name }} | {{ $user->revenue }} 元 | -- @if ($user->real_name_verified_at) - 完成 - @else - 未完成 - @endif - | + {{----}} + {{-- @if ($user->real_name_verified_at)--}} + {{-- 完成--}} + {{-- @else--}} + {{-- 未完成--}} + {{-- @endif--}} + {{-- | --}}{{ $user->created_at }} |