Browse Source

邮箱注册bug修正

jack 7 years ago
parent
commit
ac3a47b3e4
2 changed files with 2 additions and 4 deletions
  1. 2 2
      bind-mail.html
  2. 0 2
      js/loginNew.js

+ 2 - 2
bind-mail.html

@ -58,7 +58,7 @@
58 58
<script type="text/javascript">
59 59
	$(document).ready(function(){
60 60
		var oFlag=GetQueryString("sc");
61
		$.ajax("/ajax/mailReg" + oFlag, {
61
		$.ajax("/ajax/mailReg?key=" + oFlag, {
62 62
			type: "GET",
63 63
			async: true,
64 64
			success: function(data) {
@ -69,7 +69,7 @@
69 69
					$("#fail").show();
70 70
				}
71 71
			},
72
			error: function() {
72
			error: function(x) {
73 73
				$("#fail").show();
74 74
			},
75 75
			dataType: 'json'

+ 0 - 2
js/loginNew.js

@ -203,10 +203,8 @@ function firstLogin() {
203 203
			console.log(data)
204 204
			if(data.success) {
205 205
				if(data.data.authentication != undefined || data.data.authentication != null){
206
					alert(11)
207 206
					window.history.back();
208 207
				}else{
209
					alert(22)
210 208
					location.href = "fillinfo-select.html?id=" + professorId;	
211 209
				}
212 210
			}