소스 검색

后台未启用消息队列还提示要开启消息队列提示修复

evoxwht 2 년 전
부모
커밋
c65ce97a6c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      crmeb/app/listener/admin/AdminLoginListener.php

+ 1 - 0
crmeb/app/listener/admin/AdminLoginListener.php

@@ -30,6 +30,7 @@ class AdminLoginListener
             $path = root_path('runtime') . '.queue';
             $content = file_get_contents($path);
             $res = $key === $content;
+            if (sys_config('queue_open', 0) == 0) $res = true;
             unlink($path);
         } catch (\Throwable $e) {
         }