🐛 多域名跨域

This commit is contained in:
微凉
2021-01-08 16:32:02 +08:00
parent 0cd4624a36
commit dcebf5257f
6 changed files with 26 additions and 6 deletions

View File

@ -13,4 +13,15 @@ func GetCode(rawUrl string) string {
}
code:=u.Query().Get("code")
return code
}
func ContainsString(array []string, val string) (index int) {
index = -1
for i := 0; i < len(array); i++ {
if array[i] == val {
index = i
return
}
}
return
}