Authored by Rock Zhang

修复个人中心首页报错的bug

@@ -37,7 +37,7 @@ class FloorProcess @@ -37,7 +37,7 @@ class FloorProcess
37 if (empty($v)) { 37 if (empty($v)) {
38 continue; 38 continue;
39 } 39 }
40 - 40 +
41 $fun = $v['template_name']; 41 $fun = $v['template_name'];
42 if (empty($v['data']) || !is_callable("self::$fun")) { 42 if (empty($v['data']) || !is_callable("self::$fun")) {
43 continue; 43 continue;
@@ -51,8 +51,9 @@ class HomeController extends AbstractAction @@ -51,8 +51,9 @@ class HomeController extends AbstractAction
51 $uid = $this->getUid(true); 51 $uid = $this->getUid(true);
52 if ($uid) { 52 if ($uid) {
53 $data['isLogin'] = true; 53 $data['isLogin'] = true;
  54 + $udid = $this->getUdid();
54 $data += UserModel::getUserProfileData($uid); 55 $data += UserModel::getUserProfileData($uid);
55 - $data += UserModel::getInfoNumData($uid); 56 + $data += UserModel::getInfoNumData($uid, $udid);
56 } 57 }
57 58
58 $this->_view->display('index', $data); 59 $this->_view->display('index', $data);