Browse Source

fix:去掉验证

super-yimizi 3 weeks ago
parent
commit
b0f62cd3d5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      application/common/model/Category.php

+ 4 - 4
application/common/model/Category.php

@@ -25,7 +25,7 @@ class Category extends Model
     
     ];
 
-    protected static $config = [];
+    // protected static $config = [];
 
     protected static $tagCount = 0;
 
@@ -37,8 +37,8 @@ class Category extends Model
 
     protected static function init()
     {
-        $config = get_addon_config('shop');
-        self::$config = $config;
+        // $config = get_addon_config('shop');
+        // self::$config = $config;
 
         self::afterInsert(function ($row) {
             $row->save(['weigh' => $row['id']]);
@@ -48,7 +48,7 @@ class Category extends Model
 
     public function getImageAttr($value, $data)
     {
-        $value = $value ? $value : self::$config['default_category_img'];
+        $value = $value ? $value : '';
         return cdnurl($value, true);
     }