Browse Source

ptr认证修改

lijunqing 6 years ago
parent
commit
5bee7e4518

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

@@ -200,7 +200,7 @@ func (s *RtxService) HandlePtrLogin(username string, password string, BaseUser s
 	var rtxRespToken RtxRespToken
 	json.Unmarshal(jsonBlob, &rtxRespToken)
 
-	if rtxRespToken.Token == "2000" {
+	if rtxRespToken.Code == 2000 {
 		sql := "select 1 from " + BaseUser + " where UserName='" + username + "'"
 
 		list, _ = s.DBE.QueryString(sql)

+ 1 - 0
src/dashoo.cn/backend/api/controllers/base.go

@@ -290,6 +290,7 @@ func (this *BaseController) Prepare() {
 		"/api/rtx/call",
 		"/api/organizes/getorglist",
 		"/api/supplier/getauditerbydeptandnologin",
+		"/api/rtx/ptrlogin",
 	}
 	for _, v := range urls {
 		fmt.Println("**this.Ctx.Input.URL()**", this.Ctx.Input.URL())