diff --git a/server-rs/crates/api-server/src/runtime_profile.rs b/server-rs/crates/api-server/src/runtime_profile.rs index acd944add..0677ef55b 100644 --- a/server-rs/crates/api-server/src/runtime_profile.rs +++ b/server-rs/crates/api-server/src/runtime_profile.rs @@ -1500,6 +1500,9 @@ fn is_runtime_profile_domain_error(error: &SpacetimeClientError) -> bool { } } +// TODO(refactor): 兑换码链路尚未接入 typed error code,仍靠中文文案匹配判 400; +// 后续按会员链路(RuntimeProfileMembershipErrorCode + SpacetimeClientError::ProcedureRejected) +// 的做法,让 module 侧兑换码拒绝也携带机器可读错误码。 fn is_runtime_profile_redeem_code_domain_error(message: &str) -> bool { matches!( message,