Compare commits

..

No commits in common. "7741a5dc35643d70aa1c8a414e2164458a3f8164" and "4b999f57c45d035837d021396b9ac77303e204ad" have entirely different histories.

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,6 +413,8 @@ 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)