/** * 单例 * @return self */ public static function getIns() { if (self::$ins == false) { self::$ins = new self(); } return self::$ins; }