sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# config.yaml 配置文件
|
||||
# @Link https://github.com/xiujiecn/xiu-admin
|
||||
# @Copyright Copyright (c) 2025 LiXiujie
|
||||
# @Author Lxj <li@xiujie.cn>
|
||||
# @Author Lxj <li@example.com>
|
||||
# @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
# 系统配置
|
||||
system:
|
||||
@@ -14,6 +14,7 @@ system:
|
||||
# path: "/data/app/iotlcmadmin-web-svc/upload"
|
||||
# 本地开发环境
|
||||
path: "resource/upload"
|
||||
publicUrl: ""
|
||||
|
||||
# 服务配置
|
||||
server:
|
||||
@@ -76,7 +77,7 @@ register:
|
||||
url: "http://192.0.2.29:11190/api/v1/sms/send"
|
||||
method: "POST"
|
||||
headers: {}
|
||||
bodyTemplate: '{"config":{"serviceType":"1","regionId":"cn-hangzhou","accessKeyId":"","accessKeySecret":"","signName":"","templateId":""},"params":{"phoneNumber":"{contact}","msgContent":"{\"code\":\"{code}\"}"}}'
|
||||
bodyTemplate: '{"config":{"scene":"{scene}"},"params":{"phoneNumber":"{contact}","msgContent":"{code}"}}'
|
||||
successStatus: 200
|
||||
|
||||
database:
|
||||
@@ -147,34 +148,34 @@ payment:
|
||||
enabled: true
|
||||
envFile: ""
|
||||
apiBase: "https://api.mch.weixin.qq.com"
|
||||
mchId: "1723059989"
|
||||
mchSerialNo: "32A3CB6381D743A4ADBF3885BB16882C6CE06D03"
|
||||
apiV3Key: "ce9e5486d2979810f21d09f398d212e0"
|
||||
mchId: "${WECHAT_MCH_ID}"
|
||||
mchSerialNo: "${WECHAT_MCH_SERIAL_NO}"
|
||||
apiV3Key: "${WECHAT_API_V3_KEY}"
|
||||
privateKeyPath: "resource/certs/wechatpay_apiclient_key.pem"
|
||||
notifyUrl: "https://app.iotlcm.example.com/api/v1/payment/wechat/notify"
|
||||
notifyBaseUrl: "https://app.iotlcm.example.com"
|
||||
refundNotifyUrl: "https://app.iotlcm.example.com/api/v1/payment/wechat/refund-notify"
|
||||
notifyUrl: "https://example.com/"
|
||||
notifyBaseUrl: "https://example.com/"
|
||||
refundNotifyUrl: "https://example.com/"
|
||||
timeoutMinutes: 5 #待支付时间(分钟)
|
||||
platformPublicKeyId: "PUB_KEY_ID_0117230599892026052200111565002404"
|
||||
platformPublicKeyId: "${WECHAT_PLATFORM_KEY_ID}"
|
||||
platformPublicKeyPath: "resource/certs/wechatpay_platform_public_key.pem"
|
||||
h5:
|
||||
enabled: true
|
||||
appId: "wx9e26905702c1a372"
|
||||
appId: "${WECHAT_APP_ID}"
|
||||
appName: "物联网卡管理平台"
|
||||
appUrl: "https://app.iotlcm.example.com"
|
||||
appUrl: "https://example.com/"
|
||||
payerClientIp: ""
|
||||
mini:
|
||||
enabled: true
|
||||
appId: "wx9e26905702c1a372"
|
||||
appSecret: "3ee708d13993282fed770ea1cab95d90"
|
||||
appId: "${WECHAT_APP_ID}"
|
||||
appSecret: "${WECHAT_APP_SECRET}"
|
||||
|
||||
appCardRecognition:
|
||||
enabled: true
|
||||
provider: "openai-compatible"
|
||||
baseUrl: "https://xueyangai.com/v1"
|
||||
endpoint: ""
|
||||
model: "qwen3.7-flash"
|
||||
apiKey: "sk-nAhIIyqOn7JvQp1ti8o24GcBLgWqBUFKBaDTwAmFYZm0Hycy"
|
||||
model: "qwen3.7-plus"
|
||||
apiKey: "${AI_API_KEY}"
|
||||
timeout: "25s"
|
||||
maxImageBytes: 8388608
|
||||
maxTokens: 256
|
||||
@@ -184,7 +185,7 @@ appCardRecognition:
|
||||
period: "1m"
|
||||
|
||||
appWarning:
|
||||
wechatSubscribeTemplateId: "DMDP2PKktdtG1ES_3Ic1JcR0LGELQmWE6LunYyerHCY"
|
||||
wechatSubscribeTemplateId: "${WECHAT_SUBSCRIBE_TEMPLATE_ID}"
|
||||
|
||||
tsdb:
|
||||
database: "TdEngine" #可选择 TdEngine、Influxdb
|
||||
@@ -193,8 +194,10 @@ tsdb:
|
||||
# dsn: "root:taosdata@http(127.0.0.1:6041)/"
|
||||
type: "taosWS" #websocket连接方式,端口是6041
|
||||
# dsn: "root:taosdata@ws(127.0.0.1:6041)/"
|
||||
dsn: "root:sdyz2026__@ws(192.0.2.29:6041)/"
|
||||
dsn: "${TAOS_USER}:${TAOS_PASSWORD}@ws(${TAOS_HOST}:6041)/"
|
||||
dbName: "iotlcm"
|
||||
dailyDbName: "iotlcm_daily"
|
||||
monthlyDbName: "iotlcm_monthly"
|
||||
maxOpenConns: 100
|
||||
maxIdleConns: 10
|
||||
|
||||
@@ -213,6 +216,7 @@ router:
|
||||
- /api/v1/auth/sms
|
||||
- /api/v1/auth/register
|
||||
- /api/v1/auth/login
|
||||
- /api/v1/auth/phone-login
|
||||
- /api/v1/auth/wechat-login
|
||||
- /api/v1/auth/wechat-bind-phone
|
||||
- /api/v1/auth/forgot-password
|
||||
@@ -273,17 +277,20 @@ upstream:
|
||||
# clientName: "iotlcm.example.com:8510"
|
||||
clientName: "http://iotlcm.example.com:8110"
|
||||
timeout: 10s
|
||||
gateway:
|
||||
clientName: "${UPSTREAM_GATEWAY_ADDR}"
|
||||
timeout: 10s
|
||||
onelinkMock:
|
||||
enabled: false
|
||||
baseUrl: "https://iotlcm.example.com/onelink-mock/v5"
|
||||
appid: "100059999270000006"
|
||||
password: "577d2b16546cbac103df9e0ce38393b5014152c8e4d76d5636ea5ccc51319033"
|
||||
appid: "${ONELINK_APP_ID}"
|
||||
password: "${ONELINK_PASSWORD}"
|
||||
timeout: "10s"
|
||||
tokenTTL: 3600
|
||||
accounts:
|
||||
- name: "默认测试应用"
|
||||
appid: "100059999270000006"
|
||||
password: "577d2b16546cbac103df9e0ce38393b5014152c8e4d76d5636ea5ccc51319033"
|
||||
appid: "${ONELINK_APP_ID}"
|
||||
password: "${ONELINK_PASSWORD}"
|
||||
latestToken: ""
|
||||
tokenExpireAt: ""
|
||||
isDefault: true
|
||||
@@ -1,7 +1,7 @@
|
||||
# config_default.yaml 配置文件
|
||||
# @Link https://github.com/xiujiecn/xiu-admin
|
||||
# @Copyright Copyright (c) 2025 LiXiujie
|
||||
# @Author Lxj <li@xiujie.cn>
|
||||
# @Author Lxj <li@example.com>
|
||||
# @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
# 系统配置
|
||||
system:
|
||||
@@ -12,6 +12,7 @@ system:
|
||||
upload:
|
||||
local:
|
||||
path: "resource/upload"
|
||||
publicUrl: ""
|
||||
# 服务配置
|
||||
server:
|
||||
# 基本配置
|
||||
@@ -69,10 +70,15 @@ register:
|
||||
url: "http://127.0.0.1:11190/api/v1/sms/send"
|
||||
method: "POST"
|
||||
headers: {}
|
||||
bodyTemplate: '{"config":{"serviceType":"1","regionId":"cn-hangzhou","accessKeyId":"","accessKeySecret":"","signName":"","templateId":""},"params":{"phoneNumber":"{contact}","msgContent":"{\"code\":\"{code}\"}"}}'
|
||||
bodyTemplate: '{"config":{"scene":"{scene}"},"params":{"phoneNumber":"{contact}","msgContent":"{code}"}}'
|
||||
successStatus: 200
|
||||
|
||||
database:
|
||||
legacyCard:
|
||||
link: "${LEGACY_CARD_DSN}" # Optional read-only legacy database
|
||||
debug: false
|
||||
maxOpen: 5
|
||||
maxIdle: 2
|
||||
logger:
|
||||
path: "resource/log/server/sql"
|
||||
level: "all"
|
||||
@@ -149,8 +155,8 @@ appCardRecognition:
|
||||
provider: "openai-compatible"
|
||||
baseUrl: "https://xueyangai.com/v1"
|
||||
endpoint: ""
|
||||
model: "qwen3.7-flash"
|
||||
apiKey: "sk-nAhIIyqOn7JvQp1ti8o24GcBLgWqBUFKBaDTwAmFYZm0Hycy"
|
||||
model: "qwen3.7-plus"
|
||||
apiKey: "${AI_API_KEY}"
|
||||
timeout: "25s"
|
||||
maxImageBytes: 8388608
|
||||
maxTokens: 256
|
||||
@@ -160,7 +166,7 @@ appCardRecognition:
|
||||
period: "1m"
|
||||
|
||||
appWarning:
|
||||
wechatSubscribeTemplateId: "DMDP2PKktdtG1ES_3Ic1JcR0LGELQmWE6LunYyerHCY"
|
||||
wechatSubscribeTemplateId: "${WECHAT_SUBSCRIBE_TEMPLATE_ID}"
|
||||
|
||||
appBusinessAsync:
|
||||
enabled: false
|
||||
@@ -169,11 +175,15 @@ appBusinessAsync:
|
||||
failOnPublish: false
|
||||
|
||||
upstream:
|
||||
appDiagnosisToken: "${APP_DIAGNOSIS_TOKEN}"
|
||||
provider: "onelink_mock"
|
||||
default:
|
||||
# 正式环境建议配置为上游代理 HTTP 服务名,例如 iotlcmupstreamproxy-http-svc:8510
|
||||
clientName: ""
|
||||
timeout: 10s
|
||||
gateway:
|
||||
clientName: "${UPSTREAM_GATEWAY_ADDR}"
|
||||
timeout: 10s
|
||||
onelinkMock:
|
||||
enabled: false
|
||||
baseUrl: "https://iotlcm.example.com/onelink-mock/v5"
|
||||
@@ -215,6 +225,7 @@ router:
|
||||
- /api/v1/auth/sms
|
||||
- /api/v1/auth/register
|
||||
- /api/v1/auth/login
|
||||
- /api/v1/auth/phone-login
|
||||
- /api/v1/auth/wechat-login
|
||||
- /api/v1/auth/wechat-bind-phone
|
||||
- /api/v1/auth/forgot-password
|
||||
|
||||
Reference in New Issue
Block a user