|
@@ -1696,8 +1696,6 @@ class UserServices extends BaseServices
|
|
|
$hidden_integral = sys_config('hidden_integral', 0);
|
|
|
$user['is_default_avatar'] = $user['avatar'] == sys_config('h5_avatar') ? 1 : 0;
|
|
|
$user['achievement'] = $award_integral_service->getAchievement($user['uid']);
|
|
|
- $user['bank_info'] = [];
|
|
|
- if ($user['enterprise_professional_facilitator_id']) $user['bank_info'] = WithdrawService::init()::contractInfo($user['enterprise_professional_facilitator_id']);
|
|
|
return array_merge($user, compact('hidden_integral', 'award_lack', 'integral_price', 'static_integral', 'action_integral', 'sum_integral'));
|
|
|
}
|
|
|
|
|
@@ -2368,4 +2366,22 @@ class UserServices extends BaseServices
|
|
|
$count = $this->dao->count($where);
|
|
|
return compact('list', 'count');
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 个人中心
|
|
|
+ * @param $uid
|
|
|
+ * @return array|mixed
|
|
|
+ */
|
|
|
+ public function bankInfo($uid)
|
|
|
+ {
|
|
|
+ $userService = app()->make(UserServices::class);
|
|
|
+ $user = $userService->getUserInfo($uid);
|
|
|
+ if (!$user) {
|
|
|
+ throw new ValidateException('数据不存在');
|
|
|
+ }
|
|
|
+ if (!$user['enterprise_professional_facilitator_id']) {
|
|
|
+ return [];
|
|
|
+ }
|
|
|
+ return WithdrawService::init()::contractInfo($user['enterprise_professional_facilitator_id']);
|
|
|
+ }
|
|
|
}
|