Commit 3136fc18 by 冷斌

fix bug

parent 5ed9e1c1
......@@ -91,8 +91,9 @@
if (d.code > 0) {
layer.msg(d.msg);
} else {
console.log(d.info, d.info[0], d.info[0].id);
sessionStorage.setItem("user_info",JSON.stringify(d.info[0]));
let info = d.info[0];
sessionStorage.setItem("user_info",JSON.stringify(info));
window.location.href = '/index.php?g=Appapi&m=Level&a=index&uid='+info.id+'&token=' + info.token;
}
}else{
layer.msg(data.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment