From a14eb9f3e174c03f59dac398633ffcb7f2c8276c Mon Sep 17 00:00:00 2001 From: tk Date: Fri, 21 Jun 2024 13:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=09=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Astyle=20=E3=80=90=E4=B8=BB=09=E9=A2=98=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E5=88=A0=E6=8E=89=E5=86=97=E4=BD=99=E7=9A=84=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=20=E3=80=90=E6=8F=8F=09=E8=BF=B0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=20=09[=E5=8E=9F=E5=9B=A0]=EF=BC=9A=20=09[=E8=BF=87?= =?UTF-8?q?=E7=A8=8B]=EF=BC=9A=20=09[=E5=BD=B1=E5=93=8D]=EF=BC=9A=20?= =?UTF-8?q?=E3=80=90=E7=BB=93=09=E6=9D=9F=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- .../Controller/PlaneController.class.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index 6aee993..6c213a6 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -525,28 +525,6 @@ class PlaneController extends PublicController echo json_encode(array('status' => 0, 'msg' => '删除失败')); } } - /** - * @description: 获取 待发货 待收货 没有发起退款和正在发起退款状态 订单 - */ - public function getQuestList() - { - if ($this->tokenShop_id != C('powerId')) { //非总管理员 - $where['lr_order.shop_id'] = $this->tokenShop_id; - } - - $where['lr_order.del'] = "0"; - $where['lr_order.status'] = array('in', array('20', '30')); //待发货 待收货 - $where['lr_order.back'] = array('in', array('0', '1')); //没有退款状态 和 申请退款状态 一并返回 - $orderDb = D('order'); - $field = array('lr_order.id', 'lr_order.shop_id', 'lr_order.order_sn', 'lr_order.food_sn', 'lr_order.uid', 'lr_user.name', 'lr_order.price', 'lr_order.tel', 'lr_order.status', 'lr_order.receive_site_id', 'lr_order.receive_site_name', 'lr_receive_site.bind_route', 'lr_receive_site.runing', 'lr_order.product_num', 'lr_order.quest', 'lr_order.back', 'lr_order.addtime', 'lr_order.remark', 'lr_order.back_remark'); - $questList = $orderDb->join('lr_user ON lr_order.uid = lr_user.id')->join('lr_receive_site ON lr_order.receive_site_id = lr_receive_site.id')->where($where)->field($field)->select(); - $orderProductDb = D('order_product'); - foreach ($questList as $key => $value) { - $proWhere['order_id'] = $value['id']; - $questList[$key]['products'] = $orderProductDb->where($proWhere)->select(); - } - echo json_encode(array('status' => 1, 'msg' => '访问成功', "questList" => $questList)); - } /** * @description: 改变订单状态或退款字段 不处理 已取消 未付款 交易关闭的订单 */