| | |
| | | 'parse_url'=>'https://openapi.dataoke.com/api/dels/kit/contentParse', |
| | | 'similer_url'=>'https://openapi.dataoke.com/api/goods/list-similer-goods-by-open', |
| | | 'gift_money_url'=>'https://openapi.dataoke.com/api/goods/first-order-gift-money', |
| | | 'bottom_price_url'=>'https://openapi.dataoke.com/api/goods/get-history-low-price-list', |
| | | ]; |
| | | |
| | | const shop_type = ["0"=>"淘宝","1"=>"天猫","2"=>"天猫超市","3"=>"天猫国际"]; |
| | |
| | | $result['data']=$list; |
| | | return $result; |
| | | } |
| | | |
| | | /** |
| | | * 历史新低商品 |
| | | */ |
| | | public function bottomPrice($pageSize,$pageId,$cids,$sort) |
| | | { |
| | | if($cids==0) |
| | | { |
| | | $cids=""; |
| | | } |
| | | $params_data = [ |
| | | 'pageSize'=>$pageSize, |
| | | 'pageId' =>$pageId, |
| | | 'cids' => $cids, |
| | | 'sort'=>$sort |
| | | ]; |
| | | $params = $this->setParams($params_data); |
| | | $result = send_get(self::request_url['bottom_price_url'],$params); |
| | | if(empty($result) || $result['code'] != 0) return []; |
| | | $list = $result['data']['list']; |
| | | if(!empty($list)){ |
| | | foreach($list as &$goods){ |
| | | $goods = self::GetGoodsFy($goods,$goods["actualPrice"],$goods["commissionRate"]); |
| | | } |
| | | } |
| | | $result['data']['list']=$list; |
| | | return $result; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取专辑列表 |
| | | * |