HotrankData.php 946 Bytes
<?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);
    }
}