|
|
@@ -8,25 +8,16 @@ class IndexController
|
|
|
{
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
- return <<<EOF
|
|
|
-<style>
|
|
|
- * {
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
- iframe {
|
|
|
- border: none;
|
|
|
- overflow: scroll;
|
|
|
- }
|
|
|
-</style>
|
|
|
-<iframe
|
|
|
- src="https://www.workerman.net/wellcome"
|
|
|
- width="100%"
|
|
|
- height="100%"
|
|
|
- allow="clipboard-write"
|
|
|
- sandbox="allow-scripts allow-same-origin allow-popups allow-downloads"
|
|
|
-></iframe>
|
|
|
-EOF;
|
|
|
+ $param = [
|
|
|
+ "events" => [
|
|
|
+ [
|
|
|
+ "channel" => "private-user-1",
|
|
|
+ "name" => "channel_added"
|
|
|
+ ]
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ $key = hash_hmac('sha256', json_encode($param), config('plugin.webman.push.app.app_secret'), false);
|
|
|
+ echo $key."\n";
|
|
|
}
|
|
|
|
|
|
public function view(Request $request)
|