Skip to content

Commit

Permalink
更新:优化关注用户通知
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Feb 14, 2023
1 parent 1b8c018 commit 0fe29b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Plugins/User/src/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ public function user_follow()
user_notice()->send(
$user_id,
auth()->data()->username . ' 取关了你!',
view('User::notice.userfollow_d')
view('User::notice.userfollow_d').
'/notice'
);
return Json_Api(201, true, ['msg' => '已取关!']);
}
Expand All @@ -229,7 +230,8 @@ public function user_follow()
user_notice()->send(
$user_id,
auth()->data()->username . ' 关注了你!',
view('User::notice.userfollow')
view('User::notice.userfollow'),
'/notice'
);

return Json_Api(200, true, ['msg' => '已关注']);
Expand Down

0 comments on commit 0fe29b1

Please sign in to comment.