학습인증 IPIN 소스 수정

This commit is contained in:
lch 2021-06-09 01:10:57 +00:00
parent 19ad5757c8
commit 88937978c3
7 changed files with 30 additions and 22 deletions

View File

@ -273,13 +273,6 @@ namespace NP.FO.Controllers
}
vm.BoardCMTs = Dao.Get<BoardCMT>("cr.lectsdboardcmt", vm.LectSDBoard.bno);
return CView(vm);
}
public ActionResult Open(long croomlectno, long cmino)
{
ViewBag.lectno = croomlectno;
ViewBag.cmino = cmino;
return View(vm);
}
}
}
}

View File

@ -141,5 +141,12 @@ namespace NP.FO.Controllers
//오류 어쩌지?
}
}
public ActionResult PlayOpen(long lectno, long cmino)
{
ViewBag.lectno = lectno;
ViewBag.cmino = cmino;
return View();
}
}
}

View File

@ -717,7 +717,7 @@
<Content Include="Views\Home\PrivacyPolicy.cshtml" />
<Content Include="Views\Home\UsePolicy.cshtml" />
<Content Include="Views\Course\ApplyAgree.cshtml" />
<Content Include="Views\CRoom\Open.cshtml" />
<Content Include="Views\Open\PlayOpen.cshtml" />
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />

View File

@ -56,7 +56,7 @@
} else if (ViewBag.reason == "LectinningAuth") {
<text>
alert("인증완료");
location.href = "/CRoom/Open?croomlectno=@(ViewBag.lectno)&cmino=@(ViewBag.cmino)";
location.href = "http://" + location.hostname + "/Open/PlayOpen?lectno=@(ViewBag.lectno)&cmino=@(ViewBag.cmino)";
</text>
}
} else {

View File

@ -189,11 +189,13 @@
viewcontents(_cmino, false,@Model.croomlectno);
} else {
_authplatform = capResult.msg;
if (_authplatform == "1") {
if(_authplatform == "0"){
msg("학습인증수단이 없는 회원입니다. 정보수정을 통해 학습인증수단을 입력해주세요.");
} else if (_authplatform == "1") {
confirmtoggle(true, "해당 과정의 학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkipin()");
}else if(_authplatform == "2") {
} else if (_authplatform == "2") {
confirmtoggle(true, "해당 과정의 학습을 처음 시작할 때 본인인증이 필요합니다. 본인인증은 1회에 한 해 진행됩니다.<br/> 본인인증을 하시겠습니까?", "chkmobile()");
}
}
}
} else {
msg("휴대폰 번호가 공란입니다.<br/>정보수정을 통해 번호를 입력해주세요.");

View File

@ -23,6 +23,7 @@
<input type="hidden" name="di" id="di" value="@(u.di)" />
<input type="hidden" name="ci" id="ci" value="@(u.ci)" />
<input type="hidden" name="vssn" id="vssn" value="@(u.vssn)" />
<input type="hidden" name="authplatform" id="authplatform" value="@(u.authplatform.GetHashCode())" />
<table class="clsTable">
<tbody>
<tr><th>ID</th><td><p>@u.userid</p></td></tr>
@ -83,17 +84,22 @@
}
</td>
</tr>
<tr>
<tr id="authPlatform_IPIN" @(u.authplatform == AuthPlatform.Mobile ? "style=display:none;" : "")>
<th>학습인증수단</th>
<td>
<div class="mdfyBirth">
<input type="hidden" name="authplatform" id="authplatform" value="@(u.authplatform.GetHashCode())" />
<div id="authPlatform_IPIN" @(u.authplatform == AuthPlatform.Mobile ? "style=display:none;" : "")>
<p id="authPlatformName">I-PIN 인증</p><a href="#" onclick="certok3reqview('MOBI', 'AuthPlatformChange');" style="width:150px;">휴대폰 인증으로 변경</a>
</div>
<div id="authPlatform_Mobile" @(u.authplatform == AuthPlatform.IPIN ? "style=display:none;" : "") >
<p id="authPlatformName">휴대폰 인증</p><a href="#" onclick="certok3reqview('IPIN', 'AuthPlatformChange');" style="width:150px;">I-PIN 인증으로 변경</a>
</div>
<div class="mdfyBirth">
<p id="authPlatformName">I-PIN 인증</p>
<a href="#" onclick="certok3reqview('MOBI', 'AuthPlatformChange');" style="width:150px;margin-right:5px;">휴대폰 인증으로 변경</a>
</div>
</td>
</tr>
<tr id="authPlatform_Mobile" @(u.authplatform == AuthPlatform.IPIN ? "style=display:none;" : "") >
<th>학습인증수단</th>
<td>
<div class="mdfyBirth">
<p id="authPlatformName">휴대폰 인증</p>
<a href="#" onclick="certok3reqview('IPIN', 'AuthPlatformChange');" style="width:150px;">I-PIN 인증으로 변경</a>
</div>
</td>
</tr>