You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
341 B
19 lines
341 B
package http |
|
|
|
import ( |
|
"go-common/library/ecode" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func cookieInfo(c *bm.Context) { |
|
session := c.Request.Form.Get("session") |
|
if session == "" { |
|
c.JSON(nil, ecode.RequestErr) |
|
return |
|
} |
|
res, err := svr.CookieInfo(c, session) |
|
if err == nil { |
|
c.Set("mid", res.Mid) |
|
} |
|
c.JSON(res, err) |
|
}
|
|
|