...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace LibModels\Wap\Home;
|
|
|
|
|
|
use Api\Sign;
|
|
|
use Api\Yohobuy;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -20,23 +21,28 @@ class OnlineData |
|
|
|
|
|
/*
|
|
|
* 获取帮助列表(分类),缓存1h
|
|
|
* clientType客户端
|
|
|
*/
|
|
|
|
|
|
public static function getOnlineServiceInfo($clientType = 'iphone')
|
|
|
public static function getOnlineServiceInfo()
|
|
|
{
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . self::ONLINE_URI . 'getCategory', array('client_type' => $clientType), 3600);
|
|
|
$params = Yohobuy::param();
|
|
|
$params['client_secret'] = Sign::getSign($params);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . self::ONLINE_URI . 'getCategory', $params, 3600);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 获取问题详情,缓存1h
|
|
|
* cateId问题分类ID
|
|
|
* clientType客户端
|
|
|
*/
|
|
|
|
|
|
public static function getOnlineServiceDetail($cateId, $clientType = 'iphone')
|
|
|
public static function getOnlineServiceDetail($cateId)
|
|
|
{
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . self::ONLINE_URI . 'getHelp', array('category_id' => $cateId, 'client_type' => $clientType), 3600);
|
|
|
$params = Yohobuy::param();
|
|
|
$params['category_id'] = $cateId;
|
|
|
$params['client_secret'] = Sign::getSign($params);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . self::ONLINE_URI . 'getHelp', $params, 3600);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|