| | |
| | | 'album_url' => 'https://openapi.dataoke.com/api/album/album-list', |
| | | 'album_goods_url'=>'https://openapi.dataoke.com/api/album/goods-list', |
| | | 'fqb_url'=>'https://dtkapi.ffquan.cn/dtk_go_app_api/v1/page-goods-ranking', |
| | | 'zsz_url'=>'https://dtkapi.ffquan.cn/dtk_go_app_api/v1/page-super-discount', |
| | | 'xy_url'=>'https://v2.api.haodanku.com/makeup_items', |
| | | 'friends-circle-list'=>'https://openapi.dataoke.com/api/goods/friends-circle-list', |
| | | 'parse_url'=>'https://openapi.dataoke.com/api/dels/kit/contentParse', |
| | | 'similer_url'=>'https://openapi.dataoke.com/api/goods/list-similer-goods-by-open', |
| | |
| | | $result['data']['data']=$list; |
| | | return $result; |
| | | } |
| | | /** |
| | | * |
| | | *折上折单页接口 |
| | | */ |
| | | public function zszGoodsList($cid,$appkey) |
| | | { |
| | | $params = $this->setParams(['cId'=>$cid,'app_key'=>$appkey]); |
| | | $result = send_get(self::request_url['zsz_url'],$params); |
| | | if(empty($result) || $result['code'] != 1) return []; |
| | | $list = $result['data']['data']['list']; |
| | | if(!empty($list)){ |
| | | foreach($list as &$goods){ |
| | | $goods = self::GetGoodsFy($goods,$goods["jiage"],$goods["yongjin"]/100); |
| | | } |
| | | } |
| | | $result['data']['data']['list']=$list; |
| | | return $result; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | *小样单页接口 |
| | | */ |
| | | |
| | | public function xyGoodsList($apikey,$keyword,$min_id,$back) |
| | | { |
| | | $params = $this->setParams(['apikey'=>$apikey,'keyword'=>$keyword,'min_id'=>$min_id,'back'=>$back]); |
| | | $result = send_get(self::request_url['xy_url'],$params); |
| | | if(empty($result) || $result['code'] != 200) return []; |
| | | $list = $result['data']; |
| | | if(!empty($list)){ |
| | | foreach($list as &$goods){ |
| | | $goods = self::GetGoodsFy($goods,$goods["itemendprice"],$goods["tkrates"]); |
| | | } |
| | | } |
| | | $result['data']=$list; |
| | | return $result; |
| | | } |
| | | /** |
| | | * 获取专辑列表 |
| | | * |