rabin 3 سال پیش
والد
کامیت
c331f60b3d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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('兑换失败,礼品卡已下架');