From 97b77e179d0445f0ebed5377ae7f19249f006964 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Sat, 25 Apr 2026 14:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E6=9D=83=E7=9B=8A=E9=A1=B5=E5=85=A5=E4=BC=9A=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wdsxh/member/MemberBenefits.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/application/api/controller/wdsxh/member/MemberBenefits.php b/application/api/controller/wdsxh/member/MemberBenefits.php index 24ddd81..cadd299 100644 --- a/application/api/controller/wdsxh/member/MemberBenefits.php +++ b/application/api/controller/wdsxh/member/MemberBenefits.php @@ -14,9 +14,10 @@ use app\common\controller\Api; class MemberBenefits extends Api { - protected $noNeedLogin = ['index']; + protected $noNeedLogin = ['join_config', 'index']; protected $noNeedRight = ['*']; + protected $join_config_model = null; protected $level_model = null; protected $benefits_model = null; protected $article_model = null; @@ -24,11 +25,27 @@ class MemberBenefits extends Api public function _initialize() { parent::_initialize(); + $this->join_config_model = new \app\api\model\wdsxh\member\JoinConfig(); $this->level_model = new \app\api\model\wdsxh\member\Level(); $this->benefits_model = new \app\api\model\wdsxh\member\MemberBenefits(); $this->article_model = new \app\api\model\wdsxh\article\Article(); } + /** + * 入会类型 + * + * @param type $param + * @return \think\Response + */ + public function join_config() + { + $list = $this->join_config_model->field(['id', 'name']) + ->where('status', 'normal') + ->order(['weigh' => 'asc', 'id' => 'asc']) + ->select(); + $this->success('获取成功', $list); + } + /** * 根据入会类型查询会员级别及权益(每个级别下展示入会类型所有权益,并标记拥有状态) *