diff --git a/BO/Controllers/AccountController.cs b/BO/Controllers/AccountController.cs index bde8ac2..da02a4c 100644 --- a/BO/Controllers/AccountController.cs +++ b/BO/Controllers/AccountController.cs @@ -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; diff --git a/Base/Base.csproj b/Base/Base.csproj index e324113..384431c 100644 --- a/Base/Base.csproj +++ b/Base/Base.csproj @@ -166,16 +166,5 @@ Model - - - {3D526659-3918-491A-8FA9-A1829C0447BC} - 1 - 0 - 0 - tlbimp - False - True - - \ No newline at end of file diff --git a/Base/Controller/ACommonCRoom.cs b/Base/Controller/ACommonCRoom.cs index 940c41a..aaf13ed 100644 --- a/Base/Controller/ACommonCRoom.cs +++ b/Base/Controller/ACommonCRoom.cs @@ -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); diff --git a/FO/packages.config b/FO/packages.config index eba4157..7f968ea 100644 --- a/FO/packages.config +++ b/FO/packages.config @@ -27,7 +27,7 @@ - + diff --git a/Model/Users.cs b/Model/Users.cs index 616b2a4..6c103f1 100644 --- a/Model/Users.cs +++ b/Model/Users.cs @@ -517,7 +517,7 @@ namespace NP.Model /// public int isdel {get;set;} } - + [Serializable] public class AssignMan : Assign { @@ -588,4 +588,5 @@ namespace NP.Model } } } + }