누락된 데이터 재 커밋
This commit is contained in:
parent
9d26d5dc06
commit
d753d3e2d0
|
|
@ -29,23 +29,25 @@ namespace Server.Service
|
|||
|
||||
if (req.is_clear)
|
||||
{
|
||||
if (req.chapter_id == 1)
|
||||
if(story == null || story.chapter_data_id < req.chapter_id)
|
||||
{
|
||||
story = new StoryProgress();
|
||||
story.user_id = user.id;
|
||||
story.story_data_id = req.story_id;
|
||||
story.chapter_data_id = req.chapter_id;
|
||||
Statics.storyProgressSQL.Insert(story);
|
||||
if (req.chapter_id == 1)
|
||||
{
|
||||
story = new StoryProgress();
|
||||
story.user_id = user.id;
|
||||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue