Ver código fonte

opt:修改config文件

LiChengjin 2 semanas atrás
pai
commit
6e0002e2ed
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      config.js

+ 2 - 1
config.js

@@ -5,7 +5,7 @@ const PRO_ROOM_TYPE_PIC_URL = "https://pro.cloud.boyuantech.net/img"
 //测试
 const TEST_BASE_URL = "https://test.cloud.boyuantech.net/mp/api/v1"
 const TEST_IMG_BASE_URL = "https://test.cloud.boyuantech.net/img"
-const TEST_ROOM_TYPE_PIC_URL = "https://test.cloud.boyuantech.net/hotel-room-type-img/"
+const TEST_ROOM_TYPE_PIC_URL = "https://test.cloud.boyuantech.net/hotel-room-type-img"
 //本地
 const DEV_BASE_URL = "http://localhost:9041/api/v1"
 const DEV_IMG_BASE_URL = "https://pro.cloud.boyuantech.net/img"
@@ -21,6 +21,7 @@ const env = accountInfo.miniProgram.envVersion
 if (env === 'release') {
 	BASE_URL = PRO_BASE_URL
 	IMG_BASE_URL = PRO_IMG_BASE_URL
+	ROOM_TYPE_PIC_URL = PRO_ROOM_TYPE_PIC_URL
 } else {
 	// 生产环境
 	// BASE_URL = PRO_BASE_URL