|
|
@@ -376,7 +376,7 @@ class MemberService extends BaseService
|
|
|
$info['vip_growth_diff'] = $levelGrowth>0?ceil(max(0,$levelGrowth-$info['vip_growth'])) : 0;
|
|
|
$info['vip_growth_1'] = ConfigService::make()->getConfigByCode('vip_growth_1');
|
|
|
$info['vip_growth_2'] = ConfigService::make()->getConfigByCode('vip_growth_2');
|
|
|
- $info['vip_growth_progress'] = $info['vip_growth_2']?round($info['vip_growth']/$info['vip_growth_2'] * 100,2):0;
|
|
|
+ $info['vip_growth_progress'] = $info['vip_growth_2']?round(min(100,$info['vip_growth']/$info['vip_growth_2'] * 100),2):0;
|
|
|
$info['order_count_1'] = (int)OrderModel::where(['user_id'=>$info['id'],'status'=>1,'mark'=>1])->count('id');
|
|
|
}
|
|
|
|