Skip to content

Commit

Permalink
修复 Cannot read property 'nickname' of undefined 错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lxk0301 committed Feb 25, 2021
1 parent d73f978 commit 2af507f
Show file tree
Hide file tree
Showing 84 changed files with 422 additions and 92 deletions.
6 changes: 5 additions & 1 deletion activity/jd_5g.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_818.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_apple_live.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_coupon.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_digital_floor.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_ds.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_festival.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_firecrackers.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_global.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_global_mh.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_health.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_immortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_immortal_answer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion activity/jd_jdh.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_jxstory.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_live.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_live_redrain.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_live_redrain2.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_mh.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_ms_redrain.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_newYearMoney.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_newYearMoney_lottery.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nh.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nian.js
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nianCollect.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nian_ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nian_sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_nian_wechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_pubg.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
6 changes: 5 additions & 1 deletion activity/jd_split.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ function TotalBean() {
$.isLogin = false; //cookie过期
return
}
$.nickName = data['base'].nickname;
if (data['retcode'] === 0) {
$.nickName = data['base'].nickname;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
Expand Down
Loading

0 comments on commit 2af507f

Please sign in to comment.