Compare commits

...

2 Commits

Author SHA1 Message Date
技术老胡
ee49c2a0d0 1. 开发文档加载速度优化
2. 浏览器跳转支付宝异常修复
2025-03-19 23:17:58 +08:00
技术老胡
374fc75423 1. 更新收款通知处理逻辑
2. 数据库字段长度调整512
2025-03-19 19:45:03 +08:00
4 changed files with 7 additions and 7 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'];
// 金额核对 // 金额核对

View File

@ -8,8 +8,6 @@
<head> <head>
<title>开发文档</title> <title>开发文档</title>
</head> </head>
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/gh/pandao/editor.md@1.5.0/css/editormd.min.css">
<style type="text/css"> <style type="text/css">
body { body {
font-family: "Helvetica Neue", "Helvetica", "Microsoft Yahei", "微软雅黑", "Lantinghei SC", "STXihei", "WenQuanYi Micro Hei", Arial, sans-serif; font-family: "Helvetica Neue", "Helvetica", "Microsoft Yahei", "微软雅黑", "Lantinghei SC", "STXihei", "WenQuanYi Micro Hei", Arial, sans-serif;

View File

@ -305,9 +305,10 @@
openAppBtn.className = 'layui-btn layui-btn-normal'; openAppBtn.className = 'layui-btn layui-btn-normal';
openAppBtn.onclick = function () { openAppBtn.onclick = function () {
if (codeType == 0) { if (codeType == 0) {
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + payCode; const payUrl = encodeURIComponent(payCode);
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + payUrl;
} else { } else {
const currentUrl = window.location.href; const currentUrl = encodeURIComponent(window.location.href);
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + currentUrl; window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + currentUrl;
} }
}; };