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/Apply.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/admin/app/common/model/supplier/Apply.php b/admin/app/common/model/supplier/Apply.php
index 9a1448e..8801c3e 100644
--- a/admin/app/common/model/supplier/Apply.php
+++ b/admin/app/common/model/supplier/Apply.php
@@ -3,6 +3,7 @@
 
 namespace app\common\model\supplier;
 
+use app\common\enum\supplier\SupplierType;
 use app\common\model\BaseModel;
 
 /**
@@ -12,6 +13,7 @@
 {
     protected $pk = 'supplier_apply_id';
     protected $name = 'supplier_apply';
+    protected $append = ['type_text'];
 
     /**
      * 关联营业执照照
@@ -45,6 +47,10 @@
         return $this->belongsTo("app\\{$module}\\model\\supplier\\Area",'area_id', 'area_id');
     }
 
+    public function getTypeTextAttr($value, $data)
+    {
+        return (new SupplierType())::getName($data['supplier_type']);
+    }
     /**
      * 最近申请记录
      */

--
Gitblit v1.9.2