|
|
@ -29,7 +29,7 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicDataRefDAL.SaveLog(strJson, "", "关贸云_报关业务", "");
|
|
|
|
|
|
|
|
|
|
|
|
//var usercode = CookieConfig.GetCookie_UserCode(Request);
|
|
|
|
//var usercode = CookieConfig.GetCookie_UserCode(Request);
|
|
|
|
|
|
|
|
|
|
|
@ -41,11 +41,12 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var jsonRespose = new JsonResponse { Success = false, Message = "" };
|
|
|
|
var jsonRespose = new JsonResponse { Success = false, Message = "" };
|
|
|
|
jsonRespose.Success = false;
|
|
|
|
jsonRespose.Success = false;
|
|
|
|
jsonRespose.Message = "上传出错";
|
|
|
|
jsonRespose.Message = "上传出错"+ e.Message + "//" + e.InnerException.Message;
|
|
|
|
|
|
|
|
BasicDataRefDAL.SaveLog(e.Message+"//"+e.InnerException.Message, "", "关贸云_报关业务", "报错");
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -58,7 +59,7 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicDataRefDAL.SaveLog(strJson, "", "关贸云_报关业务费用", "");
|
|
|
|
|
|
|
|
|
|
|
|
//var usercode = CookieConfig.GetCookie_UserCode(Request);
|
|
|
|
//var usercode = CookieConfig.GetCookie_UserCode(Request);
|
|
|
|
|
|
|
|
|
|
|
@ -74,7 +75,8 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var jsonRespose = new JsonResponse { Success = false, Message = "" };
|
|
|
|
var jsonRespose = new JsonResponse { Success = false, Message = "" };
|
|
|
|
jsonRespose.Success = false;
|
|
|
|
jsonRespose.Success = false;
|
|
|
|
jsonRespose.Message = "上传出错:["+e.Message+"]";
|
|
|
|
jsonRespose.Message = "上传出错:["+e.Message+"]" + e.InnerException.Message;
|
|
|
|
|
|
|
|
BasicDataRefDAL.SaveLog(e.Message + "//" + e.InnerException.Message, "", "关贸云_报关业务费用", "报错");
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|