From fcb819a3040d8d7eabb2b166b3f5abc461d83354 Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 12 Dec 2020 14:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/controller/api/Js.php | 7 ++++++- app/wechat/controller/api/View.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/wechat/controller/api/Js.php b/app/wechat/controller/api/Js.php index 739f6deb6..08a829a07 100644 --- a/app/wechat/controller/api/Js.php +++ b/app/wechat/controller/api/Js.php @@ -26,8 +26,13 @@ use think\Response; */ class Js extends Controller { + /** @var string */ protected $params; + + /** @var string */ protected $openid; + + /** @var string */ protected $fansinfo; /** @@ -40,7 +45,7 @@ class Js extends Controller * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ - public function index() + public function index(): Response { $mode = $this->request->get('mode', 1); $source = $this->request->server('http_referer') ?: $this->request->url(true); diff --git a/app/wechat/controller/api/View.php b/app/wechat/controller/api/View.php index d6a055dd1..e5269ad6a 100644 --- a/app/wechat/controller/api/View.php +++ b/app/wechat/controller/api/View.php @@ -28,7 +28,7 @@ class View extends Controller /** * 图文列表展示 - * @param integer $id 图文ID + * @param integer $id 图文ID编号 * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException @@ -42,7 +42,7 @@ class View extends Controller /** * 文章内容展示 - * @param integer $id 文章ID + * @param integer $id 文章ID编号 * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException