wesmiler 3 일 전
부모
커밋
a51cadfbd3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/Api/MemberService.php

+ 1 - 1
app/Services/Api/MemberService.php

@@ -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');
             }