SaleData.php 694 Bytes
<?php
namespace LibModels\Web\Product;

use Api\Yohobuy;
use Api\Sign;

/**
 * sale操作类
 * @name SaleData
 * @package 
 * @copyright yoho.inc
 * @version 1.0 (2016-01-07)
 * @author 
 */
class SaleData 
{
    /**
     * @param int $specialsaleId    专区ID
     * @return array
     */
    public static function getSpecial($specialsaleId) 
    {
        $param = Yohobuy::param();
        $param['special_id'] = intval($specialsaleId);
        $param['method'] = 'app.resources.getOneSpecial';
        $param['client_secret'] = Sign::getSign($param);

        //TODO等待接口发布到测试环境
        return Yohobuy::get(API_URL, $param);
    }

}