Browse Source

🐞 fix: 修复性别头像错误的问题

Pchen. 1 month ago
parent
commit
4c42fbb2bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Lepao/Account/AddAccount.js

+ 1 - 1
apis/Lepao/Account/AddAccount.js

@@ -113,7 +113,7 @@ class AddAccount extends API {
         if (email.split('@')[1].toLowerCase() === 'qq.com' && this.isQQ(email.split('@')[0])) {
         if (email.split('@')[1].toLowerCase() === 'qq.com' && this.isQQ(email.split('@')[0])) {
             user_avatar = `https://q2.qlogo.cn/headimg_dl?dst_uin=${email}&spec=640`
             user_avatar = `https://q2.qlogo.cn/headimg_dl?dst_uin=${email}&spec=640`
         } else {
         } else {
-            user_avatar = userInfo.sex === 0 ? 'https://lepao-cloud.xxoo365.top/view.php/aee85ff43fd30d0df03c6a7dd9797d22.png' : 'https://lepao-cloud.xxoo365.top/view.php/fcb54dcc5e6209381e972ef73bdb4a93.png'
+            user_avatar = userInfo.sex === 1 ? 'https://lepao-cloud.xxoo365.top/view.php/aee85ff43fd30d0df03c6a7dd9797d22.png' : 'https://lepao-cloud.xxoo365.top/view.php/fcb54dcc5e6209381e972ef73bdb4a93.png'
         }
         }
 
 
         if (!id) {
         if (!id) {