王大坤 hai 1 ano
pai
achega
6858894965
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {