1.新增微信通知方式
2.通知模板变量更改 3.删除沉余sql 4.readme.md更新
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user