|
@@ -119,6 +119,24 @@ class Config extends BaseModel
|
|
|
return $info;
|
|
|
}
|
|
|
/**
|
|
|
+ * 设置隐私协议
|
|
|
+ */
|
|
|
+ public function seAboutUs($title, $content)
|
|
|
+ {
|
|
|
+ $document = new DocumentModel();
|
|
|
+ $res = $document->setDocument($title, $content, [ [ 'site_id', '=', 0 ], [ 'app_module', '=', 'admin' ], [ 'document_key', '=', "ABOUT_US" ] ]);
|
|
|
+ return $res;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 获取隐私协议
|
|
|
+ */
|
|
|
+ public function getAboutUs()
|
|
|
+ {
|
|
|
+ $document = new DocumentModel();
|
|
|
+ $info = $document->getDocument([ [ 'site_id', '=', 0 ], [ 'app_module', '=', 'admin' ], [ 'document_key', '=', "ABOUT_US" ] ]);
|
|
|
+ return $info;
|
|
|
+ }
|
|
|
+ /**
|
|
|
* 设置入驻协议
|
|
|
*/
|
|
|
public function setENTRYPAGE($title, $content)
|