This commit is contained in:
2026-03-01 17:10:41 +08:00
parent c121f03ad1
commit 00d60b78c4
5 changed files with 78 additions and 25 deletions

View File

@@ -20,6 +20,7 @@ const props = defineProps({
const STATUS_CONFIG = { const STATUS_CONFIG = {
pending: { text: '待处理', class: 'task-status-tag--pending' }, pending: { text: '待处理', class: 'task-status-tag--pending' },
running: { text: '处理中', class: 'task-status-tag--running' }, running: { text: '处理中', class: 'task-status-tag--running' },
processing: { text: '处理中', class: 'task-status-tag--running' },
success: { text: '已完成', class: 'task-status-tag--success' }, success: { text: '已完成', class: 'task-status-tag--success' },
failed: { text: '失败', class: 'task-status-tag--failed' }, failed: { text: '失败', class: 'task-status-tag--failed' },
canceled: { text: '已取消', class: 'task-status-tag--canceled' } canceled: { text: '已取消', class: 'task-status-tag--canceled' }
@@ -35,7 +36,7 @@ const config = computed(() => {
const text = computed(() => config.value.text) const text = computed(() => config.value.text)
const statusClass = computed(() => config.value.class) const statusClass = computed(() => config.value.class)
const isRunning = computed(() => normalizedStatus.value === 'running') const isRunning = computed(() => normalizedStatus.value === 'running' || normalizedStatus.value === 'processing')
</script> </script>
<style scoped lang="less"> <style scoped lang="less">

View File

@@ -34,12 +34,14 @@ public class SiliconFlowImageOptions implements ImageOptions {
* The number of images to generate. Must be between 1 and 4. * The number of images to generate. Must be between 1 and 4.
*/ */
@JsonProperty("batch_size") @JsonProperty("batch_size")
@Builder.Default
private Integer batchSize = 1; private Integer batchSize = 1;
/** /**
* number of inference steps * number of inference steps
*/ */
@JsonProperty("num_inference_steps") @JsonProperty("num_inference_steps")
@Builder.Default
private Integer numInferenceSteps = 25; private Integer numInferenceSteps = 25;
/** /**
@@ -48,6 +50,7 @@ public class SiliconFlowImageOptions implements ImageOptions {
* Required range: 0 <= x <= 20 * Required range: 0 <= x <= 20
*/ */
@JsonProperty("guidance_scale") @JsonProperty("guidance_scale")
@Builder.Default
private Float guidanceScale = 0.75F; private Float guidanceScale = 0.75F;
/** /**
@@ -55,7 +58,8 @@ public class SiliconFlowImageOptions implements ImageOptions {
* *
*/ */
@JsonProperty("seed") @JsonProperty("seed")
private Integer seed = (int)(Math.random() * 1_000_000_000); @Builder.Default
private Integer seed = (int) (Math.random() * 1_000_000_000);
/** /**
* The image that needs to be uploaded should be converted into base64 format. * The image that needs to be uploaded should be converted into base64 format.

View File

@@ -265,6 +265,7 @@ public class DifyClient {
return WebClient.builder() return WebClient.builder()
.baseUrl(url) .baseUrl(url)
.defaultHeader("Authorization", "Bearer " + apiKey) .defaultHeader("Authorization", "Bearer " + apiKey)
.codecs(configurer -> configurer.defaultCodecs().maxInMemorySize(16 * 1024 * 1024))
.build() .build()
.get() .get()
.retrieve() .retrieve()

View File

@@ -1,5 +1,5 @@
server: server:
port: 48080 port: 9900
--- #################### 数据库相关配置 #################### --- #################### 数据库相关配置 ####################
@@ -47,22 +47,22 @@ spring:
primary: master primary: master
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 url: jdbc:mysql://127.0.0.1:3306/sion_rui_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
username: root username: sion_rui_dev
password: 123456 password: 4w8GaSMmcihjzxkz
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 slave: # 模拟从库,可根据自己需要修改
lazy: true # 开启懒加载,保证启动速度 lazy: true # 开启懒加载,保证启动速度
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 url: jdbc:mysql://127.0.0.1:3306/sion_rui_dev?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
username: root username: sion_rui_dev
password: 123456 password: 4w8GaSMmcihjzxkz
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
data: data:
redis: redis:
host: 400-infra.server.iocoder.cn # 地址 host: 127.0.0.1 # 地址
port: 6379 # 端口 port: 6379 # 端口
database: 1 # 数据库索引 database: 0 # 数据库索引
# password: 123456 # 密码,建议生产环境开启 password: sion+Rui!$ # 密码
--- #################### 定时任务相关配置 #################### --- #################### 定时任务相关配置 ####################
@@ -106,8 +106,8 @@ spring:
rabbitmq: rabbitmq:
host: 127.0.0.1 # RabbitMQ 服务的地址 host: 127.0.0.1 # RabbitMQ 服务的地址
port: 5672 # RabbitMQ 服务的端口 port: 5672 # RabbitMQ 服务的端口
username: guest # RabbitMQ 服务的账号 username: rabbit # RabbitMQ 服务的账号
password: guest # RabbitMQ 服务的密码 password: rabbit # RabbitMQ 服务的密码
# Kafka 配置项,对应 KafkaProperties 配置类 # Kafka 配置项,对应 KafkaProperties 配置类
kafka: kafka:
bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔
@@ -145,21 +145,45 @@ spring:
logging: logging:
file: file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径 name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
level:
# 配置自己写的 MyBatis Mapper 打印日志
cn.iocoder.yudao.module.bpm.dal.mysql: debug
cn.iocoder.yudao.module.infra.dal.mysql: debug
cn.iocoder.yudao.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info避免和 GlobalExceptionHandler 重复打印
cn.iocoder.yudao.module.infra.dal.mysql.job.JobLogMapper: INFO # 配置 JobLogMapper 的日志级别为 info
cn.iocoder.yudao.module.infra.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info
cn.iocoder.yudao.module.pay.dal.mysql: debug
cn.iocoder.yudao.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO # 配置 PayNotifyTaskMapper 的日志级别为 info
cn.iocoder.yudao.module.system.dal.mysql: debug
cn.iocoder.yudao.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info
cn.iocoder.yudao.module.tool.dal.mysql: debug
cn.iocoder.yudao.module.member.dal.mysql: debug
cn.iocoder.yudao.module.trade.dal.mysql: debug
cn.iocoder.yudao.module.promotion.dal.mysql: debug
cn.iocoder.yudao.module.statistics.dal.mysql: debug
cn.iocoder.yudao.module.crm.dal.mysql: debug
cn.iocoder.yudao.module.erp.dal.mysql: debug
cn.iocoder.yudao.module.iot.dal.mysql: debug
cn.iocoder.yudao.module.iot.dal.tdengine: DEBUG
cn.iocoder.yudao.module.iot.service.rule: debug
cn.iocoder.yudao.module.ai.dal.mysql: debug
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿先禁用Spring Boot 3.X 存在部分错误的 WARN 提示
--- #################### 微信公众号相关配置 #################### debug: false
wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
mp: --- #################### 微信公众号、小程序相关配置 ####################
# 公众号配置(必填) wx:
app-id: wx041349c6f39b268b mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
secret: 5abee519483bc9f8cb37ce280e814bd0 app-id: wxf56b1542b9e85f8a # 测试号Kongdy 提供的)
secret: 496379dcef1ba869e9234de8d598cfd3
# 存储配置,解决 AccessToken 的跨节点的共享 # 存储配置,解决 AccessToken 的跨节点的共享
config-storage: config-storage:
type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取 type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取
key-prefix: wx # Redis Key 的前缀 key-prefix: wx # Redis Key 的前缀
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台 http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档 miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
appid: wx63c280fe3248a3e7 appid: wxc4598c446f8a9cb3 # 测试号Kongdy 提供的)
secret: 6f270509224a7ae1296bbf1c8cb97aed secret: 4a1a04e07f6a4a0751b39c3064a92c8b
config-storage: config-storage:
type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取 type: RedisTemplate # 采用 RedisTemplate 操作 Redis会自动从 Spring 中获取
key-prefix: wa # Redis Key 的前缀 key-prefix: wa # Redis Key 的前缀
@@ -169,11 +193,34 @@ wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-sta
# 芋道配置项,设置当前项目所有自定义的配置 # 芋道配置项,设置当前项目所有自定义的配置
yudao: yudao:
voice:
default-provider: siliconflow
siliconflow:
enabled: true
api-key: sk-kcvifijrafkzxsmnxbgxspnxdvjiaawcbyoiqhmfobykynpx
base-url: https://api.siliconflow.cn
default-model: IndexTeam/IndexTTS-2
ice:
access-key-id: LTAI5tPV9Ag3csf41GZjaLTA
access-key-secret: kDqlGeJTKw6tJtFYiaY8vQTFuVIQDs
region-id: cn-hangzhou
bucket: muye-ai-chat
enabled: true
captcha:
enable: false # 关闭图片验证码,方便登录等接口的测试
security:
mock-enable: true
access-log:
enable: false
pay: pay:
order-notify-url: http://8.155.172.147/admin-api/pay/notify/order # 支付渠道的【支付】回调地址 order-notify-url: http://8.155.172.147/admin-api/pay/notify/order # 支付渠道的【支付】回调地址
refund-notify-url: http://8.155.172.147/admin-api/pay/notify/refund # 支付渠道的【退款】回调地址 refund-notify-url: http://8.155.172.147/admin-api/pay/notify/refund # 支付渠道的【退款】回调地址
transfer-notify-url: https://8.155.172.147/admin-api/pay/notify/transfer # 支付渠道的【转账】回调地址 transfer-notify-url: https://8.155.172.147/admin-api/pay/notify/transfer # 支付渠道的【转账】回调地址
demo: false # 开启演示模式 demo: false # 关闭演示模式
wxa-code:
env-version: develop # 小程序版本: 正式版为 "release";体验版为 "trial";开发版为 "develop"
wxa-subscribe-message:
miniprogram-state: developer # 跳转小程序类型:开发版为 "developer";体验版为 "trial"为;正式版为 "formal"
tencent-lbs-key: TVDBZ-TDILD-4ON4B-PFDZA-RNLKH-VVF6E # QQ 地图的密钥 https://lbs.qq.com/service/staticV2/staticGuide/staticDoc tencent-lbs-key: TVDBZ-TDILD-4ON4B-PFDZA-RNLKH-VVF6E # QQ 地图的密钥 https://lbs.qq.com/service/staticV2/staticGuide/staticDoc
justauth: justauth:

View File

@@ -269,7 +269,7 @@ yudao:
bucket: muye-ai-chat bucket: muye-ai-chat
enabled: true enabled: true
dify: dify:
api-url: http://8.155.172.147:8088 # Dify API 地址,请根据实际情况修改 api-url: http://127.0.0.1:8088 # Dify API 地址,请根据实际情况修改
timeout: 240 # 请求超时时间(秒) timeout: 240 # 请求超时时间(秒)
--- #################### 芋道相关配置 #################### --- #################### 芋道相关配置 ####################