...
|
...
|
@@ -609,4 +609,20 @@ class SearchData |
|
|
|
|
|
return Yohobuy::get(API_URL, $param);
|
|
|
}
|
|
|
|
|
|
public static function webSearchByCondition(array $condition, $isOnlyUrl = false) {
|
|
|
$result = array();
|
|
|
if(!empty($condition)) {
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'web.search.search';
|
|
|
$param += $condition;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
if($isOnlyUrl) {
|
|
|
return Yohobuy::httpBuildQuery(API_URL, $param);
|
|
|
}
|
|
|
$result = Yohobuy::get(API_URL, $param);
|
|
|
}
|
|
|
return $result;
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|