新增获取处方平台订单数据
This commit is contained in:
@@ -42,6 +42,7 @@ class ReportPreProductOrderCommand extends HyperfCommand
|
||||
$this->line("上报处方平台商品订单开始");
|
||||
|
||||
try {
|
||||
// 获取可上报商品订单
|
||||
$order_product_ids = $this->getExecProductOrder();
|
||||
if (empty($order_product_ids)){
|
||||
$this->line("上报处方平台商品订单结束,无可上报的商品订单");
|
||||
@@ -89,12 +90,11 @@ class ReportPreProductOrderCommand extends HyperfCommand
|
||||
Db::rollBack();
|
||||
// 记录失败次数
|
||||
$redis->incr($redis_key);
|
||||
$this->line("上报处方平台商品订单失败:" . $e->getMessage());
|
||||
$this->line("商品订单上报处方平台失败:商品单号" . $item['order_product_id'] . " 失败原因:" . $e->getMessage());
|
||||
$this->savaReportFail($item['order_product_id'],$e->getMessage());
|
||||
}
|
||||
|
||||
$this->line("商品订单上报处方平台成功:商品单号" . $item['order_product_id']);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user