ExpressController.php 323 B

123456789101112131415161718
  1. <?php
  2. namespace app\index\controller;
  3. use think\exception\ValidateException;
  4. use app\model\Express;
  5. class ExpressController extends Base
  6. {
  7. public function index()
  8. {
  9. $data = Express::select()
  10. ->order('sort asc')
  11. ->toArray();
  12. return $this->json(['data' => $data]);
  13. }
  14. }