兼容
This commit is contained in:
@@ -51,7 +51,7 @@ public interface MkDistributionUserService extends IService<MkDistributionUser>
|
|||||||
/**
|
/**
|
||||||
* 分销员中心-获取邀请码
|
* 分销员中心-获取邀请码
|
||||||
*/
|
*/
|
||||||
String getInviteCode(Long shopId, Long shopUserId);
|
String getInviteCode(Long shopId, Long shopUserId) throws CzgException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分销员中心-实名认证
|
* 分销员中心-实名认证
|
||||||
|
|||||||
@@ -205,11 +205,11 @@ public class MkDistributionUserServiceImpl extends ServiceImpl<MkDistributionUse
|
|||||||
if (mkDistributionConfigVO == null || mkDistributionConfigVO.getIsEnable() == 0) {
|
if (mkDistributionConfigVO == null || mkDistributionConfigVO.getIsEnable() == 0) {
|
||||||
throw new CzgException("店铺分销功能未开启");
|
throw new CzgException("店铺分销功能未开启");
|
||||||
}
|
}
|
||||||
|
MkDistributionUser mkDistributionUser = getMkDistributionUserByIdAndShopId(shopUser.getId(), shopId);
|
||||||
|
if (mkDistributionUser == null) {
|
||||||
if (!"auto".equals(mkDistributionConfigVO.getOpenType())) {
|
if (!"auto".equals(mkDistributionConfigVO.getOpenType())) {
|
||||||
throw new CzgException("该店铺不可自行成为分销员");
|
throw new CzgException("该店铺不可自行成为分销员");
|
||||||
}
|
}
|
||||||
MkDistributionUser mkDistributionUser = getMkDistributionUserByIdAndShopId(shopUser.getId(), shopId);
|
|
||||||
if (mkDistributionUser == null) {
|
|
||||||
mkDistributionUser = new MkDistributionUser();
|
mkDistributionUser = new MkDistributionUser();
|
||||||
mkDistributionUser.setId(shopUser.getId());
|
mkDistributionUser.setId(shopUser.getId());
|
||||||
mkDistributionUser.setShopId(shopId);
|
mkDistributionUser.setShopId(shopId);
|
||||||
|
|||||||
Reference in New Issue
Block a user