Skip to content

Commit e699cf8

Browse files
committed
feat: release 5.5.0
1 parent f2f319b commit e699cf8

File tree

46 files changed

+536
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+536
-359
lines changed

app/Constant/AppConstant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class AppConstant
66
{
77
const APP = 'blog';
88
const APP_NAME = 'ModStartBlog';
9-
const VERSION = '5.4.0';
9+
const VERSION = '5.5.0';
1010
}

module/AdminManager/Admin/Controller/UpgradeController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
use ModStart\Core\Input\Request;
1212
use ModStart\Core\Input\Response;
1313
use ModStart\Core\Util\FileUtil;
14-
use ModStart\Module\ModuleManager;
1514
use Module\AdminManager\Util\ModuleUtil;
1615
use Module\AdminManager\Util\UpgradeUtil;
17-
use Module\ModuleStore\Util\ModuleStoreUtil;
1816

1917
class UpgradeController extends Controller
2018
{
@@ -90,10 +88,10 @@ public function index()
9088
$exitCode = Artisan::call("migrate");
9189
BizException::throwsIf("调用 php artisan 命令失败,不能自动升级", 0 != $exitCode);
9290
return $this->doNext('downloadPackage', [
91+
'PHP版本: v' . PHP_VERSION,
9392
'<span class="ub-text-success">预检通过</span>',
9493
'<span class="ub-text-default">开始下载升级包...</span>'
9594
]);
96-
break;
9795
default:
9896
return $this->doNext('checkPackage', [
9997
'<span class="ub-text-success">开始升级系统,从 V' . AppConstant::VERSION . ' 到 V' . $toVersion . '</span>',

module/AdminManager/Docs/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.7.0
2+
3+
- 新增:文件上传和文件管理逻辑优化
4+
5+
---
6+
17
## 1.6.0 系统升级文件写入权限检查校验
28

39
- 新增:系统升级文件写入权限检查校验
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
6+
class ModifyAdminRoleAddRemark extends Migration
7+
{
8+
9+
public function up()
10+
{
11+
$connection = config('modstart.admin.database.connection') ?: config('database.default');
12+
13+
Schema::connection($connection)->table('admin_role', function (Blueprint $table) {
14+
$table->string('remark', 400)->comment('')->nullable();
15+
});
16+
17+
}
18+
19+
20+
public function down()
21+
{
22+
}
23+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use ModStart\Core\Dao\ModelUtil;
5+
6+
class UpgradeAdminUploadCategoryId extends Migration
7+
{
8+
9+
public function up()
10+
{
11+
ModelUtil::update('admin_upload', [
12+
'uploadCategoryId' => 0,
13+
], [
14+
'uploadCategoryId' => -1,
15+
]);
16+
}
17+
18+
19+
public function down()
20+
{
21+
}
22+
}

module/AdminManager/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Vendor"
1212
],
1313
"title": "管理员基础框架",
14-
"version": "1.6.0",
14+
"version": "1.7.0",
1515
"author": "ModStart",
1616
"modstartVersion": ">=3.3.0",
1717
"description": "提供基于管理员角色、管理员、管理日志基础功能"

module/ModuleStore/Admin/Controller/ModuleStoreController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public function upgrade()
238238
}
239239
$msgs[] = '<span class="ub-text-white">开始下载安装包...</span>';
240240
return $this->doNext('upgrade', 'downloadPackage', array_merge([
241+
'PHP版本: v' . PHP_VERSION,
241242
'<span class="ub-text-success">预检成功,' . count($ret['data']['requires']) . '个依赖满足要求,安装包大小 ' . FileUtil::formatByte($ret['data']['packageSize']) . '</span>',
242243
], $msgs));
243244
default:
@@ -338,6 +339,7 @@ public function install()
338339
}
339340
$msgs[] = '<span class="ub-text-white">开始下载安装包...</span>';
340341
return $this->doNext('install', 'downloadPackage', array_merge([
342+
'PHP版本: v' . PHP_VERSION,
341343
'<span class="ub-text-success">预检成功,' . count($ret['data']['requires']) . '个依赖满足要求,安装包大小 ' . FileUtil::formatByte($ret['data']['packageSize']) . '</span>',
342344
], $msgs));
343345
break;

module/Vendor/Docs/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- 新增:安装向导文件禁用函数处理方法
44
- 新增:魔众文档转图片异步转换接口
55
- 新增:内容审核提供者新增内容链接
6+
- 新增:安装向导新增安全使用提醒
67
- 优化:内容自动审核链接逻辑处理
78

89
---

module/Vendor/Installer/install.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
</div>
114114
<div class="content-item-foot">
115115
<div>
116+
<div style="color:red;padding-bottom:1rem;">
117+
禁止使用本产品进行违法违规业务,我们将对违规使用者停止授权并永久封停账号
118+
</div>
116119
<label style="border:none;margin-top:-10px;margin-right:0;padding-right:0;">
117120
<input type="checkbox" name="installLicense" style="vertical-align:middle;margin-right:0.2rem;" value="1"/>
118121
我已阅读协议并同意所有内容

vendor/modstart/modstart/asset/common/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)