rabin 7 months ago
parent
commit
5f8a8f9f3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/place/api/Resource.php

+ 1 - 1
src/place/api/Resource.php

@@ -123,7 +123,7 @@ class Resource extends Main
     public function applyRefund()
     {
         $info = $this->service->getOrderView();
-        if ($info && $info['type'] == 1 && $info['status'] > 1 && $info['status'] < 7 && !$info['refund_cur']) {
+        if ($info && $info['type'] == 1 && $info['status'] > 1 && $info['status'] < 7 && !$info['refund']) {
             $data['type'] = Dever::db('order_refund', $this->service->app)->value('type');
             $data['desc_type'] = Dever::db('order_refund', $this->service->app)->value('desc_type');
             $data['cash'] = $info['cash'];