This commit is contained in:
parent
885d622e84
commit
fc21595eac
|
|
@ -67,7 +67,7 @@ namespace NP.BO.Controllers
|
|||
//0: 정상(로그인성공), 1: 정상(외부아이피), 2: 비밀번호오류, 3: 아이디오류, 4: 외부아이피차단, 5: 퇴사자, 6: 사용안함, 7: 크래킹공격
|
||||
if (u.status != 1) { LoginStatus = 6; }
|
||||
//else if (u.RetireDate != null) { LoginStatus = 5; }
|
||||
else if (!"192.168.0.56,127.0.0.1,59.150.105.198".Contains(SUserInfo.LoginIP) && !u.userpass.Equals(NP.Base.Lib.KISA_SHA256.SHA256Hash(vm.User.userpass.Trim()))) { LoginStatus = 2; }
|
||||
else if (!"192.168.1.13,192.168.0.56,127.0.0.1,59.150.105.198".Contains(SUserInfo.LoginIP) && !u.userpass.Equals(NP.Base.Lib.KISA_SHA256.SHA256Hash(vm.User.userpass.Trim()))) { LoginStatus = 2; }
|
||||
else
|
||||
{
|
||||
//var isIntranet = false;
|
||||
|
|
|
|||
|
|
@ -166,16 +166,5 @@
|
|||
<Name>Model</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="INIPAY50Lib">
|
||||
<Guid>{3D526659-3918-491A-8FA9-A1829C0447BC}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
|
|
@ -616,54 +616,54 @@ namespace NP.Base.Controllers
|
|||
//{
|
||||
#endregion
|
||||
//부분취소
|
||||
INIPAY50Lib.INItx50 INIpay = new INIPAY50Lib.INItx50();
|
||||
int intPInst = INIpay.Initialize("");
|
||||
INIpay.SetField(ref intPInst, "pgid", "INIpayRPAY");
|
||||
INIpay.SetField(ref intPInst, "spgip", "203.238.3.10");//예비 PG IP (고정)
|
||||
INIpay.SetField(ref intPInst, "mid", GetConfig("pginfo").Split('|')[1]);//상점아이디
|
||||
INIpay.SetField(ref intPInst, "type", "repay");
|
||||
|
||||
//**************************************************************************************************
|
||||
//* admin 은 키패스워드 변수명입니다. 수정하시면 안됩니다. 1111의 부분만 수정해서 사용하시기 바랍니다.
|
||||
//* 키패스워드는 상점관리자 페이지(https://iniweb.inicis.com)의 비밀번호가 아닙니다. 주의해 주시기 바랍니다.
|
||||
//* 키패스워드는 숫자 4자리로만 구성됩니다. 이 값은 키파일 발급시 결정됩니다.
|
||||
//* 키패스워드 값을 확인하시려면 상점측에 발급된 키파일 안의 readme.txt 파일을 참조해 주십시오.
|
||||
//**************************************************************************************************
|
||||
INIpay.SetField(ref intPInst, "admin", GetConfig("pginfo").Split('|')[3]);
|
||||
INIpay.SetField(ref intPInst, "currency", "WON");
|
||||
INIpay.SetField(ref intPInst, "oldTid", p.pgkey);//취소할 원거래번호(TID)
|
||||
INIpay.SetField(ref intPInst, "price", p.newrefundamt.ToString());//취소할 금액
|
||||
INIpay.SetField(ref intPInst, "confirm_price", (p.payamt - p.refundamt - p.newrefundamt).ToString());//이전승인금액(최초승인금액-부분취소금액)-부분취소금액
|
||||
//INIpay.SetField(ref intPInst, "Tax", Request["tax"]);//부가세
|
||||
//INIpay.SetField(ref intPInst, "taxfree", Request["taxfree"]);//비과세
|
||||
INIpay.SetField(ref intPInst, "buyeremail", p.email);//취소 사유?
|
||||
//INIpay.SetField(ref intPInst, "no_acct", Request["kbno"]);//국민은행계좌이체시 취소 환불계좌번호
|
||||
//INIpay.SetField(ref intPInst, "nm_acct", Request["kbname"]);//국민은행계좌이체시 취소 환불계좌주명
|
||||
INIpay.SetField(ref intPInst, "debug", "false");//로그모드("true"로 설정하면 상세한 로그를 남김)
|
||||
|
||||
//5. 취소 요청 #
|
||||
INIpay.StartAction(ref intPInst);
|
||||
//6. 취소 결과 #
|
||||
p.cancelcode = INIpay.GetResult(ref intPInst, "tid");//부분취소거래번호
|
||||
String resultcode = INIpay.GetResult(ref intPInst, "resultcode");//결과코드 ("00"이면 취소성공)
|
||||
if (resultcode != "00")
|
||||
{
|
||||
return JsonOK(0);
|
||||
}
|
||||
//String resultmsg = INIpay.GetResult(ref intPInst, "resultmsg");//결과내용
|
||||
//String otid = INIpay.GetResult(ref intPInst, "PRTC_TID");//원 거래번호
|
||||
//String cancelamt = INIpay.GetResult(ref intPInst, "PRTC_Price");//부분취소금액
|
||||
//String finalamt = INIpay.GetResult(ref intPInst, "PRTC_Remains");//재승인금액
|
||||
//String canceltype = INIpay.GetResult(ref intPInst, "PRTC_Type");//부분취소구분(0:재승인,1:부분취소)
|
||||
p.cancelcnt= GetInt(INIpay.GetResult(ref intPInst, "PRTC_Cnt"));//부분취소 요청횟수
|
||||
|
||||
//pay 업데이트(rstatus,cancelcnt,refundamt)
|
||||
//payitem 업데이트(rstatus,pgkey,cancelcode,cancelmsg,canceltype,refundamt,refundtime?,refundtimereal?)
|
||||
//lect,exam(취소)
|
||||
|
||||
//lect 업데이트
|
||||
//return JsonBack(new JsonRtn() { code = 1000, obj = resultcode + ":" + resultmsg + ",camt:" + cancelamt + ", famt: " + finalamt + ", ctype: " + canceltype + ", ccount: " + cancelcount });
|
||||
//INIPAY50Lib.INItx50 INIpay = new INIPAY50Lib.INItx50();
|
||||
//int intPInst = INIpay.Initialize("");
|
||||
//INIpay.SetField(ref intPInst, "pgid", "INIpayRPAY");
|
||||
//INIpay.SetField(ref intPInst, "spgip", "203.238.3.10");//예비 PG IP (고정)
|
||||
//INIpay.SetField(ref intPInst, "mid", GetConfig("pginfo").Split('|')[1]);//상점아이디
|
||||
//INIpay.SetField(ref intPInst, "type", "repay");
|
||||
//
|
||||
////**************************************************************************************************
|
||||
////* admin 은 키패스워드 변수명입니다. 수정하시면 안됩니다. 1111의 부분만 수정해서 사용하시기 바랍니다.
|
||||
////* 키패스워드는 상점관리자 페이지(https://iniweb.inicis.com)의 비밀번호가 아닙니다. 주의해 주시기 바랍니다.
|
||||
////* 키패스워드는 숫자 4자리로만 구성됩니다. 이 값은 키파일 발급시 결정됩니다.
|
||||
////* 키패스워드 값을 확인하시려면 상점측에 발급된 키파일 안의 readme.txt 파일을 참조해 주십시오.
|
||||
////**************************************************************************************************
|
||||
//INIpay.SetField(ref intPInst, "admin", GetConfig("pginfo").Split('|')[3]);
|
||||
//INIpay.SetField(ref intPInst, "currency", "WON");
|
||||
//INIpay.SetField(ref intPInst, "oldTid", p.pgkey);//취소할 원거래번호(TID)
|
||||
//INIpay.SetField(ref intPInst, "price", p.newrefundamt.ToString());//취소할 금액
|
||||
//INIpay.SetField(ref intPInst, "confirm_price", (p.payamt - p.refundamt - p.newrefundamt).ToString());//이전승인금액(최초승인금액-부분취소금액)-부분취소금액
|
||||
////INIpay.SetField(ref intPInst, "Tax", Request["tax"]);//부가세
|
||||
////INIpay.SetField(ref intPInst, "taxfree", Request["taxfree"]);//비과세
|
||||
//INIpay.SetField(ref intPInst, "buyeremail", p.email);//취소 사유?
|
||||
////INIpay.SetField(ref intPInst, "no_acct", Request["kbno"]);//국민은행계좌이체시 취소 환불계좌번호
|
||||
////INIpay.SetField(ref intPInst, "nm_acct", Request["kbname"]);//국민은행계좌이체시 취소 환불계좌주명
|
||||
//INIpay.SetField(ref intPInst, "debug", "false");//로그모드("true"로 설정하면 상세한 로그를 남김)
|
||||
//
|
||||
////5. 취소 요청 #
|
||||
//INIpay.StartAction(ref intPInst);
|
||||
////6. 취소 결과 #
|
||||
//p.cancelcode = INIpay.GetResult(ref intPInst, "tid");//부분취소거래번호
|
||||
//String resultcode = INIpay.GetResult(ref intPInst, "resultcode");//결과코드 ("00"이면 취소성공)
|
||||
//if (resultcode != "00")
|
||||
//{
|
||||
// return JsonOK(0);
|
||||
//}
|
||||
////String resultmsg = INIpay.GetResult(ref intPInst, "resultmsg");//결과내용
|
||||
////String otid = INIpay.GetResult(ref intPInst, "PRTC_TID");//원 거래번호
|
||||
////String cancelamt = INIpay.GetResult(ref intPInst, "PRTC_Price");//부분취소금액
|
||||
////String finalamt = INIpay.GetResult(ref intPInst, "PRTC_Remains");//재승인금액
|
||||
////String canceltype = INIpay.GetResult(ref intPInst, "PRTC_Type");//부분취소구분(0:재승인,1:부분취소)
|
||||
//p.cancelcnt= GetInt(INIpay.GetResult(ref intPInst, "PRTC_Cnt"));//부분취소 요청횟수
|
||||
//
|
||||
////pay 업데이트(rstatus,cancelcnt,refundamt)
|
||||
////payitem 업데이트(rstatus,pgkey,cancelcode,cancelmsg,canceltype,refundamt,refundtime?,refundtimereal?)
|
||||
////lect,exam(취소)
|
||||
//
|
||||
////lect 업데이트
|
||||
////return JsonBack(new JsonRtn() { code = 1000, obj = resultcode + ":" + resultmsg + ",camt:" + cancelamt + ", famt: " + finalamt + ", ctype: " + canceltype + ", ccount: " + cancelcount });
|
||||
////}
|
||||
}catch(Exception ex)
|
||||
{
|
||||
SetError(ex.Message);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
<package id="Microsoft.AspNet.WebPages.ko" version="3.2.3" targetFramework="net461" />
|
||||
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.7" targetFramework="net461" />
|
||||
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net461" />
|
||||
<package id="Microsoft.Net.Compilers" version="2.1.0" targetFramework="net461" developmentDependency="true" />
|
||||
<package id="Microsoft.Net.Compilers" version="2.1.0" targetFramework="net46" developmentDependency="true" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net461" />
|
||||
<package id="Modernizr" version="2.6.2" targetFramework="net461" />
|
||||
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net461" />
|
||||
|
|
|
|||
|
|
@ -588,4 +588,5 @@ namespace NP.Model
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue