diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 4fe7130d..031e2af9 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -2649,7 +2649,7 @@ class StoreOrderRepository extends BaseRepository } else { if ($groupOrder->pay_type == StoreGroupOrder::PAY_TYPE_CREDIT_BUY) { //如果是先货后款并且选择到店核销、同意时生成核销码 - if (!empty($order['order_type']) && $order['order_type'] == 1) { + if (!empty($order->order_type) && $order->order_type == 1) { $order->verify_code = 1; } }