Dao.Save("pay.paylect", vm.Pay) 이후 에러 발생시 pay.pstatus = 66 으로 변경되는 오류 수정
This commit is contained in:
parent
358234f00d
commit
01e9f2372d
|
|
@ -395,7 +395,7 @@
|
|||
where a.userno=#userno# and a.status=1 and a.ispay=1;-->
|
||||
</update>
|
||||
<update id="pay.pay.fail" parameterClass="hashtable">
|
||||
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,<include refid="sql.inc"></include>)
|
||||
values (#payno#,#payresult#,#payresultmsg#,HEX(AES_ENCRYPT(#vactnum#, <include refid="sql.digest"></include>)),#vactbankcode#,#vactbankname#,#vactname#,#vactinname#,#cshrrcode#,#cshrtype#,#cshrauthno#,#cardquota#,#cardquotatype#,#cardeventcode#,#cardnum#,#iscardpoint#,HEX(AES_ENCRYPT(#cardnum#, <include refid="sql.digest"></include>)),#cardbankcode#,#cardprtccode#,#checkflag#,#ocbnum#,#ocbappno#,#ocbprice#,#gsnum#,#gsremain#,#gsprice#,#unum#,#upoint#,#uprice#,<include refid="sql.inv"></include>);
|
||||
</update>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue