- SendMsg2Somebody直接使用mobileNum与verifyCode来验证

This commit is contained in:
gazebo
2019-07-16 17:27:51 +08:00
parent d7f60f17a2
commit 6087f27c38
2 changed files with 8 additions and 3 deletions

View File

@@ -204,7 +204,8 @@ func (c *CmsController) FakeNewOrder() {
// @Title 发送消息给相关人员
// @Description 发送消息给相关人员
// @Param token header string true "认证token"
// @Param mobile formData string true "手机号"
// @Param verifyCode formData string true "验证码"
// @Param msgType formData string true "消息类型"
// @Param msgContent formData string true "消息内容"
// @Success 200 {object} controllers.CallResult
@@ -212,7 +213,7 @@ func (c *CmsController) FakeNewOrder() {
// @router /SendMsg2Somebody [post]
func (c *CmsController) SendMsg2Somebody() {
c.callSendMsg2Somebody(func(params *tCmsSendMsg2SomebodyParams) (retVal interface{}, errCode string, err error) {
err = cms.SendMsg2Somebody(params.Ctx, params.MsgType, params.MsgContent)
err = cms.SendMsg2Somebody(params.Ctx, params.Mobile, params.VerifyCode, params.MsgType, params.MsgContent)
return retVal, "", err
})
}