debug: gen table
This commit is contained in:
parent
bcfab1ba89
commit
38a1510458
1 changed files with 7 additions and 1 deletions
|
|
@ -1848,7 +1848,11 @@ impl CommonRecipeTrait for MaterialSetting {
|
|||
impl MaterialSetting {
|
||||
pub fn get_definition_type(&mut self, country_code: Option<String>) -> MaterialType {
|
||||
let pure_mat_id = if country_code.is_some() {
|
||||
let cc = country_code.unwrap().parse::<i64>().expect("not a number");
|
||||
let cc = country_code
|
||||
.clone()
|
||||
.unwrap()
|
||||
.parse::<i64>()
|
||||
.expect("not a number");
|
||||
let mat_num = self.id.clone().as_i64().unwrap();
|
||||
|
||||
let check_if_start_with_cc = mat_num > MATERIAL_INTER_GUARD as i64;
|
||||
|
|
@ -1862,6 +1866,8 @@ impl MaterialSetting {
|
|||
self.id.clone().as_i64().expect("not a number")
|
||||
};
|
||||
|
||||
println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
|
||||
|
||||
return match pure_mat_id {
|
||||
8000 => MaterialType::Brew,
|
||||
8001 => MaterialType::Clean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue