账户过期bug
This commit is contained in:
parent
b901640a87
commit
be2f863aac
|
@ -69,9 +69,9 @@ App({
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
userinfo: {}, // 服务器传回的消费者信息
|
userinfo: {}, // 服务器传回的消费者信息
|
||||||
host: 'https://apitest.ahctc.cn',
|
//host: 'https://apitest.ahctc.cn',
|
||||||
mediahost: 'https://apitest.ahctc.cn',
|
mediahost: 'https://apitest.ahctc.cn',
|
||||||
//host: 'http://127.0.0.1:8000',
|
host: 'http://127.0.0.1:8000',
|
||||||
//mediahost: 'http://127.0.0.1:8000',
|
//mediahost: 'http://127.0.0.1:8000',
|
||||||
token : '',
|
token : '',
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"useCompilerModule": false,
|
"useCompilerModule": true,
|
||||||
"userConfirmedUseCompilerModuleSwitch": false,
|
"userConfirmedUseCompilerModuleSwitch": false,
|
||||||
"compileHotReLoad": false,
|
"compileHotReLoad": false,
|
||||||
"useMultiFrameRuntime": false,
|
"useMultiFrameRuntime": false,
|
||||||
|
|
|
@ -24,7 +24,7 @@ VistorPerms = [
|
||||||
]
|
]
|
||||||
def get_consumerperm_list(consumer):
|
def get_consumerperm_list(consumer):
|
||||||
perms = list(consumer.role.perms.values_list('code', flat=True))
|
perms = list(consumer.role.perms.values_list('code', flat=True))
|
||||||
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now)):
|
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
|
||||||
perms.append('account_exceed')
|
perms.append('account_exceed')
|
||||||
cache.get_or_set('cperms_'+str(consumer.id), perms)
|
cache.get_or_set('cperms_'+str(consumer.id), perms)
|
||||||
return perms
|
return perms
|
||||||
|
|
Loading…
Reference in New Issue