瀏覽代碼

用户分群返回openid

liuzejian 1 年之前
父節點
當前提交
393caeae80
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 8 1
      app/Jobs/WechatPlatform/GZHSendKFMessage.php
  2. 2 1
      config/wechat.php

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

@@ -131,7 +131,7 @@ class GZHSendKFMessage implements ShouldQueue
     }
 
     /**
-     *
+     * 拉取公众号粉丝
      * @param $officialAccount Application
      */
     private function getUserOpenids($officialAccount, $next_openid) {
@@ -143,6 +143,13 @@ class GZHSendKFMessage implements ShouldQueue
         return $result;
     }
 
+    /**
+     * 通过用户分群获取
+     * @param $gzhId
+     * @param $ugId
+     * @param $nextUid
+     * @return false|mixed
+     */
     private function getUsersFromUG($gzhId, $ugId,  $nextUid) {
         $url = config('wechat.ug.url.listUser');
         $signKey = config('wechat.ug.signKey');

+ 2 - 1
config/wechat.php

@@ -7,7 +7,8 @@ return [
     ],
     'ug' => [
         'url' => [
-            'listUser' => env('WECHAT_UG_URL_LIST_USER',  'http://m.test.duanju.dududus.com/api/audienceManage/userGroup/listUser'),
+            'listUser' => env('WECHAT_UG_URL_LIST_USER',
+                'http://m.test.duanju.dududus.com/api/audienceManage/outUserGroup/listUser'),
         ],
         'signKey' => 'lV9bOCooPTJ68G3a'
     ]