Bläddra i källkod

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

tanghai 13 år sedan
förälder
incheckning
9b263fb6db
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)
 			{