Compare commits

...

2 Commits

Author SHA1 Message Date
jiaji.H
7741a5dc35 Updata:不在定义内的额度信息 2025-09-04 13:25:52 +08:00
jiaji.H
04b4b3f7c5 Updata:去除不必要err 2025-09-04 11:55:50 +08:00

View File

@ -378,7 +378,7 @@ func ValueAddServiceList(req *bundle.ValueAddServiceListRequest) (res *bundle.Va
case 5: case 5:
quotaInfo = fmt.Sprintf("每年%d个", serviceLangInfo.QuotaValue) quotaInfo = fmt.Sprintf("每年%d个", serviceLangInfo.QuotaValue)
default: default:
quotaInfo = "不限额度" quotaInfo = ""
} }
isExpired = serviceLangInfo.IsExpired isExpired = serviceLangInfo.IsExpired
} }
@ -413,8 +413,6 @@ func ValueAddServiceList(req *bundle.ValueAddServiceListRequest) (res *bundle.Va
if quotaInfo != "" && serviceInfo.ServiceType != 5 { if quotaInfo != "" && serviceInfo.ServiceType != 5 {
serviceInfo.ServiceQuota = quotaInfo serviceInfo.ServiceQuota = quotaInfo
serviceInfo.IsExpired = isExpired serviceInfo.IsExpired = isExpired
} else {
return res, errors.New("额度信息获取错误")
} }
} }
res.ValueAddServiceList = append(res.ValueAddServiceList, serviceInfo) res.ValueAddServiceList = append(res.ValueAddServiceList, serviceInfo)