...
|
...
|
@@ -33,6 +33,7 @@ class UserModel |
|
|
// 处理个人详情数据
|
|
|
if (isset($userData['data']) && !empty($userData['data'])) {
|
|
|
$result = $userData['data'];
|
|
|
$result['gender'] = $result['gender'] == 1 ? '男' : '女';
|
|
|
$result['head_ico'] = Images::getImageUrl($result['head_ico'], 128, 128);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -349,7 +350,20 @@ class UserModel |
|
|
|
|
|
// 处理意见反馈数据
|
|
|
if (isset($suggest['data']) && !empty($suggest['data'])) {
|
|
|
$result = $suggest['data'];
|
|
|
$one = array();
|
|
|
foreach ($suggest['data']['list'] as $val) {
|
|
|
$one = array();
|
|
|
$one['hasImage'] = $val['has_image'];
|
|
|
$one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
|
|
|
$one['title'] = $val['filter_content'];
|
|
|
$one['content'] = $val['reply_content'];
|
|
|
$one['good'] = $val['is_reliable'];
|
|
|
$one['bad'] = !$val['is_reliable'];
|
|
|
$one['goodNum'] = $val['reliable'];
|
|
|
$one['badNum'] = $val['unreliable'];
|
|
|
|
|
|
$result[] = $one;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return $result;
|
...
|
...
|
|