...
|
...
|
@@ -70,21 +70,17 @@ class OnlineModel |
|
|
return $result;
|
|
|
}
|
|
|
$res = OnlineData::getOnlineServiceDetail($cateId, $clinetType);
|
|
|
$questionInfo = $res['data'];
|
|
|
if ($questionInfo) {
|
|
|
if (isset($res['code']) && $res['code'] === 200) {
|
|
|
$questionInfo = $res['data'];
|
|
|
$list = array();
|
|
|
if ($questionInfo) {
|
|
|
foreach ($questionInfo as $qk => $qv) {
|
|
|
$list[$qk]['q'] = $qv['title'];
|
|
|
$list[$qk]['a'] = $qv['content'];
|
|
|
}
|
|
|
foreach ($questionInfo as $qk => $qv) {
|
|
|
$list[$qk]['q'] = $qv['title'];
|
|
|
$list[$qk]['a'] = $qv['content'];
|
|
|
}
|
|
|
//处理返回信息
|
|
|
$result = array(
|
|
|
'header' => array('title' => '在线客服'),
|
|
|
'list' => $list
|
|
|
);
|
|
|
|
|
|
!empty($list) && $result['list'] = $list;
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
|
...
|
...
|
|