^ Illuminate\Database\QueryException {#320
  #sql: "select * from `ims_yz_uniacid_app` where `uniacid` = ? limit 1"
  #bindings: array:1 [
    0 => 0
  ]
  #message: "SQLSTATE[HY000] [1040] Too many connections (SQL: select * from `ims_yz_uniacid_app` where `uniacid` = 0 limit 1)"
  #code: 1040
  #file: "/www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
  #line: 669
  -previous: Doctrine\DBAL\Driver\PDOException {#322
    -errorCode: 1040
    -sqlState: "HY000"
    #message: "SQLSTATE[HY000] [1040] Too many connections"
    #code: 1040
    #file: "/www/wwwroot/hq.ytbainakeji.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
    #line: 47
    -previous: PDOException {#319
      #message: "SQLSTATE[HY000] [1040] Too many connections"
      #code: 1040
      #file: "/www/wwwroot/hq.ytbainakeji.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
      #line: 43
      +errorInfo: array:3 [
        0 => "HY000"
        1 => 1040
        2 => "Too many connections"
      ]
      trace: {
        /www/wwwroot/hq.ytbainakeji.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 {
          Doctrine\DBAL\Driver\PDOConnection->__construct($dsn, $user = null, $password = null, array $options = null) …
          › try {    parent::__construct($dsn, $user, $password, $options);    $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 {
          Illuminate\Database\Connectors\Connector->createPdoConnection($dsn, $username, $password, $options) …
          › if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 {
          Illuminate\Database\Connectors\Connector->createConnection($dsn, array $config, array $options) …
          › return $this->createPdoConnection(    $dsn, $username, $password, $options);
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {
          Illuminate\Database\Connectors\MySqlConnector->connect(array $config) …
          › // connection's behavior, and some might be specified by the developers.$connection = $this->createConnection($dsn, $config, $options);}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 {
          Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure} …
          › try {    return $this->createConnector($config)->connect($config);} catch (PDOException $e) {
        }
        Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:924 {
          Illuminate\Database\Connection->getPdo() …
          › if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:959 {
          Illuminate\Database\Connection->getReadPdo() …
          › 
          ›     return $this->readPdo ?: $this->getPdo();}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:404 {
          Illuminate\Database\Connection->getPdoForSelect($useReadPdo = true) …
          › {    return $useReadPdo ? $this->getReadPdo() : $this->getPdo();}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:330 {
          Illuminate\Database\Connection->Illuminate\Database\{closure} …
          › // row from the database table, and will either be an array or objects.$statement = $this->prepared($this->getPdoForSelect($useReadPdo)                  ->prepare($query));
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:662 {
          Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
          › try {    $result = $callback($query, $bindings);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:629 {
          Illuminate\Database\Connection->run($query, $bindings, Closure $callback) …
          › try {    $result = $this->runQueryCallback($query, $bindings, $callback);} catch (QueryException $e) {
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:338 {
          Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
          ›         return $statement->fetchAll();    });}
        }
        /www/wwwroot/hq.ytbainakeji.com/app/framework/Database/MySqlConnection.php:27 {
          app\framework\Database\MySqlConnection->select($query, $bindings = [], $useReadPdo = true) …
          › } else {    $result = parent::select($query, $bindings, $useReadPdo);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2149 {
          Illuminate\Database\Query\Builder->runSelect() …
          › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2137 {
          Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
          › return collect($this->onceWithColumns(Arr::wrap($columns), function () {    return $this->processor->processSelect($this, $this->runSelect());}));
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2609 {
          Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
          › 
          › $result = $callback();}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2138 {
          Illuminate\Database\Query\Builder->get($columns = […1]) …
          ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:545 {
          Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
          › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:529 {
          Illuminate\Database\Eloquent\Builder->get($columns = […1]) …
          › // n+1 query issue for the developers to avoid running a lot of queries.if (count($models = $builder->getModels($columns)) > 0) {    $models = $builder->eagerLoadRelations($models);
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:143 {
          Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
          › {    return $this->take(1)->get($columns)->first();}
        }
        /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:33 {
          app\common\models\AccountWechats::app\common\models\{closure} …
          › return Cache::remember('account_app_'.$uniacid,3600,function () use ($uniacid) {\treturn self::where('uniacid', $uniacid)->first();});
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:383 {
          Illuminate\Cache\Repository->remember($key, $ttl, Closure $callback) …
          › 
          › $this->put($key, $value = $callback(), $ttl);}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:378 {
          Illuminate\Cache\CacheManager->__call($method, $parameters) …
          › {    return $this->store()->$method(...$parameters);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261 {
          Illuminate\Support\Facades\Facade::__callStatic($method, $args) …
          › 
          ›     return $instance->$method(...$args);}
        }
        /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:34 {
          app\common\models\AccountWechats::getAccountByUniacid($uniacid) …
          › \treturn self::where('uniacid', $uniacid)->first();});}
        /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:498 {
          YunApp->getW() …
          › $uniacid = intval(trim(request()->get('i')));$account = \app\common\models\AccountWechats::getAccountByUniacid($uniacid);return [
        }
        /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:492 {
          YunApp->__construct() …
          ›     global $_W;    $this->values = !YunShop::isWeb() && !YunShop::isWechatApi() ? $this->getW() : (array)$_W;}
        }
        /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:231 {
          YunShop::app() …
          › } else {    self::$_app = new YunApp();    return self::$_app;
        }
        /www/wwwroot/hq.ytbainakeji.com/app/common/providers/YunShopServiceProvider.php:27 {
          app\common\providers\YunShopServiceProvider->boot() …
          › if (config('app.framework') != 'platform' || (!\YunShop::isWeb() && !\YunShop::isWechatApi())) {\tSetting::$uniqueAccountId = \YunShop::app()->uniacid;\tRichText::$uniqueAccountId = \YunShop::app()->uniacid;
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 {
          Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
          › return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {    return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));});
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:37 {
          Illuminate\Container\Util::unwrapIfClosure($value) …
          › {    return $value instanceof Closure ? $value() : $value;}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 {
          Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
          › 
          ›     return Util::unwrapIfClosure($default);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 {
          Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
          ›         return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));    });}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:590 {
          Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
          › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856 {
          Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
          › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:839 {
          Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
          › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
        }
        Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:840 {
          Illuminate\Foundation\Application->boot() …
          ›     $this->bootProvider($p);});}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
          Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
          › {    $app->boot();}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:219 {
          Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
          › 
          › $this->make($bootstrapper)->bootstrap($this);}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:156 {
          Illuminate\Foundation\Http\Kernel->bootstrap() …
          › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
        }
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
          Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
          › 
          › $this->bootstrap();}
        /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
          Illuminate\Foundation\Http\Kernel->handle($request) …
          › 
          ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
        }
        /www/wwwroot/hq.ytbainakeji.com/app/laravel.php:47 {
          include_once …
          › $response = $kernel->handle(    $request = \app\framework\Http\Request::capture());
        }
        /www/wwwroot/hq.ytbainakeji.com/index.php:12 {
          › 
          › include_once __DIR__ . '/app/laravel.php';arguments: {
            "/www/wwwroot/hq.ytbainakeji.com/app/laravel.php"
          }
        }
      }
    }
    +errorInfo: array:3 [
      0 => "HY000"
      1 => 1040
      2 => "Too many connections"
    ]
    trace: {
      /www/wwwroot/hq.ytbainakeji.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47 {
        Doctrine\DBAL\Driver\PDOConnection->__construct($dsn, $user = null, $password = null, array $options = null) …
        › } catch (\PDOException $exception) {    throw new PDOException($exception);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 {
        Illuminate\Database\Connectors\Connector->createPdoConnection($dsn, $username, $password, $options) …
        › if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 {
        Illuminate\Database\Connectors\Connector->createConnection($dsn, array $config, array $options) …
        › return $this->createPdoConnection(    $dsn, $username, $password, $options);
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {
        Illuminate\Database\Connectors\MySqlConnector->connect(array $config) …
        › // connection's behavior, and some might be specified by the developers.$connection = $this->createConnection($dsn, $config, $options);}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 {
        Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure} …
        › try {    return $this->createConnector($config)->connect($config);} catch (PDOException $e) {
      }
      Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:924 {
        Illuminate\Database\Connection->getPdo() …
        › if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:959 {
        Illuminate\Database\Connection->getReadPdo() …
        › 
        ›     return $this->readPdo ?: $this->getPdo();}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:404 {
        Illuminate\Database\Connection->getPdoForSelect($useReadPdo = true) …
        › {    return $useReadPdo ? $this->getReadPdo() : $this->getPdo();}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:330 {
        Illuminate\Database\Connection->Illuminate\Database\{closure} …
        › // row from the database table, and will either be an array or objects.$statement = $this->prepared($this->getPdoForSelect($useReadPdo)                  ->prepare($query));
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:662 {
        Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
        › try {    $result = $callback($query, $bindings);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:629 {
        Illuminate\Database\Connection->run($query, $bindings, Closure $callback) …
        › try {    $result = $this->runQueryCallback($query, $bindings, $callback);} catch (QueryException $e) {
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:338 {
        Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
        ›         return $statement->fetchAll();    });}
      }
      /www/wwwroot/hq.ytbainakeji.com/app/framework/Database/MySqlConnection.php:27 {
        app\framework\Database\MySqlConnection->select($query, $bindings = [], $useReadPdo = true) …
        › } else {    $result = parent::select($query, $bindings, $useReadPdo);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2149 {
        Illuminate\Database\Query\Builder->runSelect() …
        › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2137 {
        Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
        › return collect($this->onceWithColumns(Arr::wrap($columns), function () {    return $this->processor->processSelect($this, $this->runSelect());}));
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2609 {
        Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
        › 
        › $result = $callback();}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2138 {
        Illuminate\Database\Query\Builder->get($columns = […1]) …
        ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:545 {
        Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
        › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:529 {
        Illuminate\Database\Eloquent\Builder->get($columns = […1]) …
        › // n+1 query issue for the developers to avoid running a lot of queries.if (count($models = $builder->getModels($columns)) > 0) {    $models = $builder->eagerLoadRelations($models);
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:143 {
        Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
        › {    return $this->take(1)->get($columns)->first();}
      }
      /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:33 {
        app\common\models\AccountWechats::app\common\models\{closure} …
        › return Cache::remember('account_app_'.$uniacid,3600,function () use ($uniacid) {\treturn self::where('uniacid', $uniacid)->first();});
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:383 {
        Illuminate\Cache\Repository->remember($key, $ttl, Closure $callback) …
        › 
        › $this->put($key, $value = $callback(), $ttl);}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:378 {
        Illuminate\Cache\CacheManager->__call($method, $parameters) …
        › {    return $this->store()->$method(...$parameters);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261 {
        Illuminate\Support\Facades\Facade::__callStatic($method, $args) …
        › 
        ›     return $instance->$method(...$args);}
      }
      /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:34 {
        app\common\models\AccountWechats::getAccountByUniacid($uniacid) …
        › \treturn self::where('uniacid', $uniacid)->first();});}
      /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:498 {
        YunApp->getW() …
        › $uniacid = intval(trim(request()->get('i')));$account = \app\common\models\AccountWechats::getAccountByUniacid($uniacid);return [
      }
      /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:492 {
        YunApp->__construct() …
        ›     global $_W;    $this->values = !YunShop::isWeb() && !YunShop::isWechatApi() ? $this->getW() : (array)$_W;}
      }
      /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:231 {
        YunShop::app() …
        › } else {    self::$_app = new YunApp();    return self::$_app;
      }
      /www/wwwroot/hq.ytbainakeji.com/app/common/providers/YunShopServiceProvider.php:27 {
        app\common\providers\YunShopServiceProvider->boot() …
        › if (config('app.framework') != 'platform' || (!\YunShop::isWeb() && !\YunShop::isWechatApi())) {\tSetting::$uniqueAccountId = \YunShop::app()->uniacid;\tRichText::$uniqueAccountId = \YunShop::app()->uniacid;
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 {
        Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
        › return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {    return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));});
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:37 {
        Illuminate\Container\Util::unwrapIfClosure($value) …
        › {    return $value instanceof Closure ? $value() : $value;}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 {
        Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
        › 
        ›     return Util::unwrapIfClosure($default);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 {
        Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
        ›         return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));    });}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:590 {
        Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
        › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856 {
        Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
        › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:839 {
        Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
        › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
      }
      Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:840 {
        Illuminate\Foundation\Application->boot() …
        ›     $this->bootProvider($p);});}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
        Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
        › {    $app->boot();}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:219 {
        Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
        › 
        › $this->make($bootstrapper)->bootstrap($this);}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:156 {
        Illuminate\Foundation\Http\Kernel->bootstrap() …
        › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
      }
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
        Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
        › 
        › $this->bootstrap();}
      /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
        Illuminate\Foundation\Http\Kernel->handle($request) …
        › 
        ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      }
      /www/wwwroot/hq.ytbainakeji.com/app/laravel.php:47 {
        include_once …
        › $response = $kernel->handle(    $request = \app\framework\Http\Request::capture());
      }
      /www/wwwroot/hq.ytbainakeji.com/index.php:12 {
        › 
        › include_once __DIR__ . '/app/laravel.php';arguments: {
          "/www/wwwroot/hq.ytbainakeji.com/app/laravel.php"
        }
      }
    }
  }
  +errorInfo: array:3 [
    0 => "HY000"
    1 => 1040
    2 => "Too many connections"
  ]
  trace: {
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669 {
      Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
      › catch (Exception $e) {    throw new QueryException(        $query, $this->prepareBindings($bindings), $e
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:629 {
      Illuminate\Database\Connection->run($query, $bindings, Closure $callback) …
      › try {    $result = $this->runQueryCallback($query, $bindings, $callback);} catch (QueryException $e) {
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:338 {
      Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
      ›         return $statement->fetchAll();    });}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/framework/Database/MySqlConnection.php:27 {
      app\framework\Database\MySqlConnection->select($query, $bindings = [], $useReadPdo = true) …
      › } else {    $result = parent::select($query, $bindings, $useReadPdo);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2149 {
      Illuminate\Database\Query\Builder->runSelect() …
      › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2137 {
      Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
      › return collect($this->onceWithColumns(Arr::wrap($columns), function () {    return $this->processor->processSelect($this, $this->runSelect());}));
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2609 {
      Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
      › 
      › $result = $callback();}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2138 {
      Illuminate\Database\Query\Builder->get($columns = […1]) …
      ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:545 {
      Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
      › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:529 {
      Illuminate\Database\Eloquent\Builder->get($columns = […1]) …
      › // n+1 query issue for the developers to avoid running a lot of queries.if (count($models = $builder->getModels($columns)) > 0) {    $models = $builder->eagerLoadRelations($models);
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:143 {
      Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
      › {    return $this->take(1)->get($columns)->first();}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:33 {
      app\common\models\AccountWechats::app\common\models\{closure} …
      › return Cache::remember('account_app_'.$uniacid,3600,function () use ($uniacid) {\treturn self::where('uniacid', $uniacid)->first();});
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:383 {
      Illuminate\Cache\Repository->remember($key, $ttl, Closure $callback) …
      › 
      › $this->put($key, $value = $callback(), $ttl);}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:378 {
      Illuminate\Cache\CacheManager->__call($method, $parameters) …
      › {    return $this->store()->$method(...$parameters);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261 {
      Illuminate\Support\Facades\Facade::__callStatic($method, $args) …
      › 
      ›     return $instance->$method(...$args);}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/common/models/AccountWechats.php:34 {
      app\common\models\AccountWechats::getAccountByUniacid($uniacid) …
      › \treturn self::where('uniacid', $uniacid)->first();});}
    /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:498 {
      YunApp->getW() …
      › $uniacid = intval(trim(request()->get('i')));$account = \app\common\models\AccountWechats::getAccountByUniacid($uniacid);return [
    }
    /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:492 {
      YunApp->__construct() …
      ›     global $_W;    $this->values = !YunShop::isWeb() && !YunShop::isWechatApi() ? $this->getW() : (array)$_W;}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/yunshop.php:231 {
      YunShop::app() …
      › } else {    self::$_app = new YunApp();    return self::$_app;
    }
    /www/wwwroot/hq.ytbainakeji.com/app/common/providers/YunShopServiceProvider.php:27 {
      app\common\providers\YunShopServiceProvider->boot() …
      › if (config('app.framework') != 'platform' || (!\YunShop::isWeb() && !\YunShop::isWechatApi())) {\tSetting::$uniqueAccountId = \YunShop::app()->uniacid;\tRichText::$uniqueAccountId = \YunShop::app()->uniacid;
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 {
      Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
      › return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {    return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));});
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Util.php:37 {
      Illuminate\Container\Util::unwrapIfClosure($value) …
      › {    return $value instanceof Closure ? $value() : $value;}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 {
      Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
      › 
      ›     return Util::unwrapIfClosure($default);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 {
      Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
      ›         return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));    });}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:590 {
      Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
      › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856 {
      Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
      › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:839 {
      Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
      › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
    }
    Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:840 {
      Illuminate\Foundation\Application->boot() …
      ›     $this->bootProvider($p);});}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
      Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
      › {    $app->boot();}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:219 {
      Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
      › 
      › $this->make($bootstrapper)->bootstrap($this);}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:156 {
      Illuminate\Foundation\Http\Kernel->bootstrap() …
      › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      › 
      › $this->bootstrap();}
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /www/wwwroot/hq.ytbainakeji.com/app/laravel.php:47 {
      include_once …
      › $response = $kernel->handle(    $request = \app\framework\Http\Request::capture());
    }
    /www/wwwroot/hq.ytbainakeji.com/index.php:12 {
      › 
      › include_once __DIR__ . '/app/laravel.php';arguments: {
        "/www/wwwroot/hq.ytbainakeji.com/app/laravel.php"
      }
    }
  }
}
^ UnexpectedValueException {#323
  #message: "The stream or file "/www/wwwroot/hq.ytbainakeji.com/storage/logs/error/error-2026-06-17.log" could not be opened in append mode: failed to open stream: Permission denied"
  #code: 0
  #file: "/www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
  #line: 115
  trace: {
    /www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:115 {
      Monolog\Handler\StreamHandler->write(array $record) …
      › 
      ›     throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url));}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:120 {
      Monolog\Handler\RotatingFileHandler->write(array $record) …
      › 
      ›     parent::write($record);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:39 {
      Monolog\Handler\AbstractProcessingHandler->handle(array $record) …
      › 
      › $this->write($record);}
    /www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Logger.php:344 {
      Monolog\Logger->addRecord($level, $message, array $context = []) …
      › while ($handler = current($this->handlers)) {    if (true === $handler->handle($record)) {        break;
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/monolog/monolog/src/Monolog/Logger.php:712 {
      Monolog\Logger->error($message, array $context = []) …
      › {    return $this->addRecord(static::ERROR, $message, $context);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Log/Logger.php:176 {
      Illuminate\Log\Logger->writeLog($level, $message, $context) …
      › 
      ›     $this->logger->{$level}($message, $context);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Log/Logger.php:87 {
      Illuminate\Log\Logger->error($message, array $context = []) …
      › {    $this->writeLog(__FUNCTION__, $message, $context);}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/framework/Log/ErrorLog.php:16 {
      app\framework\Log\ErrorLog->add($message, array $content = []) …
      › {    $this->log->error($message, $content);}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/framework/Support/Facades/Log.php:31 {
      app\framework\Support\Facades\Log::error($message, $content = []) …
      ›     }    app('Log.error')->add($message,$content);}
    }
    /www/wwwroot/hq.ytbainakeji.com/app/common/exceptions/Handler.php:63 {
      app\common\exceptions\Handler->report(Exception $exception) …
      › if (!app()->runningInConsole()) {    Log::error('http parameters', request()->input());}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:408 {
      Illuminate\Foundation\Http\Kernel->reportException(Exception $e) …
      › {    $this->app[ExceptionHandler::class]->report($e);}
    }
    /www/wwwroot/hq.ytbainakeji.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:112 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › } catch (Exception $e) {    $this->reportException($e);}
    /www/wwwroot/hq.ytbainakeji.com/app/laravel.php:47 {
      include_once …
      › $response = $kernel->handle(    $request = \app\framework\Http\Request::capture());
    }
    /www/wwwroot/hq.ytbainakeji.com/index.php:12 {
      › 
      › include_once __DIR__ . '/app/laravel.php';arguments: {
        "/www/wwwroot/hq.ytbainakeji.com/app/laravel.php"
      }
    }
  }
}