fix: 网元首圈状态检查离线时获取更新激活码

This commit is contained in:
TsMask
2025-04-28 19:33:22 +08:00
parent 2a7baeb0b4
commit 23881042bc

View File

@@ -261,11 +261,12 @@ func (s *NeLicenseController) State(c *gin.Context) {
neLicense.Status = "1"
neLicense.SerialNum = fmt.Sprint(neState["sn"])
neLicense.ExpiryDate = fmt.Sprint(neState["expire"])
} else {
neLicense.Status = "0"
// 更新授权码
code, licensePath := s.neLicenseService.ReadLicenseInfo(neLicense)
neLicense.ActivationRequestCode = code
neLicense.LicensePath = licensePath
} else {
neLicense.Status = "0"
}
// 更新授权信息