fuyu 6 rokov pred
rodič
commit
94c76c2428

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

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