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