|
|
@@ -3100,7 +3100,7 @@ class StoreOrderRepository extends BaseRepository
|
|
3100
|
3100
|
Db::name("log")->insert(array('data' => '确认收货:' . json_encode($order)));//日志记录
|
|
3101
|
3101
|
if (!$order)
|
|
3102
|
3102
|
throw new ValidateException('订单不存在');
|
|
3103
|
|
- if ($order['status'] != 1 || $order['order_type'])
|
|
|
3103
|
+ if (!in_array($order['status'], [0, 1]) || $order['order_type'])
|
|
3104
|
3104
|
throw new ValidateException('订单状态有误');
|
|
3105
|
3105
|
if (!$user) $user = $order->user;
|
|
3106
|
3106
|
$order->status = 2;
|