HDL_ON/DAL/Server/HttpUtil.cs
@@ -204,20 +204,20 @@
                    }
                    catch (Exception ex)
                    {
                        HDL_ON.Common.Utlis.WriteLine(ex.Message);
                        HDL_ON.Utlis.WriteLine(ex.Message);
                        return new ResponsePackNew() { Code = "DATA_EXCEPTION" };
                    }
                }
                else
                {
                    HDL_ON.Common.Utlis.WriteLine(response.Content);
                    HDL_ON.Utlis.WriteLine(response.Content);
                    return new ResponsePackNew() { Code = "NETWORK_ERROR" };
                }
            }
            catch (Exception ex)
            {
                HDL_ON.Common.Utlis.WriteLine(ex.Message);
                HDL_ON.Utlis.WriteLine(ex.Message);
                return new ResponsePackNew() { Code = "NETWORK_ERROR" };
            }
@@ -285,7 +285,7 @@
            }
            catch (Exception ex)
            {
                HDL_ON.Common.Utlis.WriteLine(ex.Message);
                HDL_ON.Utlis.WriteLine(ex.Message);
                return null;
            }
            #endregion
@@ -376,20 +376,20 @@
                    }
                    catch (Exception ex)
                    {
                        HDL_ON.Common.Utlis.WriteLine(ex.Message);
                        HDL_ON.Utlis.WriteLine(ex.Message);
                        return new ResponsePackNew() { Code = "DATA_EXCEPTION" };
                    }
                }
                else
                {
                    HDL_ON.Common.Utlis.WriteLine(response.Content);
                    HDL_ON.Utlis.WriteLine(response.Content);
                    return new ResponsePackNew() { Code = "NETWORK_ERROR" };
                }
            }
            catch (Exception ex)
            {
                HDL_ON.Common.Utlis.WriteLine(ex.Message);
                HDL_ON.Utlis.WriteLine(ex.Message);
                return new ResponsePackNew() { Code = "NETWORK_ERROR" };
            }
@@ -455,11 +455,25 @@
                    string str = string.Empty;
                    foreach (KeyValuePair<string, object> item in paramDictionary)
                    {
                        //Value为null不参加校验
                        if (item.Value != null)
                        {
                            str += item.Key + "=" + item.Value.ToString() + "&";
                            //Value.ToString()为null或者""也不参加校验
                            if (!string.IsNullOrEmpty(item.Value.ToString()))
                            {
                                //如果是bool类型,要转小写
                                if (item.Value is bool)
                                {
                                    str += item.Key + "=" + item.Value.ToString().ToLower() + "&";
                                }
                                else
                                {
                                    str += item.Key + "=" + item.Value.ToString() + "&";
                                }
                            }
                        }
                    }
                    //2.3 拼接SECRET_KEY
                    str = str.Substring(0, str.Length - 1) + SECRET_KEY;
                    //2.4 MD5转换+转小写