old mode 100755
new mode 100644
| | |
| | | using System.Collections.Specialized; |
| | | using System.Net; |
| | | using System.IO; |
| | | using System.Diagnostics.CodeAnalysis; |
| | | |
| | | namespace Shared.Phone.Device.Logic |
| | | { |
| | |
| | | jObject.Add("Data", jObjectdata1); |
| | | mainGateWay?.Send("Logic/GetLogicList", jObject.ToString()); |
| | | } |
| | | catch(Exception e) { |
| | | catch (Exception e) |
| | | { |
| | | var d = e.Message; |
| | | } |
| | | //await System.Threading.Tasks.Task.Run(async () => |
| | |
| | | request.Method = method; //请求方式为POST/GET |
| | | request.ContentType = "application/json"; |
| | | request.Timeout = second * 1000;//超时时间 |
| | | if (_bool) { |
| | | try |
| | | { |
| | | if (_bool) |
| | | { |
| | | //用于高胜可视对讲接口 |
| | | request.Headers.Add("Authorization", Config.Instance.Token); |
| | | } |
| | |
| | | string content = sr.ReadToEnd(); //获得响应字符串 |
| | | return content; |
| | | } |
| | | catch |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 请求服务器的方法 |
| | | /// </summary> |