1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

Merge branch 'develop' into demo

This commit is contained in:
koogua 2021-04-29 17:22:43 +08:00
commit d2bff558b7

View File

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