增加U盘登录

This commit is contained in:
hoteas
2022-05-05 16:07:01 +08:00
parent f0d4efd8fc
commit eb41162f3b
10 changed files with 270 additions and 12 deletions
+8 -8
View File
@@ -388,15 +388,15 @@ var DeclareCtr = Ctr{
res = append(res, article)
}
minMoney := 0
maxMoney := 0
minMoney := float64(0)
maxMoney := float64(0)
for _, v := range res {
if v.GetMap("declare") != nil {
if v.GetMap("declare").GetInt("money_scope_min") < minMoney {
minMoney = v.GetMap("declare").GetInt("money_scope_min")
if v.GetMap("declare").GetFloat64("money_scope_min") < minMoney {
minMoney = v.GetMap("declare").GetFloat64("money_scope_min")
}
if v.GetMap("declare").GetInt("money_scope_max") > maxMoney {
maxMoney = v.GetMap("declare").GetInt("money_scope_max")
if v.GetMap("declare").GetFloat64("money_scope_max") > maxMoney {
maxMoney = v.GetMap("declare").GetFloat64("money_scope_max")
}
}
}
@@ -410,11 +410,11 @@ var DeclareCtr = Ctr{
"del_flag": 0,
}
if maxMoney != minMoney {
seData["money_scope"] = ObjToStr(minMoney) + "-" + ObjToStr(maxMoney) + "万元"
seData["money_scope"] = ObjToStr(ObjToInt(minMoney)) + "-" + ObjToStr(ObjToInt(maxMoney)) + ""
} else if maxMoney == 0 {
seData["money_scope"] = ""
} else {
seData["money_scope"] = ObjToStr(maxMoney) + "万元"
seData["money_scope"] = ObjToStr(ObjToInt(maxMoney)) + ""
}
//匹配记录存储