|
@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
|
|
import com.google.code.kaptcha.util.Config;
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
import com.yihu.jw.entity.base.login.BaseLoginLogDO;
|
|
|
import com.yihu.jw.entity.base.patient.BasePatientDO;
|
|
|
import com.yihu.jw.restmodel.ResultStatus;
|
|
@ -255,13 +254,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
baseLoginLogDO.setUserAgent(userAgent);
|
|
|
baseLoginLogDO.setLoginType(loginType);
|
|
|
baseLoginLogService.save(baseLoginLogDO);
|
|
|
|
|
|
BaseDoctorDO doctorDO = doctorDao.findById(wlyyUserSimple.getId());
|
|
|
if (doctorDO!=null){
|
|
|
doctorDO.setCaFlag(0);
|
|
|
doctorDao.save(doctorDO);
|
|
|
}
|
|
|
|
|
|
return getResponse(wlyyUserSimple);
|
|
|
}
|
|
|
|
|
@ -986,11 +978,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
baseLoginLogDO.setUserAgent(userAgent);
|
|
|
baseLoginLogDO.setLoginType(login_type);
|
|
|
baseLoginLogService.save(baseLoginLogDO);
|
|
|
BaseDoctorDO doctorDO = doctorDao.findById(wlyyUserSimple.getId());
|
|
|
if (doctorDO!=null){
|
|
|
doctorDO.setCaFlag(1);
|
|
|
doctorDao.save(doctorDO);
|
|
|
}
|
|
|
rs.put("WlyyUserSimple",wlyyUserSimple);
|
|
|
return ObjEnvelop.getSuccess("success",rs);
|
|
|
}
|