Compare commits
2 Commits
4b999f57c4
...
7741a5dc35
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7741a5dc35 | ||
|
|
04b4b3f7c5 |
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user