Selaa lähdekoodia

fix 微信返回openid 的结构

liuzejian 1 vuosi sitten
vanhempi
commit
6e791ca89b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Jobs/WechatPlatform/GZHSendKFMessage.php

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

@@ -85,7 +85,7 @@ class GZHSendKFMessage implements ShouldQueue
                 }
                 if(1 == $message->u_type) {
                     $info = $this->getUserOpenids($officialAccount, $next_openid);
-                    foreach ($info['openid'] as $opid){
+                    foreach ($info['data']['openid'] as $opid){
 //                        GZHSendKFMessageService::sendText($officialAccount, $opid, $messageStr, $this->traceContext);
                         dump($opid);
                     }