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

chore: 新增gm

上级 ccaef0a2
...@@ -5,12 +5,12 @@ if (env === 'production') { ...@@ -5,12 +5,12 @@ if (env === 'production') {
module.exports = { module.exports = {
appVersion: 'seg_v3.3.5', appVersion: 'seg_v3.3.5',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址
tenant: 'seg' tenant: 'gm'
} }
} else { } else {
module.exports = { module.exports = {
appVersion: 'seg_v3.3.5', appVersion: 'seg_v3.3.5',
apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址 apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址
tenant: 'seg' tenant: 'gm'
} }
} }
...@@ -73,7 +73,7 @@ Page({ ...@@ -73,7 +73,7 @@ Page({
const p2 = this.getUserInfo() const p2 = this.getUserInfo()
Promise.all([p1, p2]).then(([code, user]) => { Promise.all([p1, p2]).then(([code, user]) => {
const { encryptedData, iv } = user const { encryptedData, iv } = user
api.wechatLogin({ encryptedData, iv, code, identity: 'seg-mini' }).then(response => { api.wechatLogin({ encryptedData, iv, code, identity: 'wdgm-mini' }).then(response => {
if (response.code === 0) { if (response.code === 0) {
this.handleSuccess(response.data) this.handleSuccess(response.data)
} else if (response.code === 2) { } else if (response.code === 2) {
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.21.3", "libVersion": "2.21.3",
"appid": "wxeef6398b18cebb5e", "appid": "wxf4bd7d5100ca2368",
"projectname": "learnOnline", "projectname": "learnOnline",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
......
...@@ -5,14 +5,14 @@ const url_test = { ...@@ -5,14 +5,14 @@ const url_test = {
URL_PATH1: 'https://wechat-api2.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名 URL_PATH1: 'https://wechat-api2.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名
URL_PATH2: 'https://wechat-api2.ezijing.com/api', // 正式域名 - 由于项目变动域名 URL_PATH2: 'https://wechat-api2.ezijing.com/api', // 正式域名 - 由于项目变动域名
outSiteLink: 'https://e-learning.ezijing.com', // 正式外链 outSiteLink: 'https://e-learning.ezijing.com', // 正式外链
tenant: 'seg', tenant: 'gm',
version: '3.2.5' version: '3.2.5'
} }
const url_online = { const url_online = {
URL_PATH1: 'https://wechat-api.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名 URL_PATH1: 'https://wechat-api.ezijing.com/api/lms', // 正式域名 - 由于项目变动域名
URL_PATH2: 'https://wechat-api.ezijing.com/api', // 正式域名 - 由于项目变动域名 URL_PATH2: 'https://wechat-api.ezijing.com/api', // 正式域名 - 由于项目变动域名
outSiteLink: 'https://e-learning.ezijing.com', // 正式外链 outSiteLink: 'https://e-learning.ezijing.com', // 正式外链
tenant: 'seg', tenant: 'gm',
version: '3.2.5' version: '3.2.5'
} }
let config = url_online let config = url_online
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论