shish 2 năm trước cách đây
mục cha
commit
f5310c68d2
1 tập tin đã thay đổi với 7 bổ sung5 xóa
  1. 7 5
      app-ghs/controllers/RefundController.php

+ 7 - 5
app-ghs/controllers/RefundController.php

@@ -114,11 +114,13 @@ class RefundController extends BaseController
                 }
             }
         }
-        if ($version == 0 && $has == true) {
-            util::fail('请先升级系统');
-        }
-        if ($has == true && $confirm == 0) {
-            util::success(['notFirstApply' => 1]);
+        if ($has == true) {
+            if ($version == 0) {
+                util::fail('请先升级系统');
+            }
+            if ($confirm == 0) {
+                util::success(['notFirstApply' => 1]);
+            }
         }
 
         $connection = Yii::$app->db;//事务处理