修复上货检测是错误Bug
This commit is contained in:
1 parent
d1ddb96ce0
commit
0381dafd65
2 files changed
+5
-5
No files matched your search
@@ -1723,7 +1723,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (!long.TryParse(dbProd.spu_id, out var goodsId) || goodsId <= 0)
|
||||
throw new Exception("商品ID无效");
|
||||
|
||||
var statuses = CloudGoodsService.GetViolationStatus(new List<long> { goodsId }).GetAwaiter().GetResult();
|
||||
var statuses = CloudGoodsService.GetViolationStatus(new List<long> { goodsId });
|
||||
var status = statuses.FirstOrDefault(item => item.GoodsId == goodsId);
|
||||
if (status == null)
|
||||
throw new Exception("未返回当前商品的违规状态");
|
||||
|
||||
Reference in new issue
Block a user