From a4ecac7c8ebbc4a1615f0ad63d760736b4c144b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=96=E5=8F=AB?= <392494244@qq.com> Date: Fri, 8 Dec 2023 15:02:37 +0800 Subject: [PATCH] 1 --- app/api/controller/food/User.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/api/controller/food/User.php b/app/api/controller/food/User.php index 24fe0ec..9ab261e 100644 --- a/app/api/controller/food/User.php +++ b/app/api/controller/food/User.php @@ -174,12 +174,7 @@ class User extends Controller public function wxCode() { $appid = 'wx89c12dd426a55a2e'; - - - $redirect_uri = $this->request->host() . 'api/food.user/wxLogin'; - - - + $redirect_uri = 'https://app.cxhxy.dev.1nww.com/#/pages/details/detail'; $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri={$redirect_uri}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; return $this->renderSuccess($url, '成功'); }