mirror of
https://github.com/alibaba/higress.git
synced 2026-03-14 22:00:48 +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
|
||||
} else {
|
||||
parts := strings.Split(string(raw), "@")
|
||||
if len(parts) != 5 {
|
||||
if len(parts) < 3 {
|
||||
return "-", errors.New("not api type")
|
||||
} else {
|
||||
return strings.Join(parts[:3], "@"), nil
|
||||
|
||||
Reference in New Issue
Block a user