fix:修复已知bug
This commit is contained in:
@@ -3,6 +3,7 @@ declare (strict_types = 1);
|
||||
|
||||
namespace app\common\library;
|
||||
|
||||
use support\Log;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
@@ -13,6 +14,7 @@ class DataBase {
|
||||
/**
|
||||
* 导入目录下Install.sql文件
|
||||
* @param string $sqlPath
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function importSql(string $sqlPath)
|
||||
{
|
||||
@@ -27,7 +29,9 @@ class DataBase {
|
||||
}
|
||||
try {
|
||||
Db::getPdo()->exec($line);
|
||||
} catch (\Throwable $th) {}
|
||||
} catch (\Throwable $th) {
|
||||
Log::info($th->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,22 +36,22 @@ class Upload
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
protected mixed $fileClass;
|
||||
protected mixed $fileClass = '';
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
protected mixed $filename;
|
||||
protected mixed $filename = '';
|
||||
|
||||
/**
|
||||
* 文件保存路径
|
||||
*/
|
||||
protected mixed $filepath;
|
||||
protected mixed $filepath = '';
|
||||
|
||||
/**
|
||||
* 文件全路径名称
|
||||
*/
|
||||
protected mixed $resource;
|
||||
protected mixed $resource = '';
|
||||
|
||||
/**
|
||||
* 附件信息
|
||||
@@ -61,7 +61,7 @@ class Upload
|
||||
/**
|
||||
* 图形对象实例
|
||||
*/
|
||||
protected mixed $Images;
|
||||
protected mixed $Images = '';
|
||||
|
||||
/**
|
||||
* 错误信息
|
||||
|
||||
Reference in New Issue
Block a user