index.go 437 B

1234567891011121314151617
  1. package controller
  2. import (
  3. "app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
  4. "github.com/gogf/gf/v2/frame/g"
  5. "github.com/gogf/gf/v2/net/ghttp"
  6. "jyseo/internal/service"
  7. )
  8. func IndexHandler(r *ghttp.Request) {
  9. service.HtmlRender.Render(r, "index.html",
  10. g.Map{
  11. "isIndex": true,
  12. "tdk": service.JySeoTdk.GetIndexTdk(r.Context()),
  13. "cooperateCode": r.Cookie.Get(jy.ChannelCookieName).String(), //P414
  14. })
  15. }