您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
16 行
426 B
16 行
426 B
package controllers
|
|
|
|
import beego "github.com/beego/beego/v2/server/web"
|
|
|
|
type MapController struct {
|
|
beego.Controller
|
|
}
|
|
|
|
func (this *MapController) Get() {
|
|
this.Data["UserId"] = this.GetSession("userid")
|
|
this.Data["HeadImg"] = this.GetSession("headimg")
|
|
this.Data["NickName"] = this.GetSession("nickname")
|
|
this.Data["IsLogin"] = this.GetSession("nickname") != nil
|
|
this.Data["IsMap"] = true
|
|
this.TplName = "map.html"
|
|
}
|
|
|