|
...
|
...
|
@@ -5,6 +5,7 @@ namespace Lackoxygen\TiktokShop; |
|
|
|
use Illuminate\Support\Arr;
|
|
|
|
use Lackoxygen\TiktokShop\Attribute\Config\Config;
|
|
|
|
use Lackoxygen\TiktokShop\Attribute\Config\Option;
|
|
|
|
use Lackoxygen\TiktokShop\Exception\RequestNotFoundException;
|
|
|
|
use Lackoxygen\TiktokShop\Request\RequestProxy;
|
|
|
|
use Lackoxygen\TiktokShop\Support\Verify;
|
|
|
|
|
|
...
|
...
|
@@ -115,6 +116,7 @@ class Application |
|
|
|
/**
|
|
|
|
* @param string $name
|
|
|
|
* @return RequestProxy|object
|
|
|
|
* @throws RequestNotFoundException
|
|
|
|
*/
|
|
|
|
private function guide(string $name)
|
|
|
|
{
|
|
...
|
...
|
@@ -127,7 +129,7 @@ class Application |
|
|
|
$request = '\Lackoxygen\TiktokShop\Request\\' . $name . '\\' . $name;
|
|
|
|
|
|
|
|
if (!class_exists($request)) {
|
|
|
|
throw new \OverflowException('class file(' . $request . ') not found');
|
|
|
|
throw new RequestNotFoundException('class file(' . $request . ') not found');
|
|
|
|
}
|
|
|
|
|
|
|
|
return RequestProxy::proxy($request, $this->config);
|
|
...
|
...
|
@@ -138,6 +140,7 @@ class Application |
|
|
|
* @param array $arguments
|
|
|
|
*
|
|
|
|
* @return RequestProxy
|
|
|
|
* @throws RequestNotFoundException
|
|
|
|
*/
|
|
|
|
public function __call($name, array $arguments = [])
|
|
|
|
{
|
...
|
...
|
|