|
@@ -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)
|
|
|
{
|