Auth.php 512 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\index\controller;
  3. use app\index\service\AuthService;
  4. use app\index\service\HelperService;
  5. use think\Controller;
  6. class Auth extends Controller
  7. {
  8. public function authorization()
  9. {
  10. $post = $this->request->post();
  11. $param_list = ['account'=>'string','password'=>'string'];
  12. HelperService::diffParam($param_list,$post);
  13. $AuthService = new AuthService();
  14. $res = $AuthService->checkAuth($post);
  15. die(HelperService::returnParam($res));
  16. }
  17. }