From a0c69fc150c7c26dec216c5100bd6d39dc3f9722 Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Tue, 10 May 2022 11:37:30 +0800 Subject: [PATCH] edit-common-update_order_time2 --- common/services/apporder/Payment_service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/services/apporder/Payment_service.php b/common/services/apporder/Payment_service.php index 8ccd0748..cfda2aa7 100644 --- a/common/services/apporder/Payment_service.php +++ b/common/services/apporder/Payment_service.php @@ -296,7 +296,7 @@ class Payment_service extends HD_Service{ $this->orders_status_entity->set_status($order['o_id'],0,2); } //更新客户为订单客户 - $row = $this->receiver_orders_v2_model->get(['id' => $order['o_id']],'customer_id'); + $row = $this->receiver_orders_v2_model->get(['id' => $order['o_id']],'id,customer_id,order_time'); if($row['order_time']=='0000-00-00 00:00:00' && $order['type']!=4){//更新订单下定时间 $this->receiver_orders_v2_model->update(['order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]); }