SaleData.php 915 Bytes
<?php

namespace LibModels\Wap\Product;

use Api\Yohobuy;

/**
 * SaleData 专区活动接口数据类
 *
 * @package LibModels\Wap\Product
 * @author Gtskk
 * @copyright 2016/4/25 20:03 Gtskk<iamgtskk@gmail.com>
 * @version: 0.0.1
 */
class SaleData
{
    const URL_SALE_SPECIAL = '/operating/service/v1/special';

    /**
     * @param $specialsaleId    专区ID
     * @return array
     */
    public static function getSpecial($specialsaleId)
    {
        /*$param = Yohobuy::param();
        $param['special_id'] = $specialsaleId;
        $param['method'] = 'app.resources.getOneSpecial';
        $param['client_secret'] = Sign::getSign($param);

        //TODO等待接口发布到测试环境
        return Yohobuy::get('http://192.168.102.205:8080/gateway', $param);*/

        return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URL_SALE_SPECIAL, 'getOneSpecial', array($specialsaleId), 600);
    }
}