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/supplier/member/Plan.php |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/admin/app/common/model/supplier/member/Plan.php b/admin/app/common/model/supplier/member/Plan.php
index 0f22cb4..bedb40f 100644
--- a/admin/app/common/model/supplier/member/Plan.php
+++ b/admin/app/common/model/supplier/member/Plan.php
@@ -26,7 +26,16 @@
      */
     public function getEnabledPlans()
     {
-        return $this->where(['status' => 1, 'app_id' => self::$app_id])
+        return $this->where(['status' => 1, 'is_default' =>0,'is_delete'=>0])
+            ->order(['sort' => 'asc', 'create_time' => 'desc'])
+            ->select();
+    }
+    /**
+     * 获取启用的年卡列表(包含默认年卡)
+     */
+    public function getEnabledPlansAll()
+    {
+        return $this->where(['status' => 1,'is_delete'=>0])
             ->order(['sort' => 'asc', 'create_time' => 'desc'])
             ->select();
     }

--
Gitblit v1.9.2