修复商户后台的bugs,可正常运行

This commit is contained in:
kongyuebin
2021-11-11 21:57:13 +08:00
parent 5c43b3108a
commit ba02a72f55
8 changed files with 21 additions and 148 deletions

View File

@@ -28,7 +28,7 @@ func (c *History) ShowHistoryListUI() {
ranMd5 := encrypt.EncodeMd5([]byte(pubMethod.RandomString(46)))
c.Ctx.SetCookie(enum.UserCookie, ranMd5, enum.CookieExpireTime)
c.Ctx.SetSecureCookie(ranMd5, enum.UserCookie, ranMd5, enum.CookieExpireTime)
c.SetSession(enum.UserCookie, ranMd5)
_ = c.SetSession(enum.UserCookie, ranMd5)
c.Data["payType"] = enum.GetHistoryStatus()
c.Data["userName"] = u.MerchantName

View File

@@ -98,7 +98,7 @@ func (c *Login) UserLogin() {
stopRun:
c.Data["json"] = pubMethod.JsonFormat(flag, "", msg, url)
c.ServeJSON()
_ = c.ServeJSON()
c.StopRun()
}