func (c *MoneyInfoController) Post() { openid := getMoneyInfoCookie(c) usermoneys, err := models.GetAllUserMoneyRecord(openid) beego.Debug("usermoneys :", usermoneys) if err != nil { beego.Error("err :", err) } c.Data["UserMoneys"] = usermoneys c.TplName = "moneyinfo.html" }
func (c *AdminMoneyInfoController) Post() { openid := c.Input().Get("openid") beego.Debug("请求方式 post openid:", openid) if len(openid) != 0 { usermoneys, err := models.GetAllUserMoneyRecord(openid) beego.Debug("usermoneys :", usermoneys) if err != nil { beego.Error("err :", err) } c.Data["UserMoneys"] = usermoneys } c.TplName = "adminmoneyinfo.html" }