修改超级签H5登录BUG

master
zhengchanglong 5 years ago
parent b01eb1ab90
commit 6b366d7c41

@ -60,7 +60,9 @@ class SsgController extends BaseController {
$res_msg = "未知错误";
}
}
if($user_id>0){
$_SESSION['user_id'] = $user_id;
}
$this->ajaxReturn(array("ErrorCode"=>$res_code,"ResultMsg"=>$res_msg),'JSON');
}

@ -75,15 +75,20 @@
'VerifyCode':userCode
},
dataType: 'JSON',
xhrFields:{
withCredentials:true
},
async: false,
cache: false,
success: function (result) {
if (result.ErrorCode!=0){
alert(result.ResultMsg);
GetVerityCode();
}else{
window.location.href="mobile.php?s=/Ssg/index.html"
}
}
});
window.location.href="mobile.php?s=/Ssg/index.html"
}
</script>
</html>
Loading…
Cancel
Save