|
|
@ -52,6 +52,10 @@ func (UserController) info(c *macaron.Context, ch cache.Cache, ctj gocloud.ContJ |
|
|
|
} |
|
|
|
} |
|
|
|
e = userService.FindXid(xid) |
|
|
|
if e == nil { |
|
|
|
c.PlainText(404, []byte("not found")) |
|
|
|
return |
|
|
|
} |
|
|
|
bts, err := json.Marshal(e) |
|
|
|
if err == nil { |
|
|
|
ch.Put(key, bts, 3600*5) |
|
|
|