From d5866c94fb8dcd4417b0b3abe4605901e2206034 Mon Sep 17 00:00:00 2001 From: rootphantomer Date: Tue, 6 Sep 2022 16:00:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20up=20=E5=88=A4=E6=96=AD=E4=B8=8D=E4=B8=A5?= =?UTF-8?q?=E5=B3=BB=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=9C=89=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/commond.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/commond.go b/src/tools/commond.go index 3858b84..dc04f58 100644 --- a/src/tools/commond.go +++ b/src/tools/commond.go @@ -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: * @@ -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") } } @@ -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") } }