优化版本号显示方式

This commit is contained in:
乐风 2021-05-07 22:35:25 +08:00
parent 58a2db7c6a
commit 66e1d2c59d
7 changed files with 12 additions and 13 deletions

View File

@ -63,10 +63,10 @@ WECHAT_MESSAGE_PUSH=false
PLUGIN_SYNC_API_URL= PLUGIN_SYNC_API_URL=
# PRINCE转换 # PRINCE转换
PRINCE_DIR=E:/develop/Prince/engine/bin/prince.exe PRINCE_DIR=
# ag-grid授权 # ag-grid授权
AGGRID_LICENSE="agGrid.LicenseManager.setLicenseKey('key');" AGGRID_LICENSE="agGrid.LicenseManager.setLicenseKey('demo');"
# 演示模式 # 演示模式
DEMO_VERSION=false DEMO_VERSION=false

View File

@ -291,7 +291,7 @@ a { outline: none; }
<div class="dashboard-footer"> <div class="dashboard-footer">
<div class="box"> <div class="box">
{{$version}} {{$edition}} {{$version}}
</div> </div>
</div> </div>

View File

@ -5,7 +5,7 @@
软件版本 软件版本
</td> </td>
<td align="left" style="border-top:0;"> <td align="left" style="border-top:0;">
{{$version}} {{$edition}} {{$version}}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -185,7 +185,7 @@ body {
--> -->
<div class="footer"> <div class="footer">
<small class="text-muted">© {{date('Y')}} {{$version}}</small> <small class="text-muted">© {{date('Y')}} {{$edition}} {{$version}}</small>
</div> </div>
</div> </div>
</div> </div>

View File

@ -56,7 +56,7 @@ body {
<div class="line line-dashed"></div> <div class="line line-dashed"></div>
<div class="text-center"> <div class="text-center">
<small class="text-muted">© {{date('Y')}} {{$version}}</small> <small class="text-muted">© {{date('Y')}} {{$edition}} {{$version}}</small>
</div> </div>
<div class="line line-dashed"></div> <div class="line line-dashed"></div>

View File

@ -47,7 +47,7 @@ body {
<div class="line line-dashed"></div> <div class="line line-dashed"></div>
<div class="text-center"> <div class="text-center">
<small class="text-muted">© {{date('Y')}} {{$version}}</small> <small class="text-muted">© {{date('Y')}} {{$edition}} {{$version}}</small>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -3,12 +3,11 @@
require __DIR__.'/macros.php'; require __DIR__.'/macros.php';
require __DIR__.'/sql.php'; require __DIR__.'/sql.php';
View::composer('*', function ($view) { $keys = decrypt('eyJpdiI6Imp2a0w1ck5lUS9jWTRKbXVWNHg3VVE9PSIsInZhbHVlIjoiRTcwU2pHZ3JMZEltM1RtU3diNjZmbXpONVl4Ymh3WHR3Ujl4UmEyUjRZdGFFVGdCRURoeXBONmJMdGlTODRUVWtTZ2k5VTJNVVB5ZHN3R2FMU0FkdHpVaGwxZndVaWlaNi9acGZXaUl0eFR0OFpYWC9pVEQ2YU9QK2MyQXVOTDFBa09Lc3hwQWlEanlwMWFSSXFQV2plb1VlQXFtQTdJNzZBRmlFQ3ZKWHJVOHd3SVovd2hhQ3JFU2NUem1hMWhvOVptcUFIVTZLa1Y3OS9ZWTQ3YlArUT09IiwibWFjIjoiZWVjODM4YzdiZjAzNjI0YWQxMTg1NmIyNGJhMDU5M2Q3ZWRhMmY5YzkxMGI4NDM0ZDBhZDY1YWJiZThiMDNjMiJ9');
$shared = View::getShared(); View::composer('*', function ($view) use($keys) {
$licenseType = env('LICENSE_TYPE', '开源版'); foreach($keys as $k => $v) {
$view->with('title', 'Gdoo'); $view->with($k, $v);
$view->with('powered', 'Powered By Gdoo'); }
$view->with('version', '<a target="_blank" href="http://www.gdoo.net">Gdoo</a> '.$shared['version'].' '.$licenseType);
}); });
/* /*