rabin 3 năm trước cách đây
mục cha
commit
c331f60b3d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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('兑换失败,礼品卡已下架');