From 68f702b016dedd9ead7d4ebba9f801acf5c36f01 Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 22 Dec 2023 11:04:38 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 2 +- app/Service/UserService.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 0b24e2f..a7a315f 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -228,7 +228,7 @@ class MineCommand extends HyperfCommand * @var UserService $userService */ $userService = $this->container->make(UserService::class); - $userService->rsyncUser($memberId, $appId, $userId); + $userService->rsyncUser($memberId, $appId, $userId, 'MERCHANT'); } protected function rsyncBankCards() { diff --git a/app/Service/UserService.php b/app/Service/UserService.php index 3f590bd..9a82e4a 100644 --- a/app/Service/UserService.php +++ b/app/Service/UserService.php @@ -41,10 +41,10 @@ class UserService extends AbstractService return $url; } - public function rsyncUser($memberId, $appId, $userId) { + public function rsyncUser($memberId, $appId, $userId, $customerType = 'PERSON') { $baofu = new Baofu(); - $userInfo = $baofu->queryCustomerInfo($memberId); - return $this->saveUser($userInfo, $appId, $userId, $source); + $userInfo = $baofu->queryCustomerInfo($memberId, $customerType); + return $this->saveUser($userInfo, $appId, $userId); } public function saveUser($userInfo, $appId, $userId) {