1
This commit is contained in:
parent
ff80ab71e6
commit
a4ecac7c8e
@ -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, '成功');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user