tjx
2025-10-14 e34f1c323e7154adc2df7f6697db8d9ba658b09f
修正erp接收的返回信息
已修改2个文件
13 ■■■■ 文件已修改
WebApi/Gs.HostIIS/appsettings.json 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/Gs.Toolbox/InterfaceUtil.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/Gs.HostIIS/appsettings.json
@@ -7,9 +7,9 @@
  },
  "AllowedHosts": "*",
  "ConnectionStrings": "Data Source=192.168.0.51;Initial Catalog=TEST_MES;User ID=sa;Password =LanBao@2025;Encrypt=True;TrustServerCertificate=True;",
  "TestErpUrl": "http://192.168.0.52:8055/",
  "TestErpUrl2": "http://192.168.0.52:8055/",
  "ProductionErpUrl": "http://192.168.0.52:8055/",
  "TestErpUrl": "http://192.168.0.52:8045/",
  "TestErpUrl2": "http://192.168.0.52:8045/",
  "ProductionErpUrl": "http://192.168.0.52:8045/",
  "ServicesPath": "Services",
  "LogPath": "logs",
  "UploadPath": "upload",
WebApi/Gs.Toolbox/InterfaceUtil.cs
@@ -76,7 +76,7 @@
        if (_rtn != -1)
        {
            Result _result = JsonConvert.DeserializeObject<Result>(responseStr);
            if ("200".Equals(_result.state))
            if ("200".Equals(_result.code))
                _rtn = 1;
        }
@@ -116,11 +116,10 @@
    /// <summary>
    /// 200成功,否则失败
    /// </summary>
    public string? state { get; set; }
    public string? code { get; set; }
    public string? msg { get; set; }
    public string? status { get; set; }
    public string? count { get; set; }
    public string? message { get; set; }
}