SaleData.php
654 Bytes
<?php
namespace LibModels\Wap\Product;
use Api\Yohobuy;
use Api\Sign;
/**
* SaleData 专区活动接口数据类
*
* @package LibModels\Wap\Product
* @author Gtskk
* @copyright 2016/4/25 20:03 Gtskk<iamgtskk@gmail.com>
* @version: 0.0.1
*/
class SaleData
{
/**
* @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);
return Yohobuy::get(API_URL, $param);
}
}