--- lbbs/src/article_post.c 2025/06/13 12:17:21 1.4 +++ lbbs/src/article_post.c 2025/06/13 13:39:46 1.5 @@ -54,7 +54,7 @@ int article_post(SECTION_LIST *p_section moveto(21, 1); prints("发表文章于 %s[%s] 讨论区", p_section->stitle, p_section->sname); moveto(22, 1); - prints("文章标题: %s", (title[0] == '\0' ? "[无]" : title)); + prints("标题: %s", (title[0] == '\0' ? "[无]" : title)); moveto(23, 1); prints("使用第 %d 个签名", sign_id); @@ -150,6 +150,11 @@ int article_post(SECTION_LIST *p_section break; } } + + if (toupper(ch) != 'T') + { + break; + } } // editor_data_save(p_editor_data, p_data_new, data_new_len); @@ -176,12 +181,14 @@ int article_modify(SECTION_LIST *p_secti log_error("article_cache_load(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); return -2; } + p_editor_data = editor_data_load(cache.p_data); if (p_editor_data == NULL) { log_error("editor_data_load(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); return -2; } + if (article_cache_unload(&cache) < 0) { log_error("article_cache_unload(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); @@ -191,6 +198,7 @@ int article_modify(SECTION_LIST *p_secti editor_display(p_editor_data); // editor_data_save(p_editor_data, p_data_new, data_new_len); + log_common("Debug: modify article\n"); editor_data_cleanup(p_editor_data); @@ -212,12 +220,14 @@ int article_reply(SECTION_LIST *p_sectio log_error("article_cache_load(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); return -2; } + p_editor_data = editor_data_load(cache.p_data); if (p_editor_data == NULL) { log_error("editor_data_load(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); return -2; } + if (article_cache_unload(&cache) < 0) { log_error("article_cache_unload(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid); @@ -227,6 +237,7 @@ int article_reply(SECTION_LIST *p_sectio editor_display(p_editor_data); // editor_data_save(p_editor_data, p_data_new, data_new_len); + log_common("Debug: reply article\n"); editor_data_cleanup(p_editor_data);