fix: SMF在线订阅用户列表接口地址错误

This commit is contained in:
TsMask
2024-09-24 10:20:19 +08:00
parent 2dd0ddc89c
commit 4a9e4b1e46

View File

@@ -16,9 +16,7 @@ import (
// //
// 返回结果 {"rows":[],"total":0} // 返回结果 {"rows":[],"total":0}
func SMFSubInfo(neInfo model.NeInfo, data map[string]string) (map[string]any, error) { func SMFSubInfo(neInfo model.NeInfo, data map[string]string) (map[string]any, error) {
// neUrl := "http://127.0.0.1:4523/m1/3157310-1528434-82b449ee/api/rest/ueManagement/v1/elementType/smf/objectType/ueInfo?apifoxApiId=150640017" neUrl := fmt.Sprintf("http://%s:%d/api/rest/ueManagement/v1/elementType/smf/objectType/ueInfo", neInfo.IP, neInfo.Port)
neUrl := fmt.Sprintf("http://%s:%s/api/rest/ueManagement/v1/elementType/smf/objectType/ueInfo", "172.16.20.150", "33030")
// neUrl := fmt.Sprintf("http://%s:%d/api/rest/ueManagement/v1/elementType/smf/objectType/ueInfo", neInfo.IP, neInfo.Port)
// 查询参数拼接 // 查询参数拼接
query := []string{} query := []string{}
if v, ok := data["imsi"]; ok && v != "" { if v, ok := data["imsi"]; ok && v != "" {