Skip to content

Commit dfd325b

Browse files
committed
v1
1 parent 0480d83 commit dfd325b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

terraps/src/game/tower.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ pub async fn tower_battle_finish(Json(payload): JSON) -> JSON {
275275

276276
for battle_info in get_keys(&battle_data["battleData"]["stats"]["extraBattleInfo"]) {
277277
if battle_info.starts_with("DETAILED") && battle_info.ends_with("legion_gain_reward_trap") {
278-
let infos = battle_info.split(',').collect::<Vec<&str>>();
278+
let infos = battle_info.split(',').collect::<Vec<_>>();
279279
trap.push(json!({
280280
"id": infos[1],
281281
"alias": infos[2],
@@ -436,7 +436,11 @@ pub async fn tower_settle_game() -> JSON {
436436
"id": "",
437437
"subGodCardId": "",
438438
},
439-
"halftime": {"count": 0, "candidate": [], "canGiveUp": false},
439+
"halftime": {
440+
"count": 0,
441+
"candidate": [],
442+
"canGiveUp": false
443+
},
440444
"trap": [],
441445
"raward": {},
442446
}

0 commit comments

Comments
 (0)