| | |
| | | using System; |
| | | /**发布环境 使用发布环境 发布的正式签名KEY**/ |
| | | #define Distribution |
| | | |
| | | ///**测试环境 使用测试环境 使用测试的签名KEY**/ |
| | | //#undef Distribution |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Net; |
| | |
| | | //using HDL_ON.Entity; |
| | | using RestSharp; |
| | | using Shared.SimpleControl; |
| | | |
| | | |
| | | |
| | | namespace Shared |
| | | { |
| | |
| | | #endregion |
| | | |
| | | #region **********网络请求封装********** |
| | | |
| | | |
| | | |
| | | |
| | | #if Distribution |
| | | ///**********正式环境********** |
| | | /// <summary> |
| | | /// 固定域名,正式环境 |
| | | /// 公共域名就近解析 |
| | | /// </summary> |
| | | //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://bahrain-gateway.hdlcontrol.com"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string APP_KEY = "HDL-HOME-IND-APP"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string SECRET_KEY = "yPL345bn68gHnvilG4tYbq3cTYkiHu"; |
| | | |
| | | #else |
| | | ///**********测试环境********** |
| | | /// <summary> |
| | | /// 固定域名,测试境 |
| | | /// 公共域名就近解析 |
| | | /// </summary> |
| | | public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string APP_KEY = "HDL-HOME-IND-APP-TEST"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string SECRET_KEY = "yeJ8TY98vbakCpnvH8G1tDUqzLWY8yts"; |
| | | #endif |
| | | |
| | | /// <summary> |
| | | /// Get 请求服务器方法 |
| | |
| | | ///// </summary> |
| | | //const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss"; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string APP_KEY = "HDL-HOME-IND-APP-TEST"; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | const string SECRET_KEY = "yeJ8TY98vbakCpnvH8G1tDUqzLWY8yts"; |
| | | |
| | | ///// <summary> |
| | | ///// |
| | | ///// </summary> |
| | | //const string APP_KEY = "HDL-HOME-IND-APP"; |
| | | ///// <summary> |
| | | ///// |
| | | ///// </summary> |
| | | //const string SECRET_KEY = "yPL345bn68gHnvilG4tYbq3cTYkiHu"; |
| | | |
| | | /// <summary> |
| | | /// 获取当前时间戳值 |