rabin 3 lat temu
rodzic
commit
c331f60b3d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/card/src/Api.php

+ 1 - 1
app/card/src/Api.php

@@ -161,7 +161,7 @@ class Api extends Core
             }
 
             $check = Dever::load('card/lib/code')->check($data);
-            if ($check] == -1) {
+            if ($check == -1) {
                 Dever::alert('兑换失败,礼品卡已下架');
             } elseif ($check == -2) {
                 Dever::alert('兑换失败,礼品卡已下架');