开始多平台 多店铺整改
This commit is contained in:
@@ -1,85 +0,0 @@
|
||||
module.exports = {
|
||||
server: {
|
||||
// 例如:本机改成 3100
|
||||
port: 3000,
|
||||
},
|
||||
|
||||
browser: {
|
||||
// 例如:'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
|
||||
chromePath: '',
|
||||
|
||||
// 例如:本机调试时可改成 false
|
||||
headless: null,
|
||||
devtools: null,
|
||||
keepAlive: null,
|
||||
prewarm: null,
|
||||
slowMoMs: null,
|
||||
},
|
||||
|
||||
session: {
|
||||
// 需要排查问题时可临时改成 true
|
||||
debug: false,
|
||||
},
|
||||
|
||||
ocr: {
|
||||
// 如果 OCR 子服务目录不是仓库默认位置,就在这里覆盖
|
||||
projectRoot: '',
|
||||
},
|
||||
|
||||
database: {
|
||||
// 如果想把 SQLite 放到别的位置,就在这里覆盖
|
||||
filePath: '',
|
||||
},
|
||||
|
||||
orders: {
|
||||
// 用户领取页基础地址,例如:https://your-domain.com/#/claim
|
||||
claimBaseUrl: 'http://127.0.0.1:5173/#/claim',
|
||||
tokenTtlHours: 24,
|
||||
skuMappings: {
|
||||
// "32768": "dnf-cdk-a",
|
||||
},
|
||||
},
|
||||
|
||||
admin: {
|
||||
// 后台 session 签名密钥,至少 32 位随机串
|
||||
sessionSecret: 'change-this-session-secret',
|
||||
|
||||
sessionTtlHours: 12,
|
||||
|
||||
defaultUsers: [
|
||||
{
|
||||
username: 'admin',
|
||||
password: 'change-this-admin-password',
|
||||
role: 'admin',
|
||||
},
|
||||
{
|
||||
username: 'operator',
|
||||
password: 'change-this-operator-password',
|
||||
role: 'operator',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
platforms: {
|
||||
agiso: {
|
||||
// Agiso 回调验签密钥
|
||||
appSecret: '',
|
||||
|
||||
messaging: {
|
||||
enabled: false,
|
||||
sendMessageEndpoint: 'https://gw-api.agiso.com/aldsIdle/ImMsg/SendMsg',
|
||||
apiVersion: '1',
|
||||
authMode: 'bearer',
|
||||
appId: '',
|
||||
accessToken: '',
|
||||
appSecret: '',
|
||||
messageTemplate: '您的订单 {platformOrderId} 已创建领取链接,请在 {expiredAt} 前完成领取:{claimUrl}',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
redeem: {
|
||||
// 可选:full / basic / off
|
||||
proofMode: 'full',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user