|
...
|
...
|
@@ -243,7 +243,7 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
$blogModel = new Blog();
|
|
|
|
$id = $blogModel->addReturnId($data);
|
|
|
|
$route = RouteMap::setRoute($data['name'],RouteMap::SOURCE_BLOG,$id,$info['project_id']);
|
|
|
|
$blogModel->edit(['alias'=>$route],['id'=>$id]);
|
|
|
|
$blogModel->edit(['url'=>$route],['id'=>$id]);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('保存失败,请联系管理员');
|
|
|
|
}
|
|
...
|
...
|
@@ -277,7 +277,7 @@ class TicketUploadDataLogic extends BaseLogic |
|
|
|
$newsModel = new News();
|
|
|
|
$id = $newsModel->addReturnId($data);
|
|
|
|
$route = RouteMap::setRoute($data['name'],RouteMap::SOURCE_NEWS,$id,$info['project_id']);
|
|
|
|
$newsModel->edit(['alias'=>$route],['id'=>$id]);
|
|
|
|
$newsModel->edit(['url'=>$route],['id'=>$id]);
|
|
|
|
}catch (\Exception $e){
|
|
|
|
$this->fail('保存失败,请联系管理员');
|
|
|
|
}
|
...
|
...
|
|