|
@@ -896,6 +896,7 @@ class Auth extends BaseController
|
|
896
|
$SharedProsperityLevel = 0;
|
896
|
$SharedProsperityLevel = 0;
|
|
897
|
$SharedProsperityUserPv = 0;
|
897
|
$SharedProsperityUserPv = 0;
|
|
898
|
$SharedProsperityTeamPv = 0;
|
898
|
$SharedProsperityTeamPv = 0;
|
|
|
|
899
|
+ $SharedProsperityGroupId = 0;
|
|
899
|
$SharedProsperityUser = Db::name('shared_prosperity_user')->where('user_id', $user['uid'])->value('id,partner_level,pv');
|
900
|
$SharedProsperityUser = Db::name('shared_prosperity_user')->where('user_id', $user['uid'])->value('id,partner_level,pv');
|
|
900
|
if ($SharedProsperityUser) {
|
901
|
if ($SharedProsperityUser) {
|
|
901
|
$isSharedProsperity = true;
|
902
|
$isSharedProsperity = true;
|
|
@@ -907,11 +908,16 @@ class Auth extends BaseController
|
|
907
|
$SharedProsperityUserRepository = app()->make(SharedProsperityUserRepository::class);
|
908
|
$SharedProsperityUserRepository = app()->make(SharedProsperityUserRepository::class);
|
|
908
|
$SharedProsperityTeamPv = count($SharedProsperityUserRepository->getSharedProsperityUserEntityListByParentId($user['uid']));
|
909
|
$SharedProsperityTeamPv = count($SharedProsperityUserRepository->getSharedProsperityUserEntityListByParentId($user['uid']));
|
|
909
|
|
910
|
|
|
|
|
911
|
+ // 团员身份
|
|
|
|
912
|
+ $groupId = Db::name('shared_prosperity_group_user')->where('user_id', $user['uid'])->value('group_id');
|
|
|
|
913
|
+ if ($groupId) $SharedProsperityGroupId = $groupId;
|
|
|
|
914
|
+
|
|
910
|
}
|
915
|
}
|
|
911
|
$data['isSharedProsperity'] = $isSharedProsperity;
|
916
|
$data['isSharedProsperity'] = $isSharedProsperity;
|
|
912
|
$data['SharedProsperityLevel'] = $SharedProsperityLevel;
|
917
|
$data['SharedProsperityLevel'] = $SharedProsperityLevel;
|
|
913
|
$data['SharedProsperityUserPv'] = $SharedProsperityUserPv;
|
918
|
$data['SharedProsperityUserPv'] = $SharedProsperityUserPv;
|
|
914
|
$data['SharedProsperityTeamPv'] = $SharedProsperityTeamPv;
|
919
|
$data['SharedProsperityTeamPv'] = $SharedProsperityTeamPv;
|
|
|
|
920
|
+ $data['SharedProsperityGroupId'] = $SharedProsperityGroupId;
|
|
915
|
|
921
|
|
|
916
|
|
922
|
|
|
917
|
return app('json')->success($data );
|
923
|
return app('json')->success($data );
|