Authored by biao

sync Grade.php to develop branch. code revie by Hongfei

@@ -16,7 +16,6 @@ class GradeModel @@ -16,7 +16,6 @@ class GradeModel
16 * 获取个人中心-会员等级数据 16 * 获取个人中心-会员等级数据
17 */ 17 */
18 18
19 -  
20 public static function getGrade($channel, $uid) { 19 public static function getGrade($channel, $uid) {
21 $result = array(); 20 $result = array();
22 21
@@ -28,8 +27,7 @@ class GradeModel @@ -28,8 +27,7 @@ class GradeModel
28 return $result; 27 return $result;
29 } 28 }
30 } 29 }
31 -  
32 - 30 +
33 //调用接口获取数据 31 //调用接口获取数据
34 $data = GradeData::getGradeData($channel, $uid); 32 $data = GradeData::getGradeData($channel, $uid);
35 if (!empty($data['grade'])) { 33 if (!empty($data['grade'])) {
@@ -49,7 +47,6 @@ class GradeModel @@ -49,7 +47,6 @@ class GradeModel
49 } 47 }
50 48
51 //今年总消费 49 //今年总消费
52 -  
53 $result['vipGrade']['costOfThisYear'] = sprintf("%.2f", $data['grade']['current_year_cost']); 50 $result['vipGrade']['costOfThisYear'] = sprintf("%.2f", $data['grade']['current_year_cost']);
54 //升级下一等级会员的进度; 51 //升级下一等级会员的进度;
55 if($data['grade']['next_need_cost'] == 0){ 52 if($data['grade']['next_need_cost'] == 0){
@@ -86,7 +83,7 @@ class GradeModel @@ -86,7 +83,7 @@ class GradeModel
86 83
87 return $result; 84 return $result;
88 } 85 }
89 - 86 +
90 /* 87 /*
91 * 获取个人中心-会员特权详情页 88 * 获取个人中心-会员特权详情页
92 */ 89 */