Authored by Rock Zhang

添加意见反馈的id字段

framework @ e9d066dd
1 -Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2 1 +Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec
@@ -369,6 +369,7 @@ class HomeController extends AbstractAction @@ -369,6 +369,7 @@ class HomeController extends AbstractAction
369 $limit = $this->get('limit', 30); 369 $limit = $this->get('limit', 30);
370 370
371 $suggest = \Index\UserModel::getSuggestData($udid, $page, $limit); 371 $suggest = \Index\UserModel::getSuggestData($udid, $page, $limit);
  372 + print_r($suggest);
372 373
373 $this->_view->display('suggest', array( 374 $this->_view->display('suggest', array(
374 'suggestPage' => true, //加载js 375 'suggestPage' => true, //加载js
@@ -423,13 +423,13 @@ class UserModel @@ -423,13 +423,13 @@ class UserModel
423 423
424 // 调用接口获取地址数据 424 // 调用接口获取地址数据
425 $suggest = UserData::suggestData($udid, $page, $limit); 425 $suggest = UserData::suggestData($udid, $page, $limit);
426 - //print_r($suggest);  
427 426
428 // 处理意见反馈数据 427 // 处理意见反馈数据
429 if (isset($suggest['data']) && !empty($suggest['data'])) { 428 if (isset($suggest['data']) && !empty($suggest['data'])) {
430 $one = array(); 429 $one = array();
431 foreach ($suggest['data']['list'] as $val) { 430 foreach ($suggest['data']['list'] as $val) {
432 $one = array(); 431 $one = array();
  432 + $one['suggest_id'] = $val['id'];
433 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240); 433 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
434 $one['title'] = $val['filter_content']; 434 $one['title'] = $val['filter_content'];
435 $one['content'] = $val['reply_content']; 435 $one['content'] = $val['reply_content'];