正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -105,7 +105,7 @@ class ProjectServer | @@ -105,7 +105,7 @@ class ProjectServer | ||
| 105 | $created_at = date('Y-m-d H:i:s'); | 105 | $created_at = date('Y-m-d H:i:s'); |
| 106 | self::initGroup($project_id,$created_at); | 106 | self::initGroup($project_id,$created_at); |
| 107 | //初始化单页 | 107 | //初始化单页 |
| 108 | - self::init404Page($project_id); | 108 | + self::init404Page($project_id,$created_at); |
| 109 | //初始化模块数据 | 109 | //初始化模块数据 |
| 110 | self::initModule($project_id); | 110 | self::initModule($project_id); |
| 111 | DB::disconnect('custom_mysql'); | 111 | DB::disconnect('custom_mysql'); |
| @@ -172,7 +172,7 @@ class ProjectServer | @@ -172,7 +172,7 @@ class ProjectServer | ||
| 172 | * @method :post | 172 | * @method :post |
| 173 | * @time :2023/12/29 9:32 | 173 | * @time :2023/12/29 9:32 |
| 174 | */ | 174 | */ |
| 175 | - public function init404Page($project_id){ | 175 | + public function init404Page($project_id,$created_at){ |
| 176 | $info = DB::connection('custom_mysql')->table('gl_web_custom_template')->first(); | 176 | $info = DB::connection('custom_mysql')->table('gl_web_custom_template')->first(); |
| 177 | if(empty($info)) { | 177 | if(empty($info)) { |
| 178 | $main_404_html = '<main> | 178 | $main_404_html = '<main> |
| @@ -208,7 +208,10 @@ class ProjectServer | @@ -208,7 +208,10 @@ class ProjectServer | ||
| 208 | 'status' => 1, | 208 | 'status' => 1, |
| 209 | 'url' => BCustomTemplate::NOT_FOUND_PAGE_URL, | 209 | 'url' => BCustomTemplate::NOT_FOUND_PAGE_URL, |
| 210 | 'html' => $main_404_html, | 210 | 'html' => $main_404_html, |
| 211 | - 'html_style' => '<style id="globalsojs-styles"></style>','title' => '404-Page not found', 'description' => 'Sorry. The page has either moved or cannot be found.', 'created_at' => $created_at, 'updated_at' => $created_at]; | 211 | + 'html_style' => '<style id="globalsojs-styles"></style>', |
| 212 | + 'title' => '404-Page not found', | ||
| 213 | + 'description' => 'Sorry. The page has either moved or cannot be found.', | ||
| 214 | + 'created_at' => $created_at, 'updated_at' => $created_at]; | ||
| 212 | $id = DB::connection('custom_mysql')->table('gl_web_custom_template')->insertGetId($data); | 215 | $id = DB::connection('custom_mysql')->table('gl_web_custom_template')->insertGetId($data); |
| 213 | //路由 | 216 | //路由 |
| 214 | $info = DB::connection('custom_mysql')->table('gl_route_map')->first(); | 217 | $info = DB::connection('custom_mysql')->table('gl_route_map')->first(); |
-
请 注册 或 登录 后发表评论