diff --git a/test_client/.env.production b/test_client/.env.production index 7c60998..3d063d1 100644 --- a/test_client/.env.production +++ b/test_client/.env.production @@ -3,4 +3,4 @@ ENV = 'production' # base api # VUE_APP_BASE_API = '/prod-api' -VUE_APP_BASE_API = 'https://apitest.ctcshe.com' +VUE_APP_BASE_API = 'https://apitest.ahctc.cn' diff --git a/test_mini/app.js b/test_mini/app.js index 1aaf6b2..53f5ba9 100644 --- a/test_mini/app.js +++ b/test_mini/app.js @@ -57,8 +57,8 @@ App({ globalData: { userInfo: {}, userinfo: {}, // 服务器传回的消费者信息 - host: 'https://apitest.ctcshe.com', - mediahost: 'https://apitest.ctcshe.com', + host: 'https://apitest.ahctc.cn', + mediahost: 'https://apitest.ahctc.cn', //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 7e33948..676e083 100644 --- a/test_mini/project.config.json +++ b/test_mini/project.config.json @@ -11,6 +11,8 @@ "newFeature": true, "coverView": true, "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, "checkInvalidKey": true, "checkSiteMap": true, "uploadWithSourceMap": true, @@ -19,9 +21,8 @@ "disablePlugins": [], "outputPath": "" }, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "useCompilerModule": false + "useCompilerModule": true, + "userConfirmedUseCompilerModuleSwitch": false }, "compileType": "miniprogram", "libVersion": "2.10.3", diff --git a/test_server/crm/models.py b/test_server/crm/models.py index 092dec5..857e4a7 100644 --- a/test_server/crm/models.py +++ b/test_server/crm/models.py @@ -9,7 +9,7 @@ class Company(CommonModel): ''' 客户企业 ''' - name = models.CharField(max_length=60, verbose_name='名称') + name = models.CharField(max_length=60, verbose_name='名称', unique=True) pid = models.ForeignKey('self', null=True, blank=True, on_delete=models.SET_NULL, verbose_name='父') class Meta: