Article.php 764 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 文章内容
  7. */
  8. namespace app\smartbc\controller\home;
  9. use app\common\controller\Api;
  10. use app\smartbc\model\SmartbcConfig;
  11. class Article extends Api{
  12. /**
  13. * 服务协议
  14. * @return void
  15. */
  16. public function sla(){
  17. $info = SmartbcConfig::getConfig($this->miniapp_id);
  18. if(empty($info)){
  19. $this->error('资源不存在');
  20. }
  21. $view['title'] = '服务协议';
  22. $view['sla'] = $info->sla;
  23. $this->view->engine->layout(false);
  24. return view('home/article/rules')->assign($view);
  25. }
  26. }