누락된 데이터 재 커밋

This commit is contained in:
김민서 2024-04-01 17:56:32 +09:00
parent 9d26d5dc06
commit d753d3e2d0
1 changed files with 17 additions and 15 deletions

View File

@ -29,23 +29,25 @@ namespace Server.Service
if (req.is_clear) if (req.is_clear)
{ {
if (req.chapter_id == 1) if(story == null || story.chapter_data_id < req.chapter_id)
{ {
story = new StoryProgress(); if (req.chapter_id == 1)
story.user_id = user.id; {
story.story_data_id = req.story_id; story = new StoryProgress();
story.chapter_data_id = req.chapter_id; story.user_id = user.id;
Statics.storyProgressSQL.Insert(story); story.story_data_id = req.story_id;
story.chapter_data_id = req.chapter_id;
Statics.storyProgressSQL.Insert(story);
}
else
{
story.chapter_data_id++;
chapter = story.chapter_data_id;
Statics.storyProgressSQL.Update(story);
}
//보상 지급 추가할것.
} }
else //클리어 성공 로그용, 기본보상 지급할것
{
story.chapter_data_id++;
chapter = story.chapter_data_id;
Statics.storyProgressSQL.Update(story);
}
//보상 지급 추가할것.
} }
else else
{ {