- 数据库结构更新准备就绪
{if $msg} -{$msg|raw}
+diff --git a/.env b/.env new file mode 100644 index 00000000..9c13fa88 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +[APP] +NAME = Lsky Pro +DEBUG = true +TRACE = false diff --git a/application/index/controller/Install.php b/application/index/controller/Install.php index 1a5c942d..557e020e 100644 --- a/application/index/controller/Install.php +++ b/application/index/controller/Install.php @@ -244,8 +244,8 @@ EOT; foreach (explode(';', $file) as $value) { if ($value && !ctype_space($value)) { - if (!$mysqli->query($value . ';')) { - throw new Exception('数据导入失败,错误信息:' . $mysqli->error . ',sql语句:' . $value); + if (!$mysqli->query(trim($value))) { + throw new Exception('
数据导入失败!
错误信息:
' . $mysqli->error . '
sql语句:
' . $value . '
{$msg|raw}
+