From 84e5de04be86cdaa22f045e6577ed5ce6e443014 Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 22 Dec 2023 11:38:41 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 6 ++++++ app/Model/User.php | 2 +- app/Service/PaymentService.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 54952f7..119d0c8 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -48,6 +48,8 @@ class MineCommand extends HyperfCommand public function handle(): void { + $this->getBalance(); + return; $this->rsyncUser('289a092602845b1a40793db5409333f5', '202308070000001', 'ACT_5'); $this->rsyncBankCards(); return; @@ -329,6 +331,10 @@ class MineCommand extends HyperfCommand echo 'RLX: ' . $result . PHP_EOL; $result = $userService->getBalance('f27f7786068387029a126de736bb84b2'); echo 'WHQ: ' . $result . PHP_EOL; + $result = $userService->getBalance('f9c0bea79725d71cc7969571c345de54'); + echo 'CWX: ' . $result . PHP_EOL; + $result = $userService->getBalance('289a092602845b1a40793db5409333f5'); + echo 'WRTC: ' . $result . PHP_EOL; } public function refund() diff --git a/app/Model/User.php b/app/Model/User.php index 8dbd5da..10ab61c 100644 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -10,7 +10,7 @@ class User extends Model public static function getPlatformAccount($isAccountPay) { if ($isAccountPay) { - return self::where('user_id', 'CWX1989')->first(); + return self::where('user_id', 'ACT_4')->first(); } return self::where('is_platform_account', 1)->first(); } diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index 1d80805..19a0327 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -265,7 +265,7 @@ class PaymentService extends AbstractService } if ($params['isAccountPay']) { $feeSubOrderNo = StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_PAY_SPLIT); - $mainAccount = User::where('user_id', 'RLX1990')->first(); + $mainAccount = User::where('user_id', 'ACT_5')->first(); $orderSplitInfos[] = [ 'app_id' => $app->app_id, 'user_id' => $user->user_id,