|
|
@@ -534,9 +534,10 @@ public partial class caiyingtongload : System.Web.UI.Page
|
|
|
|
|
|
string response = HttpPost("http://www.kiy.cn/m-mobile/autobaojia/LTInsertNewOrder", jsonObject.ToString());
|
|
|
JObject jsonObjects = JObject.Parse(response);
|
|
|
- string msg = (string)jsonObjects["msg"];
|
|
|
+ string msg = jsonObjects["msg"].ToString();
|
|
|
if (msg == "插入订单成功")
|
|
|
{
|
|
|
+ string cytMalId = jsonObjects["Data"]["CytMallId"].ToString();
|
|
|
string sql_pay = "INSERT INTO CE_CaiYingTongLog (ctid, ctime,type,msg) VALUES ('" + ctid + "', '" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "'," + 0 + ",'" + msg + "');";
|
|
|
CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
|
|
|
addLog(ctid, userId, "上传彩印通接口成功:" + msg, ce.OrderState);
|
|
|
@@ -546,6 +547,7 @@ public partial class caiyingtongload : System.Web.UI.Page
|
|
|
ce.OrderState = 6;
|
|
|
ce.IsReturn = 0;
|
|
|
ce.PlaceUserId = userId;
|
|
|
+ ce.SupplierOrderSn = cytMalId;
|
|
|
ce.Update();
|
|
|
|
|
|
CeErpTradeLog logenty = new CeErpTradeLog();
|