补充算法两个,使程序可用

This commit is contained in:
Mmx
2021-03-13 16:40:30 +08:00
parent 48f309ece1
commit df02dd91dd
4 changed files with 79 additions and 36 deletions

View File

@@ -26,11 +26,11 @@ func GetIp(body string) (string, error) {
}
func GetToken(body string) (string, error) {
return Search(body, "\"challenge\":\"(.*?)\"")
return Search("\"challenge\":\"(.*?)\"",body)
}
func GetResult(body string)(string,error){
return Search(body,"\"error_msg\":\"(.+)\"")
return Search("\"error\":\"(.+?)\"",body)
}
func Md5(content string) string {