master
ljl 9 months ago
parent 2323b23ebd
commit a18396e831

@ -1,9 +1,6 @@
package com.ms.biz.service.impl; package com.ms.biz.service.impl;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.doudian.open.core.AccessToken; import com.doudian.open.core.AccessToken;
@ -181,9 +178,12 @@ public class ShopServiceImpl implements ShopService {
GetAuthInfoResponseDTO response = dsApiService.getAuthInfo(shopId); GetAuthInfoResponseDTO response = dsApiService.getAuthInfo(shopId);
if (response.isSuccess()) { if (response.isSuccess()) {
if (Objects.equals(response.getAuthStatus(), "notBind")) {
throw new BindMemberNotExistsException();
}
data.setBindName(response.getMemberName()); data.setBindName(response.getMemberName());
} else { } else {
throw new RuntimeException(response.getReason()); throw new BusinessException(response.getReason());
} }
} }
@ -200,8 +200,12 @@ public class ShopServiceImpl implements ShopService {
CommonResponseDTO response = dsApiService.delAuthShop(shopId); CommonResponseDTO response = dsApiService.delAuthShop(shopId);
if (!response.isSuccess()) { if (!response.isSuccess()) {
if (Objects.equals(response.getCode(), "biz.platform-shop-member-not-exist")) {
throw new MemberAlreadyUnbindException();
} else {
throw new BusinessException(response.getReason()); throw new BusinessException(response.getReason());
} }
}
shopTo1688DsMemberMapper.deleteByPrimaryKey(member.getShopTo1688DsMemberId()); shopTo1688DsMemberMapper.deleteByPrimaryKey(member.getShopTo1688DsMemberId());
} }

Loading…
Cancel
Save