code review by fei.hong : do fixes bug to home page show user vip info grade
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -54,7 +54,7 @@ class GradeModel | @@ -54,7 +54,7 @@ class GradeModel | ||
54 | //当vip等级升至顶级时,进度条满格 | 54 | //当vip等级升至顶级时,进度条满格 |
55 | $result['vipGrade']['percent'] = 100; | 55 | $result['vipGrade']['percent'] = 100; |
56 | } else { | 56 | } else { |
57 | - $result['vipGrade']['percent'] = 100 * (round($data['grade']['current_total_cost'] / $data['grade']['next_need_cost'], 2)); | 57 | + $result['vipGrade']['percent'] = 100 * (round($data['grade']['current_year_cost'] / $data['grade']['next_need_cost'], 2)); |
58 | } | 58 | } |
59 | 59 | ||
60 | //距离升级所需消费金额 | 60 | //距离升级所需消费金额 |
-
Please register or login to post a comment