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.
16 lines
288 B
16 lines
288 B
package utilService
|
|
|
|
import (
|
|
"GoClouds/cloud/sysCloud"
|
|
"gopkg.in/macaron.v1"
|
|
"reflect"
|
|
)
|
|
|
|
func MidCheckUser(c *macaron.Context) {
|
|
lguser := sysCloud.CurrUser(c)
|
|
if lguser == nil {
|
|
c.PlainText(403, []byte("未登录"))
|
|
}
|
|
|
|
c.Set(reflect.TypeOf(lguser), reflect.ValueOf(lguser))
|
|
}
|