mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-10 10:40:03 +08:00
更新提交文章后跳转到用户中心
This commit is contained in:
parent
c7dfeed563
commit
0cc2f10850
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user