|
@@ -65,7 +65,7 @@ class TeamService extends BaseService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$where = ['status' => 1, 'mark' => 1];
|
|
$where = ['status' => 1, 'mark' => 1];
|
|
|
- $field = ['id', 'nickname', 'usdt','sbt', 'parent_id','profit','performance','bonus_rate','bonus_performance','wallet_url', 'status'];
|
|
|
|
|
|
|
+ $field = ['id', 'nickname', 'usdt','sbt', 'parent_id','profit','performance','bonus_rate','bonus_performance','team_bonus_performance','wallet_url', 'status'];
|
|
|
$datas = $this->model->where($where)
|
|
$datas = $this->model->where($where)
|
|
|
->where(function ($query) use ($userId) {
|
|
->where(function ($query) use ($userId) {
|
|
|
$query->where('parent_id', $userId);
|
|
$query->where('parent_id', $userId);
|
|
@@ -79,6 +79,8 @@ class TeamService extends BaseService
|
|
|
foreach ($datas['data'] as &$item) {
|
|
foreach ($datas['data'] as &$item) {
|
|
|
$item['wallet_url'] = $item['wallet_url'] ? format_str($item['wallet_url']) : '';
|
|
$item['wallet_url'] = $item['wallet_url'] ? format_str($item['wallet_url']) : '';
|
|
|
$item['is_online'] = RedisService::get("auths:info:".$item['id'])? 1: 0;
|
|
$item['is_online'] = RedisService::get("auths:info:".$item['id'])? 1: 0;
|
|
|
|
|
+ $item['old_bonus_performance'] = $item['bonus_performance'];
|
|
|
|
|
+ $item['bonus_performance'] = $item['team_bonus_performance'];
|
|
|
}
|
|
}
|
|
|
unset($item);
|
|
unset($item);
|
|
|
RedisService::set($cacheKey, $datas, rand(5, 10));
|
|
RedisService::set($cacheKey, $datas, rand(5, 10));
|