Skip to content

Commit 82af25a

Browse files
committed
fix: unit story read error
1 parent 5dbbecc commit 82af25a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

autopcr/module/modules/story.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ async def do_task(self, client: pcrclient):
7575
if story.story_group_id == 1255: # 忽略魔姬剧情
7676
continue
7777
if (
78+
story.read_process_flag and
7879
story.story_id not in read_story and
7980
(story.pre_story_id in read_story or now >= db.parse_time(story.force_unlock_time)) and
8081
(story.pre_story_id_2 in read_story or now >= db.parse_time(story.force_unlock_time_2)) and
8182
story.story_group_id in client.data.unit_love_data and
82-
client.data.unit_love_data[story.story_group_id].love_level >= story.love_level
83+
client.data.unit_love_data[story.story_group_id].love_level >= story.love_level and
84+
apiclient.datetime >= db.parse_time(story.start_time) and
85+
apiclient.datetime <= db.parse_time(story.end_time)
8386
):
8487
await client.read_story(story.story_id)
8588
read_story.add(story.story_id)

0 commit comments

Comments
 (0)