mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 11:43:43 +08:00
修复重复推送打招呼信息的 Bug
This commit is contained in:
@@ -18,7 +18,8 @@ func (s *Server) TestHandle(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
func (s *Server) ConfigGetHandle(c *gin.Context) {
|
||||
// GetAllConfigHandle 获取所有配置
|
||||
func (s *Server) GetAllConfigHandle(c *gin.Context) {
|
||||
data := struct {
|
||||
Title string `json:"title"`
|
||||
ConsoleTitle string `json:"console_title"`
|
||||
@@ -44,6 +45,22 @@ func (s *Server) ConfigGetHandle(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, types.BizVo{Code: types.Success, Data: data})
|
||||
}
|
||||
|
||||
func (s *Server) GetConfigHandle(c *gin.Context) {
|
||||
data := struct {
|
||||
Title string `json:"title"`
|
||||
ConsoleTitle string `json:"console_title"`
|
||||
WechatCard string `json:"wechat_card"` // 个人微信二维码
|
||||
WechatGroup string `json:"wechat_group"` // 微信群二维码
|
||||
}{
|
||||
Title: s.Config.Title,
|
||||
ConsoleTitle: s.Config.ConsoleTitle,
|
||||
WechatCard: s.Config.ImgURL.WechatCard,
|
||||
WechatGroup: s.Config.ImgURL.WechatGroup,
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, types.BizVo{Code: types.Success, Data: data})
|
||||
}
|
||||
|
||||
// ConfigSetHandle set configs
|
||||
func (s *Server) ConfigSetHandle(c *gin.Context) {
|
||||
var data struct {
|
||||
|
||||
Reference in New Issue
Block a user