...
|
...
|
@@ -8,14 +8,13 @@ use Plugin\Helpers; |
|
|
/*
|
|
|
* 帮助中心相关数据处理
|
|
|
*/
|
|
|
class HelpModel
|
|
|
{
|
|
|
|
|
|
class HelpModel {
|
|
|
/*
|
|
|
* 获取帮助列表
|
|
|
*/
|
|
|
|
|
|
public static function serviceInfo()
|
|
|
{
|
|
|
public static function serviceInfo() {
|
|
|
//调用接口获取数据
|
|
|
$res = json_decode(HelpData::serviceInfo(), TRUE);
|
|
|
$cateInfo = $res['data'];
|
...
|
...
|
@@ -24,8 +23,8 @@ class HelpModel |
|
|
foreach ($cateInfo as $key => $value) {
|
|
|
$iHelp[$key]['caption'] = $value['caption'];
|
|
|
$iHelp[$key]['code'] = $value['code'];
|
|
|
$iHelp[$key]['url'] = Helpers::url('/home/helpDetail', array('code' => $value['code'], 'caption' => $value['caption']) );
|
|
|
}
|
|
|
|
|
|
}
|
|
|
return $iHelp;
|
|
|
}
|
...
|
...
|
@@ -34,13 +33,14 @@ class HelpModel |
|
|
* 获取帮助中心详细内容
|
|
|
*/
|
|
|
|
|
|
public static function serviceDetail($code)
|
|
|
{
|
|
|
|
|
|
public static function serviceDetail($code) {
|
|
|
$res = HelpData::serviceDetail($code);
|
|
|
if (!empty($res)) {
|
|
|
if (false !== ($part = strstr($res,'<div class="deal_main">'))) {
|
|
|
$res = strstr($part,'</body>',TRUE);
|
|
|
}
|
|
|
}
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
|
|
|
...
|
...
|
|