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