瀏覽代碼

更换服务器路径

李士越 1 年之前
父節點
當前提交
8a5cca974b
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. 2 7
      wwwroot/mes/pc/intelligence/Richtext.ashx

+ 2 - 7
wwwroot/mes/pc/intelligence/Richtext.ashx

@@ -28,10 +28,7 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
             context.Request.Files[0].SaveAs(diskFileName);
             Dictionary<string, object> result = new Dictionary<string, object>();
             result.Add("errno", 0);
-            result.Add("data", new Dictionary<string, string>()
-            {
-            {"url","http://localhost:62173"+fileName }
-            });
+            result.Add("data", new Dictionary<string, string>() { {"url","http://172.18.32.32:9000/"+fileName }  });
             context.Response.Write(JsonConvert.SerializeObject(result, Formatting.Indented));
         }
         //获取产品型号
@@ -108,7 +105,6 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
             int id = formData["id"] != null ? int.Parse(formData["id"].ToString()) : 0;
             using (IDataAccess conn = DataAccess.Create())
             {
-
                 string sqlStr = "SELECT Q.*,U.USERNAME FROM TP_PM_QUALITYLIBRARY Q LEFT JOIN TP_MST_USER U ON Q.CREATEUSERID=U.USERID WHERE Q.VALUEFLAG=1";
                 if (id != 0)
                 {
@@ -116,8 +112,7 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
                 }
                 sqlStr += "ORDER BY q.CREATETIME DESC";
                 DataTable dt = conn.ExecuteDatatable(sqlStr);
-                List<Dictionary<string, string>> result = new List<Dictionary<string, string>>();
-
+                List<Dictionary<string, string>> result = new List<Dictionary<string, string>>(); 
                 for (int i = 0; i < dt.Rows.Count; i++)
                 {
                     Dictionary<string, string> content = new Dictionary<string, string>();