From b89781f8b5496454766883a83bc23f17d0af20ce Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 15 Aug 2019 14:44:04 +0800 Subject: [PATCH] Update Review.php --- application/wechat/controller/api/Review.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/wechat/controller/api/Review.php b/application/wechat/controller/api/Review.php index 84970d3df..c0a349427 100644 --- a/application/wechat/controller/api/Review.php +++ b/application/wechat/controller/api/Review.php @@ -35,7 +35,8 @@ class Review extends Controller */ public function news($id = 0) { - $this->news = MediaService::news(empty($id) ? input('id') : $id); + $this->id = empty($id) ? input('id') : $id; + $this->news = MediaService::news($this->id); $this->fetch(); }