From bab630b15a0a04e74fb9b4fded81f866376a69eb Mon Sep 17 00:00:00 2001 From: ljl Date: Tue, 22 Aug 2023 12:47:25 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 4 ++-- app/Service/PaymentService.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index b31b3c0..f1a61e6 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -45,7 +45,7 @@ class MineCommand extends HyperfCommand public function handle(): void { - $this->queryOrder(); + $this->unbindCard(); return; // $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_register', $this->getApp(), ['userId' => '30684']); $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_bind_card', $this->getApp(), ['userId' => '23121', 'bindCardFlag' => true]); @@ -164,7 +164,7 @@ class MineCommand extends HyperfCommand * @var UserService $userService */ $userService = $this->container->make(UserService::class); - $result = $userService->unbindCard(['userId' => 'ELF1990', 'agreementNo' => '312023080400002047764'], $this->getApp()); + $result = $userService->unbindCard(['userId' => 'ELF1990', 'agreementNo' => '312023081200002052866'], $this->getApp()); var_dump($result); } diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index dd2363c..024d6a3 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -439,7 +439,7 @@ class PaymentService extends AbstractService if (empty($user)) { throw new BusinessException('用户不存在'); } - $order = Order::where('app_id', $app->app_id)->where('out_order_no', $data['outOrderNo'])->first(); + $order = Order::where('app_id', $app->app_id)->where('out_order_no', $data['oldOutOrderNo'])->first(); if (empty($order)) { throw new BusinessException('订单不存在'); }