fix 跳转bug

This commit is contained in:
Dai 2024-07-25 10:35:37 +08:00
parent f7f15fe22d
commit a20207f76a

View File

@ -35,11 +35,11 @@ class TeacherController extends BaseController
// $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect"; // $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect";
$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"; $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->json([ // return $this->json([
'code' => ResponseCode::SUCCESS, // 'code' => ResponseCode::SUCCESS,
'data' => $url // 'data' => $url
]); // ]);
// return redirect($url); return redirect($url);
} }
/** /**