# 生产环境微信支付配置示例 # 请复制此文件为 config.prod.yaml 并填入真实参数 server: port: 8080 mode: release # 数据库配置 - 生产环境 database: driver: mysql host: your_db_host port: 3306 username: your_db_user password: "your_db_password" dbname: ai_dianshang charset: utf8mb4 parseTime: true loc: Local # Redis配置 - 生产环境 redis: host: your_redis_host port: 6379 password: "your_redis_password" db: 0 # JWT配置 - 生产环境 jwt: secret: "your-production-jwt-secret-key-must-be-complex" expire: 7200 # 日志配置 - 生产环境 log: level: info filename: logs/app.log maxSize: 100 maxAge: 30 maxBackups: 10 enableConsole: true enableFile: true format: json enableCaller: false enableOperation: true enablePerf: true perfThreshold: 1000 # 微信小程序配置 - 生产环境 wechat: appId: "wx1234567890abcdef" # 替换为您的真实AppID appSecret: "your_real_app_secret" # 替换为您的真实AppSecret # 微信支付配置 - 生产环境 wechatPay: appId: "wx1234567890abcdef" # 您的真实微信小程序AppID mchId: "1600000000" # 您的真实微信支付商户号 apiKey: "your_real_32_character_api_v3_key_here" # 您的真实APIv3密钥(32位) certPath: "certs/apiclient_cert.pem" # 商户证书路径 keyPath: "certs/apiclient_key.pem" # 商户私钥路径 notifyUrl: "https://yourdomain.com/api/v1/payment/notify" # 您的真实支付回调URL(必须HTTPS) # 重要提醒: # 1. 所有以 "your_" 开头的值都需要替换为真实值 # 2. 证书文件需要从微信支付商户平台下载 # 3. 回调URL必须是可公网访问的HTTPS地址 # 4. 商户号需要通过微信支付商户资质审核获得