Authored by 郝肖肖

你可能喜欢的 get请求

... ... @@ -94,7 +94,7 @@ class RecomData
$param['limit'] = $limit;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::post(Yohobuy::SERVICE_URL . 'operations/api/v5/activitytemplate/getProduct', $param, 300);
return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/activitytemplate/getProduct', $param, 300);
}
}
... ...
... ... @@ -186,7 +186,7 @@ class RecomController extends AbstractAction
}
/* 取可能喜欢的数据 */
$recom = json_decode(RecomData::newPreference($templateId), true);
$recom = RecomData::newPreference($templateId);
/* 构建人气单品数据 */
if (empty($recom) || empty($recom['data']['product_list'])) {
... ...