Browse Source

line 115 ,获取用户信息的地址错误

和官方的地址不一致,导致获取不到用户信息。
marskenneth 10 years ago
parent
commit
31c78fc940
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wechat.class.php

+ 1 - 1
wechat.class.php

@@ -112,7 +112,7 @@ class Wechat
 	const API_BASE_URL_PREFIX = 'https://api.weixin.qq.com'; //以下API接口URL需要使用此前缀
 	const OAUTH_TOKEN_URL = '/sns/oauth2/access_token?';
 	const OAUTH_REFRESH_URL = '/sns/oauth2/refresh_token?';
-	const OAUTH_USERINFO_URL = '/sns/oauth2/sns/userinfo?';
+	const OAUTH_USERINFO_URL = '/sns/userinfo?';
 	const OAUTH_AUTH_URL = '/sns/auth?';
 	///多客服相关地址
 	const CUSTOM_SERVICE_GET_RECORD = '/customservice/getrecord?';