|
...
|
...
|
@@ -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);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|