Authored by qinchao

open支付宝解绑功能

... ... @@ -64,7 +64,7 @@ public class TradeBillsController {
@RequestMapping(value = "/unbindingAuthorizeInfoByUid")
public ApiResponse unbindingAuthorizeInfoByUid(Integer uid) {
LOGGER.info("unbindingAuthorizeInfoByUid in. uid is {}", uid);
billsTradeService.unbindingAuthorizeInfoByUid(uid);
return new ApiResponse.ApiResponseBuilder().code(200).message("已解绑").build();
}
... ...
... ... @@ -254,12 +254,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
LOGGER.info("unbindingAuthorizeInfoByUid service in. unbinding uid is {},operator user id {} ,user name {},userInfo {}", uid,userInfo.getUserId(),userInfo.getUserName(),userInfo);
//TODO 记录解绑日志 ,调用解绑接口,并且清理本地local cache缓存
/*AuthorizeInfoReq req = new AuthorizeInfoReq();
AuthorizeInfoReq req = new AuthorizeInfoReq();
req.setUid(uid);
req.setOperatorUid(userInfo.getUserId());
req.setOperatorName(userInfo.getUserName());
JSONObject jsonObject = serviceCaller.asyncCall("userRealNameAuthorize.clearAliPayAccount", req, JSONObject.class).get(5);
LOGGER.info("unbindingAuthorizeInfoByUid service in. unbinding uid is {},call result jsonObject {},userInfo {}", uid,JSON.toJSONString(jsonObject),userInfo);
localUidAlipayAccountCache.invalidate(uid);*/
localUidAlipayAccountCache.invalidate(uid);
}
... ...
... ... @@ -105,8 +105,6 @@ function getAuthorizeInfoList(param){
}
function openUnbindingConfirmDialog(uid) {
alert("开发中...");
return ;
$.messager.confirm("确认解绑", "是否确认解绑[uid="+uid+"]", function(flag) {
if (flag) {
$.post(contextPath + "/tradeBills/unbindingAuthorizeInfoByUid", {
... ...