Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 597a063a
authored
Jan 29, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
bfbc0d55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
77 deletions
config.js
config.js
View file @
597a063
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
*/
*/
// 配置预发布的小程序aapId
// 配置预发布的小程序aapId
export
const
preReleaseAppId
=
"wx96c8f2a3e76907cb"
;
export
const
preReleaseAppId
=
'wx96c8f2a3e76907cb'
// 小程序id
// 小程序id
export
const
appId
=
"wx570d9331f9ace0bd"
;
export
const
appId
=
'wx570d9331f9ace0bd'
/**
/**
* 环境指定
* 环境指定
...
@@ -18,99 +18,99 @@ export const appId = "wx570d9331f9ace0bd";
...
@@ -18,99 +18,99 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
1
;
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
;
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
;
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
envName
=
accountInfo
.
miniProgram
.
envVersion
;
const
envName
=
accountInfo
.
miniProgram
.
envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2
//手动控制体验版环境的请求 true就依据下面index false就默认2
const
manual
=
true
;
const
manual
=
true
const
release
=
false
;
const
release
=
false
// 判断小程序环境
// 判断小程序环境
// develop:开发版 trial:体验版 release:正式版
// develop:开发版 trial:体验版 release:正式版
if
(
systemInfo
.
platform
!=
"devtools"
)
{
if
(
systemInfo
.
platform
!=
'devtools'
)
{
if
(
accountInfo
.
miniProgram
.
appId
==
preReleaseAppId
)
{
if
(
accountInfo
.
miniProgram
.
appId
==
preReleaseAppId
)
{
index
=
4
;
index
=
4
}
else
{
}
else
{
switch
(
envName
)
{
switch
(
envName
)
{
case
"develop"
:
case
'develop'
:
break
;
break
case
"trial"
:
case
'trial'
:
index
=
manual
?
index
:
2
;
index
=
manual
?
index
:
2
break
;
break
case
"release"
:
case
'release'
:
index
=
release
?
index
:
3
;
index
=
release
?
index
:
3
break
;
break
default
:
default
:
index
=
3
;
index
=
3
break
;
break
}
}
}
}
}
}
export
const
env
=
envName
;
export
const
env
=
envName
export
const
envIndex
=
index
;
export
const
envIndex
=
index
const
createQuotedUrl
=
{
const
createQuotedUrl
=
{
develop
:
`http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`
,
develop
:
`http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`
,
trial
:
`http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
trial
:
`http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
release
:
`https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
release
:
`https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
preRelease
:
`https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
,
preRelease
:
`https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
}
;
}
const
scoketURL
=
{
const
scoketURL
=
{
develop
:
`ws://192.168.3.191:7865`
,
develop
:
`ws://192.168.3.191:7865`
,
trial
:
`ws://salesgpt.test.glsx.com.cn`
,
trial
:
`ws://salesgpt.test.glsx.com.cn`
,
release
:
`wss://salesgpt.glsx.com.cn`
,
release
:
`wss://salesgpt.glsx.com.cn`
,
preRelease
:
`ws://salesgpt.test.glsx.com.cn`
,
preRelease
:
`ws://salesgpt.test.glsx.com.cn`
}
;
}
const
target
=
[
"ip"
,
"develop"
,
"trial"
,
"release"
,
"preRelease"
];
const
target
=
[
'ip'
,
'develop'
,
'trial'
,
'release'
,
'preRelease'
]
const
ALIYUN_LIST
=
[
const
ALIYUN_LIST
=
[
{
{
AKID
:
"LTAI5tJday6R4sng1jgrgH3N"
,
//个人
AKID
:
'LTAI5tJday6R4sng1jgrgH3N'
,
//个人
AKKEY
:
"TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh"
,
AKKEY
:
'TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh'
,
APPKEY
:
"a1HmjrmQNv6yT8zb"
,
APPKEY
:
'a1HmjrmQNv6yT8zb'
,
URL
:
"wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1"
,
URL
:
'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
},
},
{
{
AKID
:
"LTAI5tCSaRbXmWhF7cR6k626"
,
//公司
AKID
:
'LTAI5tCSaRbXmWhF7cR6k626'
,
//公司
AKKEY
:
"jYHkk6rR6UoaZWikxDTuAUNwJycJwb"
,
AKKEY
:
'jYHkk6rR6UoaZWikxDTuAUNwJycJwb'
,
APPKEY
:
"Pm7teJgylXGPnPvO"
,
APPKEY
:
'Pm7teJgylXGPnPvO'
,
URL
:
"wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1"
,
URL
:
'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
},
},
{
{
AKID
:
"LTAI5tCv6tv55tZVyV4uQKd6"
,
//个人
AKID
:
'LTAI5tCv6tv55tZVyV4uQKd6'
,
//个人
AKKEY
:
"K3eko04dQ88KWltUEbY3A7h5twdjJk"
,
AKKEY
:
'K3eko04dQ88KWltUEbY3A7h5twdjJk'
,
APPKEY
:
"xKQ7JCyBsyNFjUdL"
,
APPKEY
:
'xKQ7JCyBsyNFjUdL'
,
URL
:
"wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1"
,
URL
:
'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
},
}
]
;
]
export
const
ALIYUN
=
ALIYUN_LIST
[
1
]
;
export
const
ALIYUN
=
ALIYUN_LIST
[
1
]
// 报价单图片地址
// 报价单图片地址
export
const
quotedImgUrl
=
createQuotedUrl
[
target
[
envIndex
]]
;
export
const
quotedImgUrl
=
createQuotedUrl
[
target
[
envIndex
]]
export
const
scoket_url
=
scoketURL
[
target
[
envIndex
]]
;
export
const
scoket_url
=
scoketURL
[
target
[
envIndex
]]
// sentry Dsn 地址
// sentry Dsn 地址
export
const
dsnUrl
=
export
const
dsnUrl
=
"https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23"
;
'https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23'
// 图片基地址
// 图片基地址
export
const
ImgUrl
=
export
const
ImgUrl
=
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat"
;
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
export
const
ossConfig
=
{
export
const
ossConfig
=
{
// 请求域名 格式:https://xxx.xxx.com
// 请求域名 格式:https://xxx.xxx.com
HTTP_REQUEST_URL
:
"http://127.0.0.1:8000/api"
,
HTTP_REQUEST_URL
:
'http://127.0.0.1:8000/api'
,
// 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com
// 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com
OSS_DOMAIN
:
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com"
,
OSS_DOMAIN
:
'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com'
,
// 文件直传到阿里云oss时需用到
// 文件直传到阿里云oss时需用到
ACCESSKEYID
:
"LTAI5tCRcCUgd7bt1J7JY596"
,
ACCESSKEYID
:
'LTAI5tCRcCUgd7bt1J7JY596'
,
ACCESSKEYSECRET
:
"kJos9mgylkR5ztosnDt8Asrc3ulgqy"
,
ACCESSKEYSECRET
:
'kJos9mgylkR5ztosnDt8Asrc3ulgqy'
,
BUKET_NAME
:
"glsk-oss"
,
BUKET_NAME
:
'glsk-oss'
,
FOLDER
:
"quality/"
,
FOLDER
:
'quality/'
,
// 与后端约定的token字段名
// 与后端约定的token字段名
TOKEN_NAME
:
"glsk-oss"
,
TOKEN_NAME
:
'glsk-oss'
}
;
}
export
const
bytedanceConfig
=
{
export
const
bytedanceConfig
=
{
url
:
"https://openspeech.bytedance.com/api/v1/tts"
,
url
:
'https://openspeech.bytedance.com/api/v1/tts'
}
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment