我已经从https://github.com/aragon/metamask-plugin成功安装了扩展程序
启动Electron应用程序时,我可以看到MetaMask插件已加载,但无法使用它.有一些错误:
Uncaught TypeError: global._runtime.onConnect is not a function
at Object.connect (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:139)
at setupStreams (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:216)
at Object.<anonymous> (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:187)
at Object.3../lib/extension (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:265)
at s (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1)
at e (blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1)
at blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1
connect @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:139
setupStreams @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:216
(anonymous) @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:187
3../lib/extension @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:265
s @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1
e @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1
(anonymous) @ blob:file:///c13a5138-3758-47ae-a481-a163d7aa6a19:1
Run Code Online (Sandbox Code Playgroud)
和
App.js:49 Uncaught TypeError: window._setupMetaMaskPageStream is not a function
at onMetaMaskLoad (http://localhost:1212/dist/renderer.dev.js:1081:14)
at onMetaMaskLoad (http://localhost:1212/dist/renderer.dev.js:19790:30)
at Object.ReactErrorUtils.invokeGuardedCallback (webpack:///./node_modules/react-dom/lib/ReactErrorUtils.js?:69:16)
at executeDispatch (webpack:///./node_modules/react-dom/lib/EventPluginUtils.js?:85:21)
at Object.executeDispatchesInOrder (webpack:///./node_modules/react-dom/lib/EventPluginUtils.js?:108:5)
at executeDispatchesAndRelease (webpack:///./node_modules/react-dom/lib/EventPluginHub.js?:43:22)
at …Run Code Online (Sandbox Code Playgroud) 出于某种原因,我无法使用Illuminate\Http\Request外观从我的控制器中的URL获取任何GET参数.我在多个控制器中测试过,但没有成功.
使用以下代码,访问时远程服务器上不返回任何内容domain.com/admin/dashboard?test=test,但在我的本地计算机上它返回test:
The dashboard function is called by the route /admin/dashboard
/**
* Dashboard page
*
* @return view
*/
public function dashboard(Request $request)
{
echo '<pre>';
var_dump($request->all());
echo '</pre>';
// Return here
return;
// ...instead of here
return view('backend::pages.dashboard');
}
Run Code Online (Sandbox Code Playgroud)
我正在使用Nginx和php5-fpm在Ubuntu 14.04 LTS上运行Laravel 5.1.代码在我的本地Homestead实例以及MAMP上运行良好.我检查了我的Nginx配置,一切似乎都很好.我在我的服务器上托管多个站点,我可以在所有其他站点上获取路由参数.