fuyu hace 6 años
padre
commit
94c76c2428
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/inter/service/WechatService.php

+ 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);