From 2558522c77b9ab79f7319abdd3c506c6e97bea15 Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 1 Sep 2023 14:52:42 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 2 +- app/Service/PaymentService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 68b26d8..0c2f376 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -172,7 +172,7 @@ class MineCommand extends HyperfCommand 'returnUrl' => 'http://124.223.222.61:9501/notify/test-notify', 'channelId' => '20880055945509133097978700117397', 'appId' => '2021004111671035', - 'validDate' => '2023-09-30', + // 'validDate' => '2023-09-30', 'splitInfoList' => [ [ 'splitUserId' => 'RLX1990', diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index 16283f9..6ec2e83 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -159,7 +159,7 @@ class PaymentService extends AbstractService 'paidType' => $order->pay_type, 'agreementNo' => $order->agreement_no, 'expireDate' => date('YmdHis', time() + $order->expires_in), - 'validDate' => date('Ymd', strtotime($order->valid_date)), + 'validDate' => date('Ymd', $order->valid_date ? strtotime($order->valid_date) : time()), 'splitInfoList' => $splitInfoList, 'chanalId' => $order->channel_id, 'appId' => $order->channel_app_id,