fix: issues

This commit is contained in:
Rogee
2024-12-16 15:01:43 +08:00
parent bfbb081a95
commit 4dc54dc5bc
3 changed files with 11 additions and 10 deletions

View File

@@ -78,6 +78,9 @@ func Serve(cmd *cobra.Command, args []string) error {
engine.Use(mid.WeChatVerify)
engine.Use([]string{"/t/:tenant", "/t/:tenant/*"}, mid.WeChatAuth, http.Wechat.Render)
engine.Get("MP_verify_dEF9kn8rJlBsuLKk.txt", func(c fiber.Ctx) error {
return c.SendString("dEF9kn8rJlBsuLKk")
})
engine.Get("/posters/:tenant/:hash.jpg", func(c fiber.Ctx) error {
tenant := c.Params("tenant")
hash := c.Params("hash")