Commit 44b14dd4 authored by 黄智's avatar 黄智

调整报错信息

parent 00d92526
......@@ -70,7 +70,7 @@ func (so *SystemOptionsSvc) SetLicenseOptions(licenseOpts entity.SystemPreferenc
} else {
conf.Logger.Info("license解析信息:", zap.Any("license", licenseInfo))
if licenseInfo.CustomerName != licenseOpts.SystemUser {
return resp.InvalidParam.WithError(err)
return resp.InvalidParam.WithError(errors.New("license 系统名称不匹配"))
}
if len(licenseInfo.DeadDate) != 11 {
deadDate, _ := time.Parse("2006-01-02", licenseInfo.DeadDate)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment