作者 lackoxygen

rebuild

... ... @@ -543,6 +543,8 @@ FACADE;
return $left . ' static' . $right;
}, $metas);
array_unshift($metas, ' * @method static Application accessToken(string $token)');
$metaAnnotate = '/**' . "\n";
$metaAnnotate .= join("\n", $metas) . "\n";
$metaAnnotate .= ' */';
... ...
... ... @@ -31,7 +31,7 @@ use Lackoxygen\TiktokShop\Support\Verify;
* @method Request\Logistics\LogisticsInterface logistics()
* @method Request\Warehouse\WarehouseInterface warehouse()
* @method Request\Product\ProductInterface product()
* @method Request\Material\MaterialInterface material()
* @method Request\\Interface ()
* @method Request\Address\AddressInterface address()
*/
class Application
... ...
... ... @@ -9,6 +9,7 @@ use Lackoxygen\TiktokShop\Support\Verify;
use Lackoxygen\TiktokShop\Application;
/**
* @method static Application accessToken(string $token)
* @method static Verify verify()
* @method static Request\Pigeon\PigeonInterface pigeon()
* @method static Request\Sms\SmsInterface sms()
... ... @@ -31,7 +32,7 @@ use Lackoxygen\TiktokShop\Application;
* @method static Request\Logistics\LogisticsInterface logistics()
* @method static Request\Warehouse\WarehouseInterface warehouse()
* @method static Request\Product\ProductInterface product()
* @method static Request\Material\MaterialInterface material()
* @method static Request\\Interface ()
* @method static Request\Address\AddressInterface address()
*/
class Facade extends LaravelFacade
... ...
... ... @@ -427,6 +427,17 @@ class Logistics extends Request implements LogisticsInterface
/**
* @inheritDoc
*/
public function logisticsCreateSFOrder(array $params = [])
{
$this->builder->method('POST')
->service('logistics.createSFOrder')
->path('/logistics/createSFOrder')
->params($params);
}
/**
* @inheritDoc
*/
public function addressGetAreasByProvince(array $params = [])
{
$this->builder->method('POST')
... ...
... ... @@ -314,6 +314,14 @@ interface LogisticsInterface
public function addressGetProvince(array $params = []);
/**
* 顺丰新下单接口
* @link https://op.jinritemai.com/docs/api-docs/16/1847
* @param array $params
* @return ResultSet
*/
public function logisticsCreateSFOrder(array $params = []);
/**
* 根据省获取全量四级地址
* @link https://op.jinritemai.com/docs/api-docs/16/1844
* @param array $params
... ...
... ... @@ -64,17 +64,6 @@ class Member extends Request implements MemberInterface
/**
* @inheritDoc
*/
public function memberGetJoinBonusCountForUser(array $params = [])
{
$this->builder->method('POST')
->service('member.GetJoinBonusCountForUser')
->path('/member/GetJoinBonusCountForUser')
->params($params);
}
/**
* @inheritDoc
*/
public function memberBatchGetHistoryMemberUnionId(array $params = [])
{
$this->builder->method('POST')
... ...
... ... @@ -50,14 +50,6 @@ interface MemberInterface
public function memberGetUserShopMemberCard(array $params = []);
/**
* 获取用户裂变引导入会人数
* @link https://op.jinritemai.com/docs/api-docs/66/1801
* @param array $params
* @return ResultSet
*/
public function memberGetJoinBonusCountForUser(array $params = []);
/**
* 【品牌会员店铺专用】根据店铺会员的openId获取品牌维度的用户身份标识unionId
* @link https://op.jinritemai.com/docs/api-docs/66/2136
* @param array $params
... ...
... ... @@ -273,17 +273,6 @@ class Product extends Request implements ProductInterface
/**
* @inheritDoc
*/
public function opptyProductApply(array $params = [])
{
$this->builder->method('POST')
->service('opptyProduct.apply')
->path('/opptyProduct/apply')
->params($params);
}
/**
* @inheritDoc
*/
public function productQualityDetail(array $params = [])
{
$this->builder->method('POST')
... ... @@ -317,17 +306,6 @@ class Product extends Request implements ProductInterface
/**
* @inheritDoc
*/
public function opptyProductClue(array $params = [])
{
$this->builder->method('POST')
->service('opptyProduct.clue')
->path('/opptyProduct/clue')
->params($params);
}
/**
* @inheritDoc
*/
public function spuAddShopSpu(array $params = [])
{
$this->builder->method('POST')
... ...
... ... @@ -202,14 +202,6 @@ interface ProductInterface
public function opptyProductGetApplyProgress(array $params = []);
/**
* 机会品提报
* @link https://op.jinritemai.com/docs/api-docs/14/1798
* @param array $params
* @return ResultSet
*/
public function opptyProductApply(array $params = []);
/**
* 商品信息质量分查询API
* @link https://op.jinritemai.com/docs/api-docs/14/1830
* @param array $params
... ... @@ -234,14 +226,6 @@ interface ProductInterface
public function productEditBuyerLimit(array $params = []);
/**
* 机会品线索触达
* @link https://op.jinritemai.com/docs/api-docs/14/1828
* @param array $params
* @return ResultSet
*/
public function opptyProductClue(array $params = []);
/**
* 店铺新增SPU
* @link https://op.jinritemai.com/docs/api-docs/14/1827
* @param array $params
... ...
... ... @@ -6,8 +6,7 @@ use Lackoxygen\TiktokShop\Attribute\Config\Config;
use Lackoxygen\TiktokShop\Attribute\Config\Option;
use Lackoxygen\TiktokShop\Exception\ClientException;
use Lackoxygen\TiktokShop\Response\ResultSet;
use Lackoxygen\TiktokShop\Util\Json;
use Psr\Http\Message\ResponseInterface;
use Lackoxygen\TiktokShop\Support\Json;
class RequestProxy extends Config
{
... ...
... ... @@ -4,7 +4,7 @@ namespace Lackoxygen\TiktokShop\Response;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Arr;
use Lackoxygen\TiktokShop\Util\Json;
use Lackoxygen\TiktokShop\Support\Json;
class ResultSet implements Arrayable, \Countable, \ArrayAccess
{
... ...
... ... @@ -10,9 +10,9 @@ use Lackoxygen\TiktokShop\Attribute\Config\Option;
use Lackoxygen\TiktokShop\Attribute\Request;
use Lackoxygen\TiktokShop\Exception\ClientException;
use Lackoxygen\TiktokShop\Exception\RetryException;
use Lackoxygen\TiktokShop\Util\Json;
use Lackoxygen\TiktokShop\Util\Signature;
use Lackoxygen\TiktokShop\Util\Sort;
use Lackoxygen\TiktokShop\Support\Json;
use Lackoxygen\TiktokShop\Support\Signature;
use Lackoxygen\TiktokShop\Support\Sort;
use Psr\Http\Message\ResponseInterface;
class Client
... ...
<?php
namespace Lackoxygen\TiktokShop\Util;
namespace Lackoxygen\TiktokShop\Support;
class Json
{
... ...
... ... @@ -2,7 +2,7 @@
namespace Lackoxygen\TiktokShop\Support\Mock;
use Lackoxygen\TiktokShop\Util\Preg;
use Lackoxygen\TiktokShop\Support\Preg;
class Annotation
{
... ...
... ... @@ -8,7 +8,7 @@ use GuzzleHttp\Psr7\Response;
use GuzzleHttp\RequestOptions;
use Lackoxygen\TiktokShop\Exception\ClientException;
use Lackoxygen\TiktokShop\Exception\MockException;
use Lackoxygen\TiktokShop\Util\Json;
use Lackoxygen\TiktokShop\Support\Json;
class Mock
{
... ...
... ... @@ -2,7 +2,7 @@
namespace Lackoxygen\TiktokShop\Support\Mock;
use Lackoxygen\TiktokShop\Util\Json;
use Lackoxygen\TiktokShop\Support\Json;
class Stream
{
... ...
<?php
namespace Lackoxygen\TiktokShop\Util;
namespace Lackoxygen\TiktokShop\Support;
class Preg
{
... ...
<?php
namespace Lackoxygen\TiktokShop\Util;
namespace Lackoxygen\TiktokShop\Support;
use Lackoxygen\TiktokShop\Attribute\Config\Config;
... ... @@ -62,12 +62,11 @@ class Signature extends Config
switch ($this->config->getSignMethod()) {
case 'hmac-sha256':
case 'sha256':
return $this->sha256($body);
case 'md5':
return $this->md5($body);
default:
return '';
throw new \InvalidArgumentException('Signature method not supported');
}
}
... ...
<?php
namespace Lackoxygen\TiktokShop\Util;
namespace Lackoxygen\TiktokShop\Support;
class Sort
{
... ...