mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 17:59:50 +08:00
【优化】优化【全局促销】【团购秒杀】【优惠券】添加优惠结果的提醒文字。
This commit is contained in:
@@ -849,8 +849,20 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
var resultCount = await _coreCmsPromotionResultServices.GetCountAsync(p => p.promotionId == entity.id);
|
||||
if (resultCount >= 1)
|
||||
{
|
||||
jm.msg = GlobalErrorCodeVars.Code15016;
|
||||
return jm;
|
||||
if (model.type == (int)GlobalEnumVars.PromotionType.Promotion)
|
||||
{
|
||||
jm.msg = GlobalErrorCodeVars.Code15029;
|
||||
return jm;
|
||||
}
|
||||
else if (model.type == (int)GlobalEnumVars.PromotionType.Group || model.type == (int)GlobalEnumVars.PromotionType.Seckill)
|
||||
{
|
||||
jm.msg = GlobalErrorCodeVars.Code15016;
|
||||
return jm;
|
||||
} else if (model.type == (int)GlobalEnumVars.PromotionType.Coupon)
|
||||
{
|
||||
jm.msg = GlobalErrorCodeVars.Code15030;
|
||||
return jm;
|
||||
}
|
||||
}
|
||||
|
||||
//返回数据
|
||||
|
||||
Reference in New Issue
Block a user