From 3abc2ab2d17312760d7b741fd07489f94479d223 Mon Sep 17 00:00:00 2001
From: zm <zm@iemsoft.cn>
Date: Mon, 29 Mar 2021 12:34:39 +0800
Subject: [PATCH] 修改BUG(客服提货产生的订单状态,应该和用户自助提货产生的订单状态一致—)

---
 plugins/exchange/forms/exchange/basic/Goods.php |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/plugins/exchange/forms/exchange/basic/Goods.php b/plugins/exchange/forms/exchange/basic/Goods.php
index f81cf4a..bb8aa90 100644
--- a/plugins/exchange/forms/exchange/basic/Goods.php
+++ b/plugins/exchange/forms/exchange/basic/Goods.php
@@ -36,8 +36,8 @@
                 $this->createExchangeOrder($order);
                 //handle 订单创建
                 $this->handleCreateEvent($order);
-                //handle 自动完成
-                (new CommonOrder())->autoSend($order);
+                //handle 自动完成,提货客服后台提货时,不自动完成订单,需要和用户自助兑换提货的订单状态一样
+                //(new CommonOrder())->autoSend($order);
                 //create PaymentOrder 支付完成
                 $this->paymentOrder($order);
                 return true;
@@ -99,12 +99,12 @@
         //$order->send_type = 3; //配送方式:0--快递配送 1--到店自提 2--同城配送 3--自动
         $order->send_type = 0; //配送方式:0--快递配送 1--到店自提 2--同城配送 3--自动
 
-        $order->is_sale = 1;
-        $order->auto_sales_time = mysql_timestamp();
-        $order->is_confirm = 1;
-        $order->confirm_time = mysql_timestamp();
-        $order->is_send = 1;
-        $order->send_time = mysql_timestamp();
+        $order->is_sale = 0;
+        //$order->auto_sales_time = mysql_timestamp();
+        $order->is_confirm = 0;
+        //$order->confirm_time = mysql_timestamp();
+        $order->is_send = 0;
+        //$order->send_time = mysql_timestamp();
 
         $order->support_pay_types = \Yii::$app->serializer->encode([]);
 

--
Gitblit v1.8.0