chore: Clean up and refactor codebase for improved maintainability
- Removed obsolete command-line test parameters from `run_cli.py` to streamline functionality. - Introduced a new `ocr_preprocess.py` module for unified OCR image preprocessing, enhancing recognition stability. - Updated various components to utilize the new preprocessing function, improving code organization and readability. - Adjusted configuration values in `config.json` for better performance and consistency. - Added comprehensive technical documentation for the Douyin project, detailing code modification standards and operational guidelines. - Cleaned up excessive blank lines across multiple files to enhance overall readability.
This commit is contained in:
1 parent
efe6e2252f
commit
223c127e11
70 files changed
+17121
-1752
No files matched your search
+2
-4
@@ -677,15 +677,13 @@ async function startRun() {
|
||||
async function testYanghao() {
|
||||
const deviceId = $("device").value || "";
|
||||
const seconds = parseInt($("yanghao_recommend_duration_seconds").value || "60", 10);
|
||||
await apiPost("/api/test-yanghao", { device_id: deviceId, seconds });
|
||||
appendLog([`[WEB] 已启动测试养号:device=${deviceId || '(auto)'} seconds=${seconds}`]);
|
||||
// 已移除测试养号功能
|
||||
}
|
||||
|
||||
async function testComment() {
|
||||
const deviceId = $("device").value || "";
|
||||
const text = "";
|
||||
await apiPost("/api/test-comment", { device_id: deviceId, text });
|
||||
appendLog([`[WEB] 已启动测试评论:device=${deviceId || '(auto)'}${text ? ' text=自定义' : ''}`]);
|
||||
// 已移除测试评论功能
|
||||
}
|
||||
|
||||
async function stopRun() {
|
||||
|
||||
Reference in new issue
Block a user