修改BUG(客服提货产生的订单状态,应该和用户自助提货产生的订单状态一致—)
1 files modified
16 ■■■■ changed files
plugins/exchange/forms/exchange/basic/Goods.php 16 ●●●● patch | view | raw | blame | history
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([]);