|
@@ -10,6 +10,7 @@ namespace App\Services; |
|
@@ -10,6 +10,7 @@ namespace App\Services; |
|
10
|
|
10
|
|
|
11
|
use App\Models\Project\Project;
|
11
|
use App\Models\Project\Project;
|
|
12
|
use App\Models\RouteMap\RouteMap;
|
12
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
13
|
+use App\Models\Template\BCustomTemplate;
|
|
13
|
use Illuminate\Support\Facades\DB;
|
14
|
use Illuminate\Support\Facades\DB;
|
|
14
|
use Illuminate\Support\Facades\Schema;
|
15
|
use Illuminate\Support\Facades\Schema;
|
|
15
|
|
16
|
|
|
@@ -129,7 +130,7 @@ class ProjectServer extends BaseService |
|
@@ -129,7 +130,7 @@ class ProjectServer extends BaseService |
|
129
|
//初始化单页
|
130
|
//初始化单页
|
|
130
|
$info = DB::connection('custom_mysql')->table('gl_web_custom_template')->first();
|
131
|
$info = DB::connection('custom_mysql')->table('gl_web_custom_template')->first();
|
|
131
|
if(empty($info)) {
|
132
|
if(empty($info)) {
|
|
132
|
- $data = ['project_id' => $project_id, 'name' => '404', 'status' => 1, 'url' => '404', 'html' => '<main>
|
133
|
+ $data = ['project_id' => $project_id, 'name' => BCustomTemplate::NOT_FOUND_PAGE_URL, 'status' => 1, 'url' => BCustomTemplate::NOT_FOUND_PAGE_URL, 'html' => '<main>
|
|
133
|
<section data-section="section" data-screen="screen-large" class="section-404-wrap-block section-block-error404"
|
134
|
<section data-section="section" data-screen="screen-large" class="section-404-wrap-block section-block-error404"
|
|
134
|
id="sectionIdyxqu938">
|
135
|
id="sectionIdyxqu938">
|
|
135
|
<div class="layout" data-unable="demo01-error404">
|
136
|
<div class="layout" data-unable="demo01-error404">
|
|
@@ -159,7 +160,7 @@ class ProjectServer extends BaseService |
|
@@ -159,7 +160,7 @@ class ProjectServer extends BaseService |
|
159
|
//路由
|
160
|
//路由
|
|
160
|
$info = DB::connection('custom_mysql')->table('gl_route_map')->first();
|
161
|
$info = DB::connection('custom_mysql')->table('gl_route_map')->first();
|
|
161
|
if(empty($info)) {
|
162
|
if(empty($info)) {
|
|
162
|
- $data = ['project_id' => $project_id, 'source' => RouteMap::SOURCE_PAGE, 'source_id' => $id, 'route' => '404', 'created_at' => $created_at, 'updated_at' => $created_at];
|
163
|
+ $data = ['project_id' => $project_id, 'source' => RouteMap::SOURCE_PAGE, 'source_id' => $id, 'route' => BCustomTemplate::NOT_FOUND_PAGE_URL, 'created_at' => $created_at, 'updated_at' => $created_at];
|
|
163
|
DB::connection('custom_mysql')->table('gl_route_map')->insert($data);
|
164
|
DB::connection('custom_mysql')->table('gl_route_map')->insert($data);
|
|
164
|
}
|
165
|
}
|
|
165
|
}
|
166
|
}
|