-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
187 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 1.8.0 | ||
## 1.8.0 调用命令升级,日志优化显示 | ||
|
||
- 新增:系统升级调用命令容错处理 | ||
- 优化:系统升级界面日志颜色优化 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
- 新增:快速渲染方式 | ||
- 新增:手机自适应宽高比 | ||
- 优化:浏览器自适应或尺寸变更时自动更新 | ||
- 修复:导航轮播适配最新版本方法调用 | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 3.2.0 | ||
## 3.2.0 内容访问优化,模型字段编辑修复 | ||
|
||
- 优化:内容访问无权限时基础字段保留 | ||
- 修复:模型字段不能编辑问题修复 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## 3.8.0 | ||
|
||
- 优化:导入页面兼容后台多标签方式展示 | ||
|
||
--- | ||
|
||
## 3.7.0 任务调度升级,订单处理优化 | ||
|
||
- 新增:任务调度执行器ScheduleRunner | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* | ||
!.gitignore | ||
!.gitignore |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
|
||
namespace ModStart\Core\Util; | ||
|
||
|
||
use ModStart\Core\Exception\BizException; | ||
|
||
class MetaUtil | ||
{ | ||
private static $supportKeys = [ | ||
'APP_NAME', | ||
]; | ||
|
||
public static function get($key) | ||
{ | ||
static $meta = null; | ||
BizException::throwsIf('Meta信息不包含' . $key, !in_array($key, self::$supportKeys)); | ||
if (null === $meta) { | ||
$file = base_path('meta.json'); | ||
if (file_exists($file)) { | ||
$meta = @json_decode(file_get_contents($file), true); | ||
} | ||
if (empty($meta)) { | ||
$meta = []; | ||
} | ||
} | ||
if (isset($meta[$key])) { | ||
return $meta[$key]; | ||
} | ||
switch ($key) { | ||
case 'APP_NAME': | ||
if (defined('\App\Constant\AppConstant::APP_NAME')) { | ||
return \App\Constant\AppConstant::APP_NAME; | ||
} else if (defined('\App\Constant\AppConstant::APP')) { | ||
return \App\Constant\AppConstant::APP; | ||
} | ||
return 'UnknownAppName'; | ||
} | ||
return '-'; | ||
} | ||
} |
Oops, something went wrong.