Faq.php 481 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\shopro\controller;
  3. class Faq extends Base
  4. {
  5. protected $noNeedLogin = ['*'];
  6. protected $noNeedRight = ['*'];
  7. // faq 列表
  8. public function index()
  9. {
  10. $this->success('获取成功', \addons\shopro\model\Faq::order('id', 'DESC')->paginate(10));
  11. }
  12. public function detail () {
  13. $id = $this->request->get('id');
  14. $this->success('签到成功', \addons\shopro\model\Faq::where('id', $id)->find());
  15. }
  16. }