mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-13 14:13:43 +08:00
优化订单状态逻辑
This commit is contained in:
@@ -218,6 +218,9 @@ class PayController
|
||||
$path = '../runtime/order.json';
|
||||
if ($is_user) {
|
||||
$orders = Order::scope('activeOrder')->field('id,pid,aid,cid')->select();
|
||||
if (!file_exists($path)) {
|
||||
file_put_contents($path, '[]');
|
||||
}
|
||||
$old_info = file_get_contents($path);
|
||||
$num = count($orders);
|
||||
if ($num > 0) {
|
||||
|
||||
Reference in New Issue
Block a user