Anyon vor 5 Jahren
Ursprung
Commit
9878daa0ba

+ 2 - 2
app/admin/view/config/index.html

@@ -9,9 +9,9 @@
     <!--{else}-->
     <input type="checkbox" lay-skin="switch" lay-text="生产模式|开发模式" lay-filter="ThinkAdminDebug" checked>
     <!--{/if}-->
+    <script>form.render()</script>
 </div>
-<script>form.render()</script>
-<a class="layui-btn layui-btn-sm layui-btn-primary" data-queue="{:url('admin/api.plugs/optimize')}">优化数据表</a>
+<a class="layui-btn layui-btn-sm layui-btn-primary" data-queue="{:url('admin/api.plugs/optimize')}">优化数据库</a>
 {/if}
 
 {if auth('system')}

+ 4 - 4
vendor/composer/installed.json

@@ -935,12 +935,12 @@
         "source": {
             "type": "git",
             "url": "https://github.com/zoujingli/ThinkLibrary.git",
-            "reference": "61019c358186f555dc95656e91cecdfe45a79166"
+            "reference": "f787059635503f7bd61b2982331e4a02f0aef743"
         },
         "dist": {
             "type": "zip",
-            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/61019c358186f555dc95656e91cecdfe45a79166",
-            "reference": "61019c358186f555dc95656e91cecdfe45a79166",
+            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/f787059635503f7bd61b2982331e4a02f0aef743",
+            "reference": "f787059635503f7bd61b2982331e4a02f0aef743",
             "shasum": "",
             "mirrors": [
                 {
@@ -956,7 +956,7 @@
             "ext-json": "*",
             "topthink/framework": "^6.0"
         },
-        "time": "2020-04-10T02:46:12+00:00",
+        "time": "2020-04-10T03:06:33+00:00",
         "type": "library",
         "extra": {
             "think": {

+ 1 - 1
vendor/services.php

@@ -1,5 +1,5 @@
 <?php 
-// This file is automatically generated at:2020-04-10 10:48:45
+// This file is automatically generated at:2020-04-10 11:09:13
 declare (strict_types = 1);
 return array (
   0 => 'think\\app\\Service',

+ 1 - 1
vendor/zoujingli/think-library/src/command/database/Optimize.php

@@ -50,7 +50,7 @@ class Optimize extends Command
         list($total, $used) = [count($tables), 0];
         $this->setQueueProgress(2, "总共需要优化 {$total} 张数据表", 0);
         foreach ($tables as $table) {
-            $stridx = str_pad(++$used, strlen("{$total}"), ' ', STR_PAD_LEFT) . "/{$total}";
+            $stridx = str_pad(++$used, strlen("{$total}"), '0', STR_PAD_LEFT) . "/{$total}";
             $this->setQueueProgress(2, "[{$stridx}] 正在优化数据表 {$table}", $used / $total * 100);
             $this->app->db->query("OPTIMIZE TABLE `{$table}`");
         }

+ 1 - 1
vendor/zoujingli/think-library/src/command/database/Repair.php

@@ -50,7 +50,7 @@ class Repair extends Command
         list($total, $used) = [count($tables), 0];
         $this->setQueueProgress(2, "总共需要修复 {$total} 张数据表", 0);
         foreach ($tables as $table) {
-            $stridx = str_pad(++$used, strlen("{$total}"), ' ', STR_PAD_LEFT) . "/{$total}";
+            $stridx = str_pad(++$used, strlen("{$total}"), '0', STR_PAD_LEFT) . "/{$total}";
             $this->setQueueProgress(2, "[{$stridx}] 正在修复数据表 {$table}", $used / $total * 100);
             $this->app->db->query("REPAIR TABLE `{$table}`");
         }