补充(会员错误):兑换码链路留 TODO 接入 typed error

- is_runtime_profile_redeem_code_domain_error 顶部注明仍靠中文文案匹配判 400
- 指明后续按 RuntimeProfileMembershipErrorCode + ProcedureRejected 的做法改造
This commit is contained in:
2026-10-04 13:19:42 +08:00
parent 68c8544a15
commit fdf636ce95
@@ -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,