소스 검색

update: theme

tokumeikoi 2 년 전
부모
커밋
74265a5b59
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/Http/Controllers/Admin/ThemeController.php

+ 2 - 0
app/Http/Controllers/Admin/ThemeController.php

@@ -34,6 +34,7 @@ class ThemeController extends Controller
 
         try {
             Artisan::call('config:cache');
+            sleep(2);
         } catch (\Exception $e) {
             abort(500, "{$themeName}初始化失败");
         }
@@ -93,6 +94,7 @@ class ThemeController extends Controller
 
         try {
             Artisan::call('config:cache');
+            sleep(2);
         } catch (\Exception $e) {
             abort(500, '保存失败');
         }