fix: ims online user issue

This commit is contained in:
2024-08-07 15:22:04 +08:00
parent 061a949f3b
commit de6535e99b

View File

@@ -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)