Showing
2 changed files
with
2 additions
and
2 deletions
@@ -94,7 +94,7 @@ class RecomData | @@ -94,7 +94,7 @@ class RecomData | ||
94 | $param['limit'] = $limit; | 94 | $param['limit'] = $limit; |
95 | $param['client_secret'] = Sign::getSign($param); | 95 | $param['client_secret'] = Sign::getSign($param); |
96 | 96 | ||
97 | - return Yohobuy::post(Yohobuy::SERVICE_URL . 'operations/api/v5/activitytemplate/getProduct', $param, 300); | 97 | + return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/activitytemplate/getProduct', $param, 300); |
98 | } | 98 | } |
99 | 99 | ||
100 | } | 100 | } |
@@ -186,7 +186,7 @@ class RecomController extends AbstractAction | @@ -186,7 +186,7 @@ class RecomController extends AbstractAction | ||
186 | } | 186 | } |
187 | 187 | ||
188 | /* 取可能喜欢的数据 */ | 188 | /* 取可能喜欢的数据 */ |
189 | - $recom = json_decode(RecomData::newPreference($templateId), true); | 189 | + $recom = RecomData::newPreference($templateId); |
190 | 190 | ||
191 | /* 构建人气单品数据 */ | 191 | /* 构建人气单品数据 */ |
192 | if (empty($recom) || empty($recom['data']['product_list'])) { | 192 | if (empty($recom) || empty($recom['data']['product_list'])) { |
-
Please register or login to post a comment