1
0
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:
koogua 2021-04-29 17:22:43 +08:00
commit d2bff558b7

View File

@ -160,12 +160,9 @@ class ArticleController extends Controller
{
$service = new ArticleService();
$article = $service->createArticle();
$service->createArticle();
$location = $this->url->get([
'for' => 'home.article.edit',
'id' => $article->id,
]);
$location = $this->url->get(['for' => 'home.uc.articles']);
$content = [
'location' => $location,
@ -184,7 +181,12 @@ class ArticleController extends Controller
$service->updateArticle($id);
$content = ['msg' => '更新文章成功'];
$location = $this->url->get(['for' => 'home.uc.articles']);
$content = [
'location' => $location,
'msg' => '更新文章成功',
];
return $this->jsonSuccess($content);
}