ソースを参照

Merge branch 'wx-kw' into test

zqwang 1 年間 前
コミット
9ba7fb04a5

+ 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();
     }
 }