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