laowu 5 hari lalu
induk
melakukan
b2cb1543a7

+ 4 - 0
app/Http/logic/admin/GlobalLogicController.php

@@ -18,6 +18,7 @@ use App\Services\Extensions;
 use App\Services\GameRoomInfo;
 use App\Services\GamesCount;
 use App\Services\StoredProcedure;
+use App\Services\VipService;
 use Illuminate\Http\Request;
 use Illuminate\Pagination\Paginator;
 use Illuminate\Support\Facades\DB;
@@ -734,6 +735,9 @@ class GlobalLogicController extends BaseLogicController
         // IP风险检测:查询 Redis Hash 中是否记录了该用户的可疑IP
         $data['ip_risk'] = Redis::hget('ip_risk_users', (string)$UserID) ?: '';
 
+        //vip等级
+        $userInfo->vip = VipService::calculateVipLevel($userInfo->UserID, $total[0]->Recharge ?? 0);
+
         return compact('data', 'userInfo', 'registerInviteSwitches', 'gameCount', 'userSource', 'OpenPage','platformData');
     }
 

+ 1 - 1
resources/views/admin/global/id_list.blade.php

@@ -78,7 +78,7 @@
                             </tr>
                             <tr>
                                 <td>{{ __('auto.会员') }}ID</td>
-                                <td>{{$userInfo->GameID}} @if($data['refund_flag'] || $data['refund_total']) <b style="color:red;">退款({{round($data['refund_flag']/100, 2)}}/{{round($data['refund_total']/100, 2)}})</b> @endif @if(!empty($data['ip_risk'])) <b style="color:orange;">IP风险用户({{$data['ip_risk']}})</b> @endif</td>
+                                <td>{{$userInfo->GameID}} {{$userInfo->vip}} @if($data['refund_flag'] || $data['refund_total']) <b style="color:red;">退款({{round($data['refund_flag']/100, 2)}}/{{round($data['refund_total']/100, 2)}})</b> @endif @if(!empty($data['ip_risk'])) <b style="color:orange;">IP风险用户({{$data['ip_risk']}})</b> @endif</td>
                             </tr>
 
                             <tr>