From 82a3f2625dc52ce78ef9a8cb5a927d83e610c04f Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 22 Jun 2023 16:19:35 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 4 ++-- app/Controller/Recharge/RechargeController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 4a7f386..e8753b2 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -49,7 +49,7 @@ class MineCommand extends HyperfCommand */ $paymentService = $this->container->make(PaymentService::class); - $params = $this->payNew(); + $params = $this->pay(); $data = $paymentService->payment($params); var_dump($data); return; @@ -277,7 +277,7 @@ class MineCommand extends HyperfCommand 'nonce_str' => StringHelper::getRandomString(32), 'data' => json_encode([ 'outOrderNo' => time().rand(1000, 9999), - 'outMemberId' => 'T00001', + 'outMemberId' => 'T00004', 'amount' => 100, 'notifyUrl' => 'https://www.baidu.com', ]), diff --git a/app/Controller/Recharge/RechargeController.php b/app/Controller/Recharge/RechargeController.php index cb3e848..302dc8b 100644 --- a/app/Controller/Recharge/RechargeController.php +++ b/app/Controller/Recharge/RechargeController.php @@ -284,7 +284,7 @@ class RechargeController extends AbstractController } $offset = ($page - 1) * $pageSize; - $query = Order::query()->where('app_id', $appId); + $query = Order::query()->whereIn('app_id', $appIds); if ($status) { $query->where('status', $status); }