作者 lackoxygen

feat:use method

... ... @@ -19,6 +19,7 @@ use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel;
* @method static Verify verify()
* @method static Alliance alliance()
* @method static TiktokShopKernel setAccessToken(string $accessToken)
* @method static TiktokShopKernel use($options)
*/
class TiktokShop extends Facade
{
... ...
... ... @@ -79,13 +79,13 @@ class TiktokShop
}
/**
* @param Config $config
* @param $options
*
* @return TiktokShop
*/
public static function use(Config $config): TiktokShop
public static function use($options = null): TiktokShop
{
return new static($config);
return new static($options);
}
/**
... ...