1. 更新收款通知处理逻辑

2. 数据库字段长度调整512
This commit is contained in:
技术老胡
2025-03-19 19:45:03 +08:00
parent fa75d580b8
commit 374fc75423
2 changed files with 4 additions and 3 deletions

View File

@@ -227,8 +227,8 @@ EOT;
`order_id` varchar(255) NOT NULL DEFAULT '', `order_id` varchar(255) NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT '', `type` varchar(255) NOT NULL DEFAULT '',
`out_trade_no` varchar(255) NOT NULL DEFAULT '', `out_trade_no` varchar(255) NOT NULL DEFAULT '',
`notify_url` varchar(255) NOT NULL DEFAULT '', `notify_url` varchar(512) NOT NULL DEFAULT '',
`return_url` varchar(255) NOT NULL DEFAULT '', `return_url` varchar(512) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '',
`really_price` decimal(10, 2) NOT NULL DEFAULT 0.00, `really_price` decimal(10, 2) NOT NULL DEFAULT 0.00,
`money` decimal(10, 2) NOT NULL DEFAULT 0.00, `money` decimal(10, 2) NOT NULL DEFAULT 0.00,
@@ -264,7 +264,7 @@ EOT;
`account_id` int(11) NOT NULL DEFAULT 0, `account_id` int(11) NOT NULL DEFAULT 0,
`channel` varchar(255) NOT NULL DEFAULT '', `channel` varchar(255) NOT NULL DEFAULT '',
`type` tinyint(4) NOT NULL DEFAULT 0, `type` tinyint(4) NOT NULL DEFAULT 0,
`qrcode` varchar(255) NOT NULL DEFAULT '', `qrcode` varchar(512) NOT NULL DEFAULT '',
`last_time` datetime DEFAULT CURRENT_TIMESTAMP, `last_time` datetime DEFAULT CURRENT_TIMESTAMP,
`state` tinyint(4) NOT NULL DEFAULT 1, `state` tinyint(4) NOT NULL DEFAULT 1,
`delete_time` datetime DEFAULT NULL, `delete_time` datetime DEFAULT NULL,

View File

@@ -165,6 +165,7 @@ class PayController
foreach ($activeOrders as $order) { foreach ($activeOrders as $order) {
// 支付方式核对 // 支付方式核对
$is_payway = $order->type == $new_order['payway']; $is_payway = $order->type == $new_order['payway'];
if ($new_order['payway'] == '') $is_payway = true;
// 支付渠道核对 // 支付渠道核对
$is_channel = $cids[$order->cid] == $new_order['channel']; $is_channel = $cids[$order->cid] == $new_order['channel'];
// 金额核对 // 金额核对