王大坤 1 년 전
부모
커밋
414b0c75f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/libs/wechat/auth/Gateways/General.php

+ 1 - 1
app/libs/wechat/auth/Gateways/General.php

xqd
@@ -174,7 +174,7 @@ class General extends Base
                 break;
             case 'db':
             default:
-                $token = Db::table('configs')->where('c_key', $key)->where('c_expired > ' . time())->value('c_value');
+                $token = Db::table('configs')->where('c_key = "'.$key.'"')->where('c_expired > ' . time())->value('c_value');
                 break;
         }
         if ($token) {