bug fixed
This commit is contained in:
parent
c3b1ad2023
commit
86998f183d
|
@ -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 {
|
||||||
|
|
|
@ -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| {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user