| | |
| | | { |
| | | var inputTypeJOb = new JObject { }; |
| | | inputTypeJOb.Add("sid", dictionary.sid); |
| | | inputTypeJOb.Add("hold_time", dictionary.hold_time); |
| | | if (!string.IsNullOrEmpty(dictionary.hold_time)) |
| | | { |
| | | inputTypeJOb.Add("hold_time", dictionary.hold_time); |
| | | } |
| | | if (!string.IsNullOrEmpty(dictionary.detect_type)) |
| | | { |
| | | inputTypeJOb.Add("detect_type", dictionary.detect_type); |
| | | } |
| | | inputTypeJOb.Add("condition_type", dictionary.condition_type); |
| | | if (dictionary.condition_type=="9") { |
| | | inputTypeJOb.Add("identifier", dictionary.identifier); |
| | |
| | | { |
| | | var inputTypeJOb = new JObject { }; |
| | | inputTypeJOb.Add("sid", dictionary.sid); |
| | | inputTypeJOb.Add("hold_time", dictionary.hold_time); |
| | | if (!string.IsNullOrEmpty(dictionary.hold_time)) |
| | | { |
| | | inputTypeJOb.Add("hold_time", dictionary.hold_time); |
| | | } |
| | | if (!string.IsNullOrEmpty(dictionary.detect_type)) |
| | | { |
| | | inputTypeJOb.Add("detect_type", dictionary.detect_type); |
| | | } |
| | | inputTypeJOb.Add("condition_type", dictionary.condition_type); |
| | | if (dictionary.condition_type == "9") |
| | | { |
| | |
| | | //失败时是否要提示 |
| | | if (isTip) |
| | | { |
| | | if (r == null) |
| | | { |
| | | r = new ResponsePackNew { message = "没回复,请确认网络是否正常.", Code = "-1", }; |
| | | } |
| | | new LogicView.TipPopView().FlashingBox(r.message + $"({r.Code})"); |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 打印日志 |
| | | /// </summary> |