版本1.0.4 - 发布前准备
- 修复system.py缩进错误 - 优化前端页面样式(待重构) - 改进API接口结构 - 完善文档和自动化脚本 - 平台基本功能稳定运行
This commit is contained in:
@@ -13,7 +13,7 @@ from app.models import Topic, User
|
||||
router = APIRouter()
|
||||
|
||||
class PublishRequest(BaseModel):
|
||||
topic_id: int
|
||||
topic_id: str
|
||||
|
||||
@router.post("/create")
|
||||
async def create_publication(
|
||||
@@ -52,7 +52,7 @@ async def create_publication(
|
||||
|
||||
# 更新选题状态和发布时间
|
||||
topic.published_at = datetime.utcnow()
|
||||
topic.published_urls = urls
|
||||
topic.platform_urls = urls
|
||||
topic.status = "已发布"
|
||||
topic.updated_at = datetime.utcnow()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user