|
|
<?php
|
|
|
namespace LibModels\Wap\Product;
|
|
|
|
|
|
/*
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
* and open the template in the editor.
|
|
|
use Api\Yohobuy;
|
|
|
use Api\Sign;
|
|
|
|
|
|
/**
|
|
|
* 新品到着,折扣专区接口操作类
|
|
|
*
|
|
|
* @name NewsaleData
|
|
|
* @package Library/LibModels/wap/Product
|
|
|
* @copyright yoho.inc
|
|
|
* @version 1.0 (2015-10-8)
|
|
|
* @author gtskk <rocky.zhang@yoho.cn>
|
|
|
*/
|
|
|
class NewsaleData
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
* 获取新品到着,折扣专区焦点图数据
|
|
|
* @param string $contentCode 内容位置码
|
|
|
* @return array 新品到着焦点图有关数据
|
|
|
*/
|
|
|
public static function getNewsaleFocus($contentCode)
|
|
|
{
|
|
|
// 构建必传参数
|
|
|
$param = Yohobuy::param();
|
|
|
|
|
|
$param['content_code'] = $contentCode;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL.'operations/api/v5/resource/get', $param);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|