From a0260181357c7630952f43122c6543915f952e39 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 7 Jan 2024 13:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/MineCommand.php | 1 + app/Service/PaymentService.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index d7ad590..7b890b6 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -48,6 +48,7 @@ class MineCommand extends HyperfCommand public function handle(): void { + var_dump($this->querySignEntrust('CWX1989')); $this->getBalance(); return; $result = $baofu->applyBindCard($user->member_id, [ diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index 1be8e96..7c44756 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -233,6 +233,9 @@ class PaymentService extends AbstractService if ($fee <= 0) { $fee = 1; } + if ($params['isAccountPay']) { + $fee += 200; + } $orderSplitInfos = []; $splitUserIds = array_column($params['splitInfoList'], 'splitUserId'); $users = User::where('app_id', $app->app_id)->whereIn('user_id', $splitUserIds)->get()->keyBy('user_id');