Showing
1 changed file
with
3 additions
and
1 deletions
@@ -40,7 +40,9 @@ class RecomData | @@ -40,7 +40,9 @@ class RecomData | ||
40 | $param['page'] = $page; | 40 | $param['page'] = $page; |
41 | $param['limit'] = $limit; | 41 | $param['limit'] = $limit; |
42 | $param['yh_channel'] = $channel; | 42 | $param['yh_channel'] = $channel; |
43 | - $param['client_id'] = $_COOKIE['_yasvd']; | 43 | + if (isset($_COOKIE['_yasvd'])) { |
44 | + $param['client_id'] = $_COOKIE['_yasvd']; | ||
45 | + } | ||
44 | $param['client_secret'] = Sign::getSign($param); | 46 | $param['client_secret'] = Sign::getSign($param); |
45 | 47 | ||
46 | return Yohobuy::get(API_URL, $param, 300); | 48 | return Yohobuy::get(API_URL, $param, 300); |
-
Please register or login to post a comment