diff --git a/routes/demo/index.js b/routes/demo/index.js index 6cf0744..367c15c 100644 --- a/routes/demo/index.js +++ b/routes/demo/index.js @@ -4,12 +4,13 @@ var config = require('config'); // GET / router.get('/', function(req, res, next) { + var querystring=require('querystring'); res.render('demo/index', { title: config.get('site.demo'), banner: config.get('content.demo.banner'), home_title: config.get('site.demo'), - uri: 'rapid://authorize/?callback=' + encodeURIComponent(config.get('server.base') + 'demo/callback?token=') + - '&app=88587CD267E00E016B545E38FD133FCA077535F9B91C0E246FCD48AA5C77996DC935833C27C9A0EC0888D15ACD941C0B461716F61EAC6B7410BB9C46642B0808BF4C32E261A40F385070B87F9CBCE3B51B20E83A8D11B08D' + uri: config.get('server.base')+'api/auth?'+querystring.stringify({callback: config.get('server.base') + 'demo/callback?token=', + app: '88587CD267E00E016B545E38FD133FCA077535F9B91C0E246FCD48AA5C77996DC935833C27C9A0EC0888D15ACD941C0B461716F61EAC6B7410BB9C46642B0808BF4C32E261A40F385070B87F9CBCE3B51B20E83A8D11B08D'}) }); }); // GET /callback diff --git a/views/demo/index.hbs b/views/demo/index.hbs index 4f2521b..cc44bc0 100644 --- a/views/demo/index.hbs +++ b/views/demo/index.hbs @@ -1,2 +1,2 @@

{{banner}}

-用Rap-ID登陆 +用Rap-ID登陆