异常问题
This commit is contained in:
parent
086cf481d8
commit
08b897dee1
|
|
@ -642,8 +642,8 @@ class Order extends Backend
|
|||
'update_time' => now()->format('Y-m-d H:m:s'),
|
||||
];
|
||||
|
||||
$orderDispatch = OrderDispatch::where('order_id', $order->id)->whereBetween('status', '>=', 0)->find();
|
||||
|
||||
$orderDispatch = OrderDispatch::where('order_id', $order->id)
|
||||
->where('status', '>=', 0)->find();
|
||||
if ($params['abnormal_id'] == 2 || $params['abnormal_id'] == 3) {
|
||||
|
||||
$order->status = \app\admin\model\Order::STATUS_CANCEL;
|
||||
|
|
@ -696,6 +696,7 @@ class Order extends Backend
|
|||
$result = \model('order_abnormal')->insert($insert);
|
||||
Db::commit();
|
||||
} catch (ValidateException|PDOException|Exception $e) {
|
||||
throw $e;
|
||||
Db::rollback();
|
||||
$this->error($e->getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user