fix: extract pure mat id
This commit is contained in:
parent
38a1510458
commit
6219459e3e
1 changed files with 2 additions and 2 deletions
|
|
@ -1858,7 +1858,7 @@ impl MaterialSetting {
|
||||||
let check_if_start_with_cc = mat_num > MATERIAL_INTER_GUARD as i64;
|
let check_if_start_with_cc = mat_num > MATERIAL_INTER_GUARD as i64;
|
||||||
|
|
||||||
if check_if_start_with_cc {
|
if check_if_start_with_cc {
|
||||||
mat_num - (cc * MATERIAL_INTER_GUARD as i64)
|
mat_num - (cc * 10000 as i64)
|
||||||
} else {
|
} else {
|
||||||
mat_num
|
mat_num
|
||||||
}
|
}
|
||||||
|
|
@ -1866,7 +1866,7 @@ impl MaterialSetting {
|
||||||
self.id.clone().as_i64().expect("not a number")
|
self.id.clone().as_i64().expect("not a number")
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
|
// println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
|
||||||
|
|
||||||
return match pure_mat_id {
|
return match pure_mat_id {
|
||||||
8000 => MaterialType::Brew,
|
8000 => MaterialType::Brew,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue