作者 lackoxygen

fix

... ... @@ -55,7 +55,7 @@ class TiktokShop
$app = $options ?: 'default';
$config = \config(TiktokShopProvider::$name.'.'.$app);
$config = \config(TiktokShopProvider::$name . '.' . $app);
if (!is_array($config)) {
throw new \InvalidArgumentException('config file not found');
... ... @@ -79,7 +79,7 @@ class TiktokShop
Arr::get($options, 'app_key'),
Arr::get($options, 'app_secret'),
Arr::get($options, 'base_uri'),
(float) Arr::get($options, 'timeout'),
(float)Arr::get($options, 'timeout'),
Arr::get($options, 'enable_mock')
);
}
... ... @@ -119,7 +119,9 @@ class TiktokShop
try {
return PassageProxy::proxy($passage, $this->config);
} finally {
register_shutdown_function(function () {
$this->config->setAccessToken('');
});
}
}
}
... ...