作者 邓超

Merge branch 'develop' into dc

... ... @@ -13,7 +13,7 @@ use App\Models\Blog\Blog as BlogModel;
class BlogController extends BaseController
{
//通知别名
public $model = 'blog';
public $updateModelView = 'blog';
/**
* @name :博客列表
* @author :liyuhang
... ... @@ -69,7 +69,7 @@ class BlogController extends BaseController
$request->validated();
$blogLogic->blog_add();
//TODO::通知网站更新
$this->projectUrlNotify($this->model);
$this->projectUrlNotify($this->updateModelView);
$this->response('success');
}
... ... @@ -86,7 +86,7 @@ class BlogController extends BaseController
]);
$blogLogic->blog_edit();
//TODO::通知网站更新
$this->projectUrlNotify($this->model);
$this->projectUrlNotify($this->updateModelView);
$this->response('success');
}
... ...
... ... @@ -15,7 +15,7 @@ use App\Models\News\News as NewsModel;
*/
class NewsController extends BaseController
{
public $model = 'news';
public $updateModelView = 'news';
/**
* @name :获取新闻列表
* @author :liyuhang
... ... @@ -67,7 +67,7 @@ class NewsController extends BaseController
$newsRequest->validated();
$newsLogic->news_add();
//TODO::通知网站更新
$res = $this->projectUrlNotify($this->model);
$res = $this->projectUrlNotify($this->updateModelView);
$this->response('success',Code::SUCCESS,$res);
}
... ... @@ -84,7 +84,7 @@ class NewsController extends BaseController
]);
$newsLogic->news_edit();
//TODO::通知网站更新
$res = $this->projectUrlNotify($this->model);
$res = $this->projectUrlNotify($this->updateModelView);
$this->response('success',Code::SUCCESS,$res);
}
... ...