mirror of
https://github.com/alibaba/higress.git
synced 2026-06-10 05:07:30 +08:00
[ai-statistics] update logic of api extraction (#2927)
This commit is contained in:
@@ -150,7 +150,7 @@ func getAPIName() (string, error) {
|
|||||||
return "-", err
|
return "-", err
|
||||||
} else {
|
} else {
|
||||||
parts := strings.Split(string(raw), "@")
|
parts := strings.Split(string(raw), "@")
|
||||||
if len(parts) != 5 {
|
if len(parts) < 3 {
|
||||||
return "-", errors.New("not api type")
|
return "-", errors.New("not api type")
|
||||||
} else {
|
} else {
|
||||||
return strings.Join(parts[:3], "@"), nil
|
return strings.Join(parts[:3], "@"), nil
|
||||||
|
|||||||
Reference in New Issue
Block a user