sxwz2.0/src/main/resources/application.yml
wangzhiwei a608b7a754 refactor(account): 重构账户冻结功能实现
- 更新冻结类型枚举说明,统一为token和RMB类型
- 添加日志记录功能并引入常量定义
- 重构创建冻结单方法,增加参数验证和业务流程优化
- 重构释放冻结单方法,完善金额计算和账户更新逻辑
- 修改模型价格查询接口返回类型为列表
- 添加支付订单和系统日志查询条件字段
- 调整应用配置文件环境设置和Redis连接参数
2026-04-24 14:28:32 +08:00

111 lines
2.6 KiB
YAML
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.

spring:
profiles:
active: dev
application:
name: agentSkills
version: 1.0.0
# 禁用会话持久化,避免启动时恢复损坏的会话文件
session:
store-type: none
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
static-path-pattern: /**
date-format: yyyy-MM-dd HH:mm:ss
favicon:
enabled: true
thymeleaf:
encoding: UTF-8
cache: false
mode: HTML
prefix: classpath:/templates/
suffix: .html
http:
encoding:
charset: UTF-8
enabled: true
force: true
servlet:
multipart:
max-request-size: 20MB
max-file-size: 20MB
ai:
deepseek:
base-url: https://api.deepseek.com
api-key: ${DEEPSEEK_API_KEY:sk-7334f88754a84a86abbd98fc907d3354}
chat:
model: deepseek-chat
temperature: 0.3
max-tokens: 500
glm:
base-url: https://open.bigmodel.cn/api/paas/v4
api-key: ${GLM_API_KEY:57a566a125bb4492900db0578969f27d.JLpuGSzr9hhLurM7}
chat:
model: glm-4.6v
temperature: 0.7
max-tokens: 8192
# 包含公共配置文件
spring.config.import:
- classpath:application-common.yml
springdoc:
api-docs:
enabled: true
path: /v3/api-docs
swagger-ui:
enabled: true
path: /doc.html
layout: StandaloneLayout
doc-expansion: none
packages-to-scan: com.kexue.skills.controller
mybatis:
mapper-locations: classpath:mapper/*.xml
configuration:
map-underscore-to-camel-case: true
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# SMS4J 短信发送配置
sms:
# 从 YAML 读取配置
config-type: YAML
http-log: true
is-print: false
blends:
alibaba:
# 短信厂商
supplier: alibaba
requestUrl: dysmsapi.aliyuncs.com
access-key-id: LTAI5t8rsaBDrno4xd4F6EwE
access-key-secret: QNmjxatrgzBYukAKr8BZ4r7gd37SHw
signature: 武汉可学智能科技
# 阿里云短信模板ID需要替换为实际申请的模板ID
template-id: SMS_493720484 # 实际使用时请替换为真实模板ID
# 短信模板变量名,对应验证码的变量
template-param-name: code
template-cache: true
# 上传配置
web:
upload:
path: /kexue/agentSkills/upload/
userIconPath: /kexue/agentSkills/resources/userIcons
# 雪花算法配置
snowflake:
workid: 1 # 机器ID分布式部署时需要保证唯一
# 账户扣费配置
account:
deduction:
# 扣费系数默认2倍实际消耗1积分扣除2积分
coefficient: 2