|
|
@@ -574,6 +574,28 @@ class DaTaoKe
|
|
574
|
574
|
return ['code' => 1, 'data' => $goodsList, 'raw' => $pddGoodsList];
|
|
575
|
575
|
}
|
|
576
|
576
|
|
|
|
577
|
+
|
|
|
578
|
+
|
|
|
579
|
+ //拼多多商品搜索_第三方大淘客
|
|
|
580
|
+ public static function pddCatList($parentId = 0)
|
|
|
581
|
+ {
|
|
|
582
|
+ $queryData = [
|
|
|
583
|
+ 'appKey' => self::$appKey,
|
|
|
584
|
+ 'version' => 'v2.0.0',
|
|
|
585
|
+ 'parentId' => $parentId,
|
|
|
586
|
+ ];
|
|
|
587
|
+ $url = 'https://openapi.dataoke.com/api/dels/pdd/category/search';
|
|
|
588
|
+ $queryData['sign'] = self::makeSign($queryData, self::$appSecret);
|
|
|
589
|
+ $fullUrl = "{$url}?" . http_build_query($queryData);
|
|
|
590
|
+ $response = self::sendCurl($fullUrl);
|
|
|
591
|
+ if ($response['code'] != 0)//运行出错
|
|
|
592
|
+ return ['code' => 0, 'data' => $response];
|
|
|
593
|
+
|
|
|
594
|
+ return ['code' => 1, 'data' => $response];
|
|
|
595
|
+ }
|
|
|
596
|
+
|
|
|
597
|
+
|
|
|
598
|
+
|
|
577
|
599
|
// 拼多多定时获取列表
|
|
578
|
600
|
public function pdd_cron()
|
|
579
|
601
|
{
|