shish 2 anni fa
parent
commit
8750e21c8c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app-ghs/controllers/RefundController.php

+ 2 - 2
app-ghs/controllers/RefundController.php

@@ -183,9 +183,9 @@ class RefundController extends BaseController
         $get = Yii::$app->request->get();
         $where = [];
         $where['mainId'] = $this->mainId;
-        $status = $get['status'] ?? 0;
+        $status = $get['status'] ?? -1;
         $cause = $get['cause'] ?? -1;
-        if ($status == 1) {
+        if ($status > -1) {
             $where['status'] = $status;
         }
         $string = $get['ids'];