Compare commits
No commits in common. "d1647bb9cf40b40aedf236b4e4f365650927b254" and "7fe3cfe17b21b2028c0f5b433db70501f7f39801" have entirely different histories.
d1647bb9cf
...
7fe3cfe17b
@ -190,21 +190,8 @@ func SaveBundle(req *bundle.BundleProfile) (res *bundle.SaveResponse, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !dao.ValidateQuotaCompatibility(benefitsQuota, optionalQuota) {
|
if !dao.ValidateQuotaCompatibility(benefitsQuota, optionalQuota) {
|
||||||
var serviceName string
|
return res, fmt.Errorf("服务类型%d的额度不兼容:套餐权益额度为%d,附加权益额度为%d",
|
||||||
switch detail.ServiceType {
|
detail.ServiceType, benefitsQuota.QuotaValue, optionalQuota.QuotaValue)
|
||||||
case msg.VideoService:
|
|
||||||
serviceName = "视频"
|
|
||||||
case msg.TextService:
|
|
||||||
serviceName = "图文"
|
|
||||||
case msg.DataReportService:
|
|
||||||
serviceName = "数据报表"
|
|
||||||
case msg.AccountService:
|
|
||||||
serviceName = "账号数"
|
|
||||||
case msg.AvailableTimeService:
|
|
||||||
serviceName = "可用时长"
|
|
||||||
}
|
|
||||||
return res, fmt.Errorf("服务类型%s的额度不兼容:套餐权益额度为%d,附加权益额度为%d",
|
|
||||||
serviceName, benefitsQuota.QuotaValue, optionalQuota.QuotaValue)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user