News.php 957 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\api\controller\wechat;
  10. use app\BaseController;
  11. use think\facade\Request;
  12. use think\facade\View;
  13. use app\api\service\wechat\News as NewsService;
  14. class News extends BaseController {
  15. /**
  16. * 详情
  17. * @return string
  18. * @throws \think\db\exception\DataNotFoundException
  19. * @throws \think\db\exception\DbException
  20. * @throws \think\db\exception\ModelNotFoundException
  21. */
  22. public function view(){
  23. return View::fetch("",NewsService::detail(Request::get("id","0","intval")));
  24. }
  25. }