作者 yangfu

fix

@@ -223,14 +223,14 @@ func CheckUuid(ctx *context.Context) (result bool) { @@ -223,14 +223,14 @@ func CheckUuid(ctx *context.Context) (result bool) {
223 ) 223 )
224 result = true 224 result = true
225 defer func() { 225 defer func() {
226 - if msg != nil {  
227 - result = false 226 + if msg.Errno != 0 {
  227 + //result = false
228 ctx.Output.JSON(msg, false, false) 228 ctx.Output.JSON(msg, false, false)
229 } 229 }
230 }() 230 }()
231 uuid := ctx.Input.Header("x-mmm-uuid") 231 uuid := ctx.Input.Header("x-mmm-uuid")
232 msg = protocol.NewReturnResponse(auth.CheckUuid(&protocol.CheckUuidRequest{Uuid: uuid})) 232 msg = protocol.NewReturnResponse(auth.CheckUuid(&protocol.CheckUuidRequest{Uuid: uuid}))
233 - if msg != nil { 233 + if msg.Errno != 0 {
234 log.Error(fmt.Sprintf("%v req:%v resp:%v", ctx.Request.RequestURI, uuid, common.AssertJson(msg))) 234 log.Error(fmt.Sprintf("%v req:%v resp:%v", ctx.Request.RequestURI, uuid, common.AssertJson(msg)))
235 } 235 }
236 return 236 return