|
|
@@ -183,6 +183,11 @@ class User extends BaseController
|
|
183
|
183
|
{
|
|
184
|
184
|
$user = $this->request->userInfo();
|
|
185
|
185
|
$user->append(['one_level_count', 'lock_brokerage', 'two_level_count', 'spread_total', 'yesterday_brokerage', 'total_extract', 'total_brokerage']);
|
|
|
186
|
+
|
|
|
187
|
+ /** @var SharedProsperityUserRepository $sharedProsperityUserRepository */
|
|
|
188
|
+ $sharedProsperityUserRepository = app()->make(SharedProsperityUserRepository::class);
|
|
|
189
|
+ $sharedProsperityUserEntity = $sharedProsperityUserRepository->getSharedProsperityUserEntityByUserId($user->uid);
|
|
|
190
|
+
|
|
186
|
191
|
$data = [
|
|
187
|
192
|
'lock_brokerage' => $user->lock_brokerage,
|
|
188
|
193
|
'one_level_count' => $user->one_level_count,
|
|
|
@@ -192,6 +197,7 @@ class User extends BaseController
|
|
192
|
197
|
'total_extract' => $user->total_extract,
|
|
193
|
198
|
'total_brokerage' => $user->total_brokerage,
|
|
194
|
199
|
'brokerage_price' => $user->brokerage_price,
|
|
|
200
|
+ 'shared_prosperity_balance' => $sharedProsperityUserEntity->getBalance()?:0.00,
|
|
195
|
201
|
'member_brokerage_price' => $user->member_brokerage_price,
|
|
196
|
202
|
'now_money' => $user->now_money,
|
|
197
|
203
|
'broken_day' => (int)systemConfig('lock_brokerage_timer')
|