引入文件: use \GatewayWorker\Lib\Gateway; use \GatewayWorker\Lib\Db; public static $mysql = null; public static function onWorkerStart($worker) { self::$mysql = new Workerman\MySQL\Connection('127.0.0.1', '33...