Explorar o código

update: theme

tokumeikoi %!s(int64=2) %!d(string=hai) anos
pai
achega
74265a5b59
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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, '保存失败');
         }