Authored by 周少峰

round cost

... ... @@ -271,10 +271,10 @@ class CommonController extends WebAction
//VIP信息
$userInfo['curLevel'] = $apiInfo['profile']['vip_info']['cur_level'];
$userInfo['curTitle'] = $apiInfo['profile']['vip_info']['title'];
$userInfo['curYearCost'] = isset($apiInfo['profile']['vip_info']['curYearCost']) ? $apiInfo['profile']['vip_info']['curYearCost'] : 0;
$userInfo['curYearCost'] = isset($apiInfo['profile']['vip_info']['curYearCost']) ? round($apiInfo['profile']['vip_info']['curYearCost']) : 0;
$userInfo['nextLevel'] = isset($apiInfo['profile']['vip_info']['next_level']) ? $apiInfo['profile']['vip_info']['next_level'] : 0;
$userInfo['nextVipTitle'] = isset($apiInfo['profile']['vip_info']['nextVipTitle']) ? $apiInfo['profile']['vip_info']['nextVipTitle'] : '';
$userInfo['nextVipNeedCost'] = isset($apiInfo['profile']['vip_info']['nextVipNeedCost']) ? $apiInfo['profile']['vip_info']['nextVipNeedCost'] : 0;
$userInfo['nextVipNeedCost'] = isset($apiInfo['profile']['vip_info']['nextVipNeedCost']) ? round($apiInfo['profile']['vip_info']['nextVipNeedCost']) : 0;
//升级百分比
if ($userInfo['nextVipNeedCost']) {
... ...