优化商品核价读取速度,优化jit开通无人值守参数设置,优化产品数据库数据直传批量设置商品
This commit is contained in:
1 parent
6865064eca
commit
55d4a27d90
4 files changed
+359
-155
No files matched your search
@@ -669,24 +669,27 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
var suggestSupplyPrice = "-";
|
||||
if (type == "待卖家确认")
|
||||
{
|
||||
var orderPriceRst = "店铺掉线";
|
||||
if (shop.LoginStatus2 == "国际版在线")
|
||||
orderPriceRst = GetCheckPrice(shop, reviewInfo.priceOrderId.ParseToString());
|
||||
if (orderPriceRst.Contains("登录过期") || orderPriceRst.Contains("Invalid Login State"))
|
||||
{
|
||||
AdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
}
|
||||
reviewInfo.suggestSupplyPrice = BaseRegex.GetIntJson(ref orderPriceRst, "suggestSupplyPrice");
|
||||
reviewInfo.supplyPrice = BaseRegex.GetIntJson(ref orderPriceRst, "supplyPrice");
|
||||
suggestSupplyPrice = (reviewInfo.suggestSupplyPrice / 100.0).ToString();
|
||||
if (suggestSupplyPrice == "0")
|
||||
suggestSupplyPrice = "获取推荐价格失败,请重试" + orderPriceRst;
|
||||
else
|
||||
suggestSupplyPrice += "¥";
|
||||
// 单独一个一个读取建议价格,目前已可以从列表直接获取
|
||||
//var orderPriceRst = "店铺掉线";
|
||||
//if (shop.LoginStatus2 == "国际版在线")
|
||||
// orderPriceRst = GetCheckPrice(shop, reviewInfo.priceOrderId.ParseToString());
|
||||
//Thread.Sleep(Randomx.GetId(20, 50));
|
||||
//if (orderPriceRst.Contains("登录过期") || orderPriceRst.Contains("Invalid Login State"))
|
||||
//{
|
||||
// AdminShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
//}
|
||||
//reviewInfo.suggestSupplyPrice = BaseRegex.GetIntJson(ref orderPriceRst, "suggestSupplyPrice");
|
||||
//reviewInfo.supplyPrice = BaseRegex.GetIntJson(ref orderPriceRst, "supplyPrice");
|
||||
//suggestSupplyPrice = (reviewInfo.suggestSupplyPrice / 100.0).ToString();
|
||||
//if (suggestSupplyPrice == "0")
|
||||
// suggestSupplyPrice = "获取推荐价格失败,请重试" + orderPriceRst;
|
||||
//else
|
||||
// suggestSupplyPrice += "¥";
|
||||
|
||||
suggestSupplyPrice = (reviewInfo.suggestSupplyPrice / 100.0).ToString() + "¥";
|
||||
}
|
||||
var reviewExtCode = priceInfo.skcList.FirstOrDefault()?.extCode;
|
||||
var extCodePrice = extCodePriceList.FirstOrDefault(p => reviewExtCode == p.ext_code);
|
||||
Thread.Sleep(Randomx.GetId(20, 50));
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -707,6 +710,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
// sku不同价的会被分成多个review,priceInfo此时为价格范围
|
||||
reviewInfo.productSkuList.FirstOrDefault()?.supplierPrice, //priceInfo.supplierPrice
|
||||
suggestSupplyPrice,//核价
|
||||
//reviewInfo.suggestSupplyPrice == null ? "-" : reviewInfo.suggestSupplyPrice.ParseToString(),
|
||||
"", //新报价
|
||||
reviewInfo.times, // 修改报价次数
|
||||
BaseClass.StampToDateTime((priceInfo.skcList.FirstOrDefault()?.statusTime.createdTime.ParseToLong() / 1000).ParseToInt()).ToString("yy/MM/dd HH:mm:ss"),
|
||||
@@ -714,7 +718,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
"拒绝",
|
||||
"作废",
|
||||
""
|
||||
);
|
||||
); ;
|
||||
dgvPriceCheck.Rows[rowId].Height = 60;
|
||||
if (chkFilter.Checked && !CheckContainsWords(priceInfo.productName))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user