12345678910111213141516171819202122232425 |
- package controllers
- import (
- "Yunlot/lib"
- beego "github.com/beego/beego/v2/server/web"
- )
- type UpFileController struct {
- beego.Controller
- }
- // 列表 -
- func (c *UpFileController) UpFileToken() {
- // 验证登录 User_r, User_x
- //b_, User_r, _ := lib.Verification(c.Ctx.GetCookie("User_tokey"), c.GetString("User_tokey"))
- //if !b_ {
- // c.Data["json"] = lib.JSONS{Code: 302, Msg: "请重新登录!"}
- // c.ServeJSON()
- // return
- //}
- c.Data["json"] = lib.JSONR{Code: 200, Msg: "ok!", Data: lib.UploadToken(c.GetString("T_suffix"))}
- c.ServeJSON()
- return
- }
|