Skip to content

Commit acef1c9

Browse files
committed
feat: release 9.6.0
1 parent 2e77b1a commit acef1c9

84 files changed

Lines changed: 1933 additions & 250 deletions

File tree

Some content is hidden

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

app/Constant/AppConstant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class AppConstant
66
{
77
const APP = 'cms9';
88
const APP_NAME = 'ModStartCMS9';
9-
const VERSION = '9.5.0';
9+
const VERSION = '9.6.0';
1010

1111
}

module/AdminManager/Admin/Controller/UpgradeController.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Constant\AppConstant;
66
use Illuminate\Routing\Controller;
77
use Illuminate\Support\Facades\Artisan;
8+
use Illuminate\Support\Facades\Session;
89
use ModStart\Admin\Auth\AdminPermission;
910
use ModStart\Core\Exception\BizException;
1011
use ModStart\Core\Input\InputPackage;
@@ -65,10 +66,12 @@ public function index()
6566
BizException::throwsIfEmpty('toVersion为空', $toVersion);
6667
switch ($step) {
6768
case 'upgradePackage':
68-
$package = $dataInput->getTrimString('package');
69-
$diffContentFile = $dataInput->getTrimString('diffContentFile');
69+
$package = Session::get('AdminManager.Upgrade.Package');
70+
$diffContentFile = Session::get('AdminManager.Upgrade.DiffContentFile');
7071
BizException::throwsIfEmpty('package为空', $package);
7172
BizException::throwsIfEmpty('diffContentFile为空', $diffContentFile);
73+
Session::forget('AdminManager.Upgrade.Package');
74+
Session::forget('AdminManager.Upgrade.DiffContentFile');
7275
$ret = UpgradeUtil::upgradePackage($package, $diffContentFile);
7376
BizException::throwsIfResponseError($ret);
7477
return $this->doFinish([
@@ -77,6 +80,8 @@ public function index()
7780
case 'downloadPackage':
7881
$ret = UpgradeUtil::downloadPackage($token, AppConstant::APP, AppConstant::VERSION, $toVersion);
7982
BizException::throwsIfResponseError($ret);
83+
Session::put('AdminManager.Upgrade.Package', $ret['data']['package']);
84+
Session::put('AdminManager.Upgrade.DiffContentFile', $ret['data']['diffContentFile']);
8085
return $this->doNext('upgradePackage', [
8186
'<span class="ub-text-success">获取安装包完成,大小 ' . FileUtil::formatByte($ret['data']['packageSize']) . '</span>',
8287
'<span class="ub-text-white">开始解压升级装包...</span>'

module/AigcBase/Admin/Controller/AigcKeyPoolController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ public function test()
150150
$ret = $chatProvider->chat('test', '你是什么模型,使用最简短的回答');
151151
break;
152152
}
153+
if (!empty($ret['data']['isError'])) {
154+
return Response::generateError('模型测试失败');
155+
}
153156
if (Response::isSuccess($ret)) {
154157
return Response::generateSuccess('测试成功');
155158
}

module/AigcBase/Docs/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.4.4 AI平台对接模型测试失效问题
2+
3+
- 修复:AI平台对接模型测试失效问题
4+
5+
---
6+
17
## 1.4.3 无需选择模型的驱动默认使用default
28

39
- 优化:无需选择模型的驱动默认使用default

module/AigcBase/Provider/AbstractAigcChatProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ModStart\Core\Input\Response;
99
use ModStart\Core\Util\HtmlUtil;
1010
use Module\AigcBase\Type\AigcProviderType;
11-
use Module\AigcBase\Util\AigcKeyPoolUtil;
1211
use Module\Vendor\Markdown\MarkdownUtil;
1312

1413
abstract class AbstractAigcChatProvider extends AbstractAigcProvider
@@ -60,6 +59,7 @@ protected function chatResponse($sessionId, $content, $option)
6059
protected function chatResponseError($sessionId, $option)
6160
{
6261
return Response::generateSuccessData([
62+
'isError' => true,
6363
'msg' => [
6464
'type' => 'text',
6565
'content' => '机器人太忙啦,请稍后再试'

module/AigcBase/config.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"laravel9"
77
],
88
"types": [
9-
"PC",
10-
"Mobile"
9+
"PC"
10+
],
11+
"tags": [
12+
"AI"
1113
],
12-
"tags": [],
1314
"require": [
1415
"Vendor:>=4.1.0"
1516
],
@@ -31,10 +32,10 @@
3132
"AigcChatXunfei",
3233
"AigcChatZhipuAi"
3334
],
34-
"version": "1.4.3",
35+
"version": "1.4.4",
3536
"modstartVersion": ">=4.1.0",
3637
"author": "ModStart",
3738
"description": "提供AI基础框架包,支持各种模型接入",
3839
"providers": [],
39-
"config": {}
40-
}
40+
"config": []
41+
}

module/Cms/Docs/release.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
## 3.9.1
2-
3-
- 修复:已知缺陷修复
4-
5-
---
6-
7-
## 3.9.0
1+
## 3.9.0 记录新增seo相关字段无效的问题,已知缺陷修复
82

93
- 修复:记录新增seo相关字段无效的问题
4+
- 修复:已知缺陷修复
105

116
---
127

module/Cms/config.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Cms",
3-
"title": "通用CMS",
3+
"title": "CMS系统",
44
"env": [
55
"laravel5",
66
"laravel9"
@@ -15,13 +15,11 @@
1515
"WordSpliter",
1616
"SiteMapManager"
1717
],
18-
"tags": [
19-
"通用CMS"
20-
],
18+
"tags": [],
2119
"version": "3.9.0",
22-
"modstartVersion": ">=4.0.0",
20+
"modstartVersion": ">=4.1.0",
2321
"author": "ModStart",
2422
"description": "提供通用的动态模型内容管理系统",
2523
"providers": [],
2624
"config": {}
27-
}
25+
}

module/Member/Admin/Controller/MemberController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ protected function crud(AdminCRUDBuilder $builder)
156156
$builder->display('registerIp', '注册IP');
157157
$builder->display('registerIpName', '注册IP定位');
158158
$builder->display('created_at', '注册时间');
159+
if (modstart_module_enabled('MemberSecurityGuard')) {
160+
$builder->display('loginLockTime', '登录锁定时间');
161+
}
159162
$builder->canBatchSelect(true);
160163
$builder->batchOperatePrepend('<button class="btn" data-batch-confirm="确认禁用 %d 个用户?" data-batch-operate="' . modstart_admin_url('member/status_forbidden') . '"><i class="iconfont icon-warning"></i> 禁用</button>');
161164
})

module/Member/Config/MemberHomeIcon.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public static function get()
2525
if ($item instanceof \Closure) {
2626
$item = call_user_func($item);
2727
}
28+
if (empty($item)) {
29+
continue;
30+
}
2831
$menu = array_merge($menu, $item);
2932
}
3033
$menu = self::mergeMenu($menu);

0 commit comments

Comments
 (0)