mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 12:23:06 +08:00
Merge branch 'develop' into demo
This commit is contained in:
commit
d2bff558b7
@ -160,12 +160,9 @@ class ArticleController extends Controller
|
|||||||
{
|
{
|
||||||
$service = new ArticleService();
|
$service = new ArticleService();
|
||||||
|
|
||||||
$article = $service->createArticle();
|
$service->createArticle();
|
||||||
|
|
||||||
$location = $this->url->get([
|
$location = $this->url->get(['for' => 'home.uc.articles']);
|
||||||
'for' => 'home.article.edit',
|
|
||||||
'id' => $article->id,
|
|
||||||
]);
|
|
||||||
|
|
||||||
$content = [
|
$content = [
|
||||||
'location' => $location,
|
'location' => $location,
|
||||||
@ -184,7 +181,12 @@ class ArticleController extends Controller
|
|||||||
|
|
||||||
$service->updateArticle($id);
|
$service->updateArticle($id);
|
||||||
|
|
||||||
$content = ['msg' => '更新文章成功'];
|
$location = $this->url->get(['for' => 'home.uc.articles']);
|
||||||
|
|
||||||
|
$content = [
|
||||||
|
'location' => $location,
|
||||||
|
'msg' => '更新文章成功',
|
||||||
|
];
|
||||||
|
|
||||||
return $this->jsonSuccess($content);
|
return $this->jsonSuccess($content);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user