mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Fix funny login bonus issue
This commit is contained in:
parent
e589f23885
commit
4fc0cbcfa3
1 changed files with 4 additions and 4 deletions
|
@ -27,8 +27,8 @@ lazy_static! {
|
|||
let mut info = object!{};
|
||||
let items = json::parse(include_str!("json/login_bonus.json")).unwrap();
|
||||
for (_i, data) in items.members().enumerate() {
|
||||
if info[data["masterReleaseLabelId"].to_string()].is_null() {
|
||||
info[data["masterReleaseLabelId"].to_string()] = object!{
|
||||
if info[data["id"].to_string()].is_null() {
|
||||
info[data["id"].to_string()] = object!{
|
||||
info: data.clone(),
|
||||
days: []
|
||||
};
|
||||
|
@ -36,10 +36,10 @@ lazy_static! {
|
|||
}
|
||||
let days = json::parse(include_str!("json/login_bonus_reward_setting.json")).unwrap();
|
||||
for (_i, data) in days.members().enumerate() {
|
||||
if info[data["masterReleaseLabelId"].to_string()].is_null() {
|
||||
if info[data["masterLoginBonusId"].to_string()].is_null() {
|
||||
continue;
|
||||
}
|
||||
info[data["masterReleaseLabelId"].to_string()]["days"].push(data.clone()).unwrap();
|
||||
info[data["masterLoginBonusId"].to_string()]["days"].push(data.clone()).unwrap();
|
||||
}
|
||||
let mut real_info = object!{};
|
||||
for (_i, data) in info.entries().enumerate() {
|
||||
|
|
Loading…
Add table
Reference in a new issue