do modify libmodels filename suffix
Showing
22 changed files
with
7 additions
and
4 deletions
@@ -57,7 +57,7 @@ class Yohobuy | @@ -57,7 +57,7 @@ class Yohobuy | ||
57 | $param = array( | 57 | $param = array( |
58 | 'app_version' => '3.6', | 58 | 'app_version' => '3.6', |
59 | 'client_type' => $clientType, | 59 | 'client_type' => $clientType, |
60 | - 'os_version' => 'yohobuy:h5', | 60 | + 'os_version' => 'android4.4.4:ASUS_X002', |
61 | 'private_key' => self::$privateKeyList[$clientType], | 61 | 'private_key' => self::$privateKeyList[$clientType], |
62 | 'screen_size' => '720x1280', | 62 | 'screen_size' => '720x1280', |
63 | 'v' => '6', | 63 | 'v' => '6', |
@@ -96,8 +96,9 @@ class Yohobuy | @@ -96,8 +96,9 @@ class Yohobuy | ||
96 | unset($data['private_key']); | 96 | unset($data['private_key']); |
97 | } | 97 | } |
98 | if (!empty($data)) { | 98 | if (!empty($data)) { |
99 | - $url .= self::httpBuildQuery($url, $data); | 99 | + $url = self::httpBuildQuery($url, $data); |
100 | } | 100 | } |
101 | + echo $url; | ||
101 | 102 | ||
102 | $ch = curl_init($url); | 103 | $ch = curl_init($url); |
103 | curl_setopt($ch, CURLOPT_HEADER, 0); | 104 | curl_setopt($ch, CURLOPT_HEADER, 0); |
@@ -13,7 +13,7 @@ use Api\Yohobuy; | @@ -13,7 +13,7 @@ use Api\Yohobuy; | ||
13 | * @version 1.0 (2015-10-8 11:51:32) | 13 | * @version 1.0 (2015-10-8 11:51:32) |
14 | * @author fei.hong <fei.hong@yoho.cn> | 14 | * @author fei.hong <fei.hong@yoho.cn> |
15 | */ | 15 | */ |
16 | -class RecomModel | 16 | +class RecomData |
17 | { | 17 | { |
18 | /** | 18 | /** |
19 | * 你可能喜欢的商品列表 | 19 | * 你可能喜欢的商品列表 |
@@ -32,7 +32,7 @@ class RecomModel | @@ -32,7 +32,7 @@ class RecomModel | ||
32 | $param['page'] = $page; | 32 | $param['page'] = $page; |
33 | $param['limit'] = $limit; | 33 | $param['limit'] = $limit; |
34 | $param['yh_channel'] = $channel; | 34 | $param['yh_channel'] = $channel; |
35 | - $param['client_secret'] = Sign::makeSign($param); | 35 | + $param['client_secret'] = Sign::getSign($param); |
36 | 36 | ||
37 | return Yohobuy::get(Yohobuy::API_URL, $param); | 37 | return Yohobuy::get(Yohobuy::API_URL, $param); |
38 | } | 38 | } |
-
Please register or login to post a comment