修复买断制购买分支遗留的 Rust 格式偏差
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
- server-rs/crates/pingora-gateway/src/main.rs:播放会话代理测试中的 assert! 断言按 rustfmt 收成单行。 - server-rs/crates/spacetime-client/src/active.rs:游戏分发购买相关 use 导入列表按 rustfmt 重新断行。 - server-rs/crates/spacetime-client/src/active/mapper.rs:游戏分发记录类型与映射函数的 pub use 导入列表按 rustfmt 重新断行(两处)。 - server-rs/crates/spacetime-client/src/active/mapper/game_distribution.rs:购买结果映射的 result.purchase.map 链式调用按 rustfmt 换行。 - 仅格式变动,不改变行为;改动前 npm run check:rustfmt 在上一提交8d8e74ca6报这 4 个文件,改动后转绿(master96859666f上同为绿)。
This commit is contained in:
@@ -4132,10 +4132,7 @@ mod tests {
|
||||
"/api",
|
||||
] {
|
||||
assert!(!is_play_session_proxy_path(path), "path: {path}");
|
||||
assert!(
|
||||
!route_clears_cookie(&classify_path(path)),
|
||||
"path: {path}"
|
||||
);
|
||||
assert!(!route_clears_cookie(&classify_path(path)), "path: {path}");
|
||||
assert_eq!(
|
||||
classify_path(path),
|
||||
RouteDecision::Proxy {
|
||||
|
||||
@@ -29,11 +29,10 @@ pub use game_distribution::{
|
||||
GameDistributionFailUploadRecordInput, GameDistributionGetGameRecordInput,
|
||||
GameDistributionOwnerGameListRecordInput, GameDistributionPlayCountIncrementRecordInput,
|
||||
GameDistributionPublicGameListRecordInput, GameDistributionPurchaseRecordInput,
|
||||
GameDistributionRejectRecordInput,
|
||||
GameDistributionRestoreRecordInput, GameDistributionReviewGameListRecordInput,
|
||||
GameDistributionReviewModerationRecordInput, GameDistributionSubmitReviewRecordInput,
|
||||
GameDistributionSuspendRecordInput, GameDistributionUnpublishRecordInput,
|
||||
GameDistributionUpdateMetadataRecordInput,
|
||||
GameDistributionRejectRecordInput, GameDistributionRestoreRecordInput,
|
||||
GameDistributionReviewGameListRecordInput, GameDistributionReviewModerationRecordInput,
|
||||
GameDistributionSubmitReviewRecordInput, GameDistributionSuspendRecordInput,
|
||||
GameDistributionUnpublishRecordInput, GameDistributionUpdateMetadataRecordInput,
|
||||
};
|
||||
#[path = "active/external_generation.rs"]
|
||||
pub mod external_generation;
|
||||
|
||||
@@ -99,11 +99,10 @@ pub use self::game_distribution::{
|
||||
GameDistributionAdminVersionRecord, GameDistributionGameRecord,
|
||||
GameDistributionOwnerGameRecord, GameDistributionPublicGameRecord,
|
||||
GameDistributionPurchaseRecord, GameDistributionRatingSummaryRecord,
|
||||
GameDistributionReviewGameListRecord,
|
||||
GameDistributionReviewGameRecord, GameDistributionReviewModerationOperationRecord,
|
||||
GameDistributionReviewModerationRecord, GameDistributionUserReviewListRecord,
|
||||
GameDistributionUserReviewRecord, GameDistributionUserReviewSaveRecord,
|
||||
GameDistributionVersionRecord,
|
||||
GameDistributionReviewGameListRecord, GameDistributionReviewGameRecord,
|
||||
GameDistributionReviewModerationOperationRecord, GameDistributionReviewModerationRecord,
|
||||
GameDistributionUserReviewListRecord, GameDistributionUserReviewRecord,
|
||||
GameDistributionUserReviewSaveRecord, GameDistributionVersionRecord,
|
||||
};
|
||||
pub use self::llm_router_account::{LlmRouterAccountRecord, LlmRouterAccountUpsertRecordInput};
|
||||
pub use self::payment::{
|
||||
@@ -171,8 +170,8 @@ pub(crate) use self::game_distribution::{
|
||||
map_game_distribution_admin_game_list_result, map_game_distribution_game_result,
|
||||
map_game_distribution_owner_game_list_result, map_game_distribution_public_game_list_result,
|
||||
map_game_distribution_public_game_result, map_game_distribution_purchase_result,
|
||||
map_game_distribution_review_list_result,
|
||||
map_game_distribution_version_result, map_review_moderation_operation, map_user_review,
|
||||
map_game_distribution_review_list_result, map_game_distribution_version_result,
|
||||
map_review_moderation_operation, map_user_review,
|
||||
};
|
||||
pub(crate) use self::payment::{
|
||||
map_payment_api_key_list_result, map_payment_api_key_result, map_payment_app_list_result,
|
||||
|
||||
@@ -472,14 +472,16 @@ pub(crate) fn map_game_distribution_purchase_result(
|
||||
return Err(SpacetimeClientError::procedure_failed(result.error_message));
|
||||
}
|
||||
Ok((
|
||||
result.purchase.map(|purchase| GameDistributionPurchaseRecord {
|
||||
purchase_id: purchase.purchase_id,
|
||||
game_id: purchase.game_id,
|
||||
user_id: purchase.user_id,
|
||||
price_mud_points: purchase.price_mud_points,
|
||||
wallet_ledger_id: purchase.wallet_ledger_id,
|
||||
created_at: shared_kernel::format_timestamp_micros(purchase.created_at_micros),
|
||||
}),
|
||||
result
|
||||
.purchase
|
||||
.map(|purchase| GameDistributionPurchaseRecord {
|
||||
purchase_id: purchase.purchase_id,
|
||||
game_id: purchase.game_id,
|
||||
user_id: purchase.user_id,
|
||||
price_mud_points: purchase.price_mud_points,
|
||||
wallet_ledger_id: purchase.wallet_ledger_id,
|
||||
created_at: shared_kernel::format_timestamp_micros(purchase.created_at_micros),
|
||||
}),
|
||||
result.wallet_balance,
|
||||
result.replayed,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user