Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
2 changed files
with
32 additions
and
5 deletions
framework @ 75bbc3b0
1 | <?php | 1 | <?php |
2 | +namespace LibModels\Wap\Product; | ||
2 | 3 | ||
3 | -/* | ||
4 | - * To change this license header, choose License Headers in Project Properties. | ||
5 | - * To change this template file, choose Tools | Templates | ||
6 | - * and open the template in the editor. | 4 | +use Api\Yohobuy; |
5 | +use Api\Sign; | ||
6 | + | ||
7 | +/** | ||
8 | + * 新品到着,折扣专区接口操作类 | ||
9 | + * | ||
10 | + * @name NewsaleData | ||
11 | + * @package Library/LibModels/wap/Product | ||
12 | + * @copyright yoho.inc | ||
13 | + * @version 1.0 (2015-10-8) | ||
14 | + * @author gtskk <rocky.zhang@yoho.cn> | ||
7 | */ | 15 | */ |
16 | +class NewsaleData | ||
17 | +{ | ||
18 | + | ||
19 | + /** | ||
20 | + * 获取新品到着,折扣专区焦点图数据 | ||
21 | + * @param string $contentCode 内容位置码 | ||
22 | + * @return array 新品到着焦点图有关数据 | ||
23 | + */ | ||
24 | + public static function getNewsaleFocus($contentCode) | ||
25 | + { | ||
26 | + // 构建必传参数 | ||
27 | + $param = Yohobuy::param(); | ||
8 | 28 | ||
29 | + $param['content_code'] = $contentCode; | ||
30 | + $param['client_secret'] = Sign::getSign($param); | ||
31 | + | ||
32 | + return Yohobuy::get(Yohobuy::SERVICE_URL.'operations/api/v5/resource/get', $param); | ||
33 | + } | ||
34 | + | ||
35 | +} |
-
Please register or login to post a comment