ArticleQuestion.php 468 B

123456789101112131415161718192021
  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 ArticleQuestion extends Base
  9. {
  10. public function list(){
  11. $paperId=input('paperId');
  12. $ret=Db::name('article_question')
  13. ->where('article_paper_id',$paperId)
  14. ->where('del',0)
  15. ->select();
  16. $res=$ret?$ret:[];
  17. HelpHander::success($res);
  18. }
  19. }