正在显示
12 个修改的文件
包含
137 行增加
和
4 行删除
| @@ -462,7 +462,7 @@ class Main | @@ -462,7 +462,7 @@ class Main | ||
| 462 | $targets[] = Name::methodName($code->className); | 462 | $targets[] = Name::methodName($code->className); |
| 463 | } while (!$queue->isEmpty()); | 463 | } while (!$queue->isEmpty()); |
| 464 | 464 | ||
| 465 | - $targets = array_unique($targets); | 465 | + $targets = array_unique(array_filter($targets)); |
| 466 | 466 | ||
| 467 | $metaMethods = array_map(function ($target) { | 467 | $metaMethods = array_map(function ($target) { |
| 468 | $name = ucfirst($target); | 468 | $name = ucfirst($target); |
| @@ -31,7 +31,7 @@ use Lackoxygen\TiktokShop\Support\Verify; | @@ -31,7 +31,7 @@ use Lackoxygen\TiktokShop\Support\Verify; | ||
| 31 | * @method Request\Logistics\LogisticsInterface logistics() | 31 | * @method Request\Logistics\LogisticsInterface logistics() |
| 32 | * @method Request\Warehouse\WarehouseInterface warehouse() | 32 | * @method Request\Warehouse\WarehouseInterface warehouse() |
| 33 | * @method Request\Product\ProductInterface product() | 33 | * @method Request\Product\ProductInterface product() |
| 34 | - * @method Request\\Interface () | 34 | + * @method Request\Material\MaterialInterface material() |
| 35 | * @method Request\Address\AddressInterface address() | 35 | * @method Request\Address\AddressInterface address() |
| 36 | */ | 36 | */ |
| 37 | class Application | 37 | class Application |
| @@ -32,7 +32,7 @@ use Lackoxygen\TiktokShop\Application; | @@ -32,7 +32,7 @@ use Lackoxygen\TiktokShop\Application; | ||
| 32 | * @method static Request\Logistics\LogisticsInterface logistics() | 32 | * @method static Request\Logistics\LogisticsInterface logistics() |
| 33 | * @method static Request\Warehouse\WarehouseInterface warehouse() | 33 | * @method static Request\Warehouse\WarehouseInterface warehouse() |
| 34 | * @method static Request\Product\ProductInterface product() | 34 | * @method static Request\Product\ProductInterface product() |
| 35 | - * @method static Request\\Interface () | 35 | + * @method static Request\Material\MaterialInterface material() |
| 36 | * @method static Request\Address\AddressInterface address() | 36 | * @method static Request\Address\AddressInterface address() |
| 37 | */ | 37 | */ |
| 38 | class Facade extends LaravelFacade | 38 | class Facade extends LaravelFacade |
| @@ -669,6 +669,28 @@ class Buyin extends Request implements BuyinInterface | @@ -669,6 +669,28 @@ class Buyin extends Request implements BuyinInterface | ||
| 669 | /** | 669 | /** |
| 670 | * @inheritDoc | 670 | * @inheritDoc |
| 671 | */ | 671 | */ |
| 672 | + public function buyinInstituteLivePreviewList(array $params = []) | ||
| 673 | + { | ||
| 674 | + $this->builder->method('POST') | ||
| 675 | + ->service('buyin.instituteLivePreviewList') | ||
| 676 | + ->path('/buyin/instituteLivePreviewList') | ||
| 677 | + ->params($params); | ||
| 678 | + } | ||
| 679 | + | ||
| 680 | + /** | ||
| 681 | + * @inheritDoc | ||
| 682 | + */ | ||
| 683 | + public function buyinKolLivePreviewList(array $params = []) | ||
| 684 | + { | ||
| 685 | + $this->builder->method('POST') | ||
| 686 | + ->service('buyin.kolLivePreviewList') | ||
| 687 | + ->path('/buyin/kolLivePreviewList') | ||
| 688 | + ->params($params); | ||
| 689 | + } | ||
| 690 | + | ||
| 691 | + /** | ||
| 692 | + * @inheritDoc | ||
| 693 | + */ | ||
| 672 | public function buyinMHandleTrusteeshipApply(array $params = []) | 694 | public function buyinMHandleTrusteeshipApply(array $params = []) |
| 673 | { | 695 | { |
| 674 | $this->builder->method('POST') | 696 | $this->builder->method('POST') |
| @@ -490,6 +490,22 @@ interface BuyinInterface | @@ -490,6 +490,22 @@ interface BuyinInterface | ||
| 490 | public function buyinKolLiveShare(array $params = []); | 490 | public function buyinKolLiveShare(array $params = []); |
| 491 | 491 | ||
| 492 | /** | 492 | /** |
| 493 | + * 获取直播预告及商品信息列表 | ||
| 494 | + * @link https://op.jinritemai.com/docs/api-docs/61/2224 | ||
| 495 | + * @param array $params | ||
| 496 | + * @return ResultSet | ||
| 497 | + */ | ||
| 498 | + public function buyinInstituteLivePreviewList(array $params = []); | ||
| 499 | + | ||
| 500 | + /** | ||
| 501 | + * 直播预告及商品信息列表 | ||
| 502 | + * @link https://op.jinritemai.com/docs/api-docs/61/2223 | ||
| 503 | + * @param array $params | ||
| 504 | + * @return ResultSet | ||
| 505 | + */ | ||
| 506 | + public function buyinKolLivePreviewList(array $params = []); | ||
| 507 | + | ||
| 508 | + /** | ||
| 493 | * 团长托管商品审核 | 509 | * 团长托管商品审核 |
| 494 | * @link https://op.jinritemai.com/docs/api-docs/61/2138 | 510 | * @link https://op.jinritemai.com/docs/api-docs/61/2138 |
| 495 | * @param array $params | 511 | * @param array $params |
| @@ -460,6 +460,17 @@ class Logistics extends Request implements LogisticsInterface | @@ -460,6 +460,17 @@ class Logistics extends Request implements LogisticsInterface | ||
| 460 | /** | 460 | /** |
| 461 | * @inheritDoc | 461 | * @inheritDoc |
| 462 | */ | 462 | */ |
| 463 | + public function logisticsResourceAbilityServiceArea(array $params = []) | ||
| 464 | + { | ||
| 465 | + $this->builder->method('POST') | ||
| 466 | + ->service('logistics.resourceAbilityServiceArea') | ||
| 467 | + ->path('/logistics/resourceAbilityServiceArea') | ||
| 468 | + ->params($params); | ||
| 469 | + } | ||
| 470 | + | ||
| 471 | + /** | ||
| 472 | + * @inheritDoc | ||
| 473 | + */ | ||
| 463 | public function crossBorderReceiveReceiptOfCustomsWayBill(array $params = []) | 474 | public function crossBorderReceiveReceiptOfCustomsWayBill(array $params = []) |
| 464 | { | 475 | { |
| 465 | $this->builder->method('POST') | 476 | $this->builder->method('POST') |
| @@ -338,6 +338,14 @@ interface LogisticsInterface | @@ -338,6 +338,14 @@ interface LogisticsInterface | ||
| 338 | public function freightTemplateDetail(array $params = []); | 338 | public function freightTemplateDetail(array $params = []); |
| 339 | 339 | ||
| 340 | /** | 340 | /** |
| 341 | + * 服务商能力的服务范围同步 | ||
| 342 | + * @link https://op.jinritemai.com/docs/api-docs/16/2147 | ||
| 343 | + * @param array $params | ||
| 344 | + * @return ResultSet | ||
| 345 | + */ | ||
| 346 | + public function logisticsResourceAbilityServiceArea(array $params = []); | ||
| 347 | + | ||
| 348 | + /** | ||
| 341 | * 快递服务商将运单申报的回执回告至平台 | 349 | * 快递服务商将运单申报的回执回告至平台 |
| 342 | * @link https://op.jinritemai.com/docs/api-docs/16/2020 | 350 | * @link https://op.jinritemai.com/docs/api-docs/16/2020 |
| 343 | * @param array $params | 351 | * @param array $params |
| @@ -361,6 +361,39 @@ class Product extends Request implements ProductInterface | @@ -361,6 +361,39 @@ class Product extends Request implements ProductInterface | ||
| 361 | /** | 361 | /** |
| 362 | * @inheritDoc | 362 | * @inheritDoc |
| 363 | */ | 363 | */ |
| 364 | + public function productIsvgetClueList(array $params = []) | ||
| 365 | + { | ||
| 366 | + $this->builder->method('POST') | ||
| 367 | + ->service('product.isv/getClueList') | ||
| 368 | + ->path('/product/isv/getClueList') | ||
| 369 | + ->params($params); | ||
| 370 | + } | ||
| 371 | + | ||
| 372 | + /** | ||
| 373 | + * @inheritDoc | ||
| 374 | + */ | ||
| 375 | + public function productIsvplead(array $params = []) | ||
| 376 | + { | ||
| 377 | + $this->builder->method('POST') | ||
| 378 | + ->service('product.isv/plead') | ||
| 379 | + ->path('/product/isv/plead') | ||
| 380 | + ->params($params); | ||
| 381 | + } | ||
| 382 | + | ||
| 383 | + /** | ||
| 384 | + * @inheritDoc | ||
| 385 | + */ | ||
| 386 | + public function productIsvqueryClueAuditStatus(array $params = []) | ||
| 387 | + { | ||
| 388 | + $this->builder->method('POST') | ||
| 389 | + ->service('product.isv/queryClueAuditStatus') | ||
| 390 | + ->path('/product/isv/queryClueAuditStatus') | ||
| 391 | + ->params($params); | ||
| 392 | + } | ||
| 393 | + | ||
| 394 | + /** | ||
| 395 | + * @inheritDoc | ||
| 396 | + */ | ||
| 364 | public function productGetRecommendCategory(array $params = []) | 397 | public function productGetRecommendCategory(array $params = []) |
| 365 | { | 398 | { |
| 366 | $this->builder->method('POST') | 399 | $this->builder->method('POST') |
| @@ -266,6 +266,30 @@ interface ProductInterface | @@ -266,6 +266,30 @@ interface ProductInterface | ||
| 266 | public function skuEditPrice(array $params = []); | 266 | public function skuEditPrice(array $params = []); |
| 267 | 267 | ||
| 268 | /** | 268 | /** |
| 269 | + * 提供给isv,根据店铺获取线索 | ||
| 270 | + * @link https://op.jinritemai.com/docs/api-docs/14/2195 | ||
| 271 | + * @param array $params | ||
| 272 | + * @return ResultSet | ||
| 273 | + */ | ||
| 274 | + public function productIsvgetClueList(array $params = []); | ||
| 275 | + | ||
| 276 | + /** | ||
| 277 | + * 提报申诉 | ||
| 278 | + * @link https://op.jinritemai.com/docs/api-docs/14/2150 | ||
| 279 | + * @param array $params | ||
| 280 | + * @return ResultSet | ||
| 281 | + */ | ||
| 282 | + public function productIsvplead(array $params = []); | ||
| 283 | + | ||
| 284 | + /** | ||
| 285 | + * 查询线索提报审核结果 | ||
| 286 | + * @link https://op.jinritemai.com/docs/api-docs/14/2148 | ||
| 287 | + * @param array $params | ||
| 288 | + * @return ResultSet | ||
| 289 | + */ | ||
| 290 | + public function productIsvqueryClueAuditStatus(array $params = []); | ||
| 291 | + | ||
| 292 | + /** | ||
| 269 | * 商品类目预测 | 293 | * 商品类目预测 |
| 270 | * @link https://op.jinritemai.com/docs/api-docs/14/2004 | 294 | * @link https://op.jinritemai.com/docs/api-docs/14/2004 |
| 271 | * @param array $params | 295 | * @param array $params |
| @@ -60,4 +60,15 @@ class Token extends Request implements TokenInterface | @@ -60,4 +60,15 @@ class Token extends Request implements TokenInterface | ||
| 60 | ->path('/open/appIpWhiteListAdd') | 60 | ->path('/open/appIpWhiteListAdd') |
| 61 | ->params($params); | 61 | ->params($params); |
| 62 | } | 62 | } |
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * @inheritDoc | ||
| 66 | + */ | ||
| 67 | + public function openMaterialToken(array $params = []) | ||
| 68 | + { | ||
| 69 | + $this->builder->method('POST') | ||
| 70 | + ->service('open.materialToken') | ||
| 71 | + ->path('/open/materialToken') | ||
| 72 | + ->params($params); | ||
| 73 | + } | ||
| 63 | } | 74 | } |
| @@ -48,4 +48,12 @@ interface TokenInterface | @@ -48,4 +48,12 @@ interface TokenInterface | ||
| 48 | * @return ResultSet | 48 | * @return ResultSet |
| 49 | */ | 49 | */ |
| 50 | public function openAppIpWhiteListAdd(array $params = []); | 50 | public function openAppIpWhiteListAdd(array $params = []); |
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 获取素材上传接口访问token | ||
| 54 | + * @link https://op.jinritemai.com/docs/api-docs/162/2222 | ||
| 55 | + * @param array $params | ||
| 56 | + * @return ResultSet | ||
| 57 | + */ | ||
| 58 | + public function openMaterialToken(array $params = []); | ||
| 51 | } | 59 | } |
| @@ -55,7 +55,7 @@ class Signature extends Config | @@ -55,7 +55,7 @@ class Signature extends Config | ||
| 55 | public function generate() | 55 | public function generate() |
| 56 | { | 56 | { |
| 57 | $paramPattern = 'app_key' . $this->config->getAppKey( | 57 | $paramPattern = 'app_key' . $this->config->getAppKey( |
| 58 | - ) . 'method' . $this->method . 'param_json' . $this->paramJson . | 58 | + ) . 'method' . $this->method . 'param_json' . $this->paramJson . |
| 59 | 'timestamp' . $this->timestamp . 'v' . $this->config->getVersion(); | 59 | 'timestamp' . $this->timestamp . 'v' . $this->config->getVersion(); |
| 60 | 60 | ||
| 61 | $body = $this->config->getAppSecret() . $paramPattern . $this->config->getAppSecret(); | 61 | $body = $this->config->getAppSecret() . $paramPattern . $this->config->getAppSecret(); |
-
请 注册 或 登录 后发表评论