修改上报
This commit is contained in:
@@ -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("商品订单上报处方平台全部结束");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user