thirdpayment
ljl 11 months ago
parent 3aabf5df8f
commit 1e24db4af5

@ -48,7 +48,7 @@ class MineCommand extends HyperfCommand
public function handle(): void public function handle(): void
{ {
$user = User::where('user_id', 'ACT_13')->first(); $user = User::where('user_id', 'ACT_9')->first();
var_dump($user->toArray()); var_dump($user->toArray());
$baofu = new Baofu(); $baofu = new Baofu();
$url = $baofu->signWithdrawEntrust($user->member_id, 'xxxxx'); $url = $baofu->signWithdrawEntrust($user->member_id, 'xxxxx');
@ -354,7 +354,7 @@ class MineCommand extends HyperfCommand
$result = $userService->getBalance('289a092602845b1a40793db5409333f5'); $result = $userService->getBalance('289a092602845b1a40793db5409333f5');
echo 'WRTC: ' . $result . PHP_EOL; echo 'WRTC: ' . $result . PHP_EOL;
$user = User::where('user_id', 'ACT_13')->first(); $user = User::where('user_id', 'ACT_9')->first();
$result = $userService->getBalance($user->member_id); $result = $userService->getBalance($user->member_id);
echo 'NEW: ' . $result . PHP_EOL; echo 'NEW: ' . $result . PHP_EOL;
} }

@ -57,7 +57,7 @@ class WithdrawCommand extends HyperfCommand
*/ */
$userService = $this->container->make(UserService::class); $userService = $this->container->make(UserService::class);
$user = User::where('user_id', 'ACT_13')->first(); $user = User::where('user_id', 'ACT_9')->first();
$balance = $userService->getBalance($user->member_id); $balance = $userService->getBalance($user->member_id);

@ -232,7 +232,7 @@ class AccountController extends AbstractController
$userInfo = $this->checkUser($request); $userInfo = $this->checkUser($request);
$userId = $this->resetUserId($userInfo['userId']); $userId = $this->resetUserId($userInfo['userId']);
$query = Order::query()->with('user')->where('is_account_pay', 1); $query = Order::query()->with('user')->where('is_account_pay', 1);
if ($userId != 'ACT_13') { if ($userId != 'ACT_9') {
$query->where('user_id', $userId); $query->where('user_id', $userId);
} }
if (!empty($request->input('outOrderNo'))) { if (!empty($request->input('outOrderNo'))) {

@ -278,7 +278,7 @@ class PaymentService extends AbstractService
} }
if ($params['isAccountPay']) { if ($params['isAccountPay']) {
$feeSubOrderNo = StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_PAY_SPLIT); $feeSubOrderNo = StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_PAY_SPLIT);
$mainAccount = User::where('user_id', 'ACT_13')->first(); $mainAccount = User::where('user_id', 'ACT_9')->first();
$orderSplitInfos[] = [ $orderSplitInfos[] = [
'app_id' => $app->app_id, 'app_id' => $app->app_id,
'user_id' => $user->user_id, 'user_id' => $user->user_id,

Loading…
Cancel
Save