浏览代码

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, '保存失败');
         }