| | |
| | | $this->createExchangeOrder($order); |
| | | //handle 订单创建 |
| | | $this->handleCreateEvent($order); |
| | | //handle 自动完成 |
| | | (new CommonOrder())->autoSend($order); |
| | | //handle 自动完成,提货客服后台提货时,不自动完成订单,需要和用户自助兑换提货的订单状态一样 |
| | | //(new CommonOrder())->autoSend($order); |
| | | //create PaymentOrder 支付完成 |
| | | $this->paymentOrder($order); |
| | | return true; |
| | |
| | | //$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([]); |
| | | |