浏览代码

fix 用户分群openid的获取

liuzejian 1 年之前
父节点
当前提交
f341602a44
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Jobs/WechatPlatform/GZHSendKFMessage.php

+ 2 - 2
app/Jobs/WechatPlatform/GZHSendKFMessage.php

@@ -95,10 +95,10 @@ class GZHSendKFMessage implements ShouldQueue
                     }
                 } elseif (2 == $message->u_type) {
                     $info = $this->getUsersFromUG($gzh->id, $message->ug_id, $next_openid);
-                    foreach (($info['data']['openid'] ?? []) as $opid) {
+                    foreach (($info['openid'] ?? []) as $opid) {
                         GZHSendKFMessageService::sendText($officialAccount, $opid, $messageStr, $this->traceContext);
                     }
-                    $next_openid = $info['data']['next_uid'] ?? '';
+                    $next_openid = $info['next_uid'] ?? '';
                     if (!$next_openid) {
                         break;
                     }