作者 lackoxygen

feat:

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