Parcourir la source

修复禁止购买物品buff时间溢出bug,现在指定时间为1年

tanghai il y a 13 ans
Parent
commit
9b263fb6db
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      CSharp/App/Modules/Robot/RobotViewModel.cs

+ 1 - 1
CSharp/App/Modules/Robot/RobotViewModel.cs

@@ -301,7 +301,7 @@ namespace Modules.Robot
 				this.ErrorInfo = "请先指定玩家";
 				return;
 			}
-			this.SendCommand(string.Format("forbidden_buy_item {0} {1}", guid, int.MaxValue));
+			this.SendCommand(string.Format("forbidden_buy_item {0} {1}", guid, 365 * 24 * 3600));
 			var smsgBossCommandResponse = await RecvMessage<SMSG_Boss_Command_Response>();
 			if (smsgBossCommandResponse.ErrorCode == ErrorCode.RESPONSE_SUCCESS)
 			{