This commit is contained in:
2026-05-14 14:21:17 +08:00
parent 7a75f5d612
commit d33c937ebc
191 changed files with 1916 additions and 1549 deletions

View File

@@ -16,7 +16,7 @@ pub struct CustomWorldProfile {
owner_user_id: String,
// 作品公开编号是稳定分享键,第一次发布时分配,后续重复发布沿用。
public_work_code: Option<String>,
// 作者公开百梦号在发布时固化到作品真相,供广场读模型与搜索结果直接展示。
// 作者公开陶泥号在发布时固化到作品真相,供广场读模型与搜索结果直接展示。
author_public_user_code: Option<String>,
source_agent_session_id: Option<String>,
publication_status: CustomWorldPublicationStatus,

View File

@@ -498,7 +498,7 @@ fn compile_match3d_draft_tx(
profile_id: input.profile_id.clone(),
owner_user_id: input.owner_user_id.clone(),
source_session_id: input.session_id.clone(),
author_display_name: clean_string(&input.author_display_name, "百梦"),
author_display_name: clean_string(&input.author_display_name, "陶泥儿"),
game_name,
theme_text: config.theme_text.clone(),
summary_text,

View File

@@ -1006,7 +1006,7 @@ fn save_puzzle_generated_images_tx(
draft = replace_puzzle_level(&draft, next_level).map_err(|error| error.to_string())?;
let saved_at = Timestamp::from_micros_since_unix_epoch(input.saved_at_micros);
let next_stage = if build_result_preview(&draft, Some("百梦")).publish_ready {
let next_stage = if build_result_preview(&draft, Some("陶泥儿")).publish_ready {
PuzzleAgentStage::ReadyToPublish
} else {
PuzzleAgentStage::ImageRefining
@@ -1071,7 +1071,7 @@ fn save_puzzle_ui_background_tx(
let draft = replace_puzzle_level(&draft, next_level).map_err(|error| error.to_string())?;
let saved_at = Timestamp::from_micros_since_unix_epoch(input.saved_at_micros);
let next_stage = if build_result_preview(&draft, Some("百梦")).publish_ready {
let next_stage = if build_result_preview(&draft, Some("陶泥儿")).publish_ready {
PuzzleAgentStage::ReadyToPublish
} else {
PuzzleAgentStage::ImageRefining
@@ -1166,7 +1166,7 @@ fn select_puzzle_cover_image_tx(
};
let draft = replace_puzzle_level(&draft, next_level).map_err(|error| error.to_string())?;
let selected_at = Timestamp::from_micros_since_unix_epoch(input.selected_at_micros);
let next_stage = if build_result_preview(&draft, Some("百梦")).publish_ready {
let next_stage = if build_result_preview(&draft, Some("陶泥儿")).publish_ready {
PuzzleAgentStage::ReadyToPublish
} else {
PuzzleAgentStage::ImageRefining
@@ -2328,7 +2328,7 @@ fn build_puzzle_agent_session_snapshot(
let messages = list_session_messages(ctx, &row.session_id);
let result_preview = draft
.as_ref()
.map(|value| build_result_preview(value, Some("百梦")));
.map(|value| build_result_preview(value, Some("陶泥儿")));
Ok(PuzzleAgentSessionSnapshot {
session_id: row.session_id.clone(),
@@ -2533,7 +2533,7 @@ fn upsert_puzzle_draft_work_profile(
profile_id,
owner_user_id.to_string(),
Some(session_id.to_string()),
"百梦".to_string(),
"陶泥儿".to_string(),
draft,
updated_at_micros,
)

View File

@@ -578,7 +578,7 @@ pub fn get_profile_task_center(
}
}
// 领奖记录与点流水在同一事务内写入,避免任务状态和钱包余额漂移。
// 领奖记录与点流水在同一事务内写入,避免任务状态和钱包余额漂移。
#[spacetimedb::procedure]
pub fn claim_profile_task_reward_and_return(
ctx: &mut ProcedureContext,
@@ -852,7 +852,7 @@ pub fn get_profile_referral_invite_center(
}
}
// 填码绑定、每日邀请者奖励上限和双方点发放都在同一事务内完成。
// 填码绑定、每日邀请者奖励上限和双方点发放都在同一事务内完成。
#[spacetimedb::procedure]
pub fn redeem_profile_referral_invite_code(
ctx: &mut ProcedureContext,

View File

@@ -464,7 +464,7 @@ fn compile_square_hole_draft_tx(
work_id: input.profile_id.clone(),
owner_user_id: input.owner_user_id.clone(),
source_session_id: input.session_id.clone(),
author_display_name: clean_string(&input.author_display_name, "百梦"),
author_display_name: clean_string(&input.author_display_name, "陶泥儿"),
game_name: draft.game_name.clone(),
theme_text: config.theme_text.clone(),
twist_rule: config.twist_rule.clone(),

View File

@@ -947,7 +947,7 @@ fn compile_visual_novel_work_profile_tx(
work_id: clean_optional(&input.work_id).unwrap_or_else(|| input.profile_id.clone()),
owner_user_id: input.owner_user_id.clone(),
source_session_id: input.session_id.clone(),
author_display_name: clean_string(&input.author_display_name, "百梦"),
author_display_name: clean_string(&input.author_display_name, "陶泥儿"),
work_title,
work_description,
tags_json: to_json_string(&normalize_tags(tags)),