SendMsg2Somebody不强制要求手机号
This commit is contained in:
@@ -137,9 +137,11 @@ func (a *DefAuther) GenerateVerifyCode(keyID string) (verifyCode string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *DefAuther) VerifyCode(keyID, verifyCode string) (isSame bool) {
|
func (a *DefAuther) VerifyCode(keyID, verifyCode string) (isSame bool) {
|
||||||
savedVerifyCode := a.LoadVerifyCode(keyID)
|
if keyID != "" {
|
||||||
if isSame = (verifyCode != "" && savedVerifyCode != "" && verifyCode == savedVerifyCode); isSame {
|
savedVerifyCode := a.LoadVerifyCode(keyID)
|
||||||
a.DeleteVerifyCode(keyID)
|
if isSame = (verifyCode != "" && savedVerifyCode != "" && verifyCode == savedVerifyCode); isSame {
|
||||||
|
a.DeleteVerifyCode(keyID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return isSame
|
return isSame
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -222,10 +222,10 @@ func (c *CmsController) FakeNewOrder() {
|
|||||||
|
|
||||||
// @Title 发送消息给相关人员
|
// @Title 发送消息给相关人员
|
||||||
// @Description 发送消息给相关人员
|
// @Description 发送消息给相关人员
|
||||||
// @Param mobile formData string true "手机号"
|
|
||||||
// @Param verifyCode formData string false "验证码"
|
|
||||||
// @Param msgType formData string true "消息类型"
|
// @Param msgType formData string true "消息类型"
|
||||||
// @Param msgContent formData string true "消息内容"
|
// @Param msgContent formData string true "消息内容"
|
||||||
|
// @Param mobile formData string false "手机号"
|
||||||
|
// @Param verifyCode formData string false "验证码"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /SendMsg2Somebody [post]
|
// @router /SendMsg2Somebody [post]
|
||||||
|
|||||||
Reference in New Issue
Block a user