/** * 初始化数据库连接 */ public static function initDB() { global $dbConn; self::$prefix = C('DB_PREFIX'); self::$dbConn = $dbConn; }