版本1.0.4 - 发布前准备
- 修复system.py缩进错误 - 优化前端页面样式(待重构) - 改进API接口结构 - 完善文档和自动化脚本 - 平台基本功能稳定运行
This commit is contained in:
@@ -14,7 +14,7 @@ from pathlib import Path
|
||||
from typing import Dict, List
|
||||
from dataclasses import dataclass, asdict
|
||||
|
||||
PROJECT_ROOT = Path('/root/.openclaw/workspaces/yzr-yxl/projects/yu-zhi-ran')
|
||||
PROJECT_ROOT = Path('/root/openclaw-workspace/projects/yu-zhi-ran')
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
from scripts.compliance_checker import check_article
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import json, datetime, logging, sys, subprocess
|
||||
from pathlib import Path
|
||||
from typing import Dict
|
||||
|
||||
PROJECT_ROOT = Path('/root/.openclaw/workspaces/yzr-yxl/projects/yu-zhi-ran')
|
||||
PROJECT_ROOT = Path('/root/openclaw-workspace/projects/yu-zhi-ran')
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
DATA_DIR = PROJECT_ROOT / "automation" / "data"
|
||||
|
||||
@@ -23,7 +23,7 @@ from PIL import Image, ImageDraw, ImageFont
|
||||
import random
|
||||
|
||||
# 确保项目根目录在路径中
|
||||
PROJECT_ROOT = Path('/root/.openclaw/workspaces/yzr-yxl/projects/yu-zhi-ran')
|
||||
PROJECT_ROOT = Path('/root/openclaw-workspace/projects/yu-zhi-ran')
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
# 加载配置
|
||||
|
||||
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
from typing import Dict, List
|
||||
import argparse
|
||||
|
||||
PROJECT_ROOT = Path('/root/.openclaw/workspaces/yzr-yxl/projects/yu-zhi-ran')
|
||||
PROJECT_ROOT = Path('/root/openclaw-workspace/projects/yu-zhi-ran')
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
DATA_DIR = PROJECT_ROOT / "automation" / "data"
|
||||
|
||||
@@ -96,7 +96,7 @@ class WeComNotifier:
|
||||
Args:
|
||||
message: 要发送的消息
|
||||
account: OpenClaw账户ID(对应openclaw.json中的channels.wecom.accounts key)
|
||||
默认为None,自动根据项目选择:yzr-yxl项目用"yzr-yxl",main项目用"main"
|
||||
默认为None,自动根据项目选择:yu-zhi-ran项目用"yuzhiran",main项目用"main"
|
||||
"""
|
||||
try:
|
||||
import subprocess
|
||||
@@ -105,8 +105,8 @@ class WeComNotifier:
|
||||
if account is None:
|
||||
# 根据项目根目录推断账户(PROJECT_ROOT已定义)
|
||||
cwd = str(PROJECT_ROOT)
|
||||
if 'yzr-yxl' in cwd:
|
||||
account = "yzr-yxl"
|
||||
if 'yu-zhi-ran' in cwd:
|
||||
account = "yuzhiran"
|
||||
elif 'agent-lt' in cwd:
|
||||
account = "agent-lt"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user