diff --git a/features/ue/ue.go b/features/ue/ue.go index 4ad125e2..97bbdff7 100644 --- a/features/ue/ue.go +++ b/features/ue/ue.go @@ -437,7 +437,7 @@ func GetIMSUEInfoFromNF(w http.ResponseWriter, r *http.Request) { if tenantID == "" { var ueInfos TenantImsUEInfoResponse _ = json.Unmarshal(resp.Body(), &ueInfos) - for i := 0; i < len(response.Data); i++ { + for i := 0; i < len(ueInfos.Data); i++ { where = fmt.Sprintf("status='1' and tenancy_type='IMSI' and '%s' like tenancy_key", ueInfos.Data[i].IMSI) tenantID, _ = dborm.XormGetSingleColStringByWhere("sys_tenant", "parent_id", where) where = fmt.Sprintf("status='1' and tenant_id='%s'", tenantID)