|
|
@@ -1049,7 +1049,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1049
|
1049
|
paras.ATTATH_STEP_ID = ids;
|
|
1050
|
1050
|
// values.Add("paras", paras);
|
|
1051
|
1051
|
string fileid = "";
|
|
1052
|
|
-
|
|
|
1052
|
+
|
|
1053
|
1053
|
//序列化参数
|
|
1054
|
1054
|
string jsonParam = "access_token=" + token + "¶s=" + paras.ToJson();
|
|
1055
|
1055
|
var responseString = HttpMethods.HttpPost("http://59.227.93.14:9000/share/fjcljk", jsonParam);
|
|
|
@@ -1408,12 +1408,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1408
|
1408
|
public ActionResult receive_material_info()
|
|
1409
|
1409
|
{
|
|
1410
|
1410
|
StreamReader reader = new StreamReader(System.Web.HttpContext.Current.Request.InputStream);
|
|
|
1411
|
+
|
|
1411
|
1412
|
var postString = reader.ReadToEnd();
|
|
1412
|
1413
|
JObject paras = null;
|
|
1413
|
1414
|
paras = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(postString);
|
|
|
1415
|
+
|
|
|
1416
|
+ LogFactory.GetLogger("receive_material_info").Warn (paras);
|
|
1414
|
1417
|
var txnBodyCom = paras["paras"].ToString();
|
|
1415
|
1418
|
var result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(txnBodyCom);
|
|
1416
|
|
-
|
|
|
1419
|
+ LogFactory.GetLogger("receive_material_info").Warn(result);
|
|
1417
|
1420
|
var body = GetFileData(result["ATTATH_STEP_ID"].ToString());
|
|
1418
|
1421
|
if (body != null)
|
|
1419
|
1422
|
{
|
|
|
@@ -1449,6 +1452,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1449
|
1452
|
/// <returns></returns>
|
|
1450
|
1453
|
public List<bodys> GetFileData(string ids)
|
|
1451
|
1454
|
{
|
|
|
1455
|
+
|
|
|
1456
|
+
|
|
1452
|
1457
|
DataTable dt = DbHelperSQL.Query("select * from T_Sys_Accessories WITH(NOLOCK) where F_FileId in (" + ids + ")").Tables[0];
|
|
1453
|
1458
|
List<bodys> bodys = new List<bodys>();
|
|
1454
|
1459
|
foreach (DataRow dr in dt.Rows)
|