有恶意请求,增加恶意请求的拦截
如题
This commit is contained in:
@@ -220,20 +220,63 @@ namespace ConsoleApplication2
|
||||
public struct Tiao
|
||||
{
|
||||
public string Nsa { get; set; }
|
||||
|
||||
|
||||
}
|
||||
public static void Data()
|
||||
{
|
||||
XuanZhuResponse resp = new XuanZhuResponse();
|
||||
resp.code = "1085";
|
||||
resp.roomNumber = "1001";
|
||||
resp.address = "";
|
||||
resp.name = "";
|
||||
resp.status = 1;
|
||||
if (resp.status == 1)
|
||||
{
|
||||
resp.brightness = 0;
|
||||
resp.currentTemp = 25;
|
||||
resp.settingTemp = 25;
|
||||
resp.mode = 1;
|
||||
resp.fanSpeed = 1;
|
||||
resp.valve = 0;
|
||||
}
|
||||
MyHttp.SendHttpData("http://f-xcx.blv-oa.com/rcu/report", resp);
|
||||
}
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string uuawer= string.Concat("h","eeeelll");
|
||||
Data();
|
||||
Console.ReadLine();
|
||||
string uuawer = string.Concat("h", "eeeelll");
|
||||
|
||||
string QQQQSSS = File.ReadAllText("3.txt", Encoding.UTF8);
|
||||
var FFF = JsonConvert.DeserializeObject<FCS_Response>(QQQQSSS);
|
||||
|
||||
JObject jsonObject = JObject.Parse(QQQQSSS);
|
||||
var error = jsonObject.SelectToken("error");
|
||||
JObject jsonObject = JObject.Parse(QQQQSSS);
|
||||
var error = jsonObject.SelectToken("error");
|
||||
var JJJ = FFF.data.FirstOrDefault();
|
||||
|
||||
string orderuuid = JJJ.job_uuid;
|
||||
if (JJJ != null)
|
||||
{
|
||||
string orderuuid = JJJ.job_uuid;
|
||||
FCS_OrderData f = new FCS_OrderData();
|
||||
f.OrderUUID = orderuuid;
|
||||
f.PropertyID = "";
|
||||
f.ItemType = "Clean";
|
||||
f.OrderNo = JJJ.job_no;
|
||||
f.ItemUUID = "";
|
||||
f.LocationUUID = "";
|
||||
f.HotelCode = "";
|
||||
f.RoomNUMBER = "";
|
||||
string fsa = Newtonsoft.Json.JsonConvert.SerializeObject(f);
|
||||
//这个是 供轮循的时候调用使用
|
||||
CSRedisCacheHelper.HMSet(3, 60 * 24, CacheKey.FCSOrder, "aaa", fsa);
|
||||
|
||||
//这个是供 取消订单的时候使用的
|
||||
//这个只 支持 取消 清理
|
||||
//logger.Error("记录入循环:"+orderuuid);
|
||||
CSRedisCacheHelper.Set_PartitionWithTime(CacheKey.FCSRoom_Mapping_Order + "_" + "", orderuuid, 24 * 60, 3);
|
||||
}
|
||||
|
||||
//string orderuuid = JJJ.job_uuid;
|
||||
|
||||
AskRoomStatusChangedReceiver h = new AskRoomStatusChangedReceiver();
|
||||
RoomStatus vv = new RoomStatus();
|
||||
|
||||
Reference in New Issue
Block a user