@Controller @RequestMapping(value="core/sms") public class CoreSmsController extends BaseController
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreSmsController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
hasExisted(java.lang.String phone)
判断手机号是否已经注册
|
RetVo |
sendComonSmsCode(java.lang.String phone,
java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
发送通用短信验证码,格式为:验证码为:${code},若非本人操作,请勿泄露。
|
RetVo |
sendForgetPwdSmsCode(java.lang.String phone,
java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
忘记密码发送短信验证码
|
RetVo |
sendLoginSmsCode(java.lang.String phone,
java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
发送登录短信验证码
|
RetVo |
sendLoginSmsCodeNoUser(java.lang.String phone,
java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
发送登录短信验证码
无需注册的用户也可以发送短信验证码
|
RetVo |
sendRegeditSmsCode(java.lang.String phone,
java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
发送注册短信验证码
|
RetVo |
sendResetPwdSmsCode(java.lang.String vcodekey,
java.lang.String vcode,
java.lang.String orgid)
重置密码时发送短信验证码
|
RetVo |
sendsms(java.util.List<SmsMessage> messages,
java.lang.String vcodekey,
java.lang.String vcode)
发送短信消息.
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@ResponseBody @RequestMapping(value="/send/login/smscode") public RetVo sendLoginSmsCode(@RequestParam(value="phone") java.lang.String phone, @RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
phone
- 11位的有效手机号vcode
- 图形验证码vcodekey
- 图形验证码keyorgid
- 机构idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/send/login/smscodenouser") public RetVo sendLoginSmsCodeNoUser(@RequestParam(value="phone") java.lang.String phone, @RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
phone
- 11位的有效手机号vcodekey
- 图形验证码唯一keyvcode
- 图形验证码orgid
- 机构唯一idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/send/regedit/smscode") public RetVo sendRegeditSmsCode(@RequestParam(value="phone") java.lang.String phone, @RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
phone
- 11位的有效手机号vcode
- 图形验证码vcodekey
- 图形验证码keyorgid
- 机构唯一idjava.lang.Exception
- 出错会抛出异常@ResponseBody @RequestMapping(value="/send/forgetpwd/smscode", method=GET) public RetVo sendForgetPwdSmsCode(@RequestParam(value="phone") java.lang.String phone, @RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
phone
- 电话号码vcodekey
- 验证码keyvcode
- 验证码orgid
- 机构唯一idjava.lang.Exception
- 出错会抛出异常@RequestMapping(value="/send/resetpwd/smscode") @ResponseBody public RetVo sendResetPwdSmsCode(@RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
vcodekey
- 验证码keyvcode
- 验证码orgid
- 机构唯一idjava.lang.Exception
- 出错会抛出异常@RequestMapping(value="/sendsms", method=POST) @ResponseBody public RetVo sendsms(@RequestBody java.util.List<SmsMessage> messages, @RequestParam(required=false,defaultValue="") java.lang.String vcodekey, @RequestParam(required=false,defaultValue="") java.lang.String vcode) throws java.lang.Exception
messages
- 图形验证码vcodekey
- 验证码keyvcode
- 验证码java.lang.Exception
- 出错会抛出异常@RequestMapping(value="/send/common/smscode") @ResponseBody public RetVo sendComonSmsCode(@RequestParam(value="phone") java.lang.String phone, @RequestParam(value="vcodekey") java.lang.String vcodekey, @RequestParam(value="vcode") java.lang.String vcode, @RequestParam(name="orgid",required=false) java.lang.String orgid) throws java.lang.Exception
phone
- 电话号码vcodekey
- 验证码keyvcode
- 验证码orgid
- 机构idjava.lang.Exception
- 出错会抛出异常@RequestMapping(value="/phone/hasexisted", method=GET) @ResponseBody public RetVo hasExisted(@RequestParam(value="phone") java.lang.String phone) throws java.lang.Exception
phone
- 电话号码java.lang.Exception
- 出错会抛出异常