最新服务器上的版本,以后用这个
修改发出订单表格中不显示提货卡号数据的bug
修改批量导出订单菜单的路由为和订单列表一样
2 files modified
13 ■■■■■ changed files
controllers/mall/OrderController.php 12 ●●●●● patch | view | raw | blame | history
forms/mall/export/OrderExport.php 1 ●●●● patch | view | raw | blame | history
controllers/mall/OrderController.php
@@ -56,6 +56,18 @@
            return $this->render('index');
        }
    }
    public function actionExport()
    {
        if (\Yii::$app->request->isAjax) {
            $form = new OrderForm();
            $form->attributes = \Yii::$app->request->get();
            $form->attributes = \Yii::$app->request->post();
            return $this->asJson($form->search());
        } else {
            return $this->render('index');
        }
    }
    //订单详情
    public function actionDetail()
forms/mall/export/OrderExport.php
@@ -231,6 +231,7 @@
            try {
                $arr = [];
                $arr['platform'] = $this->getPlatform($item->user);
                $arr['ex_card_no'] = $item->ex_card_no;
                $arr['order_no'] = $item->order_no;
                $arr['pay_order_no'] = isset($item->paymentOrder->paymentOrderUnion->order_no) ? $item->paymentOrder->paymentOrderUnion->order_no : '';
                $arr['nickname'] = sprintf('%s(id:%s)', $item->user->nickname, $item->user->id);