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('兑换失败,礼品卡已下架');