WIN-2308041133\Administrator 2 月之前
父节点
当前提交
3a27d9109b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/controller/api/store/order/StoreOrder.php

+ 3 - 0
app/controller/api/store/order/StoreOrder.php

@@ -488,6 +488,9 @@ class StoreOrder extends BaseController
         $where['uid'] = $this->request->uid();
 //        $where['paid'] = 1;
 //        $where['is_user'] = 1;
+        if ($where['status'] == -1){
+            unset($where['status']);
+        }
         $data = $repository->getList($where, $page, $limit);
         return app('json')->success($data);
     }