Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 4ee13a9

Browse files
committed
适配了京东联盟新版接口,jd.union.open.category.goods.get增加了设置parentid以及grade参数。
1 parent a663dbb commit 4ee13a9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/JingDong/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Application
1414
{
1515
private static $instance;
1616

17-
private $gatewayUrl = 'https://router.jd.com/api';
17+
private $gatewayUrl = 'https://api.jd.com/routerjson';
1818

1919
public $appKey;
2020

@@ -89,7 +89,7 @@ public function execute($request, $access_token = null)
8989
$params["access_token"] = $access_token;
9090
}
9191

92-
$params['param_json'] = $request->getParamJson ();;
92+
$params['360buy_param_json'] = $request->getParamJson ();;
9393

9494

9595
$params['sign'] = $this->generateSign ($params);

src/JingDong/Request/JdUnionCategoryGoodsGetRequest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ class JdUnionCategoryGoodsGetRequest implements RequestInterface
3030
*/
3131
private $grade;
3232

33+
public function setParentId($parentId){
34+
$this->parentId = $parentId;
35+
}
36+
37+
public function setGrade($grade){
38+
$this->grade = $grade;
39+
}
40+
3341

3442
/**
3543
* @return string

0 commit comments

Comments
 (0)