HotrankData.php
998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace LibModels\Web\Product;
use Api\Yohobuy;
/**
* 热销排行
*/
class HotrankData extends \LibModels\Wap\Product\SearchData
{
const URI_HOTRANK_TAG = 'operations/service/v1/hotranktag';
/**
* 获取标签
* $client_type 客户端类型
* $channel 频道类型
*/
public static function getHotrankTag($client_type = 'web', $channel = 0, $is_concurrent = true)
{
$params = array(
'client_type' => $client_type,
'channel' => $channel,
'is_concurrent' => $is_concurrent);
return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_HOTRANK_TAG, 'getTag', $params);
}
/**
* 通过ID获取标签信息
* $id 标签ID
*/
public static function getTagById($id, $is_concurrent = true)
{
$params['id'] = $id;
return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_HOTRANK_TAG, 'getOneTag', $params);
}
}