作者 lackoxygen

feat:use method

@@ -19,6 +19,7 @@ use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel; @@ -19,6 +19,7 @@ use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel;
19 * @method static Verify verify() 19 * @method static Verify verify()
20 * @method static Alliance alliance() 20 * @method static Alliance alliance()
21 * @method static TiktokShopKernel setAccessToken(string $accessToken) 21 * @method static TiktokShopKernel setAccessToken(string $accessToken)
  22 + * @method static TiktokShopKernel use($options)
22 */ 23 */
23 class TiktokShop extends Facade 24 class TiktokShop extends Facade
24 { 25 {
@@ -79,13 +79,13 @@ class TiktokShop @@ -79,13 +79,13 @@ class TiktokShop
79 } 79 }
80 80
81 /** 81 /**
82 - * @param Config $config 82 + * @param $options
83 * 83 *
84 * @return TiktokShop 84 * @return TiktokShop
85 */ 85 */
86 - public static function use(Config $config): TiktokShop 86 + public static function use($options = null): TiktokShop
87 { 87 {
88 - return new static($config); 88 + return new static($options);
89 } 89 }
90 90
91 /** 91 /**