From 04102f7237efefa744090ed7c25f7b5d0807b679 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 18:11:57 +0800
Subject: [PATCH] 完成运营中心提现和运营中心权限管理

---
 admin/app/common/model/plus/bonus/User.php |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/admin/app/common/model/plus/bonus/User.php b/admin/app/common/model/plus/bonus/User.php
index ea015db..0075882 100644
--- a/admin/app/common/model/plus/bonus/User.php
+++ b/admin/app/common/model/plus/bonus/User.php
@@ -308,7 +308,10 @@
         $is_expire = User::isExpire($user_id);
         // 队长详情
         $model = static::detail($user_id);
-        if (!$model || $model['is_delete']) {
+        if (!$model) {
+            return false;
+        }
+        if ($model['is_delete']){
             return false;
         }
         if ($money_type == 20){
@@ -451,6 +454,9 @@
     public static function isExpire($user_id)
     {
         $team = self::detail($user_id);
+        if (!$team) {
+            return false;
+        }
         $setting = Setting::getItem('basic', $team['app_id']);
         return !!$team && $team['is_expire'] && $team['is_permanent'] == 0 && $setting['expire_day'] > 0;
     }

--
Gitblit v1.9.2