Message.php 528 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use think\Db;
  5. class Message extends Api
  6. {
  7. protected $noNeedLogin = '*';
  8. protected $noNeedRight = '*';
  9. protected $model = null;
  10. public function _initialize()
  11. {
  12. parent::_initialize();
  13. $this->model = Db::name('pre_order');
  14. }
  15. /**
  16. * index
  17. * @return void
  18. */
  19. public function index()
  20. {
  21. try {
  22. echo true;
  23. } catch (Exception $e) {
  24. echo false;
  25. }
  26. }
  27. }