补充算法两个,使程序可用
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user