|
@@ -331,6 +331,16 @@ class BlogLogic extends BaseLogic |
|
@@ -331,6 +331,16 @@ class BlogLogic extends BaseLogic |
|
331
|
$seo_description = substr(strip_tags($data[8]),0,200);
|
331
|
$seo_description = substr(strip_tags($data[8]),0,200);
|
|
332
|
}
|
332
|
}
|
|
333
|
|
333
|
|
|
|
|
334
|
+ $release_at = date('Y-m-d H:i:s');
|
|
|
|
335
|
+ if($data[9]??''){
|
|
|
|
336
|
+ $release_at = date('Y-m-d H:i:s',strtotime($data[9]));
|
|
|
|
337
|
+ }
|
|
|
|
338
|
+
|
|
|
|
339
|
+ $sort = 10;
|
|
|
|
340
|
+ if($data[10]??''){
|
|
|
|
341
|
+ $sort = $data[10];
|
|
|
|
342
|
+ }
|
|
|
|
343
|
+
|
|
334
|
$id = $this->model->addReturnId(
|
344
|
$id = $this->model->addReturnId(
|
|
335
|
[
|
345
|
[
|
|
336
|
'name' => $data[0],
|
346
|
'name' => $data[0],
|
|
@@ -345,7 +355,9 @@ class BlogLogic extends BaseLogic |
|
@@ -345,7 +355,9 @@ class BlogLogic extends BaseLogic |
|
345
|
'operator_id' => $user_id,
|
355
|
'operator_id' => $user_id,
|
|
346
|
'create_id' => $user_id,
|
356
|
'create_id' => $user_id,
|
|
347
|
'status' => Blog::STATUS_ONE,
|
357
|
'status' => Blog::STATUS_ONE,
|
|
348
|
- 'url' => ''
|
358
|
+ 'url' => '',
|
|
|
|
359
|
+ 'release_at' => $release_at,
|
|
|
|
360
|
+ 'sort' => $sort
|
|
349
|
]
|
361
|
]
|
|
350
|
);
|
362
|
);
|
|
351
|
//更新路由
|
363
|
//更新路由
|
|
@@ -354,7 +366,7 @@ class BlogLogic extends BaseLogic |
|
@@ -354,7 +366,7 @@ class BlogLogic extends BaseLogic |
|
354
|
if (!$route_map) {
|
366
|
if (!$route_map) {
|
|
355
|
$route_map = new RouteMap();
|
367
|
$route_map = new RouteMap();
|
|
356
|
$route_map->project_id = $project_id;
|
368
|
$route_map->project_id = $project_id;
|
|
357
|
- $route_map->path = RouteMap::SOURCE_BLOG.'s';
|
369
|
+ $route_map->path = RouteMap::SOURCE_BLOG;
|
|
358
|
$route_map->source = RouteMap::SOURCE_BLOG;
|
370
|
$route_map->source = RouteMap::SOURCE_BLOG;
|
|
359
|
$route_map->source_id = $id;
|
371
|
$route_map->source_id = $id;
|
|
360
|
$route_map->route = $route;
|
372
|
$route_map->route = $route;
|