|
@@ -214,6 +214,9 @@ public class WxaUserApiController extends WxaController {
|
|
|
renderJson(ErrorConstant.ERROR_WXA_SESSION_BLANK3);
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ try {
|
|
|
+
|
|
|
// 用户信息校验
|
|
|
WxaUserApi wxaUserApi = Duang.duang(WxaUserApi.class);
|
|
|
// 服务端解密用户信息
|
|
@@ -225,7 +228,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
}
|
|
|
// 如果开发者拥有多个移动应用、网站应用、和公众帐号(包括小程序),可通过unionid来区分用户的唯一性
|
|
|
// 同一用户,对同一个微信开放平台下的不同应用,unionid是相同的。
|
|
|
- try {
|
|
|
+
|
|
|
String phone = apiResult.getStr("purePhoneNumber");
|
|
|
if (StrKit.isBlank(phone)) {
|
|
|
renderJson(ErrorConstant.ERROR_PHONE_BLANK);
|