|
|
@@ -178,6 +178,10 @@ func AliyunSmsPushSave(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR_INVALID_ARGS, err) |
|
|
|
return |
|
|
|
} |
|
|
|
if req.SmsCode == "" { |
|
|
|
e.OutErr(c, 400, e.NewErr(400, "请到阿里云获取营销短信模板id")) |
|
|
|
return |
|
|
|
} |
|
|
|
if utils.StrToInt(req.Id) > 0 { |
|
|
|
} else { |
|
|
|
data := &model.AliyunSmsRecord{ |
|
|
@@ -188,6 +192,7 @@ func AliyunSmsPushSave(c *gin.Context) { |
|
|
|
Level: utils.SerializeStr(req.Level), |
|
|
|
Title: req.Title, |
|
|
|
Content: req.Content, |
|
|
|
SmsCode: req.SmsCode, |
|
|
|
CreateAt: time.Now(), |
|
|
|
UpdateAt: time.Now(), |
|
|
|
} |
|
|
|