作者 yangfu

auth

@@ -434,7 +434,7 @@ func Revoke(header *protocol.RequestHeader, request *protocol.RevokeRequest) (rs @@ -434,7 +434,7 @@ func Revoke(header *protocol.RequestHeader, request *protocol.RevokeRequest) (rs
434 updateMap = make(map[string]interface{}) 434 updateMap = make(map[string]interface{})
435 ) 435 )
436 //rsp =&protocol.RevokeResponse{} 436 //rsp =&protocol.RevokeResponse{}
437 - if userAuth, err = models.GetUserAuthByUserId(header.Uid, header.DeviceType); err != nil { 437 + if userAuth, err = models.GetUserAuthByUserId(header.Uid, protocol.DeviceType); err != nil {
438 log.Error(err) 438 log.Error(err)
439 return 439 return
440 } 440 }