diff --git a/test_mini/app.js b/test_mini/app.js index 4e9ce27..75f30df 100644 --- a/test_mini/app.js +++ b/test_mini/app.js @@ -69,9 +69,9 @@ App({ globalData: { userInfo: {}, userinfo: {}, // 服务器传回的消费者信息 - host: 'https://apitest.ahctc.cn', + //host: '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', token : '', } diff --git a/test_mini/project.config.json b/test_mini/project.config.json index ba4292c..251a781 100644 --- a/test_mini/project.config.json +++ b/test_mini/project.config.json @@ -25,7 +25,7 @@ "disablePlugins": [], "outputPath": "" }, - "useCompilerModule": false, + "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false, "compileHotReLoad": false, "useMultiFrameRuntime": false, diff --git a/test_server/crm/permission.py b/test_server/crm/permission.py index b331cdd..6a0dc78 100644 --- a/test_server/crm/permission.py +++ b/test_server/crm/permission.py @@ -24,7 +24,7 @@ VistorPerms = [ ] def get_consumerperm_list(consumer): 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') cache.get_or_set('cperms_'+str(consumer.id), perms) return perms