增加U盘登录
This commit is contained in:
@@ -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)) + ""
|
||||
}
|
||||
|
||||
//匹配记录存储
|
||||
|
||||
Reference in New Issue
Block a user