From fd06749715e13a67ac552905c4b922f51bb7d97a Mon Sep 17 00:00:00 2001 From: taoser Date: Sun, 14 Apr 2024 12:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=94=B9=E5=89=8D=E7=BC=80=E5=86=99=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/lib/SqlFile.php | 2 +- config/taoler.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/lib/SqlFile.php b/app/common/lib/SqlFile.php index 9f111bd..541b45d 100644 --- a/app/common/lib/SqlFile.php +++ b/app/common/lib/SqlFile.php @@ -85,7 +85,7 @@ class SqlFile $sqlArr = self::loadSqlFile($sqlFile); if(!empty($sqlArr)) { $orginal = 'tao_'; //sql默认表前缀 - $prefix = config('database.mysql.prefix'); // 现在表前缀 + $prefix = config('database.connections.mysql.prefix'); // 现在表前缀 ($orginal == $prefix) ? true : $sqlArr = str_replace(" `{$orginal}", " `{$prefix}", $sqlArr); //替换数组中表前缀 foreach($sqlArr as $v){ try { diff --git a/config/taoler.php b/config/taoler.php index 5ee1545..7ca84fa 100644 --- a/config/taoler.php +++ b/config/taoler.php @@ -16,7 +16,7 @@ return [ // 应用名,此项不可更改 'appname' => 'TaoLer', // 版本配置 - 'version' => '2.5.7', + 'version' => '2.5.8', // 加盐 'salt' => 'taoler', // 数据库备份目录