Showing
1 changed file
with
0 additions
and
5 deletions
@@ -4,7 +4,6 @@ const _ = require('lodash'); | @@ -4,7 +4,6 @@ const _ = require('lodash'); | ||
4 | const cookie = global.yoho.cookie; | 4 | const cookie = global.yoho.cookie; |
5 | const authcode = require('../../utils/authcode'); | 5 | const authcode = require('../../utils/authcode'); |
6 | const config = global.yoho.config; | 6 | const config = global.yoho.config; |
7 | -const logger = global.yoho.logger; | ||
8 | 7 | ||
9 | module.exports = () => { | 8 | module.exports = () => { |
10 | return (req, res, next) => { | 9 | return (req, res, next) => { |
@@ -54,10 +53,6 @@ module.exports = () => { | @@ -54,10 +53,6 @@ module.exports = () => { | ||
54 | let appSessionType = req.query.client_type || req.cookies.app_client_type; | 53 | let appSessionType = req.query.client_type || req.cookies.app_client_type; |
55 | let sessionKey = req.query.session_key || req.cookies.app_session_key; | 54 | let sessionKey = req.query.session_key || req.cookies.app_session_key; |
56 | 55 | ||
57 | - if (req.query.app_version && req.query.client_type) { | ||
58 | - logger.warn(`app session from querystring, url:${req.originalUrl}`); | ||
59 | - } | ||
60 | - | ||
61 | req.user.uid = req.query.uid = { | 56 | req.user.uid = req.query.uid = { |
62 | toString: () => { | 57 | toString: () => { |
63 | return _.parseInt(appUid); | 58 | return _.parseInt(appUid); |
-
Please register or login to post a comment