fix:修复已知bug

This commit is contained in:
Ying
2022-12-19 19:23:24 +08:00
parent df41df415a
commit c834b46653
10 changed files with 134 additions and 56 deletions

View File

@@ -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());
}
}
}
}

View File

@@ -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 = '';
/**
* 错误信息