|
@@ -96,6 +96,8 @@ namespace GxPress.Api.WebControllers
|
|
|
if (request.VipType > 0)
|
|
|
{
|
|
|
var vipEquity = await vipEquityRepository.GetByVipTypeAsync(request.VipType);
|
|
|
+ if (vipEquity == null)
|
|
|
+ throw new BusinessException("不存在权益");
|
|
|
var vipTypeConst = ((VipCardTypeConst)vipEquity.VipType);
|
|
|
if (vipTypeConst.GetHashCode() == 0)
|
|
|
throw new BusinessException("服务器异常");
|