浏览代码

回调事件日志修改

zqwang 1 年之前
父节点
当前提交
f4be8d9e66
共有 1 个文件被更改,包括 8 次插入1 次删除
  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();
     }
 }