| | |
| | | $params = [ |
| | | 'keyword' => $keyword, |
| | | 'opt_id' => $opt_id, |
| | | 'limit' => $pageSize, |
| | | 'page_size' => $pageSize, |
| | | 'custom_parameters' => '{"uid":"'.$common_relation_id.'"}', |
| | | 'with_coupon' => empty($with_coupon) ? '' : ($with_coupon == 1 ? "true" : "false"), |
| | | 'page' => $page, |
| | |
| | | } |
| | | $send_data = $this->makeSign($params,self::request_url['search_goods_url']); |
| | | $result = send_get(self::base_url,$send_data); |
| | | if(empty($result) || isset($result['error_response'])) fault('数据获取失败'); |
| | | if(empty($result) || isset($result['error_response'])) return []; //fault('数据获取失败'); |
| | | $list = $result['goods_search_response']['goods_list']; |
| | | if(!empty($list)){ |
| | | $tmp = []; |