作者 景龙
1 个管道 的构建 通过 耗费 2 秒

修改关于我们

@@ -17,6 +17,7 @@ use app\portal\model\UserModel; @@ -17,6 +17,7 @@ use app\portal\model\UserModel;
17 use cmf\lib\Storage; 17 use cmf\lib\Storage;
18 use Qiniu\Storage\UploadManager; 18 use Qiniu\Storage\UploadManager;
19 use cmf\lib\Upload; 19 use cmf\lib\Upload;
  20 +use app\portal\model\PortalPostModel;
20 /** 21 /**
21 * @title 用户中心 22 * @title 用户中心
22 */ 23 */
@@ -672,51 +673,39 @@ class PersonController extends RestBaseController @@ -672,51 +673,39 @@ class PersonController extends RestBaseController
672 * @header name:token type:string require:1 default: other: desc:header 673 * @header name:token type:string require:1 default: other: desc:header
673 * 674 *
674 * @return service_mobile:联系客服 675 * @return service_mobile:联系客服
  676 + * @return explain_url:使用说明url
  677 + * @return introduce_url:平台介绍url
675 * 678 *
676 */ 679 */
677 public function getServiceMobile(){ 680 public function getServiceMobile(){
678 if($this->request->isGet()){ 681 if($this->request->isGet()){
679 $res = $this->getAboutUs('service_mobile'); 682 $res = $this->getAboutUs('service_mobile');
  683 + $res['explain_url'] = 'http://xiaofang.w.bronet.cn/explain.html';
  684 + $res['introduce_url'] = 'http://xiaofang.w.bronet.cn/introduce.html';
680 $this->success('成功',$res); 685 $this->success('成功',$res);
681 }else{ 686 }else{
682 $this->error('请求方式错误!'); 687 $this->error('请求方式错误!');
683 } 688 }
684 } 689 }
685 690
686 - /**  
687 - * @title 获取使用说明  
688 - * @description 接口说明  
689 - * @author 开发者  
690 - * @url /api/admin/person/getExplain  
691 - * @method get  
692 - * @header name:token type:string require:1 default: other: desc:header  
693 - *  
694 - * @return platform_explain:使用说明  
695 - *  
696 - */ 691 + //获取使用说明
697 public function getExplain(){ 692 public function getExplain(){
698 if($this->request->isGet()){ 693 if($this->request->isGet()){
699 $res = $this->getAboutUs('platform_explain'); 694 $res = $this->getAboutUs('platform_explain');
  695 + $contentModel = new PortalPostModel();
  696 + $res['platform_explain'] = $contentModel->getPostContentAttr($res['platform_explain']);
700 $this->success('成功',$res); 697 $this->success('成功',$res);
701 }else{ 698 }else{
702 $this->error('请求方式错误!'); 699 $this->error('请求方式错误!');
703 } 700 }
704 } 701 }
705 702
706 - /**  
707 - * @title 获取平台介绍  
708 - * @description 接口说明  
709 - * @author 开发者  
710 - * @url /api/admin/person/getIntroduce  
711 - * @method get  
712 - * @header name:token type:string require:1 default: other: desc:header  
713 - *  
714 - * @return introduce:平台介绍  
715 - *  
716 - */ 703 + //获取平台介绍
717 public function getIntroduce(){ 704 public function getIntroduce(){
718 if($this->request->isGet()){ 705 if($this->request->isGet()){
719 $res = $this->getAboutUs('introduce'); 706 $res = $this->getAboutUs('introduce');
  707 + $contentModel = new PortalPostModel();
  708 + $res['introduce'] = $contentModel->getPostContentAttr($res['introduce']);
720 $this->success('成功',$res); 709 $this->success('成功',$res);
721 }else{ 710 }else{
722 $this->error('请求方式错误!'); 711 $this->error('请求方式错误!');
@@ -730,6 +719,4 @@ class PersonController extends RestBaseController @@ -730,6 +719,4 @@ class PersonController extends RestBaseController
730 ->find(); 719 ->find();
731 return $res; 720 return $res;
732 } 721 }
733 -  
734 -  
735 } 722 }
  1 +<!doctype html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <meta name="viewport"
  6 + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8 + <title>Document</title>
  9 +</head>
  10 +<body>
  11 +</body>
  12 +<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  13 +<script>
  14 + $(function(){
  15 + $.ajax({
  16 + type: 'GET',
  17 + url: "/api/admin/person/getExplain",
  18 + data: {
  19 + 'is_token':1
  20 + },
  21 + dataType: 'json',
  22 + success: function(data) {
  23 + $('body').append(data.data.platform_explain);
  24 + }
  25 + });
  26 + });
  27 +</script>
  28 +</html>
  1 +<!doctype html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <meta name="viewport"
  6 + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8 + <title>Document</title>
  9 +</head>
  10 +<body>
  11 +</body>
  12 +<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  13 +<script>
  14 + $(function(){
  15 + $.ajax({
  16 + type: 'GET',
  17 + url: "/api/admin/person/getIntroduce",
  18 + data: {
  19 + 'is_token':1
  20 + },
  21 + dataType: 'json',
  22 + success: function(data) {
  23 + $('body').append(data.data.introduce);
  24 + }
  25 + });
  26 + });
  27 +</script>
  28 +</html>