This commit is contained in:
test_service 2023-12-08 15:03:12 +08:00
commit 54fc401ae0

View File

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