Pārlūkot izejas kodu

cresponse body 判断

lijunqing 6 gadi atpakaļ
vecāks
revīzija
279d65eba0

+ 1 - 1
src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

@@ -201,7 +201,7 @@ func (s *RtxService) HandlePtrLogin(username string, password string, BaseUser s
 	json.Unmarshal(jsonBlob, &rtxRespToken)
 
 	//rtxRespToken.Code == 2000  之前条件
-	if resp.Code == 200 {
+	if resp.StatusCode == 200 {
 		sql := "select 1 from " + BaseUser + " where UserName='" + username + "'"
 
 		list, _ = s.DBE.QueryString(sql)