Browse Source

搜索修改,去除无效日志

zqwang 1 năm trước cách đây
mục cha
commit
95960da7ca

+ 12 - 12
modules/Channel/Http/Controllers/WechatOpenPlatformController.php

@@ -128,15 +128,15 @@ class WechatOpenPlatformController extends CatchController
         $componentInfo = WechatOpenPlatformService::getComponentInfoByAppid($component_appid);
         $openPlatform = WechatOpenPlatformService::buildApplication($componentInfo);
 
-        $server = $openPlatform->server;
-        $message = $server->getMessage();
-        myLog("wx-xiaoxi")->info('-------开始处理---'.get_date());
-        myLog("wx-xiaoxi")->info([
-            'authorizer_appid' => $authorizer_appid,
-            'component_appid' => $component_appid,
-            'param' => $request->all(),
-            'msg' => $message,
-        ]);
+        // $server = $openPlatform->server;
+        // $message = $server->getMessage();
+        // myLog("wx-xiaoxi")->info('-------开始处理---'.get_date());
+        // myLog("wx-xiaoxi")->info([
+        //     'authorizer_appid' => $authorizer_appid,
+        //     'component_appid' => $component_appid,
+        //     'param' => $request->all(),
+        //     'msg' => $message,
+        // ]);
         $appInfo = WechatOpenPlatformService::getRefreshToken($authorizer_appid,$component_appid);
         $wechatAppId = getProp($appInfo,'id');
 
@@ -144,9 +144,9 @@ class WechatOpenPlatformController extends CatchController
         unset($appInfo);
 
         $app->server->push(function ($message) use($app,$authorizer_appid,$wechatAppId) {
-            myLog("wx-xiaoxi")->info("----文本消息---");
-            myLog("wx-xiaoxi")->info("体消息:");
-            myLog("wx-xiaoxi")->info($message);
+            // myLog("wx-xiaoxi")->info("----文本消息---");
+            // myLog("wx-xiaoxi")->info("体消息:");
+            // myLog("wx-xiaoxi")->info($message);
             return WechatCommonService::handleMessage($app,$wechatAppId ,$authorizer_appid,$message);
         });
         // myLog("wx-xiaoxi")->info('-------结束处理---'.get_date());

+ 4 - 4
modules/WechatPlatform/Services/WechatMenuService.php

@@ -88,13 +88,13 @@ class WechatMenuService extends BaseService
                 "client_platform_type" => $val->type == "ios" ? "1" : "2",
             ];
             $res = $app->menu->create($val->content, $matchRule);
-            myLog('wx-meun')->info(['res' => $res]);
+            // myLog('wx-meun')->info(['res' => $res]);
 
             $errcode = getProp($res,'errcode',"");
             if (intval($errcode) ==  65303){
                 $res = $app->menu->create($val->content);
             }
-            myLog('wx-meun')->info(['res' => $res]);
+            // myLog('wx-meun')->info(['res' => $res]);
             $wxMenuId = getProp($res, 'menuid', "");
             $res = $app->menu->create($val->content, $matchRule);
             myLog('wx-meun')->info(['res' => $res,'mid' => $wxMenuId]);
@@ -312,7 +312,7 @@ class WechatMenuService extends BaseService
         }
         foreach ($list as $val){
             $val->wechat_accounts =  WechatAccountMenuDetail::query()->where(
-                ['subscribe_id' => $val->id,
+                ['menu_id' => $val->id,
                     'status' => 1
                 ])->select('wechat_authorization_info_id as id',"appid",'nick_name')->get();
         }
@@ -338,7 +338,7 @@ class WechatMenuService extends BaseService
             $ids = WechatAccountMenuDetail::query()->where([
                 'wechat_authorization_info_id' => $param['wechat_authorization_info_id'],
                 'status' => 1,
-            ])->pluck('weacht_keyworld_id')->toArray();
+            ])->pluck('menu_id')->toArray();
         }
         return $sql;
     }

+ 1 - 1
modules/WechatPlatform/Services/WechatSubscribeService.php

@@ -269,7 +269,7 @@ class WechatSubscribeService extends BaseService
             $ids = WechatAccountSubscribeDetail::query()->where([
                     'wechat_authorization_info_id' => $param['wechat_authorization_info_id'],
                     'status' => 1,
-                ])->pluck('weacht_keyworld_id')->toArray();
+                ])->pluck('subscribe_id')->toArray();
             $sql->whereIn('id',$ids);
         }
         return $sql;