From dd6fdd9bcff3c2b3dcebdb0db3f80bc9dd469bc4 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 25 Dec 2025 10:00:15 +0800
Subject: [PATCH] 1. 添加滚动效果 2. 修复供应方无法开通权限
---
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 314289f..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, 'is_default' =>0])
+ 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