🐛 修复了迁移旧数据库时因枯萎作物报错的BUG
This commit is contained in:
parent
475865f1e9
commit
d42f0aa433
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"date": "202505",
|
"date": "202506",
|
||||||
"exp_max": 50,
|
"exp_max": 50,
|
||||||
"exp_min": 5,
|
"exp_min": 5,
|
||||||
"point_max": 2000,
|
"point_max": 2000,
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"exp": 25,
|
"exp": 25,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"蜜思桃": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"5":
|
"5":
|
||||||
@ -26,52 +26,65 @@
|
|||||||
"exp": 50,
|
"exp": 50,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"香粽龙舟": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"7":
|
"7":
|
||||||
{
|
{
|
||||||
"point": 7000,
|
"point": 12000,
|
||||||
"exp": 50,
|
"exp": 75,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"园艺世": 1,
|
||||||
|
"蜜思桃": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"10":
|
"10":
|
||||||
{
|
{
|
||||||
"point": 7000,
|
"point": 12000,
|
||||||
"exp": 50,
|
"vipPoint": 100,
|
||||||
|
"exp": 100,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"园艺世": 1,
|
||||||
|
"蜜思桃": 1,
|
||||||
|
"香粽龙舟": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"15":
|
"15":
|
||||||
{
|
{
|
||||||
"point": 7000,
|
"point": 12000,
|
||||||
"exp": 50,
|
"vipPoint": 200,
|
||||||
|
"exp": 125,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"园艺世": 3,
|
||||||
|
"蜜思桃": 3,
|
||||||
|
"香粽龙舟": 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"20":
|
"20":
|
||||||
{
|
{
|
||||||
"point": 7000,
|
"point": 15000,
|
||||||
"exp": 50,
|
"vipPoint": 500,
|
||||||
|
"exp": 150,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"园艺世": 5,
|
||||||
|
"蜜思桃": 5,
|
||||||
|
"香粽龙舟": 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"25":
|
"25":
|
||||||
{
|
{
|
||||||
"point": 7000,
|
"point": 20000,
|
||||||
"exp": 50,
|
"vipPoint": 1000,
|
||||||
|
"exp": 200,
|
||||||
"plant":
|
"plant":
|
||||||
{
|
{
|
||||||
"胡萝卜": 3
|
"园艺世": 10,
|
||||||
|
"蜜思桃": 10,
|
||||||
|
"香粽龙舟": 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -117,9 +117,14 @@ class CUserSoilDB(CSqlManager):
|
|||||||
data = farmInfo.get(key)
|
data = farmInfo.get(key)
|
||||||
if not data:
|
if not data:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if data == ",,,4,":
|
||||||
|
continue
|
||||||
|
|
||||||
parts = data.split(",")
|
parts = data.split(",")
|
||||||
if len(parts) < 3:
|
if len(parts) < 3:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
name = parts[0]
|
name = parts[0]
|
||||||
pt = int(parts[1])
|
pt = int(parts[1])
|
||||||
mt = int(parts[2])
|
mt = int(parts[2])
|
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user