|
|
@@ -269,7 +269,7 @@ public class LoginController implements LoginControllerAPI {
|
|
|
System.out.println("微校授权失败,学生信息新增异常:" + user_name + "" + card_number);
|
|
|
response.sendRedirect(wxOpenidConfig.getIp() + "/#/pages/404/404/?message=" + URLEncoder.encode("用户在系统中不存在,请联系管理员", "UTF-8"));
|
|
|
throw new Exception("微校授权失败!");
|
|
|
- }else {
|
|
|
+ }else if(student != null && idenType == 1){
|
|
|
//更新微校获取的年纪信息
|
|
|
// student.setAdmissNum(card_number);
|
|
|
// student.setName(user_name);
|
|
|
@@ -324,7 +324,7 @@ public class LoginController implements LoginControllerAPI {
|
|
|
}
|
|
|
|
|
|
int num = welcomeStudentService.updateWelcomeStudent(student);
|
|
|
- if (num <= 0) {
|
|
|
+ if (num < 0) {
|
|
|
System.out.println("微校授权失败,用户信息新增异常:" + user_name + "" + card_number);
|
|
|
response.sendRedirect(wxOpenidConfig.getIp() + "/#/pages/404/404/?message=" + URLEncoder.encode("用户更新异常", "UTF-8"));
|
|
|
throw new Exception("微校授权失败!");
|