Browse Source

fix:协议

super-yimizi 1 month ago
parent
commit
7e0a5683ec
1 changed files with 1 additions and 15 deletions
  1. 1 15
      application/admin/model/shop/Page.php

+ 1 - 15
application/admin/model/shop/Page.php

@@ -21,7 +21,6 @@ class Page extends Model
 
     // 追加属性
     protected $append = [
-        'flag_text',
         'status_text',
         'url'
     ];
@@ -85,7 +84,7 @@ class Page extends Model
             ':month'   => date("m", $time),
             ':day'     => date("d", $time)
         ];
-        return url('index/page/index', $vars, '', $domain);
+        return url('index/agreement/index', $vars, '', $domain);
     }
 
     public function getStatusList()
@@ -100,19 +99,6 @@ class Page extends Model
         return $list[$value] ?? '';
     }
 
-    public function getFlagList()
-    {
-        $config = get_addon_config('shop');
-        return $config['flagtype'];
-    }
-
-    public function getFlagTextAttr($value, $data)
-    {
-        $value = $value ? $value : $data['flag'];
-        $valueArr = explode(',', $value);
-        $list = $this->getFlagList();
-        return implode(',', array_intersect_key($list, array_flip($valueArr)));
-    }
 
     public static function getArrayData($data)
     {