...
|
...
|
@@ -17,6 +17,7 @@ use app\portal\model\UserModel; |
|
|
use cmf\lib\Storage;
|
|
|
use Qiniu\Storage\UploadManager;
|
|
|
use cmf\lib\Upload;
|
|
|
use app\portal\model\PortalPostModel;
|
|
|
/**
|
|
|
* @title 用户中心
|
|
|
*/
|
...
|
...
|
@@ -672,51 +673,39 @@ class PersonController extends RestBaseController |
|
|
* @header name:token type:string require:1 default: other: desc:header
|
|
|
*
|
|
|
* @return service_mobile:联系客服
|
|
|
* @return explain_url:使用说明url
|
|
|
* @return introduce_url:平台介绍url
|
|
|
*
|
|
|
*/
|
|
|
public function getServiceMobile(){
|
|
|
if($this->request->isGet()){
|
|
|
$res = $this->getAboutUs('service_mobile');
|
|
|
$res['explain_url'] = 'http://xiaofang.w.bronet.cn/explain.html';
|
|
|
$res['introduce_url'] = 'http://xiaofang.w.bronet.cn/introduce.html';
|
|
|
$this->success('成功',$res);
|
|
|
}else{
|
|
|
$this->error('请求方式错误!');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 获取使用说明
|
|
|
* @description 接口说明
|
|
|
* @author 开发者
|
|
|
* @url /api/admin/person/getExplain
|
|
|
* @method get
|
|
|
* @header name:token type:string require:1 default: other: desc:header
|
|
|
*
|
|
|
* @return platform_explain:使用说明
|
|
|
*
|
|
|
*/
|
|
|
//获取使用说明
|
|
|
public function getExplain(){
|
|
|
if($this->request->isGet()){
|
|
|
$res = $this->getAboutUs('platform_explain');
|
|
|
$contentModel = new PortalPostModel();
|
|
|
$res['platform_explain'] = $contentModel->getPostContentAttr($res['platform_explain']);
|
|
|
$this->success('成功',$res);
|
|
|
}else{
|
|
|
$this->error('请求方式错误!');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @title 获取平台介绍
|
|
|
* @description 接口说明
|
|
|
* @author 开发者
|
|
|
* @url /api/admin/person/getIntroduce
|
|
|
* @method get
|
|
|
* @header name:token type:string require:1 default: other: desc:header
|
|
|
*
|
|
|
* @return introduce:平台介绍
|
|
|
*
|
|
|
*/
|
|
|
//获取平台介绍
|
|
|
public function getIntroduce(){
|
|
|
if($this->request->isGet()){
|
|
|
$res = $this->getAboutUs('introduce');
|
|
|
$contentModel = new PortalPostModel();
|
|
|
$res['introduce'] = $contentModel->getPostContentAttr($res['introduce']);
|
|
|
$this->success('成功',$res);
|
|
|
}else{
|
|
|
$this->error('请求方式错误!');
|
...
|
...
|
@@ -730,6 +719,4 @@ class PersonController extends RestBaseController |
|
|
->find();
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|