|
@@ -229,17 +229,17 @@ public class WxaUserApiController extends WxaController {
|
|
|
String json = decrypt(encryptedData.replace(" ", "+"), iv, sessionKey);
|
|
|
|
|
|
|
|
|
- ApiResult apiResult = ApiResult.create(json);
|
|
|
+// ApiResult apiResult = ApiResult.create(json);
|
|
|
|
|
|
- if (!apiResult.isSucceed()) {
|
|
|
- ResultBean resultBean = new ResultBean(apiResult.getInt("errcode"), apiResult.getStr("errmsg"));
|
|
|
- renderJson(resultBean);
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (!apiResult.isSucceed()) {
|
|
|
+// ResultBean resultBean = new ResultBean(apiResult.getInt("errcode"), apiResult.getStr("errmsg"));
|
|
|
+// renderJson(resultBean);
|
|
|
+// return;
|
|
|
+// }
|
|
|
// 如果开发者拥有多个移动应用、网站应用、和公众帐号(包括小程序),可通过unionid来区分用户的唯一性
|
|
|
// 同一用户,对同一个微信开放平台下的不同应用,unionid是相同的。
|
|
|
|
|
|
- JSONObject object = JSON.parseObject(apiResult.getJson());
|
|
|
+ JSONObject object = JSON.parseObject(json);
|
|
|
String phone = object.getString("purePhoneNumber");
|
|
|
if (StrKit.isBlank(phone)) {
|
|
|
renderJson(ErrorConstant.ERROR_PHONE_BLANK);
|