@ -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"
});
</script>
</html>