1
This commit is contained in:
parent
b3ec14b825
commit
14cf6ffe0a
@ -68,6 +68,7 @@ CREATE TABLE `orderinfo` (
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
|
||||
`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_pay_result` int(11) NOT NULL DEFAULT '0' COMMENT '0: 未确认 1: 支付成功 -1:支付失败',
|
||||
|
||||
|
@ -94,11 +94,13 @@ class PayNotifyController {
|
||||
$ret = $conn->execScript('UPDATE orderinfo SET ' .
|
||||
' sp_pay_result = 1, ' .
|
||||
' sp_confirm_time = :sp_confirm_time, ' .
|
||||
' sp_amount = :sp_amount, ' .
|
||||
' sp_orderid = :sp_orderid ' .
|
||||
'WHERE orderid=:orderid;',
|
||||
array(
|
||||
':orderid' => $_REQUEST['BillNo'],
|
||||
':sp_orderid' => $_REQUEST['OrderNo'],
|
||||
':sp_amount' => $_REQUEST['Amount'],
|
||||
':sp_confirm_time' => $nowtime
|
||||
));
|
||||
if ($ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user