This commit is contained in:
aozhiwei 2019-08-26 17:03:53 +08:00
parent b3ec14b825
commit 14cf6ffe0a
2 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,7 @@ CREATE TABLE `orderinfo` (
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`sp_orderid` varchar(60) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '平台的订单id', `sp_orderid` varchar(60) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '平台的订单id',
`sp_amount` double NOT NULL COMMENT 'sp_amount',
`sp_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '平台确认时间', `sp_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '平台确认时间',
`sp_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败', `sp_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败',

View File

@ -94,11 +94,13 @@ class PayNotifyController {
$ret = $conn->execScript('UPDATE orderinfo SET ' . $ret = $conn->execScript('UPDATE orderinfo SET ' .
' sp_pay_result = 1, ' . ' sp_pay_result = 1, ' .
' sp_confirm_time = :sp_confirm_time, ' . ' sp_confirm_time = :sp_confirm_time, ' .
' sp_amount = :sp_amount, ' .
' sp_orderid = :sp_orderid ' . ' sp_orderid = :sp_orderid ' .
'WHERE orderid=:orderid;', 'WHERE orderid=:orderid;',
array( array(
':orderid' => $_REQUEST['BillNo'], ':orderid' => $_REQUEST['BillNo'],
':sp_orderid' => $_REQUEST['OrderNo'], ':sp_orderid' => $_REQUEST['OrderNo'],
':sp_amount' => $_REQUEST['Amount'],
':sp_confirm_time' => $nowtime ':sp_confirm_time' => $nowtime
)); ));
if ($ret) { if ($ret) {