Browse Source

客服页面退款订单显示问题修复

evoxwht 2 years ago
parent
commit
50a2a00557
1 changed files with 9 additions and 1 deletions
  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])) {
         if (!$services->count(['to_uid' => $uid])) {
             return app('json')->fail(410092);
             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);
     }
     }
 
 
     /**
     /**