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) {