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, '成功'); }