application/core/manage/logic/DatabaseLogic.php
public function optimize()
    {
        $list = array_map('array_change_key_case', Db::query('SHOW TABLE STATUS'));
        foreach ($list as $vo) {
            Db::query('OPTIMIZE TABLE `' . $vo['name'] . '`');
        }
    }
public function optimize()
    {
        $list = array_map('array_change_key_case', Db::query('SHOW TABLE STATUS'));
        foreach ($list as $vo) {
            Db::query('OPTIMIZE TABLE `' . $vo['name'] . '`');
        }
    }
优化表