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