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