根据服务接口调整修改上货逻辑
This commit is contained in:
1 parent
f92e8ed79b
commit
d7550ae559
5 files changed
+27
-11
No files matched your search
@@ -617,9 +617,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
}
|
||||
Thread.Sleep(200);
|
||||
|
||||
var error = BaseRegex.GetStringJson(ref result, "errMsg");
|
||||
if (result.Contains("\"status\":\"未上传\""))
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref result, "errMsg");
|
||||
if (string.IsNullOrWhiteSpace(error))
|
||||
error = result;
|
||||
Invoke(new Action(() =>
|
||||
@@ -649,7 +649,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
string opRst = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱";
|
||||
row.Cells["colOpResult"].Value = opRst + "但保存到服务端失败:" + BaseRegex.GetStringJson(ref html, "msg") + "; ";
|
||||
row.Cells["colOpResult"].Value = opRst + "但保存到服务端失败:" + BaseRegex.GetStringJson(ref html, "msg") + (" " + error).Trim(' ');
|
||||
row.Cells["colStatus"].Value = prod.status;
|
||||
}));
|
||||
}
|
||||
@@ -658,7 +658,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colDraftId"].Value = productDraftId; // 草稿箱id
|
||||
row.Cells["colOpResult"].Value = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱";
|
||||
row.Cells["colOpResult"].Value = prod.status == "已上传" ? "已成功上传" : "已上传草稿箱" + (" " + error).Trim(' ');
|
||||
row.Cells["colStatus"].Value = prod.status;
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user