From 067057169c0b5ff28af860b87ec4ca4d6d0915f3 Mon Sep 17 00:00:00 2001 From: nzlov <1006954237@qq.com> Date: Wed, 3 Mar 2021 09:43:51 +0800 Subject: [PATCH] fix get pf --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 95c5a4e..e347866 100644 --- a/main.go +++ b/main.go @@ -150,6 +150,12 @@ func getPF(n string) PF { if v, ok := M[n]; ok { return v } + ns := strings.Index(n, "/") + if ns > -1 { + if v, ok := M[n[:ns]]; ok { + return v + } + } return PF{"60", "120"} }