diff --git a/app/admin/view/config/index.html b/app/admin/view/config/index.html index a622d76f2..42edc88dd 100644 --- a/app/admin/view/config/index.html +++ b/app/admin/view/config/index.html @@ -9,9 +9,9 @@ + - -优化数据表 +优化数据库 {/if} {if auth('system')} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 019cd5328..9207359a0 100644 --- a/vendor/composer/installed.json +++ b/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": { diff --git a/vendor/services.php b/vendor/services.php index 0889a0321..a01dbb9b8 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\app\\Service', diff --git a/vendor/zoujingli/think-library/src/command/database/Optimize.php b/vendor/zoujingli/think-library/src/command/database/Optimize.php index 0444860ee..01d138ed6 100644 --- a/vendor/zoujingli/think-library/src/command/database/Optimize.php +++ b/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}`"); } diff --git a/vendor/zoujingli/think-library/src/command/database/Repair.php b/vendor/zoujingli/think-library/src/command/database/Repair.php index 4535ce408..aad7f77ac 100644 --- a/vendor/zoujingli/think-library/src/command/database/Repair.php +++ b/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}`"); }