123456789101112131415161718192021 |
- <?php
- namespace app\index\controller;
- use app\index\service\AuthService;
- use app\index\service\HelperService;
- use think\Controller;
- class Auth extends Controller
- {
- public function authorization()
- {
- $post = $this->request->post();
- $param_list = ['account'=>'string','password'=>'string'];
- HelperService::diffParam($param_list,$post);
- $AuthService = new AuthService();
- $res = $AuthService->checkAuth($post);
- die(HelperService::returnParam($res));
- }
- }
|