提交 a479a04d authored 作者: 王鹏飞's avatar 王鹏飞

add caas

上级 3b88e9c3
......@@ -3,14 +3,14 @@ const env = 'production'
if (env === 'production') {
module.exports = {
appVersion: 'seg_v3.3.5',
appVersion: 'caas_v3.3.5',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址
tenant: 'seg'
tenant: 'caas'
}
} else {
module.exports = {
appVersion: 'seg_v3.3.5',
appVersion: 'caas_v3.3.5',
apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址
tenant: 'seg'
tenant: 'caas'
}
}
......@@ -58,7 +58,7 @@ Page({
// 获取用户信息
this.getUserInfo(user => {
const { encryptedData, iv } = user
api.wechatLogin({ encryptedData, iv, code, identity: 'seg-mini' }).then(response => {
api.wechatLogin({ encryptedData, iv, code, identity: 'caas-mini' }).then(response => {
if (response.code === 0) {
this.handleSuccess(response.data)
} else if (response.code === 2) {
......
......@@ -31,11 +31,13 @@
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"showES6CompileOption": false
"disableUseStrict": false,
"showES6CompileOption": false,
"useCompilerPlugins": false
},
"compileType": "miniprogram",
"libVersion": "2.12.2",
"appid": "wxeef6398b18cebb5e",
"appid": "wxe26a76d121424527",
"projectname": "learnOnline",
"isGameTourist": false,
"simulatorType": "wechat",
......
......@@ -5,14 +5,14 @@ const url_test = {
URL_PATH1: 'https://wechat-api2.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名
URL_PATH2: 'https://wechat-api2.ezijing.com/api', // 正式域名 - 由于项目变动域名
outSiteLink: 'https://e-learning.ezijing.com', // 正式外链
tenant: 'seg',
tenant: 'caas',
version: '3.2.5'
}
const url_online = {
URL_PATH1: 'https://wechat-api.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名
URL_PATH2: 'https://wechat-api.ezijing.com/api', // 正式域名 - 由于项目变动域名
outSiteLink: 'https://e-learning.ezijing.com', // 正式外链
tenant: 'seg',
tenant: 'caas',
version: '3.2.5'
}
let config = url_online
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论