bug fixed

This commit is contained in:
병준 박 2022-09-21 14:38:13 +00:00
parent c3b1ad2023
commit 86998f183d
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ impl Api {
} }
let user_id = r.user_id.unwrap_or(0); let user_id = r.user_id.unwrap_or(0);
let url = r.url.unwrap_or("".to_string()); let url = r.url.unwrap_or_else(|| "".to_string());
let balance = r.balance.unwrap_or(0.00); let balance = r.balance.unwrap_or(0.00);
Ok(models::GetGameUrlResponse { Ok(models::GetGameUrlResponse {

View File

@ -290,7 +290,7 @@ impl Service {
nickname: m.member.nickname.clone(), nickname: m.member.nickname.clone(),
site_username: m.member.username.clone(), site_username: m.member.username.clone(),
group_key: m.member.parent_member.map(|p| p.username.clone()), group_key: m.member.parent_member.map(|p| p.username.clone()),
amount: m.balance_sum, amount: 0.0,
request_key: None, request_key: None,
}; };
let res = self.game_api.get_game_url(req).await.map_err(|e| { let res = self.game_api.get_game_url(req).await.map_err(|e| {