Replies: 1 comment
-
已解决,tp项目要关闭debug |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
小程序消息推送设置,异常: [0]Failed to decode request contents.[/www/wwwroot/jw/vendor/w7corp/easywechat/src/Kernel/Message.php:62]
thinkphp8 + easywechat6
消息加密方式:安全模式;
数据格式:XML
代码:
$app = new \EasyWeChat\MiniApp\Application([
'app_id' => $miniProgram['app_id'],
'secret' => $miniProgram['secret'],
'token' => $miniProgram['server_token'],
'aes_key' => $miniProgram['encoding_aes_key'],
]);
$server = $app->getServer();
$message = $server->getDecryptedMessage();
Beta Was this translation helpful? Give feedback.
All reactions