This commit is contained in:
2025-07-17 08:46:45 +08:00
parent 146052aafc
commit d24f41ba60
+3 -1
View File
@@ -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()); string response = HttpPost("http://www.kiy.cn/m-mobile/autobaojia/LTInsertNewOrder", jsonObject.ToString());
JObject jsonObjects = JObject.Parse(response); JObject jsonObjects = JObject.Parse(response);
string msg = (string)jsonObjects["msg"]; string msg = jsonObjects["msg"].ToString();
if (msg == "插入订单成功") 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 + "');"; 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()); CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
addLog(ctid, userId, "上传彩印通接口成功:" + msg, ce.OrderState); addLog(ctid, userId, "上传彩印通接口成功:" + msg, ce.OrderState);
@@ -546,6 +547,7 @@ public partial class caiyingtongload : System.Web.UI.Page
ce.OrderState = 6; ce.OrderState = 6;
ce.IsReturn = 0; ce.IsReturn = 0;
ce.PlaceUserId = userId; ce.PlaceUserId = userId;
ce.SupplierOrderSn = cytMalId;
ce.Update(); ce.Update();
CeErpTradeLog logenty = new CeErpTradeLog(); CeErpTradeLog logenty = new CeErpTradeLog();