|
@@ -277,8 +277,8 @@ public class UserController extends BaseApiController {
|
|
|
*/
|
|
|
private String getWxMobile(WxLoginParams params, String appId, String appSecret) {
|
|
|
String accessToken = appTokenService.getAccessToken(appId);
|
|
|
- String param = "access_token=" + accessToken + "&code=" + params.getCode();
|
|
|
- String res = HttpUtils.sendPost("https://api.weixin.qq.com/wxa/business/getuserphonenumber", param);
|
|
|
+ String param = "code=" + params.getCode();
|
|
|
+ String res = HttpUtils.sendPost("https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=" + accessToken, param);
|
|
|
return res;
|
|
|
}
|
|
|
|