소스 검색

update

master
dengbiao 3 달 전
부모
커밋
94a2ca5dd3
2개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. +1
    -1
      app/hdl/hdl_wx.go
  2. +12
    -12
      app/router/router.go

+ 1
- 1
app/hdl/hdl_wx.go 파일 보기

@@ -107,7 +107,7 @@ func WXMsgReceive(c *gin.Context) {
// 用户未关注时,进行关注后的事件推送
err := DealCallBack(eventMsg.FromUserName, eventMsg.EventKey)
if err != nil {
WXMsgReply(c, eventMsg.ToUserName, eventMsg.FromUserName, err.Error())
WXMsgReply(c, eventMsg.ToUserName, eventMsg.FromUserName, "⭐欢迎关注佳仙食品🥳🥳\n我们是创立于1997年的重庆老字号调料品牌[玫瑰][玫瑰]\n‼点击下方菜单栏的“佳仙产品”即可获取佳仙每款调料的详细信息和烹饪教程👇🏻👇🏻\n[哇]佳仙与你的美食之旅即刻启程")
}
}
if eventMsg.Event == "SCAN" {


+ 12
- 12
app/router/router.go 파일 보기

@@ -8,7 +8,7 @@ import (
"net/http"
)

//初始化路由
// 初始化路由
func Init() *gin.Engine {
// debug, release, test 项目阶段
mode := "release"
@@ -16,7 +16,7 @@ func Init() *gin.Engine {
mode = "debug"
}
gin.SetMode(mode)
//创建一个新的启动器
// 创建一个新的启动器
r := gin.New()
r.Use(mw.ChangeHeader)

@@ -26,7 +26,7 @@ func Init() *gin.Engine {
}
r.Use(gin.Recovery())
// r.Use(mw.Limiter)
//r.LoadHTMLGlob("static/html/*")
// r.LoadHTMLGlob("static/html/*")

r.GET("/favicon.ico", func(c *gin.Context) {
c.Status(204)
@@ -64,17 +64,17 @@ func route(r *gin.RouterGroup) {
}
r.GET("/wechat_menu/get", hdl.GetMenu)
r.POST("/wechat_menu/set", hdl.SetMenu)
r.GET("/qrcodeBatchDownload", hdl.QrcodeBatchDownload) //二维码批次-下载
r.GET("/qrcodeBatchDownload", hdl.QrcodeBatchDownload) // 二维码批次-下载
r.Use(mw.Auth) // 以下接口需要JWT验证
{

r.GET("/userInfo", hdl.UserInfo) //用户信息
r.GET("/sysCfg", hdl.GetSysCfg) //基础配置-获取
r.POST("/sysCfg", hdl.SetSysCfg) //基础配置-设置
r.POST("/qrcodeBatchList", hdl.QrcodeBatchList) //二维码批次-列表
r.GET("/getBatchAddName", hdl.GetBatchAddName) //二维码批次-自动获取添加时名称
r.POST("/qrcodeBatchAdd", hdl.QrcodeBatchAdd) //二维码批次-添加
r.GET("/qrcodeBatchDetail", hdl.QrcodeBatchDetail) //二维码批次-详情
r.DELETE("/qrcodeBatchDelete/:id", hdl.QrcodeBatchDelete) //二维码批次-删除
r.GET("/userInfo", hdl.UserInfo) // 用户信息
r.GET("/sysCfg", hdl.GetSysCfg) // 基础配置-获取
r.POST("/sysCfg", hdl.SetSysCfg) // 基础配置-设置
r.POST("/qrcodeBatchList", hdl.QrcodeBatchList) // 二维码批次-列表
r.GET("/getBatchAddName", hdl.GetBatchAddName) // 二维码批次-自动获取添加时名称
r.POST("/qrcodeBatchAdd", hdl.QrcodeBatchAdd) // 二维码批次-添加
r.GET("/qrcodeBatchDetail", hdl.QrcodeBatchDetail) // 二维码批次-详情
r.DELETE("/qrcodeBatchDelete/:id", hdl.QrcodeBatchDelete) // 二维码批次-删除
}
}

불러오는 중...
취소
저장