Files
AIGC/demo/env.example
AIGC Developer 6d834d3385 移除PayPal支付功能,仅保留支付宝支付
- 删除PayPalService.java和PayPalController.java
- 从PaymentMethod枚举中移除PAYPAL选项
- 移除PaymentController和PaymentApiController中的PayPal相关代码
- 移除前端PayPal支付选项和相关API
- 清理配置文件中的PayPal配置
- 修复OrderController中的PayPal引用错误
2025-11-04 11:06:08 +08:00

44 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 环境变量配置示例
# 复制此文件为 .env 并根据实际情况修改
# 数据库配置
DB_URL=jdbc:mysql://localhost:3306/aigc?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
DB_USERNAME=root
DB_PASSWORD=your_database_password
# JWT配置
JWT_SECRET=your-very-long-and-secure-jwt-secret-key-at-least-256-bits-long
JWT_EXPIRATION=604800000
# 支付宝配置
ALIPAY_APP_ID=your_alipay_app_id
ALIPAY_PRIVATE_KEY=your_alipay_private_key
ALIPAY_PUBLIC_KEY=alipay_public_key
ALIPAY_NOTIFY_URL=https://yourdomain.com/api/payments/alipay/notify
ALIPAY_RETURN_URL=https://yourdomain.com/api/payments/alipay/return
# 日志配置
LOG_FILE_PATH=./logs/application.log
# 服务器配置
SERVER_PORT=8080
SERVER_CONTEXT_PATH=/
# 邮件配置(可选)
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your_email@gmail.com
MAIL_PASSWORD=your_email_password
# Redis配置可选
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password
# 文件上传配置
UPLOAD_PATH=./uploads
MAX_FILE_SIZE=10MB