兑换码优化
This commit is contained in:
@@ -288,6 +288,7 @@ public class MkRedemptionConfigServiceImpl extends ServiceImpl<MkCouponRedemptio
|
||||
|
||||
MkRedemptionCode redemptionCode = codeService.getOne(new QueryWrapper().eq(MkRedemptionCode::getCode, dto.getCode()));
|
||||
AssertUtil.isNull(redemptionCode, "兑换码不存在");
|
||||
AssertUtil.isTrue(redemptionCode.getStatus() == 1, "兑换码已使用");
|
||||
Long mainShopId = redemptionCode.getMainShopId();
|
||||
enableConfigService.checkEnable(mainShopId, mainShopId, TableValueConstant.EnableConfig.Type.RECHARGE_REDEMPTION, true);
|
||||
ShopUser shopUserInfo = shopUserService.getShopUserInfo(mainShopId, userId);
|
||||
|
||||
Reference in New Issue
Block a user