Authored by htoooth

头部请求显示

... ... @@ -1528,7 +1528,6 @@ function actionVipInfo(_data) {
function actionLoginInfo() {
$.getData('//www.yohobuy.com/common/passport', '', function(_data) {
if (_data && _data.result !== -1) {
actionLoginState(_data); // 更改登录状态
actionVipInfo(_data); //获得vip;
} else {
window.setCookie('_UID', '', {
... ... @@ -1548,11 +1547,16 @@ function actionProfileName(){
var profileName = getProfileName();
var uid = getUid();
var info = {
profileName:profileName,
result: 1
};
if(!uid || !profileName){
return;
info.result = -1;
}
actionLoginState({profileName:profileName, result:'1'})
actionLoginState(info);
}
/**
... ...
... ... @@ -103,11 +103,18 @@ function actionLoginInfo() {
var uid = getUid(), //eslint-disable-line
profileName = getProfileName(); // eslint-disable-line
if (uid === 0) {
return;
var info = {
random: $.now(),
profileName: profileName
};
if (uid !== 0) {
info.result = 1;
} else {
info.result = -1;
}
setLoginStatus({random: $.now(), profileName: profileName});
setLoginStatus(info);
}());
... ...