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