1.新增微信通知方式

2.通知模板变量更改
3.删除沉余sql
4.readme.md更新
This commit is contained in:
linxiaozhi
2019-02-17 07:07:33 +08:00
parent 34a3de6cfd
commit e392e4c12e
21 changed files with 201 additions and 94 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/pkg/errors"
)
type AjaxReturn struct {
type SmsAjaxReturn struct {
Status int `json:"status"`
Message string `json:"message"`
Data interface{} `json:"data"`
@@ -78,7 +78,7 @@ func (s *Sms) SendSms() error {
return err
}
ajaxData := AjaxReturn{}
ajaxData := SmsAjaxReturn{}
jsonErr := json.Unmarshal([]byte(res), &ajaxData)
if jsonErr != nil {