|
...
|
...
|
@@ -41,7 +41,7 @@ class BlogLogic extends BaseLogic |
|
|
|
$this->edit($this->param,['id'=>$id]);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route ?? '','old_route'=>$info['url'] ?? '']);
|
|
|
|
}else{
|
|
|
|
$this->param['sort'] = $this->setNewsSort();
|
|
|
|
$this->param['sort'] = $this->setBlogSort();
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
$route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']);
|
|
|
|
$this->edit(['url'=>$route],['id'=>$id]);
|
|
...
|
...
|
@@ -53,12 +53,12 @@ class BlogLogic extends BaseLogic |
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :设置最新产品的sort排序
|
|
|
|
* @name :setNewsSort
|
|
|
|
* @name :setBlogSort
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/12/25 9:27
|
|
|
|
*/
|
|
|
|
public function setNewsSort(){
|
|
|
|
public function setBlogSort(){
|
|
|
|
$info = $this->model->orderBy('sort','desc')->first();
|
|
|
|
if(empty($info)){
|
|
|
|
return 1;
|
|
...
|
...
|
@@ -435,8 +435,8 @@ class BlogLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :复制新闻
|
|
|
|
* @name :copyNewsInfo
|
|
|
|
* @remark :复制
|
|
|
|
* @name :copyBlogInfo
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/4/28 14:51
|
...
|
...
|
|