Batch.php 429 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\common\controller;
  3. use app\BaseController;
  4. use app\common\middleware\Auth;
  5. use app\common\api\BatchApi;
  6. /**
  7. * Description of Batch
  8. *
  9. * @author sgq
  10. */
  11. class Batch extends BaseController {
  12. protected $middleware = [Auth::class];
  13. public function checkBatchValid() {
  14. $user = session("user");
  15. return json(BatchApi::checkBatchValid($this->request->param(), $user["type"]));
  16. }
  17. }