notLogin.php 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. use app\common\middleware\AllowOriginMiddleware;
  13. //不带token认证
  14. Route::group(function () {
  15. Route::get('test', 'merchant.system.admin.Login/test');
  16. //验证码
  17. Route::get('captcha', 'merchant.system.admin.Login/getCaptcha');
  18. //登录
  19. Route::post('login', 'merchant.system.admin.Login/login');
  20. Route::post('ajstatus', 'merchant.system.admin.Login/ajCaptchaStatus');
  21. Route::get('login_config', 'admin.Common/loginConfig');
  22. //滑块验证码
  23. Route::get('ajcaptcha', 'api.Auth/ajcaptcha');
  24. Route::post('ajcheck', 'api.Auth/ajcheck');
  25. })->middleware(AllowOriginMiddleware::class)->option([
  26. '_auth' => false,
  27. ]);