|
@ -483,6 +483,17 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
throw new IllegalStateException("验证码发送失败!");
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/oauth/sendCaptcha", method = RequestMethod.GET)
|
|
|
public ResponseEntity<Oauth2Envelop<Captcha>> sendCaptcha(@RequestParam Map<String, String> parameters) throws Exception {
|
|
|
String wxId = parameters.get("wxId");
|
|
|
if("xm_ykyy_wx".equals(wxId)){
|
|
|
return sendYKCaptcha(parameters);
|
|
|
}else if("xm_zsyy_wx".equals(wxId)){
|
|
|
return sendZSCaptcha(parameters);
|
|
|
}
|
|
|
throw new IllegalStateException("验证码发送失败!");
|
|
|
}
|
|
|
|
|
|
//眼科医院短信验证码
|
|
|
@RequestMapping(value = "/oauth/sendYKCaptcha", method = RequestMethod.GET)
|
|
|
public ResponseEntity<Oauth2Envelop<Captcha>> sendYKCaptcha(@RequestParam Map<String, String> parameters) throws Exception {
|