...
|
...
|
@@ -109,6 +109,31 @@ class SearchData |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 通过 SKN 查询商品
|
|
|
* @param $condition
|
|
|
* @return mixed
|
|
|
*/
|
|
|
public static function searchBySkn($condition)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'h5.product.batch';
|
|
|
if (!isset($condition['order'])) {
|
|
|
$param['order'] = 's_t_desc';
|
|
|
}
|
|
|
if (!isset($condition['page'])) {
|
|
|
$param['page'] = 1;
|
|
|
}
|
|
|
if (!isset($condition['limit'])) {
|
|
|
$param['limit'] = 60;
|
|
|
}
|
|
|
if (!empty($condition)) {
|
|
|
$param += $condition;
|
|
|
}
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
return Yohobuy::get(API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 根据给定查询数据搜索数据列表 (新的)
|
|
|
*
|
|
|
* @param string $query 查询条件, 默认为null
|
...
|
...
|
|