作者 lackoxygen

feat:

@@ -20,7 +20,9 @@ @@ -20,7 +20,9 @@
20 ], 20 ],
21 "require": { 21 "require": {
22 "php": ">=7.4", 22 "php": ">=7.4",
23 - "ext-json": "*" 23 + "ext-json": "*",
  24 + "illuminate/support": "^8.0",
  25 + "illuminate/console": "^8.0"
24 }, 26 },
25 "require-dev": { 27 "require-dev": {
26 "phpunit/phpunit": "^9.5.10", 28 "phpunit/phpunit": "^9.5.10",
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 2
3 return [ 3 return [
4 'default' => [ 4 'default' => [
5 - 'app_key' => env('TIKTOK_APP_KEY', ''), 'app_secret' => env('TIKTOK_APP_SECRET', ''), 5 + 'app_key' => env('TIKTOK_APP_KEY', ''),
  6 + 'app_secret' => env('TIKTOK_APP_SECRET', ''),
6 'enable_mock' => env('TIKTOK_ENABLE_MOCK', false), 7 'enable_mock' => env('TIKTOK_ENABLE_MOCK', false),
7 'base_uri' => env('TIKTOK_BASE_URI', 'https://openapi-sandbox.jinritemai.com'), 8 'base_uri' => env('TIKTOK_BASE_URI', 'https://openapi-sandbox.jinritemai.com'),
8 'timeout' => env('TIKTOK_TIMEOUT', 30), 9 'timeout' => env('TIKTOK_TIMEOUT', 30),
@@ -19,7 +19,7 @@ use Lackoxygen\TiktokShop\TiktokShop as TiktokShopKernel; @@ -19,7 +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 + * @method static TiktokShopKernel use ($options)
23 */ 23 */
24 class TiktokShop extends Facade 24 class TiktokShop extends Facade
25 { 25 {
@@ -36,7 +36,7 @@ class TiktokShopProvider extends ServiceProvider @@ -36,7 +36,7 @@ class TiktokShopProvider extends ServiceProvider
36 public function register() 36 public function register()
37 { 37 {
38 $this->app->singleton(static::$name, function () { 38 $this->app->singleton(static::$name, function () {
39 - return new TiktokShop(); 39 + return new TiktokShop(...func_get_args());
40 }); 40 });
41 } 41 }
42 42