Skip to content

Commit

Permalink
Fix isvip
Browse files Browse the repository at this point in the history
  • Loading branch information
gavingaozhangmin committed Aug 4, 2023
1 parent 639741c commit 0903e8b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/aliapi/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ export default class AliUser {
token.phone = resp.body.phone
token.default_drive_id = resp.body.backup_drive_id;
token.resource_drive_id = resp.body.resource_drive_id;
token.xbyVIP = await AliHttp.isVip(resp.body.phone)
token.is_expires = resp.body.status === 'enabled'
token.name = resp.body.nick_name===''?resp.body.phone:resp.body.nick_name
return true
Expand Down
2 changes: 1 addition & 1 deletion src/share/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ appStore.$subscribe(async (mutation) => {
const appPage = appStore.GetAppTabMenu
if (appPage == 'ShareSiteRight') {
if (userStore.userLogined) {
vipIdentity = UserDAL.GetUserToken(useUserStore().user_id).xbyVIP
vipIdentity = await AliHttp.isVip(UserDAL.GetUserToken(useUserStore().user_id).phone);
}
}
if (appPage == 'MyShareRight') ShareDAL.aReloadMyShare(useUserStore().user_id, false)
Expand Down
2 changes: 1 addition & 1 deletion src/store/appstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const useAppStore = defineStore('app', {
if (tab == 'setting') DebugLog.aLoadFromDB()
if (tab == 'movie') {
if (useUserStore().userLogined) {
this.isVip = UserDAL.GetUserToken(useUserStore().user_id).xbyVIP
this.isVip = await AliHttp.isVip(UserDAL.GetUserToken(useUserStore().user_id).phone);
}
}
onHideRightMenu()
Expand Down
1 change: 0 additions & 1 deletion src/user/UserLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ export default defineComponent({
phone: '',
spu_id: '',
vipIcon: '',
xbyVIP:false,
is_expires: false,
used_size: 0,
total_size: 0,
Expand Down
1 change: 0 additions & 1 deletion src/user/userdal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export default class UserDAL {
name: '',
vipIcon: '',
spu_id: '',
xbyVIP:false,
is_expires: false,
used_size: 0,
total_size: 0,
Expand Down
1 change: 0 additions & 1 deletion src/user/userstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export interface ITokenInfo {
viplevel:string
vipIcon: string
vipexpire: string
xbyVIP:boolean

pic_drive_id: string

Expand Down

0 comments on commit 0903e8b

Please sign in to comment.