|
@ -341,9 +341,12 @@ public class WechatController extends WeixinBaseController {
|
|
|
loginLog.setType("2");
|
|
|
loginLog.setUserType("1");
|
|
|
try {
|
|
|
//账号登录
|
|
|
//账号登录 mobile可能是电话号也可能是身份证
|
|
|
if(StringUtils.isNoneEmpty(mobile)&&StringUtils.isNoneEmpty(password)){
|
|
|
Patient patient = patientService.findByMobile(mobile);
|
|
|
if(patient==null){
|
|
|
patientService.findByIdcard(mobile);
|
|
|
}
|
|
|
loginLog.setUserCode(patient.getCode());
|
|
|
loginLog.setLoginType("2");
|
|
|
if (patient == null) {
|