Skip to content

Commit

Permalink
1.37 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed Feb 22, 2023
1 parent 490d3d2 commit 843914b
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 22 deletions.
16 changes: 7 additions & 9 deletions app/controller/install/index.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,18 +535,16 @@ private function checkDbInit(){
think_config($GLOBALS['config']['database']);
// 判断数据库(表)是否存在
$db = Model()->db();
if ($type == 'sqlite') {
$tables = $db->getTables();
if (empty($tables) || !in_array('user', $tables)) {
show_json(LNG('admin.install.dbError'), false);
}
if ($type != 'sqlite') {
$exist = $db->execute("show databases like '{$dbName}'");
if (!$exist) show_json(LNG('ERROR_DB_NOT_EXIST'), false);
$db->execute("use `{$dbName}`");
}
$exist = $db->execute("show databases like '{$dbName}'");
if (!$exist) show_json(LNG('ERROR_DB_NOT_EXIST'), false);
$db->execute("use `{$dbName}`");
// sqlite可直接调用该方法,无论库文件是否存在
$tables = $db->getTables();
if (empty($tables) || !in_array('user', $tables)) {
show_json(LNG('admin.install.dbTableError'), false);
$msg = $type == 'sqlite' ? 'dbError' : 'dbTableError';
show_json(LNG('admin.install.'.$msg), false);
}
// 重新配置数据库信息
$GLOBALS['config']['database'] = $data;
Expand Down
2 changes: 1 addition & 1 deletion app/sdks/archiveLib/bin/data.bin

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define('KOD_VERSION','1.37');
define('KOD_VERSION_BUILD','02');
define('KOD_VERSION_BUILD','03');
4 changes: 2 additions & 2 deletions static/app/dist/api.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/lib.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/app/dist/sdk.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/app/dist/vendor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/sdk.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/lib/main.css

Large diffs are not rendered by default.

0 comments on commit 843914b

Please sign in to comment.