1、新增课程默认封面 2、新增资源修改功能

This commit is contained in:
2025-07-24 16:49:58 +08:00
parent 6974aab6c4
commit 35a3eeb312
3 changed files with 26 additions and 19 deletions

View File

@ -77,7 +77,8 @@ public class LessonTaskService {
@Transactional
@CacheEvict(value = { "lessonTasks", "lessonTask" }, allEntries = true)
public LessonTask update(Long id, LessonTaskRequest request) {
// logger.info("开始更新课程任务 - 任务ID: {}, 进度状态: {}", id, request.getProgressStatus());
// logger.info("开始更新课程任务 - 任务ID: {}, 进度状态: {}", id,
// request.getProgressStatus());
LessonTask task = findById(id);
// 只更新非空字段

View File

@ -1,5 +1,5 @@
# 数据库配置
spring.datasource.url=jdbc:mysql://8.137.89.177:3306/jinduguanli?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
spring.datasource.url=jdbc:mysql://8.137.89.177:3306/jinduguanli?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
spring.datasource.username=jinduguanli
spring.datasource.password=root041218
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

View File

@ -1,6 +1,12 @@
server:
port: 1218
ssl:
enabled: true
key-store: /root/jinduguanli/key-store/service5.fenshenzhike.com.pfx
key-store-password: "lt0w2ghu"
key-store-type: PKCS12
spring:
main:
banner-mode: console
@ -18,10 +24,10 @@ spring:
format_sql: true
use_sql_comments: true
redis:
host: 8.137.89.177
host: localhost
port: 6379
database: 0
timeout: 10000
timeout: 10s
password: # 如果Redis设置了密码需要在这里添加
lettuce:
pool: