if (!requestObject.has("phoneNo")){ requestObject.put("phoneNo",""); } if (!requestObject.has("aliUserId")){ requestObject.put("aliUserId",""); } if (!requestObject.has("openId")){ requestObject.put("openId",""); } RestResponse data = thirdPartyMemberService.queryMemberCode(requestObject.getInt("brandId"), requestObject.getString("phoneNo"), requestObject.getString("aliUserId"), requestObject.getString("openId"));