public void BP_Recover() { if (im.userdatasummery.user_info.bp >= 6) { return; } if ((im.userdatasummery.user_info.last_bp_recover_time + 7200 + 600) < (CommonHelp.ConvertDateTime_China_Int(DateTime.Now)))//600是延迟10分钟 { //如果上次恢复时间到现在当前时间差距大于两个小时 则 发送请求 ProgrameData.TaskList.Add(TaskList.GetRecoverBp); im.userdatasummery.user_info.last_bp_recover_time = CommonHelp.ConvertDateTime_China_Int(DateTime.Now); } }
private void WriteReport_Start() { if (UserData.UserDataSummery.battery < 1000) { return; } if (UserData.UserDataSummery.globalFreeExp < UserData.UserDataSummery.Furniture_database) { return; } if (im.BattleReport.Start_add == true) { return; } if (im.BattleReport.time > 0) { return; } ProgrameData.TaskList.Add(TaskList.BattleReport_Write); im.BattleReport.Start_add = true; im.BattleReport.Finish_add = false; im.BattleReport.StartTime = CommonHelp.ConvertDateTime_China_Int(DateTime.Now); }