Browse Source

回调事件日志修改

zqwang 1 year ago
parent
commit
f4be8d9e66
1 changed files with 8 additions and 1 deletions
  1. 8 1
      modules/Channel/Http/Controllers/WechatOpenPlatformController.php

+ 8 - 1
modules/Channel/Http/Controllers/WechatOpenPlatformController.php

@@ -123,12 +123,19 @@ class WechatOpenPlatformController extends CatchController
     }
 
     public function infoCommand(Request $request, $authorizer_appid, $component_appid) {
-        myLog("wx-xiaoxi")->info(['authorizer_appid' => $authorizer_appid,'component_appid' => $component_appid,'param' => $request->all()]);
+
         $componentInfo = WechatOpenPlatformService::getComponentInfoByAppid($component_appid);
         $app = WechatOpenPlatformService::buildApplication($componentInfo);
 
         $server = $app->getServer();
 
+        $message = $server->getDecryptedMessage();
+        myLog("wx-xiaoxi")->info([
+            'authorizer_appid' => $authorizer_appid,
+            'component_appid' => $component_appid,
+            'param' => $request->all(),
+            'msg' => $message,
+            ]);
         return $server->serve();
     }
 }