Exemplo n.º 1
0
        // 设置Vip信息
        protected void SetVipInfo(Vip vip, CqGroupMessageEventArgs e, string groupPath)
        {
            string userId = e.FromQQ.ToString();

            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "等级", vip.Level.ToString());
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "到期时间", vip.endTime);
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "保护", vip.Protect.ToString());
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "成功率", vip.SuccessRate.ToString());
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "挂机时间", vip.OnHookTime);
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "挂机类型", vip.OnHookType);
            iniTool.IniWriteValue(groupPath, vipInfoIni, userId, "次数", vip.Number.ToString());
        }