rabin %!s(int64=3) %!d(string=hai) anos
pai
achega
c331f60b3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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('兑换失败,礼品卡已下架');