func (c *AdminUpShangHuInfoController) Get() { id := c.Input().Get("id") obj, err := models.GetOneShanghu(id) if err != nil { beego.Error(err) } c.Data["Obj"] = obj c.TplName = "adminupshanghuinfo.html" }
func (c *AdminUpShangHuImgController) Get() { id := c.Input().Get("id") if len(id) == 0 { c.Redirect("/admin/guanggaos", 302) return } // beego.Debug(id) obj, err := models.GetOneShanghu(id) if err != nil { beego.Error(err) } c.Data["Obj"] = obj c.TplName = "adminupshanghuimg.html" }