修改超级签H5登录BUG

master
zhengchanglong 5 years ago
parent b01eb1ab90
commit 6b366d7c41

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

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