8000 fix · laraveladmin-cn/laraveladmin@b43008a · GitHub
[go: up one dir, main page]

Skip to content

Commit b43008a

Browse files
committed
fix
1 parent 12da7eb commit b43008a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database/seeders/ConfigTableSeeder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Database\Seeders;
3+
use App\Facades\Option;
34
use Illuminate\Database\Seeder;
4 9EB1 5
use \Illuminate\Support\Facades\DB;
56
use \App\Models\Config;
@@ -13,6 +14,7 @@ class ConfigTableSeeder extends Seeder
1314
*/
1415
public function run()
1516
{
17+
$system_version_no = Option::get('system_version_no','v1.0.1');
1618
//初始化数据表
1719
DB::table('configs')->truncate(); //系统配置表
1820

@@ -29,7 +31,7 @@ public function run()
2931
'key' => 'system_version_no',
3032
'name' => '系统版本号',
3133
'description' => '系统版本号',
32-
'value' => 'v1.0.1'
34+
'value' => $system_version_no
3335
]);
3436

3537
//百度统计代码

0 commit comments

Comments
 (0)
0