Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
fix up 判断不严峻,导致有错误提示输出
Browse files Browse the repository at this point in the history
  • Loading branch information
rootphantomer committed Sep 6, 2022
1 parent 9a35b01 commit d5866c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tools/commond.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: ph4nt0mer
* @Date: 2022-09-01 10:49:31
* @LastEditors: rootphantomer
* @LastEditTime: 2022-09-06 15:53:00
* @LastEditTime: 2022-09-06 15:59:42
* @FilePath: /quake_go/src/tools/commond.go
* @Description:
*
Expand Down Expand Up @@ -43,7 +43,7 @@ func ApisPost(url string, payload string, start string, size string, token strin
}
fmt.Println("result:")
fmt.Println(string(body))
if strings.Contains(string(body), "login") {
if strings.Contains(string(body), "quake/login") {
fmt.Println("token expired,please init new token")
}
}
Expand Down Expand Up @@ -71,7 +71,7 @@ func ApisGet(url string, token string) {
}
fmt.Println("result:")
fmt.Println(string(body))
if strings.Contains(string(body), "login") {
if strings.Contains(string(body), "quake/login") {
fmt.Println("token expired,please init new token")
}
}

0 comments on commit d5866c9

Please sign in to comment.