fuyu 5 years ago
parent
commit
403ee800e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/inter/service/WechatService.php

+ 1 - 1
application/inter/service/WechatService.php

@@ -189,7 +189,7 @@ class WechatService {
       $options[] = $phone;
       $options[] = $phone;
     }
     }
 
 
-    $sql = "select wx_openid as openid, source from user where id in (".$sql1." union ".$sql2.") and wx_source = ?";
+    $sql = "select wx_openid as openid, source from user where id in (".$sql1." union ".$sql2.") and source = ?";
     $options[] = $wx_source;
     $options[] = $wx_source;
     log::record('---------微信推送sql--------');
     log::record('---------微信推送sql--------');
     log::record($sql);
     log::record($sql);