Skip to content

Commit 575247e

Browse files
committed
feat: 6.4.0
1 parent f0174c6 commit 575247e

File tree

21 files changed

+451
-130
lines changed

21 files changed

+451
-130
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 = 'cms';
88
const APP_NAME = 'ModStartCMS';
9-
const VERSION = '6.3.0';
9+
const VERSION = '6.4.0';
1010
}

database/migrations/2015_12_22_213911_create_config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function up()
1717
$table->timestamps();
1818

1919
$table->string('key', 100)->nullable()->comment('');
20-
$table->text('value');
20+
$table->text('value')->nullable()->comment('内容');
2121

2222
$table->index('key');
2323
});

module/Banner/Admin/Controller/BannerController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use ModStart\Grid\GridFilter;
1212
use ModStart\Support\Concern\HasFields;
1313
use Module\Banner\Type\BannerPosition;
14+
use Module\Banner\Type\BannerPositionRemark;
1415
use Module\Banner\Type\BannerType;
1516
use Module\Banner\Util\BannerUtil;
1617

@@ -25,7 +26,7 @@ protected function crud(AdminCRUDBuilder $builder)
2526
->field(function ($builder) {
2627
/** @var HasFields $builder */
2728
$builder->id('id', 'ID');
28-
$builder->select('position', '位置')->optionType(BannerPosition::class);
29+
$builder->select('position', '位置')->optionType(BannerPositionRemark::class);
2930
$builder->image('image', '图片');
3031
$builder->radio('type', '样式类型')
3132
->optionType(BannerType::class)

module/Banner/Biz/AbstractBannerPositionBiz.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ abstract class AbstractBannerPositionBiz
99
abstract public function name();
1010

1111
abstract public function title();
12+
13+
public function remark()
14+
{
15+
return null;
16+
}
1217
}

module/Banner/Biz/BannerPositionBiz.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66

77
use Module\Vendor\Provider\BizTrait;
88

9+
/**
10+
* Class BannerPositionBiz
11+
* @package Module\Banner\Biz
12+
*
13+
* @method static AbstractBannerPositionBiz[] listAll()
14+
*/
915
class BannerPositionBiz
1016
{
1117
use BizTrait;
1218

13-
public static function registerQuick($name, $title)
19+
public static function registerQuick($name, $title, $remark = null)
1420
{
15-
self::register(QuickBannerPositionBiz::make($name, $title));
21+
self::register(QuickBannerPositionBiz::make($name, $title, $remark));
1622
}
1723

1824
/**

module/Banner/Biz/QuickBannerPositionBiz.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ class QuickBannerPositionBiz extends AbstractBannerPositionBiz
88
{
99
protected $name;
1010
protected $title;
11+
protected $remark;
1112

12-
public static function make($name, $title)
13+
public static function make($name, $title, $remark = null)
1314
{
1415
$o = new static();
1516
$o->name = $name;
1617
$o->title = $title;
18+
$o->remark = $remark;
1719
return $o;
1820
}
1921

@@ -27,5 +29,9 @@ public function title()
2729
return $this->title;
2830
}
2931

32+
public function remark()
33+
{
34+
return $this->remark;
35+
}
3036

3137
}

module/Banner/Docs/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- 新增:模块快速调用方式
44
- 新增:快速调用方式增加container参数
5+
- 新增:轮播使用者remark参数,显示轮播提示
56

67
---
78

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
4+
namespace Module\Banner\Type;
5+
6+
7+
use Module\Banner\Biz\BannerPositionBiz;
8+
9+
class BannerPositionRemark extends BannerPosition
10+
{
11+
public static function getList()
12+
{
13+
$map = parent::getList();
14+
foreach ($map as $k => $v) {
15+
$biz = BannerPositionBiz::get($k);
16+
if ($biz && $biz->remark()) {
17+
$map[$k] = $v . '(' . $biz->remark() . ')';
18+
}
19+
}
20+
return $map;
21+
}
22+
}

module/Member/Admin/Controller/MemberDashboardController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function index(AdminPage $page)
5151
$page->append(Box::make(Line::make()->tableDailyCountLatest(
5252
[
5353
['title' => '总数', 'table' => 'member_user'],
54-
]
54+
],
55+
30
5556
), '会员增长趋势'));
5657
return $page;
5758
}

module/Member/Docs/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 3.6.0
22

33
- 新增:用户PC充值页面适配快捷支付功能
4+
- 新增:用户增长趋势显示最近30天记录
45
- 修复:在线充值支付中心未安装页面提示
56

67
---

0 commit comments

Comments
 (0)