Authored by hf

do modify libmodels filename suffix

Showing 22 changed files with 7 additions and 4 deletions
... ... @@ -57,7 +57,7 @@ class Yohobuy
$param = array(
'app_version' => '3.6',
'client_type' => $clientType,
'os_version' => 'yohobuy:h5',
'os_version' => 'android4.4.4:ASUS_X002',
'private_key' => self::$privateKeyList[$clientType],
'screen_size' => '720x1280',
'v' => '6',
... ... @@ -96,8 +96,9 @@ class Yohobuy
unset($data['private_key']);
}
if (!empty($data)) {
$url .= self::httpBuildQuery($url, $data);
$url = self::httpBuildQuery($url, $data);
}
echo $url;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
... ...
... ... @@ -13,7 +13,7 @@ use Api\Yohobuy;
* @version 1.0 (2015-10-8 11:51:32)
* @author fei.hong <fei.hong@yoho.cn>
*/
class RecomModel
class RecomData
{
/**
* 你可能喜欢的商品列表
... ... @@ -32,7 +32,7 @@ class RecomModel
$param['page'] = $page;
$param['limit'] = $limit;
$param['yh_channel'] = $channel;
$param['client_secret'] = Sign::makeSign($param);
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param);
}
... ...
<?php
use Action\AbstractAction;
use LibModels\Wap\Product\RecomData;
/**
* 频道选择
*/
... ...