^ think\db\exception\PDOException {#103
#data: array:3 [
"PDO Error Info" => array:3 [
"SQLSTATE" => "42S22"
"Driver Error Code" => 1054
"Driver Error Message" => "Unknown column 'cbf_cooperation_end_time_int' in 'where clause'"
]
"Database Status" => array:3 [
"Error Code" => 10501
"Error Message" => "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cbf_cooperation_end_time_int' in 'where clause'"
"Error SQL" => "SELECT COUNT(*) AS think_count FROM `yfch_cooperation` WHERE ( (FIND_IN_SET(1, cooperation_business)) ) AND `cooperation_logic_delete` = 0 AND `cooperation_type` = 2 AND `cooperation_top` = 1 AND `cbf_cooperation_end_time_int` > '1741908607' LIMIT 1"
]
"Database Config" => array:21 [
"type" => "mysql"
"hostname" => "172.21.16.41"
"database" => "yfchuhai"
"hostport" => "3306"
"dsn" => ""
"params" => []
"charset" => "utf8mb4"
"prefix" => "yfch_"
"deploy" => 0
"rw_separate" => false
"master_num" => 1
"slave_no" => ""
"read_master" => false
"fields_strict" => true
"fields_cache" => false
"trigger_sql" => false
"builder" => ""
"query" => ""
"break_reconnect" => false
"break_match_str" => []
"auto_param_bind" => true
]
]
#message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cbf_cooperation_end_time_int' in 'where clause'"
#code: 10501
#file: "/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/PDOConnection.php"
#line: 797
trace: {
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/PDOConnection.php:797 {
think\db\PDOConnection->getPDOStatement(string $sql, array $bind = [], bool $master = false, bool $procedure = false): PDOStatement …
› if ($e instanceof \PDOException) {
› throw new PDOException($e, $this->config, $this->getLastsql());
› } else {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/PDOConnection.php:1181 {
think\db\PDOConnection->value(BaseQuery $query, string $field, $default = null, bool $one = true) …
› // 执行查询操作
› $pdo = $this->getPDOStatement($sql, $query->getBind(), $options['master']);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/PDOConnection.php:1211 {
think\db\PDOConnection->aggregate(BaseQuery $query, string $aggregate, $field, bool $force = false) …
›
› $result = $this->value($query, $field, 0);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php:33 {
think\db\BaseQuery->aggregate(string $aggregate, $field, bool $force = false) …
› {
› return $this->connection->aggregate($this, $aggregate, $field, $force);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php:70 {
think\db\BaseQuery->count(string $field = '*'): int …
› } else {
› $count = $this->aggregate('COUNT', $field);
› }
}
/www/wwwroot/www.yfchuhai.com/app/api/logic/Cooperation.php:2725 {
app\api\logic\Cooperation->app\api\logic\{closure} …
› $cooperationModelTop = $cooperationModel->whereRaw($str);
› $top = $cooperationModelTop->where($topMaps)->count();
›
}
app\api\logic\Cooperation->app\api\logic\{closure}() {}
/www/wwwroot/www.yfchuhai.com/app/api/logic/Cooperation.php:2703 {
app\api\logic\Cooperation->getBusinessFieldLists() …
› $businessArr = [];
› array_map(function ($key, $item) use (&$businessArr,$cooperationConfig,$cooperationModel){
› $businessConfigTag = $cooperationConfig['business_tag'];
}
/www/wwwroot/www.yfchuhai.com/app/home/controller/Cooperation.php:97 {
app\home\controller\Cooperation->list() …
› //5-6、热门行业 热门领域
› $industryField = $cooperationLogic->getBusinessFieldLists();
› //7、合作类型 行业 领域 区域(行业和领域以最新的调整为主)
}
app\home\controller\Cooperation->list() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Container.php:344 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php:110 {
think\route\dispatch\Controller->think\route\dispatch\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php:113 {
think\route\dispatch\Controller->exec() …
› return $this->autoResponse($data);
› });
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/route/Dispatch.php:80 {
think\route\Dispatch->run(): Response …
› {
› $data = $this->exec();
› return $this->autoResponse($data);
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Route.php:793 {
think\Route->think\{closure} …
› ->then(function () use ($dispatch) {
› return $dispatch->run();
› });
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Route.php:794 {
think\Route->dispatch(Request $request, $withRoute = true) …
› return $dispatch->run();
› });
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Http.php:216 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Http.php:206 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-multi-app/src/MultiApp.php:51 {
think\app\MultiApp->think\app\{closure} …
› ->then(function ($request) use ($next) {
› return $next($request);
› });
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-multi-app/src/MultiApp.php:52 {
think\app\MultiApp->handle($request, Closure $next) …
› return $next($request);
› });
› }
}
think\app\MultiApp->handle() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/app/middleware/Validate.php:19 {
app\middleware\Validate->handle(Request $request, Closure $next) …
› if(empty($base_request[0]) || empty($base_request[1])|| empty($base_request[2])) {
› return $next($request);
› }
}
app\middleware\Validate->handle() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/app/middleware/AllowCrossDomain.php:64 {
app\middleware\AllowCrossDomain->handle($request, Closure $next, array $header = []) …
›
› return $next($request)->header($header);
› }
}
app\middleware\AllowCrossDomain->handle() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/middleware/SessionInit.php:67 {
think\middleware\SessionInit->handle($request, Closure $next) …
› /** @var Response $response */
› $response = $next($request);
›
}
think\middleware\SessionInit->handle() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/think-trace/src/TraceDebug.php:71 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
}
think\trace\TraceDebug->handle() {}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Middleware.php:142 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Http.php:207 {
think\Http->runWithRequest(Request $request) …
› return $this->dispatchToRoute($request);
› });
› }
}
/www/wwwroot/www.yfchuhai.com/vendor/topthink/framework/src/think/Http.php:170 {
think\Http->run(Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
}
/www/wwwroot/www.yfchuhai.com/public/index.php:30 {
›
› $response = $http->run();
›
}
}
}