Try to add share code in download api.

This commit is contained in:
zicla
2019-05-01 02:00:09 +08:00
parent cfd32089ff
commit ebd20c6db5
12 changed files with 130 additions and 102 deletions

View File

@ -200,7 +200,7 @@ func (this *TankApplication) HandleMirror() {
return
}
if webResult.Code == result.CODE_WRAPPER_OK.Code {
if webResult.Code == result.OK.Code {
fmt.Println("success")
} else {
fmt.Printf("error %s\r\n", webResult.Msg)
@ -247,7 +247,7 @@ func (this *TankApplication) HandleCrawl() {
return
}
if webResult.Code == result.CODE_WRAPPER_OK.Code {
if webResult.Code == result.OK.Code {
fmt.Println("success")
} else {
fmt.Printf("error %s\r\n", webResult.Msg)