HotrankData.php 900 Bytes
<?php
namespace LibModels\Web\Product;

use Api\Yohobuy;
use Api\Sign;


/**
 * 热销排行
 * 
 *   */
class HotrankData extends \LibModels\Wap\Product\SearchData
{
    const URI_HOTRANK_RES = '/operations/service/v4/resource';
    const URI_HOTRANK_TAG = '/operations/api/v5/resource/get';
    
      
    /**
     获取热销排行 
     * 分类标签
     */
    public static function getHotranktag($client_type = 'web',$channel = 0, $is_concurrent = true, $callback = '')
    {
        // 构建必传参数
        $params = Yohobuy::param();
        $params['client_type'] = 'web';
        $params['channel'] =$channel ;
        $params['is_concurrent'] = true;
        $params['callback'] = $callback;
        $params['client_secret'] = Sign::getSign($params);  
        return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_HOTRANK_TAG, $params);
    }

}