:(

Db Error: database connect failed

错误位置

FILE: /xtkj/tycore/Common/functions.php  LINE: 820

TRACE

#0 Think\Think::halt(Db Error: database connect failed) called at [/xtkj/tycore/Common/functions.php:820]
#1 throw_exception(Db Error: database connect failed) called at [/xtkj/Application/Common/Tool/Db.class.php:91]
#2 Common\Tool\Db::connect(slave) called at [/xtkj/Application/Common/Tool/Db.class.php:137]
#3 Common\Tool\Db::getAll(SELECT * FROM `theaty_groupbuy` WHERE ( state = '20' ) AND ( start_time < '1563288084' ) AND ( end_time > '1563288084' ) ORDER BY recommended desc LIMIT 4 , slave) called at [/xtkj/Application/Common/Tool/Model.class.php:652]
#4 Common\Tool\ModelDb->select(Array ([field] => *,[where] => Array ([state] => 20,[start_time] => Array ([0] => lt,[1] => 1563288084),[end_time] => Array ([0] => gt,[1] => 1563288084)),[order] => recommended desc,[limit] => 4,[table] => `theaty_groupbuy`)) called at [/xtkj/Application/Common/Tool/Model.class.php:187]
#5 Common\Tool\Model->select() called at [/xtkj/Application/Common/Model/groupbuy.model.php:42]
#6 groupbuyModel->getGroupbuyList(Array ([state] => 20,[start_time] => Array ([0] => lt,[1] => 1563288084),[end_time] => Array ([0] => gt,[1] => 1563288084)), , recommended desc, *, 4) called at [/xtkj/Application/Common/Model/groupbuy.model.php:55]
#7 groupbuyModel->getGroupbuyExtendList(Array ([state] => 20,[start_time] => Array ([0] => lt,[1] => 1563288084),[end_time] => Array ([0] => gt,[1] => 1563288084)), , recommended desc, *, 4) called at [/xtkj/Application/Common/Model/groupbuy.model.php:135]
#8 groupbuyModel->getGroupbuyCommendedList(4) called at [/xtkj/Application/Home/Controller/IndexController.class.php:18]
#9 Home\Controller\indexController->index()
#10 ReflectionMethod->invoke(Home\Controller\indexController Object ([] => Think\View Object ([tVar] => Array (),[] => ,[curModel] => ),[] => Array ())) called at [/xtkj/tycore/Library/Think/App.class.php:173]
#11 Think\App::invokeAction(Home\Controller\indexController Object ([] => Think\View Object ([tVar] => Array (),[] => ,[curModel] => ),[] => Array ()), index) called at [/xtkj/tycore/Library/Think/App.class.php:110]
#12 Think\App::exec() called at [/xtkj/tycore/Library/Think/App.class.php:204]
#13 Think\App::run() called at [/xtkj/tycore/Library/Think/Think.class.php:127]
#14 Think\Think::start() called at [/xtkj/tycore/tycore.php:97]
#15 require(/xtkj/tycore/tycore.php) called at [/xtkj/index.php:18]