From 01e9f2372dee603a83c5e06d7e496169c1adb413 Mon Sep 17 00:00:00 2001 From: lch Date: Fri, 9 Jul 2021 04:35:05 +0000 Subject: [PATCH] =?UTF-8?q?Dao.Save("pay.paylect",=20vm.Pay)=20=EC=9D=B4?= =?UTF-8?q?=ED=9B=84=20=EC=97=90=EB=9F=AC=20=EB=B0=9C=EC=83=9D=EC=8B=9C=20?= =?UTF-8?q?pay.pstatus=20=3D=2066=20=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/Pay.xml | 2 +- FO/Controllers/FOBaseController.cs | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/Dao/MyBatis/Maps/Pay.xml b/Dao/MyBatis/Maps/Pay.xml index 8b21cae..7283276 100644 --- a/Dao/MyBatis/Maps/Pay.xml +++ b/Dao/MyBatis/Maps/Pay.xml @@ -395,7 +395,7 @@ where a.userno=#userno# and a.status=1 and a.ispay=1;--> - update pay set pstatus=#pstatus# where payno=#payno#; + update pay set pstatus=#pstatus# where payno=#payno# and pstatus != 1 and pstatus != 22; insert into paydata(payno,payresult,payresultmsg,vactnum,vactbankcode,vactbankname,vactname,vactinname,cshrrcode,cshrtype,cshrauthno,cardquota,cardquotatype,cardeventcode,cardnum,iscardpoint,cardcode,cardbankcode,cardprtccode,checkflag,ocbnum,ocbappno,ocbprice,gsnum,gsremain,gsprice,unum,upoint,uprice,) values (#payno#,#payresult#,#payresultmsg#,HEX(AES_ENCRYPT(#vactnum#, )),#vactbankcode#,#vactbankname#,#vactname#,#vactinname#,#cshrrcode#,#cshrtype#,#cshrauthno#,#cardquota#,#cardquotatype#,#cardeventcode#,#cardnum#,#iscardpoint#,HEX(AES_ENCRYPT(#cardnum#, )),#cardbankcode#,#cardprtccode#,#checkflag#,#ocbnum#,#ocbappno#,#ocbprice#,#gsnum#,#gsremain#,#gsprice#,#unum#,#upoint#,#uprice#,); diff --git a/FO/Controllers/FOBaseController.cs b/FO/Controllers/FOBaseController.cs index 6233736..25c2440 100644 --- a/FO/Controllers/FOBaseController.cs +++ b/FO/Controllers/FOBaseController.cs @@ -650,19 +650,8 @@ namespace NP.FO.Controllers } catch (Exception exresult) { - SetError(exresult.StackTrace); + SetError(cancelMsg += "|결제결과조회|" + exresult.StackTrace); } - #region 영수증 출력 관련 - String authdata = vm.Pay.mid + vm.Pay.pgkey + GetConfig("LGD_MERTKEY"); - HashAlgorithm hash; - byte[] authdataTextBytes = Encoding.UTF8.GetBytes(authdata); - hash = new MD5CryptoServiceProvider(); - byte[] hashed = hash.ComputeHash(authdataTextBytes); - for (int i = 0; i < hashed.Length; i++) - { - vm.Pay.authdata += string.Format("{0:x2}", hashed[i]); - } - #endregion #region 세금계산서 신청처리 if (vm.Pay.ptype == 3) { @@ -705,8 +694,8 @@ namespace NP.FO.Controllers } } catch (Exception exresult) - { - SetError(exresult.StackTrace); + { + SetError(cancelMsg += "|세금계산서신청처리|" + exresult.StackTrace); } } #endregion