0
0

Article.php 894 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\App;
  6. use think\Db;
  7. use think\exception\Handle;
  8. class Article extends Base
  9. {
  10. public function __construct(App $app = null) {
  11. parent::__construct($app);
  12. $this->model = new \app\common\model\Article();
  13. }
  14. public function queryArticleList(){
  15. $page=input("page/d",1);
  16. $size=input("size/d",10);
  17. $roleId=input("roleId");
  18. $token=input("token");
  19. $ret=$this->model->lists($page,$size,$this->orgId,$roleId,$token);
  20. HelpHander::success($ret);
  21. }
  22. public function queryArticleDetail(){
  23. $token=input('token');
  24. $data=getSite().'/h5/Recorddata/record?token='.$token;
  25. if($data){
  26. HelpHander::success($data);
  27. }else{
  28. HelpHander::error('暂无记录');
  29. }
  30. }
  31. }