|
|
@@ -107,7 +107,7 @@ class TeamService extends BaseService
|
|
|
}
|
|
|
|
|
|
$info = $this->model->with(['parent'])->where(['id'=> $userId,'mark'=>1])
|
|
|
- ->select(['id','nickname','member_level','code','usdt','sbt','performance','profit','profit_total','pledge_profit','manage_profit','share_profit','pj_profit','global_profit','parent_id','wallet_url','recharge_url','bonus_rate','trade_status','status'])
|
|
|
+ ->select(['id','nickname','member_level','code','usdt','sbt','performance','profit','profit_total','pledge_profit','manage_profit','share_profit','pj_profit','global_profit','parent_id','wallet_url','recharge_url','recharge_token','bonus_rate','trade_status','status'])
|
|
|
->first();
|
|
|
$info = $info? $info->toArray() : [];
|
|
|
if(empty($info)){
|
|
|
@@ -152,8 +152,14 @@ class TeamService extends BaseService
|
|
|
$info['team_performance'] = moneyFormat($teamPerformance + $info['performance'],1);
|
|
|
$info['next_level'] = isset($nextLevelData['id'])? $nextLevelData['id'] : 0;
|
|
|
$info['next_level_performance'] = max(0, $upgradeUsdt - floatval($info['team_performance']));
|
|
|
+ }else{
|
|
|
+ if($info['recharge_url'] && $info['recharge_token']){
|
|
|
+ $info['error'] = ($info['recharge_token'] != make_wallet_token($info['recharge_url'], $userId))? '钱包地址已被修改': '';
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
+ unset($info['recharge_token']);
|
|
|
RedisService::set($cacheKey, $info, rand(5,10));
|
|
|
return $info;
|
|
|
}
|