|
@ -1638,7 +1638,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
*/
|
|
|
@RequestMapping(value = "/oauth/ykDoctorlogin", method = RequestMethod.POST)
|
|
|
public ResponseEntity<Oauth2Envelop<WlyyUserSimple>> ykDoctorlogin(@RequestParam Map<String, String> parameters, HttpSession httpSession) throws Exception {
|
|
|
|
|
|
logger.info("login:登录进入1");
|
|
|
//图形验证码验证
|
|
|
String key = parameters.get("key");
|
|
@ -1669,7 +1668,8 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
JSONObject object = JSONObject.parseObject(response);
|
|
|
logger.info("眼科通登陆返回参数:"+object);
|
|
|
if (!object.getString("code").equalsIgnoreCase("10000")){
|
|
|
throw new Exception(object.getString("msg"));
|
|
|
WlyyUserSimple userSimple = new WlyyUserSimple();
|
|
|
return getFailedResponse(object.getString("message"),-1,userSimple);
|
|
|
}else {
|
|
|
JSONObject jsonObject = object.getJSONObject("value");
|
|
|
if (jsonObject!=null) {
|