Explorar el Código

Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

liaofei hace 2 años
padre
commit
9f48ba4270
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      crmeb/app/kefuapi/controller/Order.php

+ 9 - 1
crmeb/app/kefuapi/controller/Order.php

@@ -67,7 +67,15 @@ class Order extends AuthController
         if (!$services->count(['to_uid' => $uid])) {
             return app('json')->fail(410092);
         }
-        return app('json')->success($this->services->getOrderApiList($where));
+        if ($where['status'] == -1) {
+            unset($where['status']);
+            $where['is_cancel'] = 0;
+            $refundServices = app()->make(StoreOrderRefundServices::class);
+            $data = $refundServices->refundList($where)['list'];
+        } else {
+            $data = $this->services->getOrderApiList($where);
+        }
+        return app('json')->success($data);
     }
 
     /**