修改上报

This commit is contained in:
2023-04-12 17:04:23 +08:00
parent f571b9d6ed
commit 4e3d6742a4
3 changed files with 32 additions and 31 deletions
+6 -7
View File
@@ -114,18 +114,17 @@ class ReportPreProductOrderCommand extends HyperfCommand
// 存储上报成功
$this->savaReportSuccess($item['order_product_id']);
// 清空缓存
$redis->del($redis_key);
$this->line("商品订单上报处方平台成功");
Db::commit();
continue;
} catch (\Exception $e) {
Db::rollBack();
// 记录失败次数
$redis->incr($redis_key);
$this->line("上报失败:失败原因" . $e->getMessage());
continue;
}
// 清空缓存
$redis->del($redis_key);
$this->line("商品订单上报处方平台成功");
}
$this->line("商品订单上报处方平台全部结束");
}