Skip to content

Commit

Permalink
修复财富岛 可选链不兼容报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesyy committed Feb 21, 2022
1 parent 958c037 commit cfd3a4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jd_cfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,12 @@ function getUserInfo(showInvite = true) {
console.log(`${$.name} QueryUserInfo API请求失败,请检查网路重试`)
} else {
data = JSON.parse(data.replace(/\n/g, "").match(new RegExp(/jsonpCBK.?\((.*);*\)/))[1]);
$.showPp = data?.AreaAddr?.dwIsSHowPp ?? 0
$.showPp = 0
if(data&&data.AreaAddr){
if(data.AreaAddr.dwIsSHowPp){
$.showPp = data.AreaAddr.dwIsSHowPp
}
}
const {
buildInfo = {},
ddwRichBalance,
Expand Down

0 comments on commit cfd3a4e

Please sign in to comment.