插件优化

This commit is contained in:
蒋吉兆
2021-08-28 00:00:08 +08:00
parent 1ae17fb36a
commit 904149700a
9 changed files with 88 additions and 48 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ import (
type Api struct {
}
func (s *Api) NotifyController(c *gin.Context) {
if err := service.ServiceGroupApp.SendTextMessage("test"); err != nil {
//
func (s *Api) SendTextMessage(c *gin.Context) {
if err := service.ServiceGroupApp.SendTextMessage("notify", []string{}, false); err != nil {
global.GVA_LOG.Error("发送失败!", zap.Any("err", err))
response.FailWithMessage("发送失败", c)
} else {