thirdpayment
ljl 11 months ago
parent c14f3a9183
commit 68f702b016

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

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

Loading…
Cancel
Save