/** * [getIns 获取单例] * @return [type] [description] */ public static function getConfIns() { if (self::$ins instanceof self) { return self::$ins; } return self::$ins = new self(); }
public static function getIns() { if (self::$ins instanceof self) { return self::$ins; } else { self::$ins = new self(); return self::$ins; } }