|
|
@ -79,7 +79,7 @@ public class AppLetAuthorizationServiceImpl implements AppLetAuthorizationServic |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void removeBind(TokenDto tokenDto, RemoveBindFormDTO formDTO) { |
|
|
|
String customerId = componentVerifyTicketServiceImpl.getLoginUserCustomerId(tokenDto); |
|
|
|
String customerId = formDTO.getCustomerId(); |
|
|
|
String clientType = formDTO.getClientType(); |
|
|
|
//查询openAppId
|
|
|
|
String openAppId = openPlatformAccountDao.selectOpenAppIdByCustomerId(customerId); |
|
|
@ -91,8 +91,8 @@ public class AppLetAuthorizationServiceImpl implements AppLetAuthorizationServic |
|
|
|
jsonObject.put(ModuleConstant.LOW_APP_ID,authAppId); |
|
|
|
jsonObject.put(ModuleConstant.OPEN_APP_ID,openAppId); |
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(WxMaCodeConstant.UN_BIND + authorizationInfo.getAuthorizer_access_token(), JSON.toJSONString(jsonObject)).getData(); |
|
|
|
Map<String,String> map = JSON.parseObject(data, Map.class); |
|
|
|
if (!map.get(ModuleConstant.ERR_CODE).equals(NumConstant.ZERO_STR)){ |
|
|
|
Map<String,Object> map = JSON.parseObject(data, Map.class); |
|
|
|
if (!map.get(ModuleConstant.ERR_CODE).equals(NumConstant.ZERO)){ |
|
|
|
log.error("解绑失败" + data); |
|
|
|
throw new RenException("解绑失败" + data); |
|
|
|
} |
|
|
|