main
bruce 9 months ago
parent 4c6cb24a24
commit c32b240766
  1. 2
      app/common/repositories/user/UserRepository.php

@ -559,6 +559,7 @@ class UserRepository extends BaseRepository
public function create(string $type, array $userInfo)
{
$userInfo['user_type'] = $this->userType($type);
$userInfo['growth_rate'] = systemConfig('brand_growth');
if (!isset($userInfo['status'])) {
$userInfo['status'] = 1;
}
@ -694,6 +695,7 @@ class UserRepository extends BaseRepository
'nickname' => substr($phone, 0, 3) . '****' . substr($phone, 7, 4),
'avatar' => '',
'phone' => $phone,
'growth_rate' => systemConfig('brand_growth') ?? '0.01',
'last_ip' => app('request')->ip()
];
return $this->create($user_type, $data);

Loading…
Cancel
Save