Authored by 陈轩

注册: 验证码走过一次后端,都刷新

@@ -102,7 +102,7 @@ $btnNext.on('touchstart', function() { @@ -102,7 +102,7 @@ $btnNext.on('touchstart', function() {
102 if (data.code === 200) { 102 if (data.code === 200) {
103 location.href = data.data; 103 location.href = data.data;
104 } else { 104 } else {
105 - data.refreshCaptcha && refreshCaptcha(); 105 + refreshCaptcha();
106 106
107 showErrTip(data.message); 107 showErrTip(data.message);
108 requested = false; 108 requested = false;
@@ -110,6 +110,7 @@ $btnNext.on('touchstart', function() { @@ -110,6 +110,7 @@ $btnNext.on('touchstart', function() {
110 }, 110 },
111 error: function() { 111 error: function() {
112 showErrTip('出错了,请重试'); 112 showErrTip('出错了,请重试');
  113 + refreshCaptcha();
113 requested = false; 114 requested = false;
114 } 115 }
115 }); 116 });